Getting Started

To obtain an API key, please register in the dashboard.

Full documentation →
API Endpoints
GET /calculate-order-price

Request the estimated rental cost of energy and the available number of energy can be rented.

Request URL
https://api.tronenergyrent.com/calculate-order-price?period=[RENTAL_DURATION]&energyAmount=[ENERGY_AMOUNT]
Request parameter Type Required Description
period string Yes Rental duration. One of the following values:
"1h" – 1 hour
"1d" – 1 day
"3d" – 3 days
"30d" – 30 days
energyAmount int Yes Amount of TRON energy to rent (minimum 15000 units).
preActivateDestinationAddress int No On the TRON network, addresses must be active before they can receive energy. Send preActivateDestinationAddress=1 if you want to calculate the cost of renting energy including TRON address activation, otherwise set "0" or ignore this parameter.
Response body example
{
  "status": "SUCCESS",
  "errorCode": null,
  "errorDescription": null,
  "requestId": "9d13d94d-4",
  "payload": {
    "availableEnergy": 75820891,
    "totalEnergy": 561779790,
    "minimumOrderEnergy": 15000,
    "maximumOrderEnergy": 200000000,
    "totalPriceSun": 2860000,
    "totalPriceTrx": 2.86,
    "explanation": "The price for each unit of energy is 44 SUN. The final price is calculated as 65000 ENERGY × 44 SUN = 2860000 SUN (2.860000 TRX)."
  }
}
GET /place-order

Request energy rental to the specified TRON wallet.

Request URL
https://api.tronenergyrent.com/place-order?apiKey=[YOUR_API_KEY]&period=[RENTAL_DURATION]&energyAmount=[ENERGY_AMOUNT]&destinationAddress=[WALLET]
Request parameter Type Required Description
apiKey string Yes Your API key from the dashboard
period string Yes Rental duration. One of the following values:
"1h" – 1 hour
"1d" – 1 day
"3d" – 3 days
"30d" – 30 days
energyAmount int Yes Amount of TRON energy to rent (minimum 15000 units).
destinationAddress string Yes The target Tron address where you want to receive energy
preActivateDestinationAddress int No On the TRON network, addresses must be active before they can receive energy.
If you would like to activate your address before receiving energy,
set preActivateDestinationAddress=1, otherwise set "0" or ignore this parameter.
An activation fee of 1.5 TRX will be charged from your balance if you set "1"
Response body example
{
  "status": "SUCCESS",
  "errorCode": null,
  "errorDescription": null,
  "requestId": "2651eacd-2428",
  "payload": {
    "orderId": "128de799-501e-44b2-8d6f-1fa825c2deed",
    "totalPriceSun": 5662800,
    "totalPriceTrx": 5.6628,
    "state": "PAID_BY_USER"
  }
}