Access the RPC port of the blockchain and record the information and transaction of the blockchain.
You can run it as a websocket server with the -r option.
Do not run both the websocket server mode and the normal mode at the same file. You may lose your wallet private key.
Keep the wallet.json file generated after creating the wallet safely.
Download and run the execute file.
$ wget http://developer.mirena.com/download/mirena_testnet_wallet.gz
$ gzip -d mirena_testnet_wallet.gz
$ chmod 777 cli_wallet
$ cli_wallet -s ws://[node ip]:[rpc port]
Logging RPC to file: logs/rpc/rpc.log
Starting a new wallet
Wallet is online mode
1384016ms th_a main.cpp:178 startOnlineWallet ] wdata.ws_server: ws://127.0.0.1:24530
1384017ms th_a main.cpp:183 startOnlineWallet ] wdata.ws_user: wdata.ws_password:
1384017ms th_a websocket_api.cpp:88 on_message ] message: {"id":1,"result":true}
1384017ms th_a websocket_api.cpp:88 on_message ] message: {"id":2,"result":0}
1384018ms th_a websocket_api.cpp:88 on_message ] message: {"id":3,"result":3}
Please use the set_password method to initialize a new wallet before continuing
new >>>
You can run it as a websocket server by adding the -r-d option.
$ ./cli_wallet -s ws://127.0.0.1:24530 -r 0.0.0.0:11222 -d
Logging RPC to file: logs/rpc/rpc.log
Starting a new wallet
Wallet is online mode
3298161ms th_a main.cpp:178 startOnlineWallet ] wdata.ws_server: ws://127.0.0.1:24530
3298162ms th_a main.cpp:183 startOnlineWallet ] wdata.ws_user: wdata.ws_password:
3298162ms th_a websocket_api.cpp:88 on_message ] message: {"id":1,"result":true}
3298163ms th_a websocket_api.cpp:88 on_message ] message: {"id":2,"result":0}
3298163ms th_a websocket_api.cpp:88 on_message ] message: {"id":3,"result":3}
Please use the set_password method to initialize a new wallet before continuing
3298163ms th_a main.cpp:226 startOnlineWallet ] Listening for incoming RPC requests on 0.0.0.0:11222
3298163ms th_a main.cpp:290 startOnlineWallet ] Entering Daemon Mode, ^C to exit
You must set a password when you first run cli_wallet.
> {"jsonrpc": "2.0", "method": "set_password", "params": ["my_password"], "id":1 }
< {"id":1,"result":null}
new >>> set_password my_password
set_password my_password
null
locked >>>
Please enter a nickname.
Your post has been completed.