Protected ReadonlycacheProtected ReadonlydbProtected ReadonlywalletProtected ReadonlywithoutBalance-free pages: their own key space, reached by the same namespace tags.
StaticinstanceThe process default: built from each dependency's own instance().
One entity's MOVEUSD total, account count and top accounts by balance.
Get the given ledger account for the given customer
MOVEUSD total of the customer's accounts, or of these entities' accounts.
Customer-wide reads wallet_balance_total; the view groups the whole
customer before any entity filter, so entities sum the per-row subquery.
Get a public ledger account that belongs to any customer
Return per-entity account metadata and counts for the given customer.
One row per entity (identity or organization). main is true when the
entity is the customer's primary organization.
Whether any of the customer's accounts holds MOVEUSD. Not a search
filter: its count(*) OVER () values every funded row (126 ms against
1.4 ms on 3,000 accounts), where this stops at the first.
Clear each customer's membership tag and each record tag wherever cached,
and always this namespace's collection tag. keys are exact deletes in this
instance's key space: the only bust a null client honours.
ProtectedinvalidateThe bust every ledger account write makes, whatever it changed: its record
tag in every namespace copying its columns, its customer's pages on both
surfaces, and the folded get keys, the one bust a null client honours.
A balance change is no account write and clears none of it.
Search ledger accounts of the given customer. cache: "bypass" skips the
cached read for a caller about to write on the answer; the fresh result
still refreshes the entry.
Search all customers' public ledger accounts
ProtectedsearchTags for a page: the scope its query searched (each customer's membership
tag, else the collection tag), so an empty page is bustable too, plus the
records it projects and the fields that chose or ordered its rows.
StaticadminAs getCacheKey, for LedgerAccountAdminQueryService.get.
StaticgetThe search args LedgerAccountQueryService.get reads through, and so its cache key.
Readonly access to a customer's ledger accounts.
Extends LedgerAccountCache, which owns the
ledger-account-searchnamespace this read shares with the admin surface.