[#wallet-CWallet-ApplyMigrationData] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::ApplyMigrationData :relfileprefix: ../../ :mrdocs: Adds the ScriptPubKeyMans from MigrationData to this wallet, removes the LegacyDataSPKM, and moves transaction and address book entries to watchonly_wallet or solvable_wallet as needed. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1e59a968), requires_capability(0x7f2e11aab728), requires_capability(0x7f2e16a01518), requires_capability(0x7f2e15f309b8), requires_capability(0x7f2e12c6f648)]] xref:util/Result.adoc[util::Result<void>] ApplyMigrationData( xref:wallet/WalletBatch.adoc[WalletBatch]& local_wallet_batch, xref:wallet/MigrationData.adoc[MigrationData]& data); ---- == Return Value Success, or an error if the migration data could not be applied. == Parameters [cols="1,4"] |=== | Name| Description | *local_wallet_batch* | The database batch of this wallet to write through. | *data* | The migration data to apply. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#