Reconstruct one Zcash account's confirmed spending balance by pool

A checkout integration can use one wallet account while funds occupy several value pools. Querying a single receiver can miss the account's available funds elsewhere.

Pin account, height and confirmation depth

This example asks for account zero at a historical mainnet height with six confirmations. Use a scanned wallet and a height it has already reached; future heights can fall back to the current height.

zcash-cli z_getbalanceforaccount 0 6 2500000 | jq '{minimum_confirmations, pools}'

Normalize a successful response

Read each pool's integer valueZat. The RPC omits zero-balance pools, so a missing Orchard entry within a successful account response represents zero there. Preserve RPC errors separately. This is account-specific spendable balance at the selected depth; network-wide pool statistics cannot substitute for it.

zcash.github.io z_getbalanceforaccount