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 todayStart 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, otherwisenull
.id
— an integer representing the ID of the request.
Use case
Theping
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
Response
200 - application/json
Confirmation that the ping was sent to all connected peers.
The response is of type object
.