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
}
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
}
getnetworkinfo
method provides comprehensive information about the node’s network connections, including the version, protocol, connected peers, and network capabilities.
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.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.Detailed information about the node's network connections.
The response is of type object
.
Was this page helpful?