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