Production API
Quote an order
Calculate the current rental price for a TRON address without changing account balance.
POST
/v1/energy/quotesOn this page
A quote does not reserve funds or guarantee a future price. The final amount is fixed only when an order is created.
Request body
{"address":"TXYZ","energy":65000,"duration_hours":1}
| Field | Type | Required | Description |
|---|---|---|---|
address |
string | yes | Valid TRON Base58Check destination address. |
energy |
integer | yes | Amount divisible by energy_per_portion. |
duration_hours |
integer | yes | One allowed duration from options. |
Unknown JSON properties are rejected.
Response 200
{"address":"TXYZ","energy":65000,"duration_hours":1,"energy_trx":"3.200000","activation_trx":null,"total_trx":"3.200000","can_afford":true}
| Field | Type | Description |
|---|---|---|
energy_trx |
string | Energy rental cost in TRX. |
activation_trx |
string or null | Address activation surcharge, when applicable. |
total_trx |
string | Full quoted amount. |
can_afford |
boolean | Whether the current available balance is sufficient. |
All money strings contain exactly six decimal places.
Errors
400 means invalid fields or JSON, 413 an oversized body, 415 an invalid Content-Type, and 409 a state conflict. 401, 429, and 503 are also possible.
Rentron