wallet::GetBalance

Computes the wallet's balance broken down by category.

Synopsis

Declared in <wallet/receive.h>

Balance
GetBalance(
    CWallet const& wallet,
    int min_depth = 0,
    bool avoid_reuse = true,
    bool include_nonmempool = false);

Return Value

The computed balance breakdown.

Parameters

NameDescription
walletThe wallet to evaluate.
min_depthMinimum confirmation depth for coins to count as trusted.
avoid_reuseWhether to account for the avoid-reuse flag.
include_nonmempoolWhether to include coins spent by transactions not in the mempool.