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

Loads an unencrypted key from a database record into the wallet&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
LoadKey(
    xref:wallet/CWallet.adoc[CWallet]* pwallet,
    xref:DataStream.adoc[DataStream]& ssKey,
    xref:DataStream.adoc[DataStream]& ssValue,
    std::string& strErr);
----

== Return Value

true if the key was loaded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pwallet*
| The wallet to load the key into&period;
| *ssKey*
| Stream with the record key&period;
| *ssValue*
| Stream with the record value&period;
| *strErr*
| Receives an error description on failure&period;
|===


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