[#wallet-DescriptorScriptPubKeyMan-GenerateNewSingleSig] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::GenerateNewSingleSig :relfileprefix: ../../ :mrdocs: Generates a new single‐signature DescriptorScriptPubKeyMan from a master key. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::unique_ptr<DescriptorScriptPubKeyMan> GenerateNewSingleSig( xref:wallet/WalletStorage.adoc[WalletStorage]& storage, xref:wallet/WalletBatch.adoc[WalletBatch]& batch, int64_t keypool_size, xref:CExtKey.adoc[CExtKey] const& master_key, xref:OutputType.adoc[OutputType] addr_type, bool internal); ---- == Return Value The new DescriptorScriptPubKeyMan. == Parameters [cols="1,4"] |=== | Name| Description | *storage* | The wallet storage this spkm is bound to. | *batch* | The database batch to write the new spkm through. | *keypool_size* | The number of keys/scripts to keep pre‐generated. | *master_key* | The master key to derive the descriptor from. | *addr_type* | The output type of the addresses to generate. | *internal* | Whether the descriptor is for the internal (change) chain. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#