getbalance - Zcash 5.2.0 RPC

getbalance ( "(dummy)" minconf includeWatchonly inZat )

Returns the wallet's available transparent balance. This total
currently includes transparent balances associated with unified
accounts. Prefer to use `z_getbalanceforaccount` instead.

1. (dummy)          (string, optional) Remains for backward compatibility. Must be excluded or set to "*" or "".
2. minconf          (numeric, optional, default=1) Only include transactions confirmed at least this many times.
3. includeWatchonly (bool, optional, default=false) Also include balance in watchonly addresses (see 'importaddress')
4. inZat            (bool, optional, default=false) Get the result amount in zatoshis (as an integer).

amount              (numeric) The total amount in ZEC(or zatoshis if inZat is true) received.


The total amount in the wallet
> zcash-cli getbalance *

The total amount in the wallet at least 5 blocks confirmed
> zcash-cli getbalance "*" 6

As a JSON RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 6] }' -H 'content-type: text/plain;'

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