[#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 `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde06658), requires&lowbar;capability(0x7f95061a9398), requires&lowbar;capability(0x7f94f2b79ea8), requires&lowbar;capability(0x7f94f0cf8b38), requires&lowbar;capability(0x7f94fee3b528)&rsqb;&rsqb;
bool
HasWalletSpend(xref:CTransactionRef.adoc[CTransactionRef] const& tx) const;
----

== Return Value

true if any output is spent by another wallet transaction&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction whose outputs to check&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
