getHealth RPC Method

Returns whether this RPC node is healthy. Agave reports healthy when the node is within the configured slot distance of the cluster tip.

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getHealth"
> }
> '

params

None

result

Healthy
Unhealthy
Response
{
"jsonrpc": "2.0",
"result": "ok",
"id": 1
}
string

Returns "ok" when the node is healthy.

Is this page helpful?

द्वारा प्रबंधित

© 2026 सोलाना फाउंडेशन। सर्वाधिकार सुरक्षित।
जुड़े रहें