hmy_getValidators

Description

hmy_getValidators returns list of validators for a particular epoch in corresponding shard

API v1

Parameters

  1. uint64 - epoch number

Returns

  • shardID - Uint32 - shard id

  • validators - Array : list of validators in below format

    • address - String : one address

    • balance - 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

  1. uint64 - epoch number

Returns

  • shardID - Uint32 - shard id

  • validators - Array : list of validators in below format

    • address - String : one address

    • balance - Number : validator current balance (will be replaced with stake soon)

Sample Curl Request

Sample Curl Response

Last updated

Was this helpful?