طريقة RPC getHealth

تعرض الحالة الصحية الحالية للعقدة. العقدة الصحية هي التي تكون ضمن HEALTH_CHECK_SLOT_DISTANCE slots من آخر slot تم تأكيده في الشبكة.

$ 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

صحية
غير صحية
Response
{
"jsonrpc": "2.0",
"result": "ok",
"id": 1
}
string

إذا كانت العقدة صحية: "ok"

Is this page helpful?