you_validatorByMainAddress

描述:根据地址获取验证者

parameter

参数名 类型 描述
blockNumber string 区块高度或标识
mainAddress string mainPubKey 对应的共识地址

return

参数名 数据类型 备注
mainAddress string mainPubKey 对应的共识地址
name string 节点名称
operatorAddress string 节点管理员
coinbase string 节点收益钱包
token string 总抵押额
stake string 总抵押stake
selfToken string 自抵押额
selfStake string 自抵押stake
status number 状态
mainPubKey string 公钥
blsPubKey string BLS 公钥
role number 节点角色
rewardsDistributable string 当前可分配奖励
rewardsTotal string 节点加入后累计获得收益
rewardsLastSettled number 最后一次奖励分配到账的区块高度
expelled boolean 是否被罚下线
expelExpired number 被罚下线解锁的区块高度
lastInactive number 上一次怠工的区块高度
acceptDelegation number 是否接受委托 0 不接受,1 接受
commissionRate number 佣金率,万分数
riskObligation number 风险承担比例,万分数
delegations array 名下的委托信息列表
ext object 扩展信息,预留

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"you_validatorByMainAddress","params":["0x100", "0x8E036959E057F0df5FFa0211A2548194C6Cb08FF"]}'

Response:

{
    "jsonrpc":"2.0",
    "id":1,
    "result":{
        "mainAddress":"0x8E036959E057F0df5FFa0211A2548194C6Cb08FF",
        "name":"",
        "operatorAddress":"0x8E036959E057F0df5FFa0211A2548194C6Cb08FF",
        "coinbase":"0x8E036959E057F0df5FFa0211A2548194C6Cb08FF",
        "mainPubKey":"0x035464e3a63958f0dc9cd16443328f558500a56e0e1a2b7c37d9420d8babeb0f26",
        "blsPubKey":"0x9714e0e24b93941eca0e383bf3145a0f6bf6102ccb8b343361156743999f35f5f39c25e694a7556e8d2582bfd6e57a0e14cbe82a925c98b416616ea6305016c9f8aa7a1e735c045d3e14ab341bdb0225a9f8de938e85b9974922cc86263a93aa",
        "token":"81000000000000000000000",
        "stake":"81000",
        "selfToken":"81000000000000000000000",
        "selfStake":"81000",
        "status":1,
        "role":1,
        "rewardsDistributable":"0",
        "rewardsLastSettled":0,
        "rewardsTotal":"",
        "expelled":false,
        "expelExpired":0,
        "lastInactive":0,
        "acceptDelegation":0,
        "commissionRate":0,
        "riskObligation":0,
        "delegations":[

        ],
        "ext":{
            "Version":0,
            "Data":"0x"
        }
    }
}