wallet::ScriptIsChange

Returns whether a script is a change output of the wallet.

Synopsis

Declared in <wallet/receive.h>

[[requires_capability(0x7f2e11afb908)]]
bool
ScriptIsChange(
    CWallet const& wallet,
    CScript const& script);

Return Value

true if the script is treated as change.

Parameters

NameDescription
walletThe wallet to check against.
scriptThe output script to evaluate.