wallet::CachedTxGetChange

Returns the cached change amount of a wallet transaction.

Synopsis

Declared in <wallet/receive.h>

CAmount
CachedTxGetChange(
    CWallet const& wallet,
    CWalletTx const& wtx);

Return Value

The change amount.

Parameters

NameDescription
walletThe wallet that owns the transaction.
wtxThe wallet transaction to evaluate.