upgradewallet

upgradewallet ( version )

Upgrades the wallet to the latest version, unless a specific version number is provided.

During the upgrade, new keys may be generated, so a new wallet backup will be required.

Argument #1 – version

Type: numeric, optional, default=169900

The version number to upgrade to. The default is the latest wallet version.

Result

{                            (json object)
  "wallet_name" : "str",     (string) Name of wallet this operation was performed on
  "previous_version" : n,    (numeric) Version of wallet before this operation
  "current_version" : n,     (numeric) Version of wallet after this operation
  "result" : "str",          (string, optional) Description of result, if no error
  "error" : "str"            (string, optional) Error message (if there is one)
}

Examples

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