getaddressbalance
RPC help captured from Yerbas Core 4.0.1.4 (f0e2dde).
Use ./yerbas-cli help getaddressbalance on your node for help. In the GUI console omit yerbas-cli. HTTP examples use mainnet RPC port 15419; network-specific defaults and availability can differ.
getaddressbalance
Returns the balance for an address(es) (requires addressindex to be enabled).
Arguments:
{
"addresses"
[
"address" (string) The base58check encoded address
,...
]
}
Result:
{
"balance" (string) The current balance in duffs
"received" (string) The total number of duffs received (including change)
}
Examples:
> yerbas-cli getaddressbalance '{"addresses": ["XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwg"]}'
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["XwnLY9Tf7Zsef8gMGL2fhWA9ZmMjt4KPwg"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:15419/