Método RPC getHealth
Devuelve el estado de salud actual del nodo. Un nodo saludable es aquel que está
dentro de HEALTH_CHECK_SLOT_DISTANCE
slots del último slot confirmado del
clúster.
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getHealth"> }> '
params
Noneresult
Saludable
No saludable
Response
{"jsonrpc": "2.0","result": "ok","id": 1}
string
Si el nodo está saludable: "ok"
Is this page helpful?