getHealth RPC-Methode

Gibt den aktuellen Zustand des Knotens zurück. Ein gesunder Knoten ist einer, der innerhalb von HEALTH_CHECK_SLOT_DISTANCE slots vom neuesten bestätigten Cluster-Slot entfernt ist.

$ 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

Gesund
Ungesund
Response
{
"jsonrpc": "2.0",
"result": "ok",
"id": 1
}
string

Wenn der Knoten gesund ist: "ok"

Is this page helpful?