Orders
Create an order
/api/ordersOptional keyPrices the plan, screens the address and returns a deposit address of its own and the exact amount to pay.
Returns a deposit address of its own, the exact amount, a tron: URI for a QR code and when the payment window closes (expiresAt). Pay that amount in TRX or USDT from any wallet, then poll the order until stage is ready.
With an API key the order is linked to your account (history, loyalty discount) and your per-key limits apply; it is still paid on chain. To pay from your balance instead, use Create an order paid from the balance.
Activation only. Send kind: "activation" and addresses (1 to 20 TRON addresses that aren't activated yet) with currency and clientKey, and no plan. The order activates each address and delegates no energy; activation.items shows each address's status. An address that is already activated when its turn comes is skipped and its share refunded.
Pay the exact amount. An overpayment of 1 TRX or 2 USDT or more is refunded; an underpayment can be topped up until expiresAt, then it is refunded. A payment in the other currency, or after the window, is refunded too.
Body parameters
addressstringRequired- The wallet that sends the USDT and receives the energy. Activated, not a contract.
packageIdstringOptional- A plan id, or
transfers+durationas in the quote. One of the two is required. 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. currency"TRX" | "USDT"Optional- What you pay in. Default
"TRX". activatebooleanOptional- Add activation for an address that isn't activated yet (it is activated after payment, before delivery).
clientKeystringOptional- Idempotency key: 8 to 64 letters, digits,
-or_. The same key returns the same order, so a retry after a timeout never creates a second one.
Notable response fields
payTostring- The order's own deposit address. Pay here, once.
amountstring- The exact amount, in
currency. expiresAtinteger- When the payment window closes (Unix ms).
stagestringwaiting→seen→ready, orfailed/refunded. See the order lifecycle.
Errors
| HTTP | error | When |
|---|---|---|
| 400 | bad_request | The body isn't a JSON object, or is over 4 KB. |
| 400 | bad_address | address is missing, not a TRON address, or fails its checksum. |
| 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_currency | currency is neither TRX nor USDT. |
| 400 | bad_recipient | recipient isn't holder or empty, or recipientAddress isn't a TRON address. |
| 400 | not_activated | The address has never received TRX. Activate it first, or add activate: true. |
| 400 | contract_address | The address is a smart contract; energy goes to wallets only. |
| 403 | screening | The address is on Tether's USDT blacklist or the OFAC sanctions list. |
| 422 | no_source | No energy source can fill this plan right now. Try fewer transfers or later. |
| 503 | busy | Too many orders wait for payment right now. Retry in a minute. |
| 503 | payments_off | Ordering is paused. Quotes and checks still work. |
| 400 | bad_client_key | clientKey isn't 8 to 64 letters, digits, - or _. |
| 400 | bad_kind | kind is neither energy nor activation. |
| 400 | too_many_addresses | More than 20 addresses in one activation order. |
| 409 | already_activated | An address in an activation order is already activated. Remove it and order again. |
| 503 | activation_unavailable | Activation can't be added right now. Send the address any amount of TRX first. |
| 503 | activation_busy | Activation is paused for now (the daily limit is reached). Try later, or send the address any amount of TRX. |
| 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: 10 at once, then 1 a minute, per IP.
- With an API key: 50 at once, then 1 every 12 s, per key.