hmy_getValidators
Description
hmy_getValidators returns list of validators for a particular epoch in corresponding shard
API v1
Parameters
uint64- epoch number
Returns
shardID-Uint32- shard idvalidators-Array: list of validators in below formataddress-String: one addressbalance-String: validator current balance (will be replaced with stake soon) 0x format
Sample Curl Request
curl -d '{
"jsonrpc":"2.0",
"method":"hmy_getValidators",
"params":[0],
"id":1
}' -H "Content-Type: application/json" -X POST "https://api.s0.b.hmny.io"Sample Curl Response
API v2
Parameters
uint64- epoch number
Returns
shardID-Uint32- shard idvalidators-Array: list of validators in below formataddress-String: one addressbalance-Number: validator current balance (will be replaced with stake soon)
Sample Curl Request
Sample Curl Response
Last updated
Was this helpful?