Converts wallet without password into wallet with password

CLI Example

Command syntax:

wallet convert 
-w <wallet_name> 
-password <password>

Options:

-w - name of the wallet 
-password - wallet password

Example:

Command:

cellframe-node-cli wallet convert 
-w walletone 
-password 1111

Response:

Wallet: walletone successfully converted

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"wallet", "params":["wallet;convert;-w;wallettwo;-password;2222"], "id":"1"}'

Response:


"type": 0,
"result": "Wallet: wallettwo successfully converted\n",
"errors": null,
"id": 1
}