Estimate Order Amount
Estimate TRON Energy costs; supports resource estimation for standard token transfers and contract calls.
The current API estimates only TRON Energy costs; it does not include Net (bandwidth) costs.
The following estimation scenarios are supported:
- Standard token transfers: Do not provide
amountordata. - Contract invocation transactions: Provide the ABI-encoded
data(in hex format).
Request Parameters
receive addres
The transfer address for estimating miner fees.
- Standard token transfer scenario:
address_tois the actual recipient address. - Contract invocation transaction scenario:
address_tois the contract address, and it must matchcontract_address.
Contract address for estimating miner fees.
rent time code: Request the order/price interface to return the cost codes for minutes, hours, days, and different times.
eg:10010 - 10 minutes, 20001 - 1 hour, 30001 - 1 day
Contract invocation amount
When used for contract estimation scenarios, amount represents the value associated with the contract invocation. This parameter is optional for standard transfer estimation scenarios.
Contract invocation data; hexadecimal data constructed via ABI encoding.
If data is provided, the API treats the request as a contract transaction for resource estimation; this parameter is optional for standard transfer estimation scenarios.