getbalance

privex.rpcemulator.bitcoin.getbalance(account='*', confirmations: int = 0, watch_only=False)[source]

Get the balance of the RPC node, or an individual account.

Parameters
  • account (str) – Only get the balance for this account. "*" or "" will sum all accounts.

  • confirmations (str) – Only include transactions with at least this many confirmations

  • watch_only – NOT IMPLEMENTED

Return float balance

The total balance as a float