Displays the current status, current fee or net ID
CLI Example
Command syntax:
net get {status | fee | id}
-net <chain_net_name>
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-{status|fee|id} - get status\ get fee\ get ID
Example:
Command:
cellframe-node-cli net get status
-net foobar
Response:
status:
net: foobar
current_addr: ABCD::0000::0000::0000
links:
active: 1
total: 1
sync_status:
sync_datums: 20
total_datums: 20
percent: 100.000
states:
current: NET_STATE_ONLINE
target: NET_STATE_ONLINE
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"net", "params":["net;get;status;-net;foobar"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"status": {
"net": "foobar",
"current_addr": "ABCD::0000::0000::0000",
"links": {
"active": 1,
"total": 1
},
"sync_status": {
"sync_datums": 20,
"total_datums": 20,
"percent": "100.000"
},
"states": {
"current": "NET_STATE_ONLINE",
"target": "NET_STATE_ONLINE"
}
}
}
],
"errors": null,
"id": 1
}