# getHealth

Solana API method that returns the current health of the node.

If one or more --known-validator arguments are provided to solana-validator, ok is returned if the node is in sync with the validator. Otherwise, an error is returned.

ok is always returned if no known validators are provided.


  • none


  • response — if the node is healthy, ok. If the node is unhealthy, a JSON RPC error response is returned. The specifics of the error response are UNSTABLE and may change in the future.


  • Solana web3.js
  • Solana.py
  • cURL
// This method is not supported in Solana web3.js