[#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 `<wallet/scriptpubkeyman.h>` [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. == Parameters [cols="1,4"] |=== | Name| Description | *key* | The private key to add. | *pubkey* | The public key corresponding to the private key. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#