wallet::InputIsMine

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

NameDescription
walletThe wallet to check ownership against.
txinThe input whose previous output is checked.