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]
Response body
{
  "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=[VALUE]&period=[RENTAL_DURATION]&energyAmount=[ENERGY_AMOUNT]&destinationAddress=[WALLET]
Response body
{
  "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"
  }
}