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

Name

Description

wallet

The wallet to check against.

tx

The transaction to evaluate.

Created with MrDocs