Pricing
Get a quote
POST
/api/quoteOptional keyPrices 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 withduration. duration"1h" | "1d" | "3d"Optional- How long the energy stays.
3dneeds 3 transfers or more. recipient"holder" | "empty"Optional- Whether the USDT receiver already holds USDT:
holdersizes the energy at 64,285 per transfer,emptyat 130,285. Default"holder". recipientAddressstringOptional- The USDT receiver. We read the chain to size the energy; overrides
recipient.
Errors
| HTTP | error | When |
|---|---|---|
| 400 | bad_request | The body isn't a JSON object, or is over 4 KB. |
| 400 | bad_package | Unknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d. |
| 400 | bad_recipient | recipient isn't holder or empty, or recipientAddress isn't a TRON address. |
| 422 | no_source | No energy source can fill this plan right now. Try fewer transfers or later. |
| 429 | rate_limited | Too many calls (per IP, or per key with a key). Wait for Retry-After seconds. |
| 502 / 503 | upstream | The 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.