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

Name

Description

wallet

The wallet to check against.

script

The output script to evaluate.

Created with MrDocs