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

Instantiate a descriptor ScriptPubKeyMan from the WalletDescriptor and load it

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
LoadDescriptorScriptPubKeyMan(
    xref:uint256.adoc[uint256] id,
    xref:wallet/WalletDescriptor.adoc[WalletDescriptor]& desc,
    xref:wallet/KeyMap.adoc[KeyMap] const& keys,
    xref:wallet/CryptedKeyMap.adoc[CryptedKeyMap] const& ckeys);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| The unique id for the ScriptPubKeyMan&period;
| *desc*
| The wallet descriptor to instantiate&period;
| *keys*
| The plaintext keys belonging to the descriptor&period;
| *ckeys*
| The encrypted keys belonging to the descriptor&period;
|===


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