Skip to main content

getnetworkinfo

Overview

The 'getnetworkinfo' method returns an object containing various state info regarding P2P networking.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KE' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getnetworkinfo","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

Response

{
"result": [
"n",
...
],
"error": null,
"id": 1
}