Método RPC getHealth

Retorna o estado de saúde atual do nó. Um nó saudável é aquele que está dentro de HEALTH_CHECK_SLOT_DISTANCE slots do último slot confirmado pelo cluster.

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getHealth"
> }
> '

params

None

result

Saudável
Não saudável
Response
{
"jsonrpc": "2.0",
"result": "ok",
"id": 1
}
string

Se o nó estiver saudável: "ok"

Is this page helpful?