Use Signed Transaction
Last updated
Last updated
Ensure you have access to the wallet's private key you intend to use for the transaction.
Verify that the wallet has sufficient TRX balance to execute the transaction.
The API will be used to calculate the TRX needed for the desired energy amount and rental duration.
Option 1: to generate the signed transaction using the wallet's private key.
Option 2: Use Tronsave API to generate the signed transaction automatically.
Use the API to finalize the transaction.
Pass the response from the signed transaction (if using the API) or your custom-signed transaction.
Include the estimated TRX amount and other required parameters to create the energy purchase order.
Estimate TRX: POST
https://api-dev.tronsave.io/v0/estimate-trx
Get Signed Transaction: POST
https://api-dev.tronsave.io/v0/signed-tx
Create order: POST
https://api-dev.tronsave.io/v0/buy-energy