z_getbalances - Hush 3.10.3 RPC

z_getbalances

Returns array of addresses with their unspent shielded balances.
Optionally filter to only include addresses with at least minbal HUSH.
Results are an array of Objects, each of which has:
{address, balance}

Arguments:
1. minbal           (numeric, optional, default=0) The minimum balance addresses must contain

Result
[                             (array of json object)
  {
    "address" : "zs14d8tc0hl9q0vg5l28uec5vk6sk34fkj2n8s7jalvw5fxpy6v39yn4s2ga082lymrkjk0x2nqg37",      (string) the address 
    "balance" : 69.420          (numeric)  the balance
  }
  ,...
]

Examples
> hush-cli z_getbalances 
> hush-cli z_getbalances 0.01
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getbalances", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:18031/
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_getbalances", "params": [0.42069] }' -H 'content-type: text/plain;' http://127.0.0.1:18031/


Maintained by The Hush Developers

Welcome to the Hush full node RPC developer documentation!!! You finally made it.