[#wallet-CWallet-SetupDescriptorScriptPubKeyMans-0e]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SetupDescriptorScriptPubKeyMans
:relfileprefix: ../../
:mrdocs:

Create new DescriptorScriptPubKeyMans and add them to the wallet

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde06ed8), requires&lowbar;capability(0x7f95061a9c18), requires&lowbar;capability(0x7f94f2b7a728), requires&lowbar;capability(0x7f94f0cf93b8), requires&lowbar;capability(0x7f94fee3bda8)&rsqb;&rsqb;
void
SetupDescriptorScriptPubKeyMans(
    xref:wallet/WalletBatch.adoc[WalletBatch]& batch,
    xref:CExtKey.adoc[CExtKey] const& master&lowbar;key);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *batch*
| The database batch to write through&period;
| *master&lowbar;key*
| The master key to derive the descriptors from&period;
|===


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