Skip to main content
These three routes show the parts of an account’s state that are not plain balances: funds waiting to be claimed, offers that lock liabilities on the DEX, and contract allowances that let someone else spend a token. Use them to show “pending” funds in a wallet, to explain why a balance is not fully spendable, or to review token approvals. All three are paged like holdings, cost 1 credit per started 100 records on Mainnet (Testnet requests are free), and are allowed for publishable keys. Set these once in your terminal. The sample values are real Testnet data, so the read examples return real results.
The sample ACCOUNT has none of these entries, so each example below defines a real Testnet address that has them.

Claimable balances

Trimmed live response (1 of 2 records). Claimable balances on Testnet are claimed often, so your answer may list different ones:
  • role=claimant (default) lists balances the address can claim; role=sponsor lists balances it sponsors (the reserve payer).
  • Each claimant has a predicate tree in Stellar’s shape (unconditional, and, or, not, abs_before), with absolute times as both an ISO time and a Unix abs_before_epoch. The example reads “claimable after 14:39 UTC”.
  • claimable_now is evaluated at read_view.as_of_closed_at. On the record it answers for the requested address (role=claimant only).
  • Records are sorted by balance_id.

Offers

One live record:
Open DEX offers where the address sells, sorted by offer_id. price is price_n / price_d units of buying per unit of selling, rounded to 7 places; use price_n and price_d for exact math. flags is the offer flags bitmask (1 is passive). The amount of each offer is the selling_liabilities shown on holdings: 162,894 CETES here.

Allowances

One live record:
  • role=owner (default) lists allowances the address granted; role=spender lists allowances it can use. Records are sorted by contract_id, then by the other party.
  • Allowances are temporary ledger entries. An absent or expired allowance is 0. Expired ones are listed (with expired: true and amount 0) only with include=expired.
  • Allowances cannot be rebuilt from events, so they come only from state. source is ledger_entry for SAC (classic asset) allowances and token_storage for custom tokens. verified: false means the custom token’s storage layout is not recognized, so treat the amount as a best-effort reading.
  • An unlimited approval is the i128 maximum: amount_raw 170141183460469231731687303715884105727, which a 7-decimal token shows as 17014118346046923173168730371588.4105727. Show it as “unlimited” and never add it up or convert it to a float.

Parameters

limit defaults to 50 and is lowered to 200 above that. Any other parameter or value returns 400 invalid_request. These routes do not take as_of_ledger.

Errors

See errors.

Next