wallet::AllInputsMine

Returns whether all of the inputs belong to the wallet

Synopsis

Declared in <wallet/receive.h>

bool
AllInputsMine(
    CWallet const& wallet,
    CTransaction const& tx);

Return Value

true if every input spends an output owned by the wallet.

Parameters

NameDescription
walletThe wallet to check ownership against.
txThe transaction whose inputs are checked.