[#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(0x7ff3720ef518), requires_capability(0x7ff365f1f518), requires_capability(0x7ff35de5dec8), requires_capability(0x7ff35efe29a8), requires_capability(0x7ff366fcef88)]] 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]#