POST
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "getnetworkinfo",
  "params": "<any>",
  "id": 1
}'
{
  "result": {},
  "error": {},
  "id": 123
}

The getnetworkinfo method provides comprehensive information about the node’s network connections, including the version, protocol, connected peers, and network capabilities.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • None

Response

  • result — an object containing detailed information about the node’s network connections, such as the network version, protocol version, number of connections, and available network services.
  • error — an object containing an error message if an error occurred, otherwise null.
  • id — an integer representing the ID of the request.

Use case

The getnetworkinfo method is essential for diagnosing network issues, understanding the node’s connectivity within the network, and assessing the node’s capabilities. It’s particularly useful for node operators and developers looking to monitor network health and performance.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:getnetworkinfo
params
any
id
integer
default:1

Response

200 - application/json
Detailed information about the node's network connections.
result
object

Contains detailed information about the network connections.

error
object
id
integer