Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 957 Bytes

hmy_getvalidatormetrics.md

File metadata and controls

43 lines (34 loc) · 957 Bytes
description
hmy_getValidatorMetrics

hmy_getValidatorMetrics

Parameters

  1. String - validator bech32 address.

Returns

  • NumJailed - Number - big.Int number of times validator was banned due to downtime
  • TotalEffectiveStake - Float - total validator effective stake from delegations
  • VotingPowerPerShard - []VotePerShard:
    • shard-id - Number - shard id
    • voting-power - Float - valdator voting power for this shard
  • BLSKeyPerShard - []KeyPerShard:
    • shard-id - Number - shard id
    • keys - []String - validator bls keys for this shard

Sample Curl Request

curl -d '{
    "jsonrpc":"2.0",
    "method":"hmy_getValidatorMetrics",
    "params":[
      "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7"
    ],
    "id":1
}' -H 'Content-Type:application/json' -X POST 'https://api.s0.b.hmny.io'

Sample Curl Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
}