[#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(0x7f2e1e5980b8), requires_capability(0x7f2e11aa8e78), requires_capability(0x7f2e169fec68), requires_capability(0x7f2e15f2e108), requires_capability(0x7f2e12c6cd98)]] 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]#