Skip to main content
POST
/
9de47db917d4f69168e3fed02217d15b
getHealth
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getHealth",
  "params": []
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
The Solana getHealth method returns the current health status of the node. A healthy node is one that is within HEALTH_CHECK_SLOT_DISTANCE slots of the latest cluster confirmed slot. This method is useful for monitoring node availability and building health checks into your application infrastructure.
Get your 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

This method does not require any parameters.

Response

  • If the node is healthy: result is the string "ok".
  • If the node is unhealthy: the response contains an error object with a JSON-RPC error code and a message describing the health issue (e.g., behind by too many slots).

Use case

A common use case for getHealth is in infrastructure monitoring. You can periodically call getHealth from your load balancer or health check system to verify that your Solana node is synced and responsive before routing traffic to it. This is especially useful when running multiple RPC endpoints for failover.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:getHealth
params
array

Response

200 - application/json

Node health status

jsonrpc
string
id
integer
result
string

Returns 'ok' if the node is healthy

Last modified on April 16, 2026