loadwallet

loadwallet "filename" ( load_on_startup )

Loads a wallet from a specified wallet file or directory.

Note that all wallet-related command-line options used when starting BitcoinEvo (e.g., -rescan) will be applied to the newly loaded wallet.

Argument #1 – filename

Type: string, required

The wallet directory or .dat file to load.

Argument #2 – load_on_startup

Type: boolean, optional, default=null

Specifies whether to save the wallet name to persistent settings and load it on startup. Set to true to add the wallet to the startup list, false to remove it, or null to leave unchanged.

Result

{                       (json object)
  "name" : "str",       (string) The wallet name if loaded successfully.
  "warning" : "str"     (string) Warning message if wallet was not loaded cleanly.
}

Examples

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