[#wallet-LegacyDataSPKM-GetKey-06] = xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::GetKey :relfileprefix: ../../ :mrdocs: Retrieves the private key for the given address into keyOut. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool GetKey( xref:CKeyID.adoc[CKeyID] const& address, xref:CKey.adoc[CKey]& keyOut) const override; ---- == Return Value true if the private key was found. == Parameters [cols="1,4"] |=== | Name| Description | *address* | The key id to look up. | *keyOut* | Filled with the found private key. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#