Activates wallet protection.

Command syntax:

wallet activate 
-w <wallet_name> 
-password <password> 
[-ttl <password_ttl_in_minutes>]

Options:

-w - name of the wallet 
-password - wallet password
-ttl - time to live parameter which defines activation time in minutes (optional)

CLI Example

Command:

cellframe-node-cli wallet activate 
-w personalwallet 
-password 1234

Response:

Wallet personalwallet is activated

JSON-RPC Example

JSON-RPC Request - WALLET ACTIVATE

Activates wallet protection.

Request Structure

JSON object:

{
  "method": "wallet",
  "subcommand": ["activate"],
   "arguments": {
    "w": "wallet_name",
    "password": "password",
    "ttl": "time_to_live"
  },
  "id": "1"
}

Parameters:

w - name of the wallet password - wallet password ttl - time to live parameter which defines activation time in minutes optional

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
  "method": "wallet",
  "subcommand": ["activate"],
  "arguments": {
    "w": "testwallet",
    "password": "1234"
  },
  "id": "1"
}'

Response:

{
  "type": 2,
  "result": [
    [
      {
        "Wallet name": "testwallet",
        "protection": "is activated"
      }
    ]
  ],
  "id": 1
}
Link to original