you_validatorsStat

描述:获取验证者统计信息

parameter

参数名 类型 描述
blockNumber string 区块高度或 "latest", "earliest", "pending"

return

参数名 数据类型 备注
onlineToken string 在线抵押额
onlineStake string 在线抵押 stake
onlineCount number 验证者在线数量
offlineStake string 离线抵押stake
offlineToken string 离线抵押额
offlineCount number 离线验证者数量
rewardsResidue string 此字段对于按角色分组的统计信息而言,已无实际意义。
rewardsDistributable string 角色奖励池,当前尚未分配到validator的奖励

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":5,"method":"you_validatorsStat","params":["latest"]}'

Response:

{
    "jsonrpc":"2.0",
    "id":5,
    "result":{
        "1":{
            "onlineStake":"968000",
            "onlineToken":"968000000000000000000000",
            "onlineCount":2,
            "offlineStake":"0",
            "offlineToken":"0",
            "offlineCount":0,
            "rewardsResidue":"0",
            "rewardsDistributable":"0"
        },
        "2":{
            "onlineStake":"987000",
            "onlineToken":"987000000000000000000000",
            "onlineCount":3,
            "offlineStake":"0",
            "offlineToken":"0",
            "offlineCount":0,
            "rewardsResidue":"0",
            "rewardsDistributable":"0"
        },
        "3":{
            "onlineStake":"2189000",
            "onlineToken":"2189000000000000000000000",
            "onlineCount":6,
            "offlineStake":"0",
            "offlineToken":"0",
            "offlineCount":0,
            "rewardsResidue":"0",
            "rewardsDistributable":"0"
        }
    }
}