hmy_getValidatorInformation
hmy_getValidatorInformation
Get staking validator information.

Parameters

  1. 1.
    String - validator bech32 address.

Returns

  • 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_getValidatorInformation",
4
"params":[
5
"one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h"
6
],
7
"id":1
8
}' -H 'Content-Type:application/json' -X POST 'http://api.s0.b.hmny.io'
Copied!
Sample Curl Response
1
{
2
"id": "0",
3
"jsonrpc": "2.0",
4
"result": {
5
"current-epoch-signing-percent": {
6
"current-epoch-signed": 0,
7
"current-epoch-to-sign": 5,
8
"percentage": "0.000000000000000000"
9
},
10
"current-epoch-voting-power": [
11
{
12
"effective-stake": "25415000000000000000.000000000000000000",
13
"shard-id": 2,
14
"voting-power-adjusted": "0.320000000000000000",
15
"voting-power-raw": "1.000000000000000000"
16
}
17
],
18
"validator": {
19
"active": false,
20
"address": "one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h",
21
"availability": {
22
"num-blocks-signed": 0,
23
"num-blocks-to-sign": 75
24
},
25
"banned": false,
26
"bls-public-keys": [
27
"67336532c04545afc5c1c979f58b5c301af406eaa0f4c900dcd3004189936c7213ee126d9591026f65248e5f25278f02"
28
],
29
"creation-height": 240,
30
"delegations": [
31
{
32
"amount": 3.46e+19,
33
"delegator-address": "one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h",
34
"reward": 0,
35
"undelegations": []
36
},
37
{
38
"amount": 1.5e+18,
39
"delegator-address": "one1nqevvacj3y5ltuef05my4scwy5wuqteur72jk5",
40
"reward": 0,
41
"undelegations": []
42
}
43
],
44
"details": "none",
45
"identity": "test_account2",
46
"last-epoch-in-committee": 4,
47
"max-change-rate": "0.052212761523253600",
48
"max-rate": "0.179184469782137200",
49
"max-total-delegation": 8e+19,
50
"min-self-delegation": 3.2e+18,
51
"name": "_Test_key_validator2",
52
"rate": "0.127983520183826780",
53
"security-contact": "Edgar-VDM",
54
"update-height": 240,
55
"website": "harmony.one"
56
}
57
}
58
}
Copied!
Export as PDF
Copy link