unloadwallet

unloadwallet ( "wallet_name" load_on_startup )

Unloads the wallet referenced by the request endpoint, or unloads the wallet specified in the argument.

Specifying the wallet name directly in the wallet endpoint is invalid.

Argument #1 – wallet_name

Type: string, optional, default=the wallet name from the RPC endpoint

The name of the wallet to unload. Must be provided either in the RPC endpoint or in this parameter, but not both.

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.
  • Set to false to remove it.
  • Set to null to leave unchanged.

Result

{                       (json object)
  "warning" : "str"     (string) Warning message if wallet was not unloaded cleanly.
}

Examples

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