description |
---|
hmy_getValidatorInformation |
Get staking validator information.
String
- validator bech32 address.
current-epoch-signing-percent
current-epoch-signed
-Number
- epoch when last block was signed by validatorcurrent-epoch-to-sign
-Number
- current epochpercentage
-Float
- percentage of blocks signed
current-epoch-voting-power
-Array of
effective-stake
-Float
- effective validator stakeshard-id
-Number
- shard idvoting-power-adjusted
-Float
- voting power adjustedvoting-power-raw
-Float
- voting power
- validator
availability:
num-of-blocks-to-sign
-Number
- big.Int number of blocks validator should have signed in active modenum-blocks-signed
-Number
- big.Int number of blocks validator actually signed
address
-String
- ECSDA validator addressbls-public-keys
-[]String
- array of validator bls public keyslast-epoch-in-committee
-Number
- big.Int last epoch in committeemin-self-delegation
-Number
- big.Int min self delegationmax-total-delegation
-Number
- big.Int max total delegated to this validator
active
-Bool
- is valdiator currently activerate
-Float
- validator current commission ratemax-rate
-Float
- max validator commission ratemax-change-rate
-Float
- max validator commission rate changeupdate-height
-Number
- big.Int last commission update block heightname
-String
- validator nameidentity
-String
- validator text kyc identitywebsite
-String
- validator websitesecurity-contact
-String
- validator security contactdetails
-String
- additional infocreation-height
-Number
- big.Int block height when validator was createdbanned
-Bool
- is validator bannedDelegations:
- array of validator delegations, check out delegations format in hmy_getDelegationsBy...
Sample Curl Request
curl -d '{
"jsonrpc":"2.0",
"method":"hmy_getValidatorInformation",
"params":[
"one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h"
],
"id":1
}' -H 'Content-Type:application/json' -X POST 'http://api.s0.b.hmny.io'
Sample Curl Response
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"current-epoch-signing-percent": {
"current-epoch-signed": 0,
"current-epoch-to-sign": 5,
"percentage": "0.000000000000000000"
},
"current-epoch-voting-power": [
{
"effective-stake": "25415000000000000000.000000000000000000",
"shard-id": 2,
"voting-power-adjusted": "0.320000000000000000",
"voting-power-raw": "1.000000000000000000"
}
],
"validator": {
"active": false,
"address": "one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h",
"availability": {
"num-blocks-signed": 0,
"num-blocks-to-sign": 75
},
"banned": false,
"bls-public-keys": [
"67336532c04545afc5c1c979f58b5c301af406eaa0f4c900dcd3004189936c7213ee126d9591026f65248e5f25278f02"
],
"creation-height": 240,
"delegations": [
{
"amount": 3.46e+19,
"delegator-address": "one14438psd5vrjes7qm97jrj3t0s5l4qff5j5cn4h",
"reward": 0,
"undelegations": []
},
{
"amount": 1.5e+18,
"delegator-address": "one1nqevvacj3y5ltuef05my4scwy5wuqteur72jk5",
"reward": 0,
"undelegations": []
}
],
"details": "none",
"identity": "test_account2",
"last-epoch-in-committee": 4,
"max-change-rate": "0.052212761523253600",
"max-rate": "0.179184469782137200",
"max-total-delegation": 8e+19,
"min-self-delegation": 3.2e+18,
"name": "_Test_key_validator2",
"rate": "0.127983520183826780",
"security-contact": "Edgar-VDM",
"update-height": 240,
"website": "harmony.one"
}
}
}