[#wallet-DescriptorScriptPubKeyMan-CreateFromMigration] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::CreateFromMigration :relfileprefix: ../../ :mrdocs: Creates a DescriptorScriptPubKeyMan while migrating a legacy wallet. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::unique_ptr<DescriptorScriptPubKeyMan> CreateFromMigration( xref:wallet/WalletStorage.adoc[WalletStorage]& storage, xref:wallet/WalletBatch.adoc[WalletBatch]& batch, xref:wallet/WalletDescriptor.adoc[WalletDescriptor]& descriptor, int64_t keypool_size, xref:FlatSigningProvider.adoc[FlatSigningProvider] const& provider); ---- == 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. | *descriptor* | The wallet descriptor produced by the migration. | *keypool_size* | The number of keys/scripts to keep pre‐generated. | *provider* | The signing provider supplying keys for the descriptor. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#