POST
/
788f110831fe13808302bd79796d55e8
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
}

The 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.

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 — 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.

Use case

The 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.

Body

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

Response

200 - application/json
Confirmation that the ping was sent to all connected peers.
result
any

The result is always null, indicating the ping was sent.

error
object
id
integer