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

Retrieves the key origin (derivation path and fingerprint) for the given key id&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
GetKeyOrigin(
    xref:CKeyID.adoc[CKeyID] const& keyid,
    xref:KeyOriginInfo.adoc[KeyOriginInfo]& info) const override;
----

== Return Value

true if the key origin was found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *keyid*
| The key id to look up&period;
| *info*
| Filled with the key origin information&period;
|===


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