z_getbalance - Zcash 5.10.0 RPC

z_getbalance "address" ( minconf inZat )

DEPRECATED; please use z_getbalanceforaccount, z_getbalanceforviewingkey,
or getbalance (for legacy transparent balance) instead.

Returns the balance of a taddr or zaddr belonging to the node's wallet.

CAUTION: If the wallet has only an incoming viewing key for this address, then spends cannot be
detected, and so the returned balance may be larger than the actual balance.
Arguments:
1. "address"        (string) The selected address. It may be a transparent or shielded address.
2. minconf          (numeric, optional, default=1) Only include transactions confirmed at least this many times.
3. inZat            (bool, optional, default=false) Get the result amount in zatoshis (as an integer).

Result:
amount              (numeric) The total amount in ZEC(or zatoshis if inZat is true) received at this address.

Examples:

The total amount received by address "myaddress"
> zcash-cli z_getbalance "myaddress"

The total amount received by address "myaddress" at least 5 blocks confirmed
> zcash-cli z_getbalance "myaddress" 5

As a JSON RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getbalance", "params": ["myaddress", 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