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

Adds a key to the store, without saving it to disk (used by LoadWallet)

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
LoadKey(
    xref:CKey.adoc[CKey] const& key,
    xref:CPubKey.adoc[CPubKey] const& pubkey);
----

== Return Value

true if the key was added&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| The private key to add&period;
| *pubkey*
| The public key corresponding to the private key&period;
|===


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