Computes the wallet's balance broken down by category.
Declared in <wallet/receive.h>
Balance
GetBalance(
CWallet const& wallet,
int min_depth = 0,
bool avoid_reuse = true,
bool include_nonmempool = false);
The computed balance breakdown.
| Name | Description |
|---|---|
| wallet | The wallet to evaluate. |
| min_depth | Minimum confirmation depth for coins to count as trusted. |
| avoid_reuse | Whether to account for the avoid-reuse flag. |
| include_nonmempool | Whether to include coins spent by transactions not in the mempool. |