hmy_inSync
Returns a boolean
, indicating whether the node is sync with the shard chain (true) or currently syncing to catch up to the shard chain max height (false)
hmy_beaconInSync
Returns a boolean
. It is the same as the previous one, but it checks the beacon chain (shard 0) currently on the node.
These RPCs will work for any of our endpoints & any nodes that have open RPC ports!
Example CURL commands:
$ curl --location --request POST 'https://api.s0.t.hmny.io' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "hmy_inSync",
"params": [],
"id": 1
}' | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
$ curl --location --request POST 'https://api.s0.t.hmny.io' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "hmy_beaconInSync",
"params": [],
"id": 1
}'| jq
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Other two api end points are: