bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/restorewallet
Wallet

restorewallet

Restore and loads a wallet from backup.

Parameters

wallet_namestringREQUIRED
The name to give the restored wallet
backup_filestringREQUIRED
The backup file path
load_on_startupbooleanoptional
Save name to config for auto-load

Returns

objectObject with name and warning

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"restorewallet","params":["restored","/tmp/backup.dat"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "name": "restored",
  "warning": ""
}
← Previous
rescanblockchain
Next →
send

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗