curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "1.0",
"method": "ping",
"params": "<unknown>",
"id": 1
}
'{
"result": "<unknown>",
"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": "ping",
"params": "<unknown>",
"id": 1
}
'{
"result": "<unknown>",
"error": {},
"id": 123
}ping method is used to send a ping to all connected peers to ensure they are active. This is a simple network management command that can help diagnose connectivity issues.
result — always returns null, indicating that the ping command was executed and the pings were sent.error — an object containing an error message if an error occurred, otherwise null.id — an integer representing the ID of the request.ping method is useful for node operators to check the activity and responsiveness of connected peers. It can help in identifying inactive or unresponsive peers.Was this page helpful?