[#wallet-LegacyDataSPKM-GetPubKey-03]
= xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::GetPubKey
:relfileprefix: ../../
:mrdocs:

Retrieves the public key for the given address into vchPubKeyOut&period;

== Synopsis

Declared in `&lt;wallet&sol;scriptpubkeyman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
GetPubKey(
    xref:CKeyID.adoc[CKeyID] const& address,
    xref:CPubKey.adoc[CPubKey]& vchPubKeyOut) const override;
----

== Return Value

true if the public key was found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| The key id to look up&period;
| *vchPubKeyOut*
| Filled with the found public key&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
