API

.mdOpenAPI

Orders

Create an order

POST/api/ordersOptional key

Prices 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 + duration as in the quote. One of the two is required.
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.
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).
stagestring
waiting → seen → ready, or failed / refunded. See the order lifecycle.

Errors

HTTPerrorWhen
400bad_requestThe body isn't a JSON object, or is over 4 KB.
400bad_addressaddress is missing, not a TRON address, or fails its checksum.
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_currencycurrency is neither TRX nor USDT.
400bad_recipientrecipient isn't holder or empty, or recipientAddress isn't a TRON address.
400not_activatedThe address has never received TRX. Activate it first, or add activate: true.
400contract_addressThe address is a smart contract; energy goes to wallets only.
403screeningThe address is on Tether's USDT blacklist or the OFAC sanctions list.
422no_sourceNo energy source can fill this plan right now. Try fewer transfers or later.
503busyToo many orders wait for payment right now. Retry in a minute.
503payments_offOrdering is paused. Quotes and checks still work.
400bad_client_keyclientKey isn't 8 to 64 letters, digits, - or _.
400bad_kindkind is neither energy nor activation.
400too_many_addressesMore than 20 addresses in one activation order.
409already_activatedAn address in an activation order is already activated. Remove it and order again.
503activation_unavailableActivation can't be added right now. Send the address any amount of TRX first.
503activation_busyActivation is paused for now (the daily limit is reached). Try later, or send the address any amount of TRX.
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: 10 at once, then 1 a minute, per IP.
  • With an API key: 50 at once, then 1 every 12 s, per key.