Requires wallet support.
getbalance RPC gets the balance in decimal pais across all accounts or for a particular account.
Parameter #1—an account name
(0 or 1)
|The name of an account to get the balance for. An empty string (“”) is the default account. The string
Parameter #2—the minimum number of confirmations
|The number of confirmations the transactions in this block have, starting at 1 when this block is at the tip of the best block chain. This score will be -1 if the the block is not part of the best block chain|
Parameter #3—whether to include watch-only addresses
(0 or 1)
|Stating whether matching outputs should be considered watched even when they’re not spendable. This is only allowed if keys are empty. The default is
Result—the balance in pais
|The balance of the account (or all accounts) in pais|
Get the balance for the “test1” account, including transactions with at least one confirmation and those spent to watch-only addresses in that account.
pai-cli -testnet getbalance "test1" 1 true
ListAccounts: lists accounts and their balances.
GetReceivedByAccount: returns the total amount received by addresses in a particular account from transactions with the specified number of confirmations. It does not count coinbase transactions.
GetReceivedByAddress: returns the total amount received by the specified address in transactions with the specified number of confirmations. It does not count coinbase transactions.