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

Name

Description

wallet

The wallet to check against.

txout

The output to evaluate.

Created with MrDocs