z_getnotescount - Zcash 5.10.0 RPC

z_getnotescount ( minconf asOfHeight )

Returns the number of notes available in the wallet for each shielded value pool.

Arguments:
1. minconf      (numeric, optional, default=1) Only include notes in transactions confirmed at least this many times.
2. asOfHeight       (numeric, optional, default=-1) Execute the query as if it
                    were run when the blockchain was at the height specified by
                    this argument. The default is to use the entire blockchain
                    that the node is aware of. -1 can be used as in other RPC
                    calls to indicate the current height (including the
                    mempool), but this does not support negative values in
                    general. A “future” height will fall back to the current
                    height. Any explicit value will cause the mempool to be
                    ignored, meaning no unconfirmed tx will be considered.
                    `minconf` must be at least 1 when `asOfHeight` is provided.

Result:
{
  "sprout"      (numeric) the number of Sprout notes in the wallet
  "sapling"     (numeric) the number of Sapling notes in the wallet
  "orchard"     (numeric) the number of Orchard notes in the wallet
}

Examples:
> zcash-cli z_getnotescount 0
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getnotescount", "params": [0] }' -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