Skip to main content

getaddressbalance

Get balance of specific address

yerbas-cli getaddressbalance '{"addresses": ["yPrivQChtrjAhB6rXo6XfxYMw4LFMwACU2"]}'

Arguments

ArgumentTypeDescription
"address"(string)The base58check encoded address
Arguments:
{
"addresses"
[
"address" (string) The base58check encoded address
,...
]
}

Output

ResultTypeDescription
"balance"(string)The current balance in duffs
"received"(string)The total number of duffs received (including change)
Result:
{
"balance" (string) The current balance in duffs
"received" (string) The total number of duffs received (including change)
}

Examples

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:9998/