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

Loads a DescriptorScriptPubKeyMan from stored wallet data&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::unique&lowbar;ptr&lt;DescriptorScriptPubKeyMan&gt;
LoadFromStorage(
    xref:wallet/WalletStorage.adoc[WalletStorage]& storage,
    xref:wallet/WalletDescriptor.adoc[WalletDescriptor]& descriptor,
    int64&lowbar;t keypool&lowbar;size,
    xref:wallet/KeyMap.adoc[KeyMap] const& keys,
    xref:wallet/CryptedKeyMap.adoc[CryptedKeyMap] const& ckeys);
----

== Return Value

The loaded DescriptorScriptPubKeyMan&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *storage*
| The wallet storage this spkm is bound to&period;
| *descriptor*
| The wallet descriptor backing this spkm&period;
| *keypool&lowbar;size*
| The number of keys&sol;scripts to keep pre&hyphen;generated&period;
| *keys*
| The unencrypted private keys to load&period;
| *ckeys*
| The encrypted private keys to load&period;
|===


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