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(0x7ff3720f1008), requires_capability(0x7ff365f21008), requires_capability(0x7ff35de5f9b8), requires_capability(0x7ff35efe4498), requires_capability(0x7ff366fd0a78)]]
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.