General Transfer
Overview
DApp requires users to initiate a TRX transfer.
Prerequisite
The DApp developer completes the request to connect to the website, and the user approves to the connection. The DApp sends a request asking the user to connect the wallet to the website, and the user approves to the connection.
It takes 3 steps to initiate a transfer on the TRON network:
Create a transfer transaction
Sign the transaction
Broadcast the signed transaction
In this process, Step 2 requires TronLink while both Step 1 and 3 happen on tronWeb.
Specification
Example
If the user chooses on “Reject” in the pop-up window, an exception will be thrown, which the developer can catch for further processing.
If the user chooses “Sign” in the pop-up window, the DApp receives and broadcasts the signed transaction.
Last updated