restorewallet
The rescan is significantly faster if a descriptor wallet is restored and block filters are available (using startup option "-blockfilterindex=1").
Argument #1-wallet_name
Type: string, Required
Description: The name that will be applied to the restored wallet
Argument #2-backup_file
Type: string, Required
Description: The backup file that will be used to restore the wallet.
Argument #3-load_on_startup
Type: boolean, Optional
Description: Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged.
Result
{ (json object)
"name" : "str", (string) The wallet name if restored successfully.
"warnings" : [ (json array, optional) Warning messages, if any, related to restoring and loading the wallet.
"str", (string)
...
]
}