getbalance

Input(s) 4

Calculates and returns the total balance across all accounts or specific labels within a wallet, with options to factor in confirmations and watch-only addresses.

How is this used?

You're opening your banking app to check how much money you have available across all your accounts—savings, checking, and any other special accounts. You want a quick, accurate snapshot of your total funds to make informed decisions about spending, saving, or transferring money. The 'getbalance' command in Bitcoin works similarly but for your Bitcoin wallet. It gives you an immediate overview of how much Bitcoin you have available in total, across all addresses or specific labels within your wallet. This includes considering transactions that have reached a certain number of confirmations, making it a reliable way to understand your financial position in the Bitcoin network at any given time.

Request

method

getbalance

dummy

Optional

minconf

Optional

include_watchonly

Optional

avoid_reuse

Optional

Inputs(4)

dummy Remains for backward compatibility. Must be excluded or set to '*'.
minconf Only include transactions confirmed at least this many times.
include_watchonly Also include balance in watch-only addresses.
avoid_reuse Do not include balance in dirty outputs; addresses are considered dirty if they have previously been used in a transaction.

Result