# network_get_info

network_get_info gets the local xwc_node runtime network information.

request

{
  "jsonrpc": "2.0", 
  "method": "network_get_info", 
  "params": [""], 
  "id": 1
}

response

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "listening_on": "0.0.0.0:47517",
        "node_public_key": "033ab7ab451706f97416a4d7b75fafa94016326b964e16d1bbf8ff661dbc8fc5fa",
        "node_id": "479ddbfcb1dfd0522b837d645f7eb65e2c70c553d3605fb52c1b15aade330b1168",
        "firewalled": "unknown",
        "connections": 0,
        "current_block_height": 65713,
        "target_block_height": 65713,
        "connection_count": 0
    }
}

返回值

  • listening_on: xwc_node listening port
  • node_public_key: xwc_node public
  • node_id: xwc_node unique id
  • firewalled: whether there is a firewall
  • connections: number of links
  • current_block_height: local block height
  • target_block_height: target block height
  • connection_count: number of links