[#wallet-LegacyDataSPKM-GetKey-0e] = xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::GetKey :relfileprefix: ../../ :mrdocs: `GetKey` overloads == Synopses Declared in `<wallet/scriptpubkeyman.h>` Look up a private key by its key id. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool xref:SigningProvider/GetKey.adoc[GetKey]( xref:CKeyID.adoc[CKeyID] const& address, xref:CKey.adoc[CKey]& key) const; ---- [.small]#xref:SigningProvider/GetKey.adoc[_» more..._]# Retrieves the private key for the given address into keyOut. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool xref:wallet/LegacyDataSPKM/GetKey-06.adoc[GetKey]( xref:CKeyID.adoc[CKeyID] const& address, xref:CKey.adoc[CKey]& keyOut) const override; ---- [.small]#xref:wallet/LegacyDataSPKM/GetKey-06.adoc[_» more..._]# == Return Value * True if the private key was found. * true if the private key was found. == Parameters [cols="1,4"] |=== | Name| Description | *address* | The key id to retrieve the private key for. | *key* | Set to the matching private key on success. | *keyOut* | Filled with the found private key. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#