TRON energy API

Energy for every transfer,
from one API call.

Tronergy’s REST API rents TRON energy to the sending address before a USDT TRC20 transfer, so your app doesn’t burn TRX on fees. Or send the user-signed transfer and Tronergy pays the energy and bandwidth and broadcasts it. Authenticate with an API key, pay from a prepaid TRX balance, and track each operation until it completes.

Base URL
apiv2.tronergy.io
Auth
x-api-key header
Format
JSON over HTTPS
Price
from 0.97 TRX / 65 000 energy

Copy, paste,
send USDT.

Examples

# Rent 65 000 energy to SENDER_ADDRESS for 1 hour, before its USDT transfer
curl -X POST "https://apiv2.tronergy.io/api/chain_relayers/portal/execute" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "chain": "tron",
    "mode": "delegate_energy",
    "environment": "live",
    "idempotencyKey": "0b7f1d7e-8a51-4b6e-9d2f-1a3c5e7f9b11",
    "payload": { "target_address": "SENDER_ADDRESS", "energy_amount": 65000, "duration_seconds": 3600 }
  }'

# -> { "ok": true, "operationId": "...", "status": "pending", "estimate": { "estimatedCostNative": "...", "unit": "TRX" } }

Six
endpoints.

Reference

  • POST/api/chain_relayers/portal/estimate

    Quote a relay before you submit it. For energy, send the address with token USDT and operation transfer, or an exact energy amount.

  • POST/api/chain_relayers/portal/execute

    Submit a relay. Mode delegate_energy rents energy to an address; sponsored_broadcast relays a user-signed transaction and pays its energy and bandwidth.

  • GET/api/chain_relayers/portal/operations/{id}

    Get one operation and its status, from pending to completed, failed, voided or expired.

  • GET/api/chain_relayers/portal/stream

    Follow one operation live with Server-Sent Events.

  • GET/api/relayer_tron/public/rate

    Current energy price. Public, no API key needed.

  • GET/api/gas_tank/portal/balance

    Your prepaid TRX balance: available, held for running relays, and total.

How an order
runs.

Flow

  1. 01

    Quote the energy

    Call estimate with mode delegate_energy, the sending address, token USDT and operation transfer. It returns the cost in TRX and the energy amount the transfer needs.

  2. 02

    Rent it

    Call execute with the address, the energy amount and a new idempotencyKey. The cost is held on your prepaid balance. The energy stays for 1 hour by default, up to 30 days.

  3. 03

    Track the operation

    Poll the operation by its id or follow the status stream until it is completed. Tronergy does not send webhooks.

  4. 04

    Send the transfer

    Once the operation is completed, sign and broadcast the USDT transfer from your wallet. It uses the rented energy instead of burning TRX.

API
questions.

FAQ

How do I get an API key?

Log in to the Tronergy dashboard, open API keys and click Create. The key starts with omk_ and is shown only once. Send it from your server in the x-api-key header; Authorization: Bearer does not work.

How much does energy cost through the API?

The same as in the app: from 0.97 TRX per 65 000 energy, or from 1.94 TRX per 130 000. GET /api/relayer_tron/public/rate returns the current price without an API key. Lowest price guaranteed: find a cheaper qualifying offer and we beat it by 0.05 TRX.

How long is the energy available?

1 hour by default, which is enough to sign and send the transfer. Set duration_seconds from 3600 up to 2592000 (30 days) for longer rentals.

Can I test without spending TRX?

Yes. Every request runs in sandbox on the TRON Shasta testnet with free test credit, unless you send environment: live. One API key works in both.

Do I need to send USDT through Tronergy?

No. With delegate_energy you rent energy to your sending address and send the transfer from your own wallet or backend. With sponsored_broadcast you send Tronergy the user-signed transaction and it pays the network cost and broadcasts it. Tronergy never signs for anyone.

Ship cheaper
USDT transfers.