[#wallet-CWallet-HasWalletSpend] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::HasWalletSpend :relfileprefix: ../../ :mrdocs: Check if a given transaction has any of its outputs spent by another transaction in the wallet == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f94fde06658), requires_capability(0x7f95061a9398), requires_capability(0x7f94f2b79ea8), requires_capability(0x7f94f0cf8b38), requires_capability(0x7f94fee3b528)]] bool HasWalletSpend(xref:CTransactionRef.adoc[CTransactionRef] const& tx) const; ---- == Return Value true if any output is spent by another wallet transaction. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction whose outputs to check. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#