A web based interface to the Bitcoin API JSON-RPC

Command: getnetworkinfo

The getnetworkinfo RPC returns information about the node’s connection to the network.

Parameters: none
Result—information about the node’s connection to the network

{
	"result": {
		"version": 140100,
		"subversion": "/Satoshi:0.14.1(NYA)/",
		"protocolversion": 70015,
		"localservices": "000000000000000d",
		"localrelay": true,
		"timeoffset": 0,
		"networkactive": true,
		"connections": 24,
		"networks": [
			{
				"name": "ipv4",
				"limited": false,
				"reachable": true,
				"proxy": "",
				"proxy_randomize_credentials": false
			},
			{
				"name": "ipv6",
				"limited": false,
				"reachable": true,
				"proxy": "",
				"proxy_randomize_credentials": false
			},
			{
				"name": "onion",
				"limited": true,
				"reachable": false,
				"proxy": "",
				"proxy_randomize_credentials": false
			}
		],
		"relayfee": 0.00001000,
		"incrementalfee": 0.00001000,
		"localaddresses": [
			{
				"address": "159.203.103.178",
				"port": 8333,
				"score": 3311
			}
		],
		"warnings": ""
	},
	"error": null,
	"id": null
}
getnetworkinfo
Returns an object containing various state info regarding P2P networking.

Result:
{
  "version": xxxxx,                      (numeric) the server version
  "subversion": "/Satoshi:x.x.x/",     (string) the server subversion string
  "protocolversion": xxxxx,              (numeric) the protocol version
  "localservices": "xxxxxxxxxxxxxxxx", (string) the services we offer to the network
  "localrelay": true|false,              (bool) true if transaction relay is requested from peers
  "timeoffset": xxxxx,                   (numeric) the time offset
  "connections": xxxxx,                  (numeric) the number of connections
  "networkactive": true|false,           (bool) whether p2p networking is enabled
  "networks": [                          (array) information per network
  {
    "name": "xxx",                     (string) network (ipv4, ipv6 or onion)
    "limited": true|false,               (boolean) is the network limited using -onlynet?
    "reachable": true|false,             (boolean) is the network reachable?
    "proxy": "host:port"               (string) the proxy that is used for this network, or empty if none
    "proxy_randomize_credentials": true|false,  (string) Whether randomized credentials are used
  }
  ,...
  ],
  "relayfee": x.xxxxxxxx,                (numeric) minimum relay fee for non-free transactions in BTC/kB
  "incrementalfee": x.xxxxxxxx,          (numeric) minimum fee increment for mempool limiting or BIP 125 replacement in BTC/kB
  "localaddresses": [                    (array) list of local addresses
  {
    "address": "xxxx",                 (string) network address
    "port": xxx,                         (numeric) network port
    "score": xxx                         (numeric) relative score
  }
  ,...
  ]
  "warnings": "..."                    (string) any network warnings
}

Examples:
> bitcoin-cli getnetworkinfo 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/