getaddressbalance - Pastel RPC

getaddressbalance {"addresses": ["taddr", ...]}

Returns the balance for addresses.

WARNING: getaddressbalance is disabled.
To enable it, restart pasteld with the -insightexplorer commandline options,
or add this line to the pastel.conf file:

insightexplorer=1

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

Result:
{
  "addresses":
    [
      {
        "address"     (string)  The base58check encoded address
        "balance"     (string)  (string) The current balance of the address in patoshis
      }, ...
    ],
  "balance"  (string) The total current balance in patoshison all addresses in the request
  "received"  (string) The total number of patoshis received (including change) by all addresses in the request
}

Examples:
> pastel-cli getaddressbalance '{"addresses": ["tmYXBYJj1K7vhejSec5osXK2QsGa5MTisUQ"]}'
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getaddressbalance", "params": [{"addresses": ["tmYXBYJj1K7vhejSec5osXK2QsGa5MTisUQ"]}] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node