Skip to main content

listaddressbalances

Command#

pacprotocol-cli listaddressbalances ( minamount )

Lists addresses of this wallet and their balances

Arguments#

minamount#

(numeric, optional, default=0)

Minimum balance in PAC an address should have to be shown in the list

Examples#

pacprotocol-cli listaddressbalances
pacprotocol-cli listaddressbalances 10
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressbalances", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressbalances", "params": [10] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/

Result#

{
"address": amount, #(string) The PAC address and the amount in PAC
,...
}

Running following help command

pacprotocol-cli help listaddressbalances

Will produce following output:

listaddressbalances ( minamount )
Lists addresses of this wallet and their balances
Arguments:
1. minamount (numeric, optional, default=0) Minimum balance in PAC an address should have to be shown in the list
Result:
{
"address": amount, (string) The PAC address and the amount in PAC
,...
}
Examples:
> pacprotocol-cli listaddressbalances
> pacprotocol-cli listaddressbalances 10
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressbalances", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressbalances", "params": [10] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/