restorewallet
Wallet
Summary
Restores and loads a wallet from backup.
Description
Restores and loads a wallet from backup.
The rescan is significantly faster if block filters are available (using startup option "-blockfilterindex=1").
Arguments
wallet_name(STR, required): The name that will be applied to the restored walletbackup_file(STR, required): The backup file that will be used to restore the wallet.load_on_startup(BOOL): Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged.
Results
value(OBJ): No description.name(STR): The wallet name if restored successfully.warnings(ARR, optional): Warning messages, if any, related to restoring and loading the wallet.value(STR): No description.
Examples
qbit-cli restorewallet "testwallet" "home\backups\backup-file.bak"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "restorewallet", "params": ["testwallet" "home\backups\backup-file.bak"]}' -H 'content-type: application/json' http://127.0.0.1:8352/
qbit-cli -named restorewallet wallet_name=testwallet backup_file='home\backups\backup-file.bak"' load_on_startup=true
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "restorewallet", "params": {"wallet_name":"testwallet","backup_file":"home\\backups\\backup-file.bak\"","load_on_startup":true}}' -H 'content-type: application/json' http://127.0.0.1:8352/