[#wallet-LegacyDataSPKM-MigrateToDescriptor] = xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::MigrateToDescriptor :relfileprefix: ../../ :mrdocs: Get the DescriptorScriptPubKeyMans (with private keys) that have the same scriptPubKeys as this LegacyDataSPKM. Does not modify this LegacyDataSPKM. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<MigrationData> MigrateToDescriptor(); ---- == Return Value The migration data, or nullopt if migration is not possible. [.small]#Created with https://www.mrdocs.com[MrDocs]#