z_getbalanceforaccount - Zcash 5.3.0 RPC

z_getbalanceforaccount account ( minconf )

Returns the account's spendable balance for each value pool ("transparent", "sapling", and "orchard").
Arguments:
1. account      (numeric) The account number.
2. minconf      (numeric, optional, default=1) Only include transactions confirmed at least this many times.

Result:
{
  "pools": {
    "transparent": {
        "valueZat": amount   (numeric) The amount held by this account in the transparent value pool
    "},
    "sapling": {
        "valueZat": amount   (numeric) The amount held by this account in the Sapling value pool
    "},
    "orchard": {
        "valueZat": amount   (numeric) The amount held by this account in the Orchard value pool
    "}
  "},
  "minimum_confirmations": n (numeric) The given minconf argument
}
Result amounts are in units of zatoshis.
Pools for which the balance is zero are not shown.

Examples:

The per-pool amount received by account 4 with at least 1 block confirmed
> zcash-cli z_getbalanceforaccount 4

The per-pool amount received by account 4 with at least 5 block confirmations
> zcash-cli z_getbalanceforaccount 4 5

As a JSON RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getbalanceforaccount", "params": [4 5] }' -H 'content-type: text/plain;' http://127.0.0.1:8232/


Maintained by @_garethtdavies; modified by: mdr0id;license of the docs is MIT (see zcash repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet zcash node