hmy_getAllValidatorInformation
hmy_getAllValidatorInformation
Get staking validator information for all validators.

Returns

Array of:
  • current-epoch-signing-percent
    • current-epoch-signed - Number - epoch when last block was signed by validator
    • current-epoch-to-sign - Number - current epoch
    • percentage - Float - percentage of blocks signed
  • current-epoch-voting-power - Array of
    • effective-stake - Float - effective validator stake
    • shard-id - Number - shard id
    • voting-power-adjusted - Float - voting power adjusted
    • voting-power-raw - Float - voting power
  • validator
    • availability:
      • num-of-blocks-to-sign - Number - big.Int number of blocks validator should have signed in active mode
      • num-blocks-signed - Number - big.Int number of blocks validator actually signed
    • address - String - ECSDA validator address
    • bls-public-keys - []String - array of validator bls public keys
    • last-epoch-in-committee - Number - big.Int last epoch in committee
    • min-self-delegation - Number - big.Int min self delegation
      • max-total-delegation - Number - big.Int max total delegated to this validator
    • active - Bool - is valdiator currently active
    • rate - Float - validator current commission rate
    • max-rate - Float - max validator commission rate
    • max-change-rate - Float - max validator commission rate change
    • update-height - Number - big.Int last commission update block height
    • name - String - validator name
    • identity - String - validator text kyc identity
    • website - String - validator website
    • security-contact - String - validator security contact
    • details - String - additional info
    • creation-height - Number - big.Int block height when validator was created
    • banned - Bool - is validator banned
    • Delegations:
      • array of validator delegations, check out delegations format in hmy_getDelegationsBy...
Sample Curl Request
1
curl -d '{
2
"jsonrpc":"2.0",
3
"method":"hmy_getAllValidatorInformation",
4
"params":[],
5
"id":1
6
}' -H 'Content-Type:application/json' -X POST 'http://api.s0.b.hmny.io'
Copied!
Sample Curl Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"id": "0",
7
"jsonrpc": "2.0",
8
"result": {
9
"current-epoch-signing-percent": {
10
"current-epoch-signed": 0,
11
"current-epoch-to-sign": 5,
12
"percentage": "0.000000000000000000"
13
},
14
"current-epoch-voting-power": [
15
{
16
"effective-stake": "25415000000000000000.000000000000000000",
17
"shard-id": 2,
18
"voting-power-adjusted": "0.320000000000000000",
19
"voting-power-raw": "1.000000000000000000"
20
}
21
],
22
"validator": {
23
"active": false,
24
"address": "one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h",
25
"availability": {
26
"num-blocks-signed": 0,
27
"num-blocks-to-sign": 75
28
},
29
"banned": false,
30
"bls-public-keys": [
31
"67336532c04545afc5c1c979f58b5c301af406eaa0f4c900dcd3004189936c7213ee126d9591026f65248e5f25278f02"
32
],
33
"creation-height": 240,
34
"delegations": [
35
{
36
"amount": 3.46e+19,
37
"delegator-address": "one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h",
38
"reward": 0,
39
"undelegations": []
40
},
41
{
42
"amount": 1.5e+18,
43
"delegator-address": "one1nqevvacj3y5ltuef05my4scwy5wuqteur72jk5",
44
"reward": 0,
45
"undelegations": []
46
}
47
],
48
"details": "none",
49
"identity": "test_account2",
50
"last-epoch-in-committee": 4,
51
"max-change-rate": "0.052212761523253600",
52
"max-rate": "0.179184469782137200",
53
"max-total-delegation": 8e+19,
54
"min-self-delegation": 3.2e+18,
55
"name": "_Test_key_validator2",
56
"rate": "0.127983520183826780",
57
"security-contact": "Edgar-VDM",
58
"update-height": 240,
59
"website": "harmony.one"
60
}
61
}
62
}
63
]
64
}
Copied!
Last modified 1yr ago
Export as PDF
Copy link
Contents
Returns