curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "ping",
"params": "<any>",
"id": 1
}'
{
"result": "<any>",
"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": "<any>",
"id": 1
}'
{
"result": "<any>",
"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.Confirmation that the ping was sent to all connected peers.
The response is of type object
.
Was this page helpful?