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 to generate the signed transaction automatically.
Use the 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/v2/estimate-buy-resource
Get Signed Transaction: POST
https://api-dev.tronsave.io/v2/signed-tx
Create order: POST
https://api-dev.tronsave.io/v2/buy-resource