getaddressbalance
Get balance of specific address
yerbas-cli getaddressbalance '{"addresses": ["yPrivQChtrjAhB6rXo6XfxYMw4LFMwACU2"]}'
Arguments
Argument | Type | Description |
---|---|---|
"address" | (string) | The base58check encoded address |
Arguments:
{
"addresses"
[
"address" (string) The base58check encoded address
,...
]
}
Output
Result | Type | Description |
---|---|---|
"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/