wallet::CachedTxGetCredit

Returns the cached total credit of a wallet transaction.

Synopsis

Declared in <wallet/receive.h>

[[requires_capability(0x7f2e11afc778)]]
CAmount
CachedTxGetCredit(
    CWallet const& wallet,
    CWalletTx const& wtx,
    bool avoid_reuse);

Return Value

The credited amount.

Parameters

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