[#wallet-CWallet-SetupDescriptorScriptPubKeyMan] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SetupDescriptorScriptPubKeyMan :relfileprefix: ../../ :mrdocs: Create new DescriptorScriptPubKeyMan and add it to the wallet == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1e59a368), requires_capability(0x7f2e11aab128), requires_capability(0x7f2e16a00f18), requires_capability(0x7f2e15f303b8), requires_capability(0x7f2e12c6f048)]] xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]& SetupDescriptorScriptPubKeyMan( xref:wallet/WalletBatch.adoc[WalletBatch]& batch, xref:CExtKey.adoc[CExtKey] const& master_key, xref:OutputType.adoc[OutputType] const& output_type, bool internal); ---- == Return Value The newly created descriptor ScriptPubKeyMan. == Parameters [cols="1,4"] |=== | Name| Description | *batch* | The database batch to write through. | *master_key* | The master key to derive the descriptor from. | *output_type* | The output type the descriptor produces. | *internal* | Whether this manages internal (change) addresses. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#