curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "getpeerinfo",
"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": "getpeerinfo",
"params": "<any>",
"id": 1
}'
{
"result": [
{}
],
"error": {},
"id": 123
}
getpeerinfo
method provides detailed information about all peers currently connected to the node. This includes data such as their IP address, connection type, version, and more.
result
— an array of objects, each representing a connected peer and containing detailed information about that peer.error
— an object containing an error message if an error occurred, otherwise null
.id
— an integer representing the ID of the request.getpeerinfo
method is useful for network diagnostics and monitoring, allowing node operators to view detailed information about all peers connected to their node. This can help in assessing the health and diversity of the network connections.Information about each connected peer.
The response is of type object
.
Was this page helpful?