You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Trust](https://trustwallet.com)| Android | Not Support |
38
+
|| IOS | Not Support |
39
+
|| Browser Extension | >= 1.0.0 |
37
40
38
41
> **Note**: In case wallet developers intend to release breaking changes, you can [open an issue here](https://github.com/tronweb3/tronwallet-adapter/issues/new) to inform us, thus enabling us to update the new protocols accordingly.
39
42
40
43
### Add support for new wallet
44
+
41
45
Follow these steps to support new wallets:
46
+
42
47
1. List your wallet to [Tron Wallet](https://tron.network/wallet) .
43
48
2. Open an issue in this repository or fork the repository and implement the according adapter.
44
49
45
50
### Tron Wallets Features Report
51
+
46
52
Please refer to [this document](https://github.com/tronweb3/tronwallet-adapter-docs/blob/main/wallet-feature.md) to see the features of Tron wallets.
53
+
47
54
## Introduction
48
55
49
56
### Adapters
@@ -192,6 +199,7 @@ tronwallet-adapter
192
199
|| ├─gatewallet # adapter for gate.io Wallet
193
200
|| ├─foxwallet # adapter for FoxWallet
194
201
|| ├─bybit # adapter for Bybit Wallet
202
+
|| ├─trust # adapter for Trust Wallet
195
203
| ├─react
196
204
|| ├─react-hooks # react hooks to manage wallet state
197
205
|| ├─react-ui # react ui components to select/connect wallets
@@ -214,45 +222,56 @@ tronwallet-adapter
214
222
These packages provide adapters for each wallet.
215
223
You can use the `@tronweb3/tronwallet-adapters` package, or add the individual wallet packages you want.
| adapters | Includes all the wallets (with tree shaking) |[`@tronweb3/tronwallet-adapters`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapters)|
220
-
|[tronlink](https://www.tronlink.org/)| Adapter for TronLink extention and TronLink app(IOS and Android) |[`@tronweb3/tronwallet-adapter-tronlink`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-tronlink)|
221
-
|[ledger](https://www.ledger.com/)| Adapter for Ledger |[`@tronweb3/tronwallet-adapter-ledger`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-ledger)|
222
-
|[walletconnect](https://walletconnect.com/)| Adapter for Walletconnect |[`@tronweb3/tronwallet-adapter-walletconnect`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-walletconnect)|
223
-
|[tokenpocket](https://tokenpocket.pro/)| Adapter for TokenPocket App(IOS and Android) |[`@tronweb3/tronwallet-adapter-tokenpocket`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-tokenpocket)|
224
-
|[bitkeep](https://bitkeep.com/)| Adapter for BitKeep extension and BitKeep App(IOS and Android) |[`@tronweb3/tronwallet-adapter-bitkeep`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-bitkeep)|
225
-
|[okxwallet](https://www.okx.com/)| Adapter for Okx Wallet extension and App(Android) |[`@tronweb3/tronwallet-adapter-okxwallet`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-okxwallet)|
226
-
|[imtoken](https://token.im/)| Adapter for imToken Wallet App(IOS and Android) |[`@tronweb3/tronwallet-adapter-imtoken`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-imtoken)|
227
-
|[gatewallet](https://www.gate.io/web3)| Adapter for gate.io Wallet App(IOS and Android) and Extension |[`@tronweb3/tronwallet-adapter-gatewallet`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-gatewallet)|
228
-
|[foxwallet](https://foxwallet.com/)| Adapter for Fox Wallet App(IOS and Android) |[`@tronweb3/tronwallet-adapter-foxwallet`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-foxwallet)|
229
-
|[bybit](https://www.bybit.com/en/web3/home)| Adapter for Bybit Wallet App(IOS and Android) and Extension |[`@tronweb3/tronwallet-adapter-bybit`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-bybit)|
|[`@tronweb3/tronwallet-adapters`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapters)| Includes all the wallets (with tree shaking) |
228
+
|[`@tronweb3/tronwallet-adapter-tronlink`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-tronlink)| Adapter for TronLink extention and TronLink app(IOS and Android) |
229
+
|[`@tronweb3/tronwallet-adapter-ledger`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-ledger)| Adapter for Ledger |
230
+
|[`@tronweb3/tronwallet-adapter-walletconnect`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-walletconnect)| Adapter for Walletconnect |
231
+
|[`@tronweb3/tronwallet-adapter-tokenpocket`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-tokenpocket)| Adapter for TokenPocket App(IOS and Android) |
232
+
|[`@tronweb3/tronwallet-adapter-bitkeep`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-bitkeep)| Adapter for BitKeep extension and BitKeep App(IOS and Android) |
233
+
|[`@tronweb3/tronwallet-adapter-okxwallet`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-okxwallet)| Adapter for Okx Wallet extension and App(Android) |
234
+
|[`@tronweb3/tronwallet-adapter-imtoken`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-imtoken)| Adapter for imToken Wallet App(IOS and Android) |
235
+
|[`@tronweb3/tronwallet-adapter-gatewallet`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-gatewallet)| Adapter for gate.io Wallet App(IOS and Android) and Extension |
236
+
|[`@tronweb3/tronwallet-adapter-foxwallet`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-foxwallet)| Adapter for FoxWallet App(IOS and Android) |
237
+
|[`@tronweb3/tronwallet-adapter-bybit`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-bybit)| Adapter for Bybit Wallet App(IOS and Android) and Extension |
238
+
|[`@tronweb3/tronwallet-adapter-trust`](https://www.npmjs.com/package/@tronweb3/tronwallet-adapter-trust)| Adapter for TrustWallet Extension |
230
239
231
240
### React Components
232
241
233
-
These packages provide components for react hooks context and custom react UI.
242
+
These packages includes hooks and UI components in React.
@@ -123,12 +123,12 @@ export default function SignUsage() {
123
123
constInformAlertContent=useMemo(()=>{
124
124
if(title==='Transfer'){
125
125
return<InformAlertText>
126
-
{success ? <>Success! You can confirm your transaction on <Linkhref={`${TRONSCAN_URL[connectionState.chainId]||TRONSCAN_URL[CHAIN_ID.Nile]}#/address/${connectionState.address}`}target="_blank"rel="noreferrer">TronScan</Link></> : 'Transfer failed'}
126
+
{success ? <>Success! You can confirm your transaction on <Linkhref={`${TRONSCAN_URL[connectionState.chainId]||TRONSCAN_URL[CHAIN_ID.Nile]}#/address/${connectionState.address}`}target="_blank"rel="noreferrer">TronScan</Link></> : 'Transfer failed'}
127
127
</InformAlertText>
128
128
}
129
129
if(title==='Sign Message'){
130
130
return<InformAlertText>
131
-
{success
131
+
{success
132
132
? <>Success! The signature is <i>{signature.slice(0,6)}...{signature.slice(-6)}</i></> : 'Failed to sign the message'}
0 commit comments