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

Name

Description

wallet

The wallet that owns the transaction.

wtx

The wallet transaction to evaluate.

avoid_reuse

Whether to exclude outputs to already‐used addresses.

Created with MrDocs