+## Custom Token
+
+### What is Custom Token?
+
+Users can manually add TRC-20 and TRC-721 assets that are not recorded as tokens on TronScan as custom tokens in TronLink, which helps users search and manage their token assets more easily.
+
+### Add Custom Token
+
+Add: Add tokens in TronLink App: Home --> My Assets --> Add Custom Token
-
- Custom Token →
-
+Possible limitations: Certain TronLink features, such as "transfer" and "approve," may be unavailable when custom tokens are added in TronLink. This is because certain ABI in the contract code (e.g., transfer, approve, etc.) are not identified. TronLink will notify users when such cases occur.
-
\ No newline at end of file
+Synchronization with TronScan: If the custom token has already been recorded on TronScan, Tronlink will notify the user to synchronize token information with TronScan; once done, the custom token will adopt the corresponding token information on TronScan.
diff --git a/docs/mobile/asset-management.zh.md b/docs/mobile/asset-management.zh.md
index c39de4c..91d150a 100644
--- a/docs/mobile/asset-management.zh.md
+++ b/docs/mobile/asset-management.zh.md
@@ -1,6 +1,18 @@
-
# 资产管理
管理您的资产,并支持自定义通证
+## 自定义通证
+
+### **什么是自定义通证**
+
+自定义通证功能可以让用户将部分未在 TronScan 录入为通证的 TRC20、TRC721 资产,在 TronLink 钱包中手动添加为自定义通证,从而帮助用户查找和管理该通证资产。
+
+### **添加自定义通证**
+
+添加:首页-->我的全部资产-->添加自定义通证
+
+可能的限制:在 TronLink 钱包中添加为自定义通证后,部分合约可能会因为合约代码中缺少关键的 abi,如:transfer、approve 等,而导致相应的转账,授权等操作无法进行。TronLink 钱包会给出对应的提示。
+
+与 Tronscan 同步:如果此自定义通证在 Tronscan 录入后,TronLink 钱包会提示与 Tronscan 同步,选择同步后,此自定义通证信息同步为 Tronscan 对应通证信息。
\ No newline at end of file
diff --git a/docs/mobile/asset-management/custom-tokens.en.md b/docs/mobile/asset-management/custom-tokens.en.md
deleted file mode 100644
index 7556438..0000000
--- a/docs/mobile/asset-management/custom-tokens.en.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Custom Token
-
-## What is Custom Token?
-
-Users can manually add TRC-20 and TRC-721 assets that are not recorded as tokens on TronScan as custom tokens in TronLink, which helps users search and manage their token assets more easily.
-
-## Add Custom Token
-
-Add: Add tokens in TronLink App: Home --> My Assets --> Add Custom Token
-
-Possible limitations: Certain TronLink features, such as "transfer" and "approve," may be unavailable when custom tokens are added in TronLink. This is because certain ABI in the contract code (e.g., transfer, approve, etc.) are not identified. TronLink will notify users when such cases occur.
-
-Synchronization with TronScan: If the custom token has already been recorded on TronScan, Tronlink will notify the user to synchronize token information with TronScan; once done, the custom token will adopt the corresponding token information on TronScan.
diff --git a/docs/mobile/asset-management/custom-tokens.zh.md b/docs/mobile/asset-management/custom-tokens.zh.md
deleted file mode 100644
index 8d6dd20..0000000
--- a/docs/mobile/asset-management/custom-tokens.zh.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# 自定义通证
-
-## **什么是自定义通证**
-
-自定义通证功能可以让用户将部分未在 TronScan 录入为通证的 TRC20、TRC721 资产,在 TronLink 钱包中手动添加为自定义通证,从而帮助用户查找和管理该通证资产。
-
-## **添加自定义通证**
-
-添加:首页-->我的全部资产-->添加自定义通证
-
-可能的限制:在 TronLink 钱包中添加为自定义通证后,部分合约可能会因为合约代码中缺少关键的 abi,如:transfer、approve 等,而导致相应的转账,授权等操作无法进行。TronLink 钱包会给出对应的提示。
-
-与 Tronscan 同步:如果此自定义通证在 Tronscan 录入后,TronLink 钱包会提示与 Tronscan 同步,选择同步后,此自定义通证信息同步为 Tronscan 对应通证信息。
-
-
diff --git a/docs/mobile/dapp-support.en.md b/docs/mobile/dapp-support.en.md
index f40dfb1..f6df7d5 100644
--- a/docs/mobile/dapp-support.en.md
+++ b/docs/mobile/dapp-support.en.md
@@ -1,13 +1,28 @@
-
# DApp Support
-
+## TronLink Integration
+
+TronLink injects a version of TronWeb into the DApp that runs in TronLink's DApp Explorer. This enables the DApp to interact with TronLink DApps and the TRON network.
+
+Details: [Go to DApp](../../dapp/getting-started.en.md)
+
+
+## DApp Explorer
+
+### Basic Function
+
+The DApp Explorer allows Tron DApps to run and automatically injects tronWeb and TronLink objects.
+
+### Extension
+
+Tron DApp running in the DApp Explorer injects iTron objects automatically to offer customized App service.
+
+##### Change screen orientation
+
-
- TronLink Integration →
-
-
- DApp Explorer →
-
+```shell
+ // url: DApp page url
+ // screenModel: "1" -> vertical;"2" -> horizontal
+ void setScreenModel(String url, String screenModel)
+```
-
\ No newline at end of file
diff --git a/docs/mobile/dapp-support.zh.md b/docs/mobile/dapp-support.zh.md
index 79bcf33..4e13305 100644
--- a/docs/mobile/dapp-support.zh.md
+++ b/docs/mobile/dapp-support.zh.md
@@ -3,3 +3,27 @@
提供流畅的 DApp 浏览器,支持运行 TRON DApp。
+## 集成TronLink
+
+TronLink App 内置 DApp 浏览器,对于在其上运行的 TRON DApp,TronLink 会自动将 tronWeb 及 tronLink 对象注入到该 DApp。从而允许 DApp 与 TronLink App,以及TRON 网络交互。
+
+详情:参考[DApp章节](../../dapp/getting-started.zh.md)
+
+## Dapp 浏览器
+
+### 基本功能
+
+DApp 浏览器支持运行 TRON DApp,并自动注入 tronWeb 及 tronLink 对象
+
+### 扩展
+
+在 DApp 浏览器中运行的 Tron DApp,会自动注入 iTron 对象,并提供 App 端定制化功能
+
+ * 切换屏幕方向
+
+```shell
+ // url: DApp page url
+ // screenModel: "1" -> 竖屏;"2" -> 横屏
+ public void setScreenModel(String url, String screenModel)
+```
+
diff --git a/docs/mobile/dapp-support/dapp-browser.en.md b/docs/mobile/dapp-support/dapp-browser.en.md
deleted file mode 100644
index 9d9cc8e..0000000
--- a/docs/mobile/dapp-support/dapp-browser.en.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# DApp Explorer
-
-## Basic Function
-
-The DApp Explorer allows Tron DApps to run and automatically injects tronWeb and TronLink objects.
-
-## Extension
-
-Tron DApp running in the DApp Explorer injects iTron objects automatically to offer customized App service.
-
-#### Change screen orientation
-
-
-```shell
- // url: DApp page url
- // screenModel: "1" -> vertical;"2" -> horizontal
- void setScreenModel(String url, String screenModel)
-```
-
diff --git a/docs/mobile/dapp-support/dapp-browser.zh.md b/docs/mobile/dapp-support/dapp-browser.zh.md
deleted file mode 100644
index f55db8e..0000000
--- a/docs/mobile/dapp-support/dapp-browser.zh.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Dapp 浏览器
-
-### 基本功能
-
-DApp 浏览器支持运行 TRON DApp,并自动注入 tronWeb 及 tronLink 对象
-
-### 扩展
-
-在 DApp 浏览器中运行的 Tron DApp,会自动注入 iTron 对象,并提供 App 端定制化功能
-
- * 切换屏幕方向
-
-```shell
- // url: DApp page url
- // screenModel: "1" -> 竖屏;"2" -> 横屏
- public void setScreenModel(String url, String screenModel)
-```
-
diff --git a/docs/mobile/dapp-support/integrate-tronlink.en.md b/docs/mobile/dapp-support/integrate-tronlink.en.md
deleted file mode 100644
index 74abe72..0000000
--- a/docs/mobile/dapp-support/integrate-tronlink.en.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# TronLink Integration
-
-TronLink injects a version of TronWeb into the DApp that runs in TronLink's DApp Explorer. This enables the DApp to interact with TronLink DApps and the TRON network.
-
-Details: Go to DApp
diff --git a/docs/mobile/dapp-support/integrate-tronlink.zh.md b/docs/mobile/dapp-support/integrate-tronlink.zh.md
deleted file mode 100644
index 3f3814a..0000000
--- a/docs/mobile/dapp-support/integrate-tronlink.zh.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# 集成TronLink
-
-TronLink App 内置 DApp 浏览器,对于在其上运行的 TRON DApp,TronLink 会自动将 tronWeb 及 tronLink 对象注入到该 DApp。从而允许 DApp 与 TronLink App,以及TRON 网络交互。
-
-详情:参考[DApp章节](../../dapp/getting-started.zh.md)
-
diff --git a/docs/mobile/deeplink.en.md b/docs/mobile/deeplink.en.md
index 9b8aa9b..acbe9ee 100644
--- a/docs/mobile/deeplink.en.md
+++ b/docs/mobile/deeplink.en.md
@@ -4,7 +4,233 @@ DApps and H5 pages can launch the TronLink App to open the wallet, log in, make

+
+
Process Flowchart
-Please be aware that only dApps that have been added to the whitelist will be able to establish a successful connection with TronLink. Kindly fill out the whitelist request form here: [Start](https://docs.google.com/forms/d/e/1FAIpQLSdFmYGxVZzwCSsvmdOTq064sxWD22STYth1g5GO5zn3OrB5Jw/viewform?usp=sf_link)
+Please be aware that only DApps that have been added to the whitelist will be able to establish a successful connection with TronLink. Kindly fill out the whitelist request form here: [Start](https://docs.google.com/forms/d/e/1FAIpQLSdFmYGxVZzwCSsvmdOTq064sxWD22STYth1g5GO5zn3OrB5Jw/viewform?usp=sf_link)
+
+
+## Open Wallet
+
+### Launch TronLink wallet via DeepLink
+
+```shell
+ // Tronlink-v4.10.0
+ // Link
+
{% if page.previous_page %}
-
- ← {{ page.previous_page.title }}
+ {% set direction = lang.t("footer.previous") %}
+
{% endif %}
{% if page.next_page %}
-
- {{ page.next_page.title }} →
+ {% set direction = lang.t("footer.next") %}
+
{% endif %}
diff --git a/docs/plugin-wallet/active-requests.en.md b/docs/plugin-wallet/active-requests.en.md
index fa06dbc..fd8c71c 100644
--- a/docs/plugin-wallet/active-requests.en.md
+++ b/docs/plugin-wallet/active-requests.en.md
@@ -1,3 +1,200 @@
# Request TronLink Extension
+## Connect Website
+
+
DEPRECATED
+
+The methods in this section are deprecated and are expected to be removed in a few releases. The TRON community is discussing new specifications, you can go to [TRON-TIP](https://github.com/tronprotocol/tips/issues/463) to participate in the discussion.
+
+**Connect Website**
+
+**Overview**
+
+TronLink supports TRX transfers, contract signature, authorization, etc. initiated by DApps. For security considerations, users are required to authorize the DApp to “connect website”. They can take further actions only after successful authorization. The DApp must first connect to the website, and wait for the user's permission before it can initiate a request for authorization.
+
+**Specification**
+
+**Example**
+
+```shell
+ const res = await tronWeb.request(
+ {
+ method: 'tron_requestAccounts',
+ params: {
+ websiteIcon: '
',
+ websiteName: '',
+ },
+ }
+ )
+```
+**Parameters**
+
+```shell
+ interface RequestAccountsParams {
+ websiteIcon?: string;
+ websiteName?: string;
+ }
+```
+
+**Returns**
+
+```shell
+ interface ReqestAccountsResponse {
+ code: 200 | 4000 | 4001,
+ message: string
+ }
+```
+| Error Code | Description | Message |
+|:-------|:-------|:-------|
+| null | Wallet is locked | Empty string |
+| 200 | The site has previously been allowed to connect | The site is already in the whitelist |
+| 200 | The user approved the connection | User allowed the request. |
+| 4000 | The same DApp has already initiated a request to connect to the website, and the pop-up window has not been closed | Authorization requests are being processed, please do not resubmit |
+| 4001 | The user rejected connection | User rejected the request |
+
+**Interaction**
+
+After triggering ‘tron_requestAccounts‘, there will be a pop-up window asking for confirmation:
+
+
+
+
+## Add Token
+
+**Overview**
+
+Buttons on DApps allow users to directly add the specified tokens to the asset list on their TronLink user extension.
+
+**Specification**
+
+**Example**
+
+```shell
+ const res = await tronWeb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'TRC20',
+ options: {
+ address: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'
+ }
+ },
+ });
+```
+**Parameters**
+
+```shell
+
+ interface WatchAssetParams {
+ type: 'trc10' | 'trc20' | 'trc721';
+ options: {
+ address: string;
+ symbol?: string;
+ decimals?: number;
+ image?: string;
+ }
+ }
+```
+ * method: wallet_watchAsset fixed string
+
+ * params: WatchAssetParams, the specific parameters are as follows:
+
+ * type: Only 'trc10', 'trc20', 'trc721' are supported now
+
+ * options:
+
+ * address: the contract address of the token or the token id, required
+
+ * symbol: placeholder (currently unused), optional
+
+ * decimals: placeholder (currently unused), optional
+
+ * image: placeholder (currently unused), optional
+
+
+**Returns**
+
+This method has no return value
+
+**Interaction**
+
+**Add TRC10 assets**
+
+```shell
+
+ if (window.tronLink.ready) {
+ const tronweb = tronLink.tronWeb;
+ try {
+ tronweb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'trc10',
+ options: {
+ address: '1002000'
+ },
+ },
+ });
+ } catch (e) {}
+ }
+```
+
+When the code is executed, a TronLink pop-up window for adding TRC10 assets will show up, and the user can click “Add” or “Cancel”.
+
+
+
+After clicking "Add", users can see the added assets as shown in the following screen:
+
+
+
+**Add TRC20 assets**
+
+```shell
+
+ if (window.tronLink.ready) {
+ const tronweb = tronLink.tronWeb;
+ try {
+ tronweb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'trc20',
+ options: {
+ address: 'TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3'
+ },
+ },
+ });
+ } catch (e) {}
+ }
+```
+When the code is executed, a TronLink pop-up window for adding TRC20 assets will show up, and the user can click “Add” or “Cancel”.
+
+
+
+After clicking “Add”, users can see the added assets as shown in the following screen:
+
+
+
+**Add TRC721 asset**
+
+```shell
+ if (window.tronLink.ready) {
+ const tronweb = tronLink.tronWeb;
+ try {
+ tronweb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'trc721',
+ options: {
+ address: 'TVtaUnsgKXhTfqSFRnHCsSXzPiXmm53nZt'
+ },
+ },
+ });
+ } catch (e) {}
+ }
+```
+When the code is executed, a TronLink pop-up window for adding TRC721 will show up, and the user can click “Add” or “Cancel”.
+
+
+
+After clicking “Add”, users can see the added assets as shown in the following screen:
+
+
diff --git a/docs/plugin-wallet/active-requests.zh.md b/docs/plugin-wallet/active-requests.zh.md
index bfd7a58..341383c 100644
--- a/docs/plugin-wallet/active-requests.zh.md
+++ b/docs/plugin-wallet/active-requests.zh.md
@@ -1 +1,218 @@
-# 主动请求TronLink插件功能
\ No newline at end of file
+# 主动请求TronLink插件功能
+
+## 连接网站
+
+DEPRECATED
+
+本小节的方法已废弃,预计将在几个版本后移除。TRON 社区正在讨论新的规范,可以到 [TRON-TIP](https://github.com/tronprotocol/tips/issues/463) 参与讨论。
+
+
+**简介**
+
+TronLink 提供外部发起 TRX 转账,合约签名,授权等功能,基于安全的考虑, 需要用户在关键操作前先对发起请求的 DApp 进行【连接网站】授权,在授权成功后才允许操作。 所以 DApp 要先进行【连接网站】操作,等待用户允许后,方能发起需要授权的请求。
+
+**技术规范**
+
+**代码示例**
+
+```shell
+
+ const res = await tronWeb.request(
+ {
+ method: 'tron_requestAccounts',
+ params: {
+ websiteIcon: '',
+ websiteName: '',
+ },
+ }
+ );
+```
+**参数**
+
+```shell
+
+ interface RequestAccountsParams {
+ websiteIcon?: string;
+ websiteName?: string;
+ }
+```
+ * method: tron_requestAccounts 固定的字符串
+
+ * params: RequestAccountParams类型,具体参数如下:
+
+ * websiteIcon: DApp 网站的图标的网址, 具体会展示在用户已连接网站列表中
+
+ * websiteName: DApp 网站名称
+
+**返回值**
+
+类型说明
+
+```shell
+
+ interface ReqestAccountsResponse {
+ code: 200 | 4000 | 4001,
+ message: string
+ }
+```
+
+| 返回码 | 描述 | 返回消息 |
+|:-------|:-------|:-------|
+| 无 | 钱包处于锁定状态 | 空字符串 |
+| 200 | 网站此前已被用户允许连接 | The site is already in the whitelist |
+| 200 | 用户同意连接 | User allowed the request. |
+| 4000 | 当前请求前已经有同一个 DApp 发起了连接网站请求,并且弹窗仍未关闭 | Authorization requests are being processed, please do not resubmit |
+| 4001 | 用户拒绝连接 | User rejected the request |
+
+
+**交互流程**
+
+触发`tron_requestAccounts`之后,会打开连接确认的弹窗:
+
+
+
+
+## 添加Token
+**简介**
+
+DApp 提供按钮给用户, 直接将指定的 Token 添加到用户插件的资产展示列表中。
+
+**技术规范**
+
+**代码示例**
+
+```shell
+
+ const res = await tronWeb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'TRC20',
+ options: {
+ address: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'
+ }
+ },
+ });
+```
+**参数**
+
+```shell
+
+ interface WatchAssetParams {
+ type: 'trc10' | 'trc20' | 'trc721';
+ options: {
+ address: string;
+ symbol?: string;
+ decimals?: number;
+ image?: string;
+ }
+ }
+```
+ * method: wallet_watchAsset 固定的字符串
+
+ * params: WatchAssetParams,具体参数如下:
+
+ * type: 目前只支持 'trc10', 'trc20', 'trc721' 三种
+
+ * options:
+
+ * address: token 的合约地址 或者 token id, 必传
+
+ * symbol: 占位(目前未使用),可选
+
+ * decimals: 占位(目前未使用),可选
+
+ * image: 占位(目前未使用),可选
+
+**返回值**
+
+此方法没有返回值
+
+**交互流程**
+
+**添加 TRC10 资产**
+
+```shell
+
+ if (window.tronLink.ready) {
+ const tronweb = tronLink.tronWeb;
+ try {
+ tronweb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'trc10',
+ options: {
+ address: '1002000'
+ },
+ },
+ });
+ } catch (e) {}
+ }
+```
+代码执行时,TronLink 会弹出添加窗口,用户点击确定添加 TRC10 资产,或者取消添加。
+
+
+
+点击“添加”按钮,资产被添加到资产列表,如下图所示:
+
+
+
+
+**添加 TRC20 资产**
+
+```shell
+
+ if (window.tronLink.ready) {
+ const tronweb = tronLink.tronWeb;
+ try {
+ tronweb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'trc20',
+ options: {
+ address: 'TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3'
+ },
+ },
+ });
+ } catch (e) {}
+ }
+```
+代码执行时,TronLink 会弹出添加窗口,用户点击确定添加 TRC20 资产,或者取消添加。
+
+
+
+
+点击“添加”按钮,资产被添加到资产列表,如下图所示:
+
+
+
+
+**添加 TRC721 资产**
+
+```shell
+
+ if (window.tronLink.ready) {
+ const tronweb = tronLink.tronWeb;
+ try {
+ tronweb.request({
+ method: 'wallet_watchAsset',
+ params: {
+ type: 'trc721',
+ options: {
+ address: 'TVtaUnsgKXhTfqSFRnHCsSXzPiXmm53nZt'
+ },
+ },
+ });
+ } catch (e) {}
+ }
+```
+代码执行时,TronLink 会弹出添加窗口,用户点击确定添加 TRC721 资产,或者取消添加。
+
+
+
+
+点击”添加”按钮,资产被添加到资产列表,如下图所示:
+
+
+
+
+
diff --git a/docs/plugin-wallet/active-requests/add-token.en.md b/docs/plugin-wallet/active-requests/add-token.en.md
deleted file mode 100644
index 5f11a87..0000000
--- a/docs/plugin-wallet/active-requests/add-token.en.md
+++ /dev/null
@@ -1,138 +0,0 @@
-# Add Token
-
-**Overview**
-
-Buttons on DApps allow users to directly add the specified tokens to the asset list on their TronLink user extension.
-
-**Specification**
-
-**Example**
-
-```shell
- const res = await tronWeb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'TRC20',
- options: {
- address: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'
- }
- },
- });
-```
-**Parameters**
-
-```shell
-
- interface WatchAssetParams {
- type: 'trc10' | 'trc20' | 'trc721';
- options: {
- address: string;
- symbol?: string;
- decimals?: number;
- image?: string;
- }
- }
-```
- * method: wallet_watchAsset fixed string
-
- * params: WatchAssetParams, the specific parameters are as follows:
-
- * type: Only 'trc10', 'trc20', 'trc721' are supported now
-
- * options:
-
- * address: the contract address of the token or the token id, required
-
- * symbol: placeholder (currently unused), optional
-
- * decimals: placeholder (currently unused), optional
-
- * image: placeholder (currently unused), optional
-
-
-**Returns**
-
-This method has no return value
-
-**Interaction**
-
-**Add TRC10 assets**
-
-```shell
-
- if (window.tronLink.ready) {
- const tronweb = tronLink.tronWeb;
- try {
- tronweb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'trc10',
- options: {
- address: '1002000'
- },
- },
- });
- } catch (e) {}
- }
-```
-
-When the code is executed, a TronLink pop-up window for adding TRC10 assets will show up, and the user can click “Add” or “Cancel”.
-
-
-
-After clicking "Add", users can see the added assets as shown in the following screen:
-
-
-
-**Add TRC20 assets**
-
-```shell
-
- if (window.tronLink.ready) {
- const tronweb = tronLink.tronWeb;
- try {
- tronweb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'trc20',
- options: {
- address: 'TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3'
- },
- },
- });
- } catch (e) {}
- }
-```
-When the code is executed, a TronLink pop-up window for adding TRC20 assets will show up, and the user can click “Add” or “Cancel”.
-
-
-
-After clicking “Add”, users can see the added assets as shown in the following screen:
-
-
-
-**Add TRC721 asset**
-
-```shell
- if (window.tronLink.ready) {
- const tronweb = tronLink.tronWeb;
- try {
- tronweb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'trc721',
- options: {
- address: 'TVtaUnsgKXhTfqSFRnHCsSXzPiXmm53nZt'
- },
- },
- });
- } catch (e) {}
- }
-```
-When the code is executed, a TronLink pop-up window for adding TRC721 will show up, and the user can click “Add” or “Cancel”.
-
-
-
-After clicking “Add”, users can see the added assets as shown in the following screen:
-
-
diff --git a/docs/plugin-wallet/active-requests/add-token.zh.md b/docs/plugin-wallet/active-requests/add-token.zh.md
deleted file mode 100644
index 1cb9471..0000000
--- a/docs/plugin-wallet/active-requests/add-token.zh.md
+++ /dev/null
@@ -1,144 +0,0 @@
-# 添加Token
-**简介**
-
-DApp 提供按钮给用户, 直接将指定的 Token 添加到用户插件的资产展示列表中。
-
-**技术规范**
-
-**代码示例**
-
-```shell
-
- const res = await tronWeb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'TRC20',
- options: {
- address: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'
- }
- },
- });
-```
-**参数**
-
-```shell
-
- interface WatchAssetParams {
- type: 'trc10' | 'trc20' | 'trc721';
- options: {
- address: string;
- symbol?: string;
- decimals?: number;
- image?: string;
- }
- }
-```
- * method: wallet_watchAsset 固定的字符串
-
- * params: WatchAssetParams,具体参数如下:
-
- * type: 目前只支持 'trc10', 'trc20', 'trc721' 三种
-
- * options:
-
- * address: token 的合约地址 或者 token id, 必传
-
- * symbol: 占位(目前未使用),可选
-
- * decimals: 占位(目前未使用),可选
-
- * image: 占位(目前未使用),可选
-
-**返回值**
-
-此方法没有返回值
-
-**交互流程**
-
-**添加 TRC10 资产**
-
-```shell
-
- if (window.tronLink.ready) {
- const tronweb = tronLink.tronWeb;
- try {
- tronweb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'trc10',
- options: {
- address: '1002000'
- },
- },
- });
- } catch (e) {}
- }
-```
-代码执行时,TronLink 会弹出添加窗口,用户点击确定添加 TRC10 资产,或者取消添加。
-
-
-
-点击“添加”按钮,资产被添加到资产列表,如下图所示:
-
-
-
-
-**添加 TRC20 资产**
-
-```shell
-
- if (window.tronLink.ready) {
- const tronweb = tronLink.tronWeb;
- try {
- tronweb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'trc20',
- options: {
- address: 'TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3'
- },
- },
- });
- } catch (e) {}
- }
-```
-代码执行时,TronLink 会弹出添加窗口,用户点击确定添加 TRC20 资产,或者取消添加。
-
-
-
-
-点击“添加”按钮,资产被添加到资产列表,如下图所示:
-
-
-
-
-**添加 TRC721 资产**
-
-```shell
-
- if (window.tronLink.ready) {
- const tronweb = tronLink.tronWeb;
- try {
- tronweb.request({
- method: 'wallet_watchAsset',
- params: {
- type: 'trc721',
- options: {
- address: 'TVtaUnsgKXhTfqSFRnHCsSXzPiXmm53nZt'
- },
- },
- });
- } catch (e) {}
- }
-```
-代码执行时,TronLink 会弹出添加窗口,用户点击确定添加 TRC721 资产,或者取消添加。
-
-
-
-
-点击”添加”按钮,资产被添加到资产列表,如下图所示:
-
-
-
-
-
diff --git a/docs/plugin-wallet/active-requests/connect-website.en.md b/docs/plugin-wallet/active-requests/connect-website.en.md
deleted file mode 100644
index 1183d09..0000000
--- a/docs/plugin-wallet/active-requests/connect-website.en.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# Connect Website
-
-DEPRECATED
-
-The methods in this section are deprecated and are expected to be removed in a few releases. The TRON community is discussing new specifications, you can go to [TRON-TIP](https://github.com/tronprotocol/tips/issues/463) to participate in the discussion.
-
-**Connect Website**
-
-**Overview**
-
-TronLink supports TRX transfers, contract signature, authorization, etc. initiated by DApps. For security considerations, users are required to authorize the DApp to “connect website”. They can take further actions only after successful authorization. The DApp must first connect to the website, and wait for the user's permission before it can initiate a request for authorization.
-
-**Specification**
-
-**Example**
-
-```shell
- const res = await tronWeb.request(
- {
- method: 'tron_requestAccounts',
- params: {
- websiteIcon: '',
- websiteName: '',
- },
- }
- )
-```
-**Parameters**
-
-```shell
-
-
- interface RequestAccountsParams {
- websiteIcon?: string;
- websiteName?: string;
- }
-``
-**Returns**
-
-```shell
-
-
- interface ReqestAccountsResponse {
- code: 200 | 4000 | 4001,
- message: string
- }
-```
-| Error Code | Description | Message |
-|:-------|:-------|:-------|
-| null | Wallet is locked | Empty string |
-| 200 | The site has previously been allowed to connect | The site is already in the whitelist |
-| 200 | The user approved the connection | User allowed the request. |
-| 4000 | The same DApp has already initiated a request to connect to the website, and the pop-up window has not been closed | Authorization requests are being processed, please do not resubmit |
-| 4001 | The user rejected connection | User rejected the request |
-
-**Interaction**
-
-After triggering ‘tron_requestAccounts‘, there will be a pop-up window asking for confirmation:
-
-
diff --git a/docs/plugin-wallet/active-requests/connect-website.zh.md b/docs/plugin-wallet/active-requests/connect-website.zh.md
deleted file mode 100644
index 04c9de3..0000000
--- a/docs/plugin-wallet/active-requests/connect-website.zh.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 连接网站
-
-DEPRECATED
-
-本小节的方法已废弃,预计将在几个版本后移除。TRON 社区正在讨论新的规范,可以到 [TRON-TIP](https://github.com/tronprotocol/tips/issues/463) 参与讨论。
-
-#### 连接网站
-
-**简介**
-
-TronLink 提供外部发起 TRX 转账,合约签名,授权等功能,基于安全的考虑, 需要用户在关键操作前先对发起请求的 DApp 进行【连接网站】授权,在授权成功后才允许操作。 所以 DApp 要先进行【连接网站】操作,等待用户允许后,方能发起需要授权的请求。
-
-**技术规范**
-
-**代码示例**
-
-```shell
-
- const res = await tronWeb.request(
- {
- method: 'tron_requestAccounts',
- params: {
- websiteIcon: '',
- websiteName: '',
- },
- }
- );
-```
-**参数**
-
-```shell
-
- interface RequestAccountsParams {
- websiteIcon?: string;
- websiteName?: string;
- }
-```
- * method: tron_requestAccounts 固定的字符串
-
- * params: RequestAccountParams类型,具体参数如下:
-
- * websiteIcon: DApp 网站的图标的网址, 具体会展示在用户已连接网站列表中
-
- * websiteName: DApp 网站名称
-
-**返回值**
-
-类型说明
-
-```shell
-
- interface ReqestAccountsResponse {
- code: 200 | 4000 | 4001,
- message: string
- }
-```
-
-| 返回码 | 描述 | 返回消息 |
-|:-------|:-------|:-------|
-| 无 | 钱包处于锁定状态 | 空字符串 |
-| 200 | 网站此前已被用户允许连接 | The site is already in the whitelist |
-| 200 | 用户同意连接 | User allowed the request. |
-| 4000 | 当前请求前已经有同一个 DApp 发起了连接网站请求,并且弹窗仍未关闭 | Authorization requests are being processed, please do not resubmit |
-| 4001 | 用户拒绝连接 | User rejected the request |
-
-
-**交互流程**
-
-触发`tron_requestAccounts`之后,会打开连接确认的弹窗:
-
-
-
-
diff --git a/docs/plugin-wallet/index.en.md b/docs/plugin-wallet/index.en.md
deleted file mode 100644
index fc8e889..0000000
--- a/docs/plugin-wallet/index.en.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 插件钱包开发
-
-TronLink 插件钱包为浏览器环境提供了完整的开发者集成方案,支持主动请求功能和被动消息接收。
-
-## 主要功能
-
-### 主动请求功能
-- [主动请求概述](active-requests.md) - 主动请求功能总览
-- [连接网站](active-requests/connect-website.md) - 连接网站功能
-- [添加Token](active-requests/add-token.md) - 添加 Token 功能
-
-### 被动接收消息
-- [被动消息概述](passive-messages.md) - 被动接收消息总览
-- [账户改变消息](passive-messages/account-change.md) - 账户改变消息处理
-- [网络改变消息](passive-messages/network-change.md) - 网络改变消息处理
-- [连接网站成功消息](passive-messages/connect-success.md) - 连接成功消息处理
-- [断开连接网站消息](passive-messages/disconnect.md) - 断开连接消息处理
-- [即将废弃的消息](passive-messages/deprecated-messages.md) - 即将废弃的消息说明
-
-## 快速开始
-
-1. 阅读 [主动请求概述](active-requests.md) 了解基本概念
-2. 按照 [连接网站](active-requests/connect-website.md) 进行集成
-3. 实现 [被动消息处理](passive-messages.md) 功能
-4. 测试各种功能,确保正常工作
-
-## 开发注意事项
-
-- 确保正确处理所有消息类型
-- 注意即将废弃的消息,及时更新代码
-- 遵循安全最佳实践
-- 测试不同网络环境下的兼容性
-
-## 技术支持
-
-如有问题,请参考相关文档或联系技术支持团队。
\ No newline at end of file
diff --git a/docs/plugin-wallet/index.zh.md b/docs/plugin-wallet/index.zh.md
deleted file mode 100644
index fc8e889..0000000
--- a/docs/plugin-wallet/index.zh.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 插件钱包开发
-
-TronLink 插件钱包为浏览器环境提供了完整的开发者集成方案,支持主动请求功能和被动消息接收。
-
-## 主要功能
-
-### 主动请求功能
-- [主动请求概述](active-requests.md) - 主动请求功能总览
-- [连接网站](active-requests/connect-website.md) - 连接网站功能
-- [添加Token](active-requests/add-token.md) - 添加 Token 功能
-
-### 被动接收消息
-- [被动消息概述](passive-messages.md) - 被动接收消息总览
-- [账户改变消息](passive-messages/account-change.md) - 账户改变消息处理
-- [网络改变消息](passive-messages/network-change.md) - 网络改变消息处理
-- [连接网站成功消息](passive-messages/connect-success.md) - 连接成功消息处理
-- [断开连接网站消息](passive-messages/disconnect.md) - 断开连接消息处理
-- [即将废弃的消息](passive-messages/deprecated-messages.md) - 即将废弃的消息说明
-
-## 快速开始
-
-1. 阅读 [主动请求概述](active-requests.md) 了解基本概念
-2. 按照 [连接网站](active-requests/connect-website.md) 进行集成
-3. 实现 [被动消息处理](passive-messages.md) 功能
-4. 测试各种功能,确保正常工作
-
-## 开发注意事项
-
-- 确保正确处理所有消息类型
-- 注意即将废弃的消息,及时更新代码
-- 遵循安全最佳实践
-- 测试不同网络环境下的兼容性
-
-## 技术支持
-
-如有问题,请参考相关文档或联系技术支持团队。
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages.en.md b/docs/plugin-wallet/passive-messages.en.md
index 00e3f92..d78c9d2 100644
--- a/docs/plugin-wallet/passive-messages.en.md
+++ b/docs/plugin-wallet/passive-messages.en.md
@@ -1,3 +1,323 @@
# Receive messages from TronLink
-The message is sent using "window.postMessage", and the content received by the Dapp is a MessageEvent.You can refer to [MDN documentation of MessageEvent](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent).
+The message is sent using "window.postMessage", and the content received by the Dapp is a MessageEvent.You can refer to MDN documentation of MessageEvent.
+
+
+## Account Change Message
+
+Message ID: `accountsChanged`
+
+**Overview**
+
+This message is generated when:
+
+ 1. Users log in
+
+ 2. Users switch accounts
+
+ 3. Users lock accounts
+
+ 4. The wallet is automatically locked after timeout
+
+
+
+
+**Specification**
+
+**Example**
+
+```shell
+
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action === "accountsChanged") {
+ // handler logic
+ console.log('got accountsChanged event', e.data)
+ }
+ })
+```
+**Returns**
+
+```shell
+
+
+ interface MessageEventAccountsChangedData {
+ isTronLink: boolean;
+ message: {
+ action: string;
+ data: {
+ address: string | boolean;
+ }
+ }
+ }
+```
+**Return value example**
+
+ 1. When users log in, the content of the message body is:
+
+
+
+
+```shell
+
+
+ {
+ "data": {
+ "address": "TZ5XixnRyraxJJy996Q1sip85PHWuj4793" // Last selected account address
+ }
+ }
+```
+ 1. When users switch accounts, the content of the message body is:
+
+
+
+
+```shell
+ {
+ "data": {
+ "address": "TRKb2nAnCBfwxnLxgoKJro6VbyA6QmsuXq" // Newly selected account address
+ }
+ }
+```
+ 1. When users lock accounts and the wallet is automatically locked due to timeout, the message body content is:
+
+
+
+
+```shell
+ {
+ "data": {
+ "address": false
+ }
+ }
+```
+
+
+## Network Change Message
+
+Message ID: `setNode`
+
+**Overview**
+
+Developers can monitor this message to know network changes
+
+This message is generated when:
+
+ 1. When the user changes the network
+
+
+
+
+**Specification**
+
+**Example**
+
+```shell
+
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "setNode") {
+ // handler logic
+ console.log('got setNode event', e.data)
+ }
+ })
+```
+**Returns**
+
+```shell
+
+
+ {
+ "node": {
+ // Information about the current network
+ },
+ "connectNode": {
+ // Node information of DApp chain
+ }
+ }
+```
+
+## Successful connection message
+
+Message ID: `connect`
+
+**Overview**
+
+Developers can monitor this message for connection changes.
+
+This message is generated when:
+
+ 1. The DApp requests a connection, and the user confirms the connection in the pop-up window
+
+ 2. Users connect to the website
+
+
+
+
+**Specification**
+
+**Example**
+
+```shell
+
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "connect") {
+ // handler logic
+ console.log('got connect event', e.data)
+ }
+ })
+```
+
+
+## Disconnect website message
+
+Message ID: `disconnect`
+
+**Overview**
+
+Developers can monitor this message for connection changes.
+
+This message is generated when:
+
+ 1. The DApp requests a connection, and the user rejects the connection in the pop-up window
+
+ 2. Users disconnect from the website
+
+
+
+
+**Specification**
+
+**Example**
+
+```shell
+
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "disconnect") {
+ // handler logic
+ console.log('got connect event', e.data)
+ }
+ })
+```
+
+
+## Messages to Be Deprecated
+
+ 1. The user rejects connection: “rejectWeb”
+
+ 2. The user disconnects from the website: “disconnectWeb”
+
+ 3. The user accepts connection: “acceptWeb”
+
+ 4. The user requests to connect to the website: “connectWeb”
+
+
+### User rejects connection
+
+DEPRECATED
+
+Message ID: `rejectWeb`
+
+This message is generated when:
+
+ 1. The DApp requests a connection and the user rejects the connection in the pop-up window.
+
+ 
+
+
+Developers can get the connection rejection message by listening to it:
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "rejectWeb") {
+ // handler logic
+ console.log('got rejectWeb event', e.data)
+ }
+ })
+```
+
+
+### User disconnects from the website
+
+DEPRECATED
+
+Message ID: `disconnectWeb`
+
+This message is generated when:
+
+ 1. User actively disconnect from the website.
+
+ 
+
+
+
+
+Developers can get the disconnection message by listening to it:
+
+```shell
+
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "disconnectWeb") {
+ // handler logic
+ console.log('got disconnectWeb event', e.data)
+ }
+ })
+```
+
+
+### User accepts connection
+
+DEPRECATED
+
+Message ID: `acceptWeb`
+
+This message is generated when:
+
+ 1. The user accepts connection.
+
+ 
+
+
+
+
+Developers can get the connection acceptance message by listening to it:
+
+```shell
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "acceptWeb") {
+ // handler logic
+ console.log('got acceptWeb event', e.data)
+ }
+ })
+```
+
+
+### User requests to connect to the website
+
+DEPRECATED
+
+Message ID: `connectWeb`
+
+This message is generated when:
+
+ 1. The user requests to connect to the website.
+
+ 
+
+
+
+
+Developers can get the connection request message by listening to it:
+
+```shell
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "connectWeb") {
+ // handler logic
+ console.log('got connectWeb event', e.data)
+ }
+ })
+```
diff --git a/docs/plugin-wallet/passive-messages.zh.md b/docs/plugin-wallet/passive-messages.zh.md
index d08cb7f..f2ccebc 100644
--- a/docs/plugin-wallet/passive-messages.zh.md
+++ b/docs/plugin-wallet/passive-messages.zh.md
@@ -1,5 +1,291 @@
# 被动接收TronLink插件的消息
-消息使用 window.postMessage 发送,Dapp 接收到的内容是一个 MessageEvent ,可以参考[MessageEvent的MDN文档](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent)。
+消息使用 window.postMessage 发送,Dapp 接收到的内容是一个 MessageEvent ,可以参考[MessageEvent的MDN文档]。
+
+## 账户改变消息
+
+消息标识: `accountsChanged`
+
+**简介**
+
+以下情况会产生此消息
+
+ 1. 用户登陆
+
+ 2. 用户切换账号
+
+ 3. 用户锁定账号
+
+ 4. 钱包超时自动锁定
+
+**技术规范**
+
+**代码示例**
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action === "accountsChanged") {
+ // handler logic
+ console.log('got accountsChanged event', e.data)
+ }
+ })
+```
+**返回值**
+
+```shell
+
+ interface MessageEventAccountsChangedData {
+ isTronLink: boolean;
+ message: {
+ action: string;
+ data: {
+ address: string | boolean;
+ }
+ }
+ }
+```
+**返回值示例**
+
+ 1. 用户登陆时,消息体内容为:
+
+```shell
+
+ {
+ "data": {
+ "address": "TZ5XixnRyraxJJy996Q1sip85PHWuj4793" // 上次选择的账号地址
+ }
+ }
+```
+ 1. 用户切换账号时,消息体内容为:
+
+```shell
+
+ {
+ "data": {
+ "address": "TRKb2nAnCBfwxnLxgoKJro6VbyA6QmsuXq" // 新选择的账号地址
+ }
+ }
+```
+ 1. 用户锁定和钱包超时自动锁定时,消息体内容为:
+
+```shell
+
+ {
+ "data": {
+ "address": false
+ }
+ }
+```
+
+## 网络改变消息
+
+消息标识: `setNode`
+
+**简介**
+
+开发者可以监听此消息来获取网络的改变
+
+以下情况会产生此消息
+
+ 1. 用户改变网络的时候
+
+**技术规范**
+
+**代码示例**
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "setNode") {
+ // handler logic
+ console.log('got setNode event', e.data)
+ }
+ })
+```
+**返回值**
+
+```shell
+
+ {
+ "node": {
+ // 当前网络的信息
+ },
+ "connectNode": {
+ // dapp chain 的节点信息
+ }
+ }
+```
+
+## 连接网站成功消息
+
+消息标识: `connect`
+
+**简介**
+
+开发者可以监听此消息来获取网络的改变。
+
+以下情况会产生此消息:
+
+ 1. DApp 请求连接,用户在弹窗中确定连接后
+
+ 2. 用户主动连接网站
+
+**技术规范**
+
+**代码示例**
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "connect") {
+ // handler logic
+ console.log('got connect event', e.data)
+ }
+ })
+```
+
+
+## 断开连接网站消息
+
+消息标识: `disconnect`
+
+**简介**
+
+开发者可以监听此消息来获取网络的改变。
+
+以下情况会产生此消息:
+
+ 1. DApp 请求连接,用户在弹窗中拒绝连接后
+
+ 2. 用户主动断开连接网站
+
+**技术规范**
+
+**代码示例**
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "disconnect") {
+ // handler logic
+ console.log('got connect event', e.data)
+ }
+ })
+```
+
+
+## 即将废弃的消息
+
+以下四个消息在未来4.x版本将会被废弃
+
+ 1. 用户拒绝连接消息`rejectWeb`
+
+ 2. 用户断连网站消息`disconnectWeb`
+
+ 3. 用户确定连接消息`acceptWeb`
+
+ 4. 用户主动连接网站消息`connectWeb`
+
+#### 用户拒绝连接消息
+
+DEPRECATED
+
+消息标识: `rejectWeb`
+
+以下情况会产生此消息:
+
+ 1. DApp 请求连接,用户在弹窗中拒绝连接后
+
+
+
+开发者可以监听此消息来获取用户拒绝连接消息
+
+```shell
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "rejectWeb") {
+ // handler logic
+ console.log('got rejectWeb event', e.data)
+ }
+ })
+```
+
+
+### 用户断连网站消息
+
+DEPRECATED
+
+消息标识: `disconnectWeb`
+
+以下情况会产生此消息
+
+ 1. 用户主动断接网站
+
+
+
+开发者可以监听此消息来获取用户主动断连消息
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "disconnectWeb") {
+ // handler logic
+ console.log('got disconnectWeb event', e.data)
+ }
+ })
+```
+
+
+### 用户确定连接消息
+
+DEPRECATED
+
+消息标识: `acceptWeb`
+
+以下情况会产生此消息
+
+ 1. 用户确定连接消息
+
+ 
+
+开发者可以监听此消息来获取用户确定连接消息
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "acceptWeb") {
+ // handler logic
+ console.log('got acceptWeb event', e.data)
+ }
+ })
+```
+
+### 用户主动连接网站消息
+
+DEPRECATED
+
+消息标识: `connectWeb`
+
+以下情况会产生此消息
+
+ 1. 用户确定连接消息
+
+
+
+开发者可以监听此消息来获取用户主动连接网站消息
+
+```shell
+
+ window.addEventListener('message', function (e) {
+ if (e.data.message && e.data.message.action == "connectWeb") {
+ // handler logic
+ console.log('got connectWeb event', e.data)
+ }
+ })
+```
+
+
+
+
diff --git a/docs/plugin-wallet/passive-messages/account-change.en.md b/docs/plugin-wallet/passive-messages/account-change.en.md
deleted file mode 100644
index f135110..0000000
--- a/docs/plugin-wallet/passive-messages/account-change.en.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# Account Change Message
-
-Message ID: `accountsChanged`
-
-**Overview**
-
-This message is generated when:
-
- 1. Users log in
-
- 2. Users switch accounts
-
- 3. Users lock accounts
-
- 4. The wallet is automatically locked after timeout
-
-
-
-
-**Specification**
-
-**Example**
-
-```shell
-
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action === "accountsChanged") {
- // handler logic
- console.log('got accountsChanged event', e.data)
- }
- })
-```
-**Returns**
-
-```shell
-
-
- interface MessageEventAccountsChangedData {
- isTronLink: boolean;
- message: {
- action: string;
- data: {
- address: string | boolean;
- }
- }
- }
-```
-**Return value example**
-
- 1. When users log in, the content of the message body is:
-
-
-
-
-```shell
-
-
- {
- "data": {
- "address": "TZ5XixnRyraxJJy996Q1sip85PHWuj4793" // Last selected account address
- }
- }
-```
- 1. When users switch accounts, the content of the message body is:
-
-
-
-
-```shell
- {
- "data": {
- "address": "TRKb2nAnCBfwxnLxgoKJro6VbyA6QmsuXq" // Newly selected account address
- }
- }
-```
- 1. When users lock accounts and the wallet is automatically locked due to timeout, the message body content is:
-
-
-
-
-```shell
- {
- "data": {
- "address": false
- }
- }
-```
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages/account-change.zh.md b/docs/plugin-wallet/passive-messages/account-change.zh.md
deleted file mode 100644
index 5b05bc2..0000000
--- a/docs/plugin-wallet/passive-messages/account-change.zh.md
+++ /dev/null
@@ -1,77 +0,0 @@
-
-# 账户改变消息
-
-消息标识: `accountsChanged`
-
-**简介**
-
-以下情况会产生此消息
-
- 1. 用户登陆
-
- 2. 用户切换账号
-
- 3. 用户锁定账号
-
- 4. 钱包超时自动锁定
-
-**技术规范**
-
-**代码示例**
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action === "accountsChanged") {
- // handler logic
- console.log('got accountsChanged event', e.data)
- }
- })
-```
-**返回值**
-
-```shell
-
- interface MessageEventAccountsChangedData {
- isTronLink: boolean;
- message: {
- action: string;
- data: {
- address: string | boolean;
- }
- }
- }
-```
-**返回值示例**
-
- 1. 用户登陆时,消息体内容为:
-
-```shell
-
- {
- "data": {
- "address": "TZ5XixnRyraxJJy996Q1sip85PHWuj4793" // 上次选择的账号地址
- }
- }
-```
- 1. 用户切换账号时,消息体内容为:
-
-```shell
-
- {
- "data": {
- "address": "TRKb2nAnCBfwxnLxgoKJro6VbyA6QmsuXq" // 新选择的账号地址
- }
- }
-```
- 1. 用户锁定和钱包超时自动锁定时,消息体内容为:
-
-```shell
-
- {
- "data": {
- "address": false
- }
- }
-```
-
diff --git a/docs/plugin-wallet/passive-messages/connect-success.en.md b/docs/plugin-wallet/passive-messages/connect-success.en.md
deleted file mode 100644
index 039bd57..0000000
--- a/docs/plugin-wallet/passive-messages/connect-success.en.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Successful connection message
-
-Message ID: `connect`
-
-**Overview**
-
-Developers can monitor this message for connection changes.
-
-This message is generated when:
-
- 1. The DApp requests a connection, and the user confirms the connection in the pop-up window
-
- 2. Users connect to the website
-
-
-
-
-**Specification**
-
-**Example**
-
-```shell
-
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "connect") {
- // handler logic
- console.log('got connect event', e.data)
- }
- })
-```
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages/connect-success.zh.md b/docs/plugin-wallet/passive-messages/connect-success.zh.md
deleted file mode 100644
index feb4546..0000000
--- a/docs/plugin-wallet/passive-messages/connect-success.zh.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# 连接网站成功消息
-
-消息标识: `connect`
-
-**简介**
-
-开发者可以监听此消息来获取网络的改变。
-
-以下情况会产生此消息:
-
- 1. DApp 请求连接,用户在弹窗中确定连接后
-
- 2. 用户主动连接网站
-
-**技术规范**
-
-**代码示例**
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "connect") {
- // handler logic
- console.log('got connect event', e.data)
- }
- })
-```
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages.en.md b/docs/plugin-wallet/passive-messages/deprecated-messages.en.md
deleted file mode 100644
index 8d37b34..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages.en.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Messages to Be Deprecated
-
- 1. The user rejects connection: “rejectWeb”
-
- 2. The user disconnects from the website: “disconnectWeb”
-
- 3. The user accepts connection: “acceptWeb”
-
- 4. The user requests to connect to the website: “connectWeb”
-
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages.zh.md b/docs/plugin-wallet/passive-messages/deprecated-messages.zh.md
deleted file mode 100644
index b5de05d..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages.zh.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# 即将废弃的消息
-
-以下四个消息在未来4.x版本将会被废弃
-
- 1. 用户拒绝连接消息`rejectWeb`
-
- 2. 用户断连网站消息`disconnectWeb`
-
- 3. 用户确定连接消息`acceptWeb`
-
- 4. 用户主动连接网站消息`connectWeb`
-
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-active-connect.en.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-active-connect.en.md
deleted file mode 100644
index efa1cda..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-active-connect.en.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# User requests to connect to the website
-
-DEPRECATED
-
-Message ID: `connectWeb`
-
-This message is generated when:
-
- 1. The user requests to connect to the website.
-
- 
-
-
-
-
-Developers can get the connection request message by listening to it:
-
-```shell
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "connectWeb") {
- // handler logic
- console.log('got connectWeb event', e.data)
- }
- })
-```
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-active-connect.zh.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-active-connect.zh.md
deleted file mode 100644
index 16bb996..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-active-connect.zh.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# 用户主动连接网站消息
-
-#### DEPRECATED
-
-消息标识: `connectWeb`
-
-以下情况会产生此消息
-
- 1. 用户确定连接消息
-
-
-
-开发者可以监听此消息来获取用户主动连接网站消息
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "connectWeb") {
- // handler logic
- console.log('got connectWeb event', e.data)
- }
- })
-```
-
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.en.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.en.md
deleted file mode 100644
index 258c67c..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.en.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# User accepts connection
-
-DEPRECATED
-
-Message ID: `acceptWeb`
-
-This message is generated when:
-
- 1. The user accepts connection.
-
- 
-
-
-
-
-Developers can get the connection acceptance message by listening to it:
-
-```shell
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "acceptWeb") {
- // handler logic
- console.log('got acceptWeb event', e.data)
- }
- })
-```
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.zh.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.zh.md
deleted file mode 100644
index 71d23c1..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.zh.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# 用户确定连接消息
-
-DEPRECATED
-
-消息标识: `acceptWeb`
-
-以下情况会产生此消息
-
- 1. 用户确定连接消息
-
- 
-
-开发者可以监听此消息来获取用户确定连接消息
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "acceptWeb") {
- // handler logic
- console.log('got acceptWeb event', e.data)
- }
- })
-```
-
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-disconnect.en.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-disconnect.en.md
deleted file mode 100644
index e8f71e6..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-disconnect.en.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# User disconnects from the website
-
-DEPRECATED
-
-Message ID: `disconnectWeb`
-
-This message is generated when:
-
- 1. User actively disconnect from the website.
-
- 
-
-
-
-
-Developers can get the disconnection message by listening to it:
-
-```shell
-
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "disconnectWeb") {
- // handler logic
- console.log('got disconnectWeb event', e.data)
- }
- })
-```
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-disconnect.zh.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-disconnect.zh.md
deleted file mode 100644
index a33fef5..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-disconnect.zh.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# 用户断连网站消息
-
-DEPRECATED
-
-消息标识: `disconnectWeb`
-
-以下情况会产生此消息
-
- 1. 用户主动断接网站
-
-
-
-开发者可以监听此消息来获取用户主动断连消息
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "disconnectWeb") {
- // handler logic
- console.log('got disconnectWeb event', e.data)
- }
- })
-```
-
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.en.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.en.md
deleted file mode 100644
index 7174172..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.en.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# User rejects connection
-
-DEPRECATED
-
-Message ID: `rejectWeb`
-
-This message is generated when:
-
- 1. The DApp requests a connection and the user rejects the connection in the pop-up window.
-
- 
-
-
-Developers can get the connection rejection message by listening to it:
-
-```shell
-
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "rejectWeb") {
- // handler logic
- console.log('got rejectWeb event', e.data)
- }
- })
-```
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.zh.md b/docs/plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.zh.md
deleted file mode 100644
index 31d4e60..0000000
--- a/docs/plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.zh.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# 用户拒绝连接消息
-
-DEPRECATED
-
-消息标识: `rejectWeb`
-
-以下情况会产生此消息:
-
- 1. DApp 请求连接,用户在弹窗中拒绝连接后
-
-
-
-开发者可以监听此消息来获取用户拒绝连接消息
-
-```shell
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "rejectWeb") {
- // handler logic
- console.log('got rejectWeb event', e.data)
- }
- })
-```
-
diff --git a/docs/plugin-wallet/passive-messages/disconnect.en.md b/docs/plugin-wallet/passive-messages/disconnect.en.md
deleted file mode 100644
index 64ae25f..0000000
--- a/docs/plugin-wallet/passive-messages/disconnect.en.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Disconnect website message
-
-Message ID: `disconnect`
-
-**Overview**
-
-Developers can monitor this message for connection changes.
-
-This message is generated when:
-
- 1. The DApp requests a connection, and the user rejects the connection in the pop-up window
-
- 2. Users disconnect from the website
-
-
-
-
-**Specification**
-
-**Example**
-
-```shell
-
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "disconnect") {
- // handler logic
- console.log('got connect event', e.data)
- }
- })
-```
diff --git a/docs/plugin-wallet/passive-messages/disconnect.zh.md b/docs/plugin-wallet/passive-messages/disconnect.zh.md
deleted file mode 100644
index 947a5f8..0000000
--- a/docs/plugin-wallet/passive-messages/disconnect.zh.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# 断开连接网站消息
-
-消息标识: `disconnect`
-
-**简介**
-
-开发者可以监听此消息来获取网络的改变。
-
-以下情况会产生此消息:
-
- 1. DApp 请求连接,用户在弹窗中拒绝连接后
-
- 2. 用户主动断开连接网站
-
-**技术规范**
-
-**代码示例**
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "disconnect") {
- // handler logic
- console.log('got connect event', e.data)
- }
- })
-```
-
diff --git a/docs/plugin-wallet/passive-messages/network-change.en.md b/docs/plugin-wallet/passive-messages/network-change.en.md
deleted file mode 100644
index faab572..0000000
--- a/docs/plugin-wallet/passive-messages/network-change.en.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# Network Change Message
-
-Message ID: `setNode`
-
-**Overview**
-
-Developers can monitor this message to know network changes
-
-This message is generated when:
-
- 1. When the user changes the network
-
-
-
-
-**Specification**
-
-**Example**
-
-```shell
-
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "setNode") {
- // handler logic
- console.log('got setNode event', e.data)
- }
- })
-```
-**Returns**
-
-```shell
-
-
- {
- "node": {
- // Information about the current network
- },
- "connectNode": {
- // Node information of DApp chain
- }
- }
-```
\ No newline at end of file
diff --git a/docs/plugin-wallet/passive-messages/network-change.zh.md b/docs/plugin-wallet/passive-messages/network-change.zh.md
deleted file mode 100644
index 845bc2e..0000000
--- a/docs/plugin-wallet/passive-messages/network-change.zh.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# 网络改变消息
-
-消息标识: `setNode`
-
-**简介**
-
-开发者可以监听此消息来获取网络的改变
-
-以下情况会产生此消息
-
- 1. 用户改变网络的时候
-
-**技术规范**
-
-**代码示例**
-
-```shell
-
- window.addEventListener('message', function (e) {
- if (e.data.message && e.data.message.action == "setNode") {
- // handler logic
- console.log('got setNode event', e.data)
- }
- })
-```
-**返回值**
-
-```shell
-
- {
- "node": {
- // 当前网络的信息
- },
- "connectNode": {
- // dapp chain 的节点信息
- }
- }
-```
-
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 8bf38ba..73a338d 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -82,6 +82,79 @@ a.card-link:hover {
max-width: 300px;
}
+/* Tooltip 样式 */
+.tooltip {
+ position: relative;
+ border-bottom: 1px dotted #666;
+ cursor: pointer;
+}
+
+/* Tooltip 内容 */
+.tooltip::after {
+ content: attr(data-tooltip);
+ position: absolute;
+ bottom: 100%;
+ left: 50%;
+ transform: translateX(-50%);
+ background: #333;
+ color: #fff;
+ padding: 5px 10px;
+ border-radius: 4px;
+ font-size: 14px;
+ white-space: nowrap;
+ opacity: 0;
+ visibility: hidden;
+ transition: opacity 0.3s;
+ width: 300px;
+ max-width: 500px;
+ white-space: wrap;
+ word-break: break-all;
+}
+
+/* 悬停时显示 */
+.tooltip:hover::after {
+ opacity: 1;
+ visibility: visible;
+}
+
+.nav-links{
+ display: flex;
+}
+
+/* add flex alignment */
+.md-footer__link {
+ align-items: center;
+}
+
+
+/* 为有子目录项的链接添加箭头图标 */
+.md-nav__item.has-children > .md-nav__link {
+ position: relative;
+ padding-right: 20px; /* 为图标留出空间 */
+}
+
+.md-nav__item.has-children > .md-nav__link::after {
+ content: "⟩"; /* 使用尖括号 */
+ position: absolute;
+ right: 0;
+ top: 50%;
+ transform: translateY(-50%);
+ font-size: 1em;
+ font-weight: 900;
+ transition: transform 0.2s ease; /* 添加旋转动画 */
+}
+
+/* 展开时旋转 90 度 */
+.md-nav__item.has-children.is-expanded > .md-nav__link::after {
+ transform: translateY(-50%) rotate(90deg);
+}
+
+/*设置一级导航字体的颜色以增加和二级导航的区分度*/
+.md-nav--primary .md-nav__item--section > .md-nav__link {
+ color: #000;
+ font-size: 1.1em;
+}
+
/* Override the responsive design part of the footer. */
@media screen and (max-width: 44.984375em) {
.md-footer__link--prev .md-footer__title {
diff --git a/mkdocs.yml b/mkdocs.yml
index 233638e..f144b9c 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -22,7 +22,6 @@ theme:
- content.code.copy
- content.code.annotate
- content.tabs.link
- - content.tooltips
- header.autohide
- toc.integrate
- search.highlight # 搜索时高亮匹配内容
@@ -48,7 +47,7 @@ plugins:
minify_html: true
- i18n:
default_language: en
- docs_structure: suffix
+ docs_structure: suffix
languages:
- locale: en
name: English
@@ -60,43 +59,13 @@ plugins:
- Introduction: introduction.en.md
- HD Wallets: hd-wallets.en.md
- TronLink App:
- # - Overview: mobile/index.en.md
- - Asset Management:
- - Overview: mobile/asset-management.en.md
- - Custom Token: mobile/asset-management/custom-tokens.en.md
- - DeepLink:
- - Overview: mobile/deeplink.en.md
- - Open Wallet: mobile/deeplink/open-wallet.en.md
- - Open DApp: mobile/deeplink/open-dapp.md
- - Login by TronLink: mobile/deeplink/login-auth.en.md
- - Transfer: mobile/deeplink/transfer.md
- - Sign Transaction: mobile/deeplink/transaction-signing.en.md
- - Sign Message: mobile/deeplink/message-signing.en.md
- - Result Code: mobile/deeplink/callback-codes.en.md
- - DApp Support:
- - Overview: mobile/dapp-support.en.md
- - TronLink Integration: mobile/dapp-support/integrate-tronlink.md
- - DApp Explorer: mobile/dapp-support/dapp-browser.md
+ - Asset Management: mobile/asset-management.en.md
+ - DeepLink: mobile/deeplink.en.md
+ - DApp Support: mobile/dapp-support.en.md
- TronLink Wallet Extension:
- # - Overview: plugin-wallet/index.md
- - Request TronLink Extension:
- - Overview: plugin-wallet/active-requests.en.md
- - Connect Website: plugin-wallet/active-requests/connect-website.en.md
- - Add Token: plugin-wallet/active-requests/add-token.en.md
- - Receive messages from TronLink:
- - Overview: plugin-wallet/passive-messages.en.md
- - Account Change Message: plugin-wallet/passive-messages/account-change.en.md
- - Network Change Message: plugin-wallet/passive-messages/network-change.en.md
- - Successful connection message: plugin-wallet/passive-messages/connect-success.en.md
- - Disconnect website message: plugin-wallet/passive-messages/disconnect.en.md
- - Messages to Be Deprecated:
- - Overview: plugin-wallet/passive-messages/deprecated-messages.en.md
- - User rejects connection: plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.en.md
- - User disconnects from the website: plugin-wallet/passive-messages/deprecated-messages/user-disconnect.en.md
- - User accepts connection: plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.en.md
- - User requests to connect to the website: plugin-wallet/passive-messages/deprecated-messages/user-active-connect.en.md
+ - Request TronLink Extension: plugin-wallet/active-requests.en.md
+ - Receive messages from TronLink: plugin-wallet/passive-messages.en.md
- DApp:
- # - Overview: dapp/index.en.md
- Start Developing: dapp/getting-started.en.md
- Multi-Signature Transfer: dapp/multi-sign-transfer.en.md
- Message Signature: dapp/message-signing.en.md
@@ -107,47 +76,16 @@ plugins:
site_name: TronLink 开发者文档
build: true
nav:
- # - 首页: index.zh.md
- 介绍: introduction.zh.md
- HD 钱包: hd-wallets.zh.md
- 移动端:
- # - 概述: mobile/index.zh.md
- - 资产管理:
- - 概述: mobile/asset-management.zh.md
- - 自定义通证: mobile/asset-management/custom-tokens.zh.md
- - DeepLink:
- - 概述: mobile/deeplink.zh.md
- - 打开钱包: mobile/deeplink/open-wallet.zh.md
- - 打开DApp: mobile/deeplink/open-dapp.zh.md
- - 登陆授权: mobile/deeplink/login-auth.zh.md
- - 转账: mobile/deeplink/transfer.zh.md
- - 交易签名: mobile/deeplink/transaction-signing.zh.md
- - 消息签名: mobile/deeplink/message-signing.zh.md
- - 回传消息码: mobile/deeplink/callback-codes.zh.md
- - DApp支持:
- - 概述: mobile/dapp-support.zh.md
- - 集成TronLink: mobile/dapp-support/integrate-tronlink.zh.md
- - DApp浏览器: mobile/dapp-support/dapp-browser.zh.md
+ - 资产管理: mobile/asset-management.zh.md
+ - DeepLink: mobile/deeplink.zh.md
+ - DApp支持: mobile/dapp-support.zh.md
- 插件钱包:
- # - 概述: plugin-wallet/index.zh.md
- - 主动请求TronLink插件功能:
- - 概述: plugin-wallet/active-requests.zh.md
- - 连接网站: plugin-wallet/active-requests/connect-website.zh.md
- - 添加Token: plugin-wallet/active-requests/add-token.zh.md
- - 被动接收TronLink插件的消息:
- - 概述: plugin-wallet/passive-messages.zh.md
- - 账户改变消息: plugin-wallet/passive-messages/account-change.zh.md
- - 网络改变消息: plugin-wallet/passive-messages/network-change.zh.md
- - 连接网站成功消息: plugin-wallet/passive-messages/connect-success.zh.md
- - 断开连接网站消息: plugin-wallet/passive-messages/disconnect.zh.md
- - 即将废弃的消息:
- - 概述: plugin-wallet/passive-messages/deprecated-messages.zh.md
- - 用户拒绝连接消息: plugin-wallet/passive-messages/deprecated-messages/user-reject-connect.zh.md
- - 用户断连网站消息: plugin-wallet/passive-messages/deprecated-messages/user-disconnect.zh.md
- - 用户确定连接消息: plugin-wallet/passive-messages/deprecated-messages/user-confirm-connect.zh.md
- - 用户主动连接网站消息: plugin-wallet/passive-messages/deprecated-messages/user-active-connect.zh.md
+ - 主动请求TronLink插件功能: plugin-wallet/active-requests.zh.md
+ - 被动接收TronLink插件的消息: plugin-wallet/passive-messages.zh.md
- DApp:
- # - 概述: dapp/index.zh.md
- 开始开发: dapp/getting-started.zh.md
- 多签转账: dapp/multi-sign-transfer.zh.md
- 消息签名: dapp/message-signing.zh.md
@@ -156,9 +94,8 @@ plugins:
use_directory_urls: true # 推荐保持为 true
suffix_mode: true
-
# 版权信息
-copyright: Copyright © 2024 TronLink Team
+copyright: Copyright © 2025 TronLink Team
# 验证
validation: