getHealth RPCメソッド

ノードの現在の健全性を返します。健全なノードとは、クラスターの最新の確認済みslotから HEALTH_CHECK_SLOT_DISTANCE 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?