getHealth RPC Method
Returns the current health of the node. A healthy node is one that is within
HEALTH_CHECK_SLOT_DISTANCE
slots of the latest cluster confirmed slot.
params
Noneresult
Healthy
Unhealthy
string
If the node is healthy: "ok"
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getHealth"> }> '
Response
{"jsonrpc": "2.0","result": "ok","id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getHealth"> }> '
params
Noneresult
Healthy
Unhealthy
Response
{"jsonrpc": "2.0","result": "ok","id": 1}
string
If the node is healthy: "ok"
Is this page helpful?