wallet::TxGetChange

Returns the total change amount of a transaction.

Synopsis

Declared in <wallet/receive.h>

CAmount
TxGetChange(
    CWallet const& wallet,
    CTransaction const& tx);

Return Value

The sum of the change amounts.

Parameters

NameDescription
walletThe wallet to check against.
txThe transaction to evaluate.