> ## Documentation 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 | Solana

> The Solana getHealth method returns the current health status of the node. Chainstack supports getHealth on Solana JSON-RPC nodes.

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.

## 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](/docs/solana-how-to-use-multiple-rpc-endpoints-optimize-dapp-performance) for failover.


## OpenAPI

````yaml openapi/solana_node_api/getHealth.json POST /9de47db917d4f69168e3fed02217d15b
openapi: 3.0.0
info:
  title: getHealth example
  version: 1.0.0
  description: This is an API example for Solana's getHealth.
servers:
  - url: https://nd-326-444-187.p2pify.com
security: []
paths:
  /9de47db917d4f69168e3fed02217d15b:
    post:
      tags:
        - query
      summary: getHealth
      operationId: getHealth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: getHealth
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: Node health status
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: Returns 'ok' if the node is healthy

````