wallet::CWallet::HasWalletSpend

Check if a given transaction has any of its outputs spent by another transaction in the wallet

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7fb955bd0a78), requires_capability(0x7fb94db85398), requires_capability(0x7fb95ab15218), requires_capability(0x7fb959fb1df8), requires_capability(0x7fb956cbc088)]]
bool
HasWalletSpend(CTransactionRef const& tx) const;

Return Value

true if any output is spent by another wallet transaction.

Parameters

NameDescription
txThe transaction whose outputs to check.