[#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(0x7f2e1e599ba8), requires_capability(0x7f2e11aaa968), requires_capability(0x7f2e16a00758), requires_capability(0x7f2e15f2fbf8), requires_capability(0x7f2e12c6e888)]] 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]#