List holdings of an address
Every balance the address holds: XLM, trustlines (including zero balances with include=zero), liquidity pool shares, and SAC and custom-token balances held in contract storage, live or archived. Sorted by asset. Each record says how it was determined (source, verified); the completeness block says whether the whole answer is verified. G accounts also get an account block with spendable XLM; an unfunded or unknown G address answers 200 with account: null and no records. With as_of_ledger the holdings are read at a past ledger from the balance history (credit class assets-history, weight 5): include=closed is not available, unverified balances are not simulated, and publishable keys are not allowed. The history begins at read_view.bootstrap_ledger at the earliest; earlier ledgers need a snapshot job (POST /snapshots). Credit class assets-holdings: 1 × ceil(rows/100), at least one credit per started 64 KiB. Each unverified token simulated adds 1 credit. Publishable keys allowed.
- Unknown or repeated query parameters return 400, so a typo or an unsupported filter never returns unfiltered data.
Authorizations
Send Authorization: Bearer <key>, the same keys as Activity and RPC. Testnet: lum_test_…; Mainnet: lum_live_…. A key works only on its own network, so pick the server that matches it (the other network answers 401). Publishable lum_pub_… keys work only on the routes marked "Publishable keys allowed", from an allowed browser origin.
Path Parameters
Checksum-valid G or C address. An M… address resolves to its G account and the response carries muxed_input. B… and L… addresses are never holders.
"GAIH3ULLFQ4DGSECF2AR555KZ4KNDGEKN4AFI4SU2M7B43MGK3QJZNSR"
Query Parameters
Only holdings of this kind.
native, trustline, pool_share, contract "trustline"
Decimal; holdings below it are left out.
^[0-9]+(\.[0-9]+)?$"1"
Comma list: zero (zero-balance trustlines), closed (previously held, with closed_ledger), unverified (event-derived or simulated custom-token balances). Default: none of them.
^(zero|closed|unverified)(,(zero|closed|unverified))*$"zero"
Only this asset: native, CODE:ISSUER (case-sensitive), a C… token contract ID or pool:<64 hex>. A Stellar Asset Contract ID matches the balances of its classic asset (CODE:ISSUER, or native for the native SAC), which records report under that classic ID.
Read at this past ledger from the balance history (credit class assets-history, weight 5). 400 when after the latest applied ledger; 409 when the history cannot answer it exactly. Not available to publishable keys.
x >= 15300000
Records per page, 1 to 200 (default 50).
1 <= x <= 20010
Resume after this paging_token. Prefer following _links.next.href.
Response
A page of holdings, the completeness block and, for a G account, the account entry.
Effective page size: default 50, maximum 200.
The looked-up address (G or C; an M… input resolves to its G account).
G accounts only: the account entry, or null when the account does not exist. Absent for C addresses.
The M… address from the request, when one was sent.