[#wallet-DescriptorScriptPubKeyMan-HasPrivKey] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::HasPrivKey :relfileprefix: ../../ :mrdocs: Returns whether the private key for the given key id is present. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1dcac698), requires_capability(0x7f2e111ba8b8), requires_capability(0x7f2e15ef1878), requires_capability(0x7f2e237306d8), requires_capability(0x7f2e26613298), requires_capability(0x7f2e2357e188)]] bool HasPrivKey(xref:CKeyID.adoc[CKeyID] const& keyid) const; ---- == Return Value true if the private key is present. == Parameters [cols="1,4"] |=== | Name| Description | *keyid* | The key id to look up. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#