Returns whether the output spent by an input belongs to the wallet.

Synopsis

Declared in <wallet/receive.h>

[[requires_capability(0x7f2e11afabf8)]]
bool
InputIsMine(
    CWallet const& wallet,
    CTxIn const& txin);

Return Value

true if the spent output is owned by the wallet.

Parameters

Name

Description

wallet

The wallet to check ownership against.

txin

The input whose previous output is checked.

Created with MrDocs