Funding an energy account: deposits, reserves and the ledger
Money on an energy account with us is prepaid service credits counted in TRX, and every movement of it is a row in a ledger you can read. A deposit writes a deposit row. Creating an order reserves the order's price with a hold row, which leaves the balance unchanged and lowers the amount you can spend. When the energy is delivered, a charge row takes its price, and a hold_release row returns any part of the reserve that was not charged.
The deposit address accepts TRX only
GET /v1/deposit-address answers with three fields: address, accepts and confirmations_required. Each account has one deposit address at a time. Take it from this call or from the cabinet each time you are about to send TRX, and do not use a copy saved earlier. accepts lists what is credited automatically, and today that list holds TRX alone.
USDT sent to the address is not credited automatically: it is flagged for a person to review, and whether it is credited is our decision in each case (refund policy, section 5). Other tokens are not credited either. If you sent the wrong token, the same policy says to write to us and send no more.
A deposit buys service credits, which pay for our service and for nothing else. There is no withdrawal: nothing in the API or the cabinet turns credits back into TRX, and credits left on an account when it is closed are canceled (Terms of Service, sections 5 and 13).
When a deposit is credited and when it is announced
We credit a transfer of TRX to the address once it has the number of confirmations given in confirmations_required; our Terms put that number at three at present. The credit is one deposit row in the ledger for each transaction, with the transaction's hash in txid and the balance after the credit in balance_after_trx.
We announce a deposit of one TRX or more with a deposit.credited event to every webhook subscribed to it (how a receiver is registered). A deposit below one TRX is credited without the event: the balance rises and the row is in the ledger. Any amount of TRX is credited. Reconcile books kept to the last sun against GET /v1/balance and GET /v1/ledger?type=deposit, because the events leave the small deposits out.
Balance, reserved and available
GET /v1/balance returns three amounts as strings with six decimal places. balance_trx is what the deposit, refund and adjustment_credit rows add less what the charge and adjustment_debit rows subtract, and it equals balance_after_trx of the newest row. held_trx is the part of the balance reserved for work in progress: open orders, what is left of the day's budget of each active Auto-refill rule (how that budget is reserved and returned) and the reserve of a running queue session. available_trx is balance_trx less held_trx. We refuse an order whose price is above available_trx with 402 insufficient_balance before any money moves, and the answer carries required_trx and available_trx. One exception is mode B, where we broadcast a transfer you have signed: with the auto_topup setting on, a mode B order the balance cannot cover can be accepted as awaiting_funds, with nothing reserved, to wait until fund_before for a deposit to be credited.
One deposit followed through one order
An order is priced when it is created, and, the parked mode B order aside, that price is reserved from the available balance at once. The ledger gains a hold row with the order's order_id. If we raise the price of a position right before we buy its energy, we reserve the difference as one more hold row for that order, and we make the raise only when the available balance covers it.
We charge for energy that was delivered. When the order settles, a charge row takes the price of what was delivered and, if any of the reserve is left, a hold_release row returns it. The order's charge and hold_release rows together add up to all of its hold rows. An order on which nothing was delivered, or one you canceled before the purchase began, leaves a hold_release for the whole reserve and no charge row. In mode A, where your own code sends the transfer, the order settles when the energy is delivered, whether or not you have sent the transfer by then (what a failed delivery does to prepaid credits).
Take a case in three steps, with amounts invented for the example; they say nothing about our prices.
| Step | Ledger rows written | balance_trx | held_trx | available_trx |
|---|---|---|---|---|
| The deposit is credited | deposit of 500 TRX | 500 TRX | 0 TRX | 500 TRX |
| A batch order is created | hold of 40 TRX | 500 TRX | 40 TRX | 460 TRX |
| The order settles with part of the batch delivered | charge of 30 TRX and hold_release of 10 TRX | 470 TRX | 0 TRX | 470 TRX |
The ledger is the record to reconcile against
GET /v1/ledger returns the rows newest first. Every amount_trx is positive, and the direction of a row comes from its type, which takes one of seven values.
type | Effect on balance_trx | What it records |
|---|---|---|
deposit | Adds | A transfer of TRX to the deposit address was credited |
hold | None; lowers available_trx | Money was reserved for an order, for a raise of its price, for the day of an Auto-refill rule or for a queue session |
hold_release | None; raises available_trx | A reserve, or the part of it that was not charged, was returned |
charge | Subtracts | Something delivered was charged, such as the energy of an order, an Auto-refill top-up or a queue packet |
refund | Adds | Reverses a charge already made; none of the flows described here writes one at present |
adjustment_credit | Adds | We credited the account by hand; the starting grant of a sandbox account is such a row |
adjustment_debit | Subtracts | We debited the account by hand; credits canceled when an account is closed are such a row |
A position that failed was never charged, so its money comes back as a hold_release and the balance does not move. Rows are permanent: none is edited or deleted, and a wrong entry is corrected by another entry.
Each row also carries id, created_at and three references that are null where they do not apply: order_id, queue_session_id and txid. A page holds 50 rows by default and up to 200 with limit; next_cursor from one page is the cursor for the next and comes back null on the last page. The type parameter narrows the list to one value. The cabinet shows the same rows on its Statement tab, with a filter by type and a CSV export.
The low-balance event and top-up requests
balance.low is the event that reports a low available balance. Its threshold is balance_low_threshold_trx in PATCH /v1/settings, which the event compares with available_trx, and "0.000000" switches the event off.
For a balance that is running down, the tool is the auto_topup setting, Auto top-up in the cabinet, which is off until you switch it on. With it on we open a top-up request when an order is refused with 402, when a mode B order is parked as awaiting_funds, or when the available balance falls under balance_low_threshold_trx while a target_trx to fill up to is set, unless the day's max_per_day_trx leaves no room for the request. The request arrives as a topup.requested event and is listed by GET /v1/topup-requests with amount_trx, the deposit_address to pay to and expires_at. Where a request was opened, the 402 names it in details. The refused order was not created and its Idempotency-Key was not consumed, so after the deposit is credited the same POST /v1/orders call can be sent again unchanged.
A top-up request moves no money: you answer it by sending TRX to the deposit address yourself, and no call of the API takes TRX from a wallet of yours. At most one request is open at a time: a further shortfall goes into the open request, whose amount_trx can grow and never falls, and topup.requested is sent again with the same id. max_per_day_trx is a cap for one UTC day, and Auto top-up cannot be switched on without it. A request left unpaid for a day expires with topup.expired, and TRX that arrives later is still credited. topup.fulfilled says that the deposits credited since the request add up to at least amount_trx, or that the balance reached target_trx by another route.
What the savings figure is computed from
GET /v1/stats/savings compares paid_trx over a period with two bases. Only orders you paid for are counted, which means settled orders that delivered energy; charges under an Auto-refill rule or a queue session belong to no order and are left out. burn_cost_trx is what the counted orders would have cost by burning TRX, at the burn cost recorded on each order when it was created. baseline_cost_trx is the energy of the counted orders at the price per unit you pay another provider, set as baseline_price_sun in the settings; with no such price the baseline_* fields are null. The saving of each order is floored at zero, so paid_trx and saved_vs_burn_trx can add up to more than burn_cost_trx.
Rehearsing a deposit on test money
POST /v1/sandbox/deposit credits test TRX down the path a real deposit takes: a deposit row whose txid starts with sandbox-, and a real deposit.credited delivery for one TRX or more and none below it (what else the sandbox simulates).
These rules are read from our API reference, Terms of Service and refund policy, and from the code behind them, as they stood on 15 November 2026. We sent no deposit and placed no order to write this, and we have no measurement of how long a deposit takes to be credited or of how many top-up requests expire unpaid.
Fetch your account's deposit address, what it accepts and the confirmations a credit needs in one call: GET /v1/deposit-address in the API reference →