wallet::OutputGetChange

Returns the change amount an output contributes.

Synopsis

Declared in <wallet/receive.h>

[[requires_capability(0x7f2e11afc048)]]
CAmount
OutputGetChange(
    CWallet const& wallet,
    CTxOut const& txout);

Return Value

The change amount, or zero if the output is not change.

Parameters

NameDescription
walletThe wallet to check against.
txoutThe output to evaluate.