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(0x7fd7422a8828), requires_capability(0x7fd745cdf428), requires_capability(0x7fd73e2a1908), requires_capability(0x7fd73e450da8), requires_capability(0x7fd739990e48)]]
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.