getHealth
Solana node API
getHealth | Solana
The Solana getHealth method returns the current health status of the node. Chainstack supports getHealth on Solana JSON-RPC nodes.
POST
getHealth
The SolanaDocumentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
resultis the string"ok". - If the node is unhealthy: the response contains an
errorobject 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 forgetHealth 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.Last modified on May 18, 2026