API

.mdOpenAPI

Pricing

Get a quote

POST/api/quoteOptional key

Prices one plan (or every fixed plan) from the live price index, valid for the payment window.

Prices one plan from the live price index (what the sources charge now), the live burn price and TRX rate; pricing.index says when that index was taken and from how many sources. Paying in USDT costs more than in TRX (priceUsdt): the deposit address must be activated and swept.

Leave out the plan to get {"quotes": [...]} for 1tx, 10tx, 50tx, 100tx, minus any no source can fill right now. A plan no source can fill answers 422 no_source. A quote is valid until expiresAt, 15 minutes by default.

Body parameters

packageIdstringOptional
A plan id: 1tx, 7tx-1d, 12tx-3d… See plans.
transfersintegerOptional
Instead of packageId: 1 to 2,000. Send with duration.
duration"1h" | "1d" | "3d"Optional
How long the energy stays. 3d needs 3 transfers or more.
recipient"holder" | "empty"Optional
Whether the USDT receiver already holds USDT: holder sizes the energy at 64,285 per transfer, empty at 130,285. Default "holder".
recipientAddressstringOptional
The USDT receiver. We read the chain to size the energy; overrides recipient.

Errors

HTTPerrorWhen
400bad_requestThe body isn't a JSON object, or is over 4 KB.
400bad_packageUnknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d.
400bad_recipientrecipient isn't holder or empty, or recipientAddress isn't a TRON address.
422no_sourceNo energy source can fill this plan right now. Try fewer transfers or later.
429rate_limitedToo many calls (per IP, or per key with a key). Wait for Retry-After seconds.
502 / 503upstreamThe TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.

Every error is {"error": "<code>", "message": "<text>"}. All error codes.

Rate limits

  • Without a key: 60 at once, then 1 per second, per IP.
  • With an API key: 300 at once, then 5 per second, per key.