A correlated scalar subquery: the outer row's ledger account's balance of
symbol, summed across every address and chain, coalesce'd to 0. Use it
as a SELECT column (it maps to a BigNumber), inside an aggregate, or sort
by its select-list alias.
Short on purpose: list statements carry it once per balance and RDS Proxy pins a session past 16,384 bytes of text. It reads the keyed view by name.
Every asset each ledger account holds, latest or at blockTime. Every
requested id is present, [] when its wallet holds nothing. An asset whose
history ends at zero is still listed, with a zero total. With customerId
the accounts are the customer's, read in SQL; only accounts holding
something are present.
Bust the cached timeseries of the wallets holding these addresses. The on-chain balance webhook calls this with every address a transaction moved.
Bust the cached timeseries of every ledger account holding these wallets, and the customer-wide series of every customer owning one of them.
One ledger account's balance changes: the balance of an (address, token)
after each change, oldest first unless orderBy says otherwise.
Balances of these accounts, or every account of customerId, sampled over
time, each address counted once. Both bounds truncate to the start of their
day in timeZone.
Optionalsymbols?: string[]Only these assets; every asset when omitted.
OptionaltimeZone?: stringIANA timezone (e.g. "America/Chicago"). Aligns day boundaries and localDate output to this timezone. Defaults to "UTC".
On-chain balances per ledger account, across every chain and asset its wallet holds: ledger_account → wallet → wallet_address → wallet_account_transaction → token. A balance is the
post_balanceof the latest balance change per (address, token), never a sum of amounts. A wallet several ledger accounts share shows the same holdings under each.