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

Name

Description

wallet

The wallet that owns the transaction.

wtx

The wallet transaction to evaluate.

avoid_reuse

Whether to exclude inputs from already‐used addresses.

Created with MrDocs