Tron Provider API
Detect and connect TokenPocket Tron Wallet
When you have TokenPocket installed, you will have window.tokenpocket
in your webview.
We are using TIP-1102 to request user's account.
After the request, you can use window.tokenpocket.tronWeb
as a common tronWeb object.
For example:
SignMessageV2:
tronWeb.trx.signMessageV2('your message')
More about tronWeb please refer: https://github.com/tronprotocol/tronweb/tree/5.x
Last updated