Ant Design Web3 provides @ant-design/web3-tron
to adapt to the TRON ecosystem. It enables the components of @ant-design/web3
to connect to the TRON chain. You don't need to handle the connection state of the components yourself. It will provide relevant global state and interfaces for the components through Web3ConfigProvider. Additionally, you don't need to customize the wallet. The connector
exposes common methods such as signing and transaction, which can be called directly.
The interface design of @ant-design/web3-tron
refers to the TRON official documentation and @tronweb3/tronwallet-adapters
. You can find more in-depth implementation details in the documentation.
You can check the wallets supported by Tron in the tronwallet-adapter. Ant Design Web3 provides settings for some commonly used wallets, as follows:
Property | Description | Type | Default | Required |
---|---|---|---|---|
wallets | Supported wallet list | WalletMetadata[] | - | - |
autoConnect | Whether to connect automatically | boolean | false | - |
locale | Multilingual settings | Locale | - | - |
onError | onError | WalletError | - | - |