wallet::CachedTxGetDebit

Returns the cached total debit of a wallet transaction.

Synopsis

Declared in <wallet/receive.h>

CAmount
CachedTxGetDebit(
    CWallet const& wallet,
    CWalletTx const& wtx,
    bool avoid_reuse);

Return Value

The debited amount.

Parameters

NameDescription
walletThe wallet that owns the transaction.
wtxThe wallet transaction to evaluate.
avoid_reuseWhether to exclude inputs from already-used addresses.