[#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. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f94fde04b68), requires_capability(0x7f95061a78a8), requires_capability(0x7f94f2b783b8), requires_capability(0x7f94f0cf7048), requires_capability(0x7f94fee39a38)]] bool IsSpentKey(xref:CScript.adoc[CScript] const& scriptPubKey) const; ---- == Return Value true if the key behind the script has been spent. == Parameters [cols="1,4"] |=== | Name| Description | *scriptPubKey* | The script to check. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#