[#wallet-CWallet-IsSpentKey]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::IsSpentKey
:relfileprefix: ../../
:mrdocs:

Whether this or any known scriptPubKey with the same single key has been spent&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1e5980b8), requires&lowbar;capability(0x7f2e11aa8e78), requires&lowbar;capability(0x7f2e169fec68), requires&lowbar;capability(0x7f2e15f2e108), requires&lowbar;capability(0x7f2e12c6cd98)&rsqb;&rsqb;
bool
IsSpentKey(xref:CScript.adoc[CScript] const& scriptPubKey) const;
----

== Return Value

true if the key behind the script has been spent&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scriptPubKey*
| The script to check&period;
|===


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