Skip to content

loadwallet JSON-RPC command

loadwallet "filename"

Loads a wallet from a wallet file or directory.
Note that all wallet command-line options used when starting bitcoind will be
applied to the new wallet (eg -zapwallettxes, upgradewallet, rescan, etc).


1. "filename"    (string, required) The wallet directory or .dat file.


  "name" :    <wallet_name>,        (string) The wallet name if loaded successfully.
  "warning" : <warning>,            (string) Warning message if wallet was not loaded cleanly.


> bitcoin-cli loadwallet "test.dat"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "loadwallet", "params": ["test.dat"] }' -H 'content-type: text/plain;'

Bitcoin Cash Node Daemon version v27.0.1-7ef8bf2

Documentation on reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.