getbalance - Divi 2.5.1 RPC

getbalance ( "account" minconf includeWatchonly )

If account is not specified, returns the server's total available balance.
If account is specified, returns the balance in the account.
Note that the account "" is not the same as leaving the parameter out.
The server total may be different to the balance in the default "" account.

Arguments:
1. "account"      (string, optional) The selected account, or "*" for entire wallet. It may be the default account using "".
2. minconf          (numeric, optional, default=1) Only include transactions confirmed at least this many times.
3. includeWatchonly (bool, optional, default=false) Also include balance in watchonly addresses (see 'importaddress')

Result:
amount              (numeric) The total amount in DIVI received for this account.

Examples:

The total amount in the server across all accounts
> divi-cli getbalance 

The total amount in the server across all accounts, with at least 5 confirmations
> divi-cli getbalance "*" 6

The total amount in the default account with at least 1 confirmation
> divi-cli getbalance ""

The total amount in the account named tabby with at least 6 confirmations
> divi-cli getbalance "tabby" 6

As a json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["tabby", 6] }' -H 'content-type: text/plain;' http://127.0.0.1:51473/


Maintained by DiviDomains; modified by: Bert Shuler;license of the docs is MIT (see divi repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet divi node



Control



Getinvalid