Skip to Content
API超级代表获取超级代表列表

获取超级代表列表

1. 概述与典型用途

返回超级代表、合伙人及候选人的列表,包括投票数、出块信息、佣金比例等详细数据。

  • 典型用途:超级代表排行榜展示、投票参考、出块效率分析。
  • 何时不要用:查询单个超级代表的实时投票详情用「获取超级代表当前投票信息」;查询账户投票情况用「获取账户投票列表」。

2. 接口与鉴权

GET /api/pagewitness

Base URL 与鉴权见 公共网络与鉴权说明

3. 请求

参数类型必填默认说明
witnesstypeinteger0返回类型:0 所有,1 超级代表(前 27 名),2 合伙人(28–127 名),3 候选人
startinteger0起始编号
limitinteger500每页数量
sortinteger0排序方向:0 升序,1 降序
sortFieldstring排序字段:voteslatestBlockproducedTotalmissedTotalproducePercentageannualizedRatebrokeragevoterBrokerage

4. 响应

顶层

字段类型是否必返说明单位/精度
totalinteger必返超级代表总数
dataarray必返超级代表记录数组,见下
lastBlockobject必返最新区块信息,见下

lastBlock 对象

字段类型是否必返说明单位/精度
hashstring必返区块哈希
confirmedboolean必返是否已确认
numberinteger必返区块高度
sizeinteger必返区块大小字节
timestampinteger必返区块时间戳毫秒 ms
parentHashstring必返父区块哈希
witnessAddressstring必返出块超级代表地址
nrOfTrxinteger必返区块包含交易数
txTrieRootstring必返交易 Trie 根哈希
witnessIdinteger必返出块超级代表 ID(非 SR 时为 0

data[] 元素

字段类型是否必返说明单位/精度
addressstring必返超级代表地址
namestring必返名称
urlstring必返官网 URL
producerboolean必返是否为活跃出块节点
votesinteger必返当前周期投票数
lastCycleVotesinteger必返上一周期投票数
realTimeVotesinteger必返实时投票数
changeVotesinteger必返投票变化量
votesPercentagenumber必返投票占比百分比 %
brokeragenumber必返超级代表佣金比例百分比 %
voterBrokeragenumber必返投票者分红比例百分比 %
annualizedRatestring必返年化收益率百分比 %
latestBlockNumberinteger必返最近出块高度
latestSlotNumberinteger可选最新时隙号
producedTotalinteger必返累计出块数
producedTrxinteger可选累计产生的 TRX 数量
missedTotalinteger必返累计漏块数
producePercentagenumber必返出块效率百分比 %
versioninteger必返节点版本号
witnessTypeinteger必返节点类型:1 超级代表,2 合伙人,3 候选人
rankinginteger必返当前排名
logoUrlstring可选Logo URL
indexinteger必返当前页内序号(从 1 起)
totalOutOfTimeTransinteger必返累计超时交易数
lastWeekOutOfTimeTransinteger必返上周超时交易数
changedBrokerageboolean必返是否曾修改过佣金
lowestBrokerageinteger必返历史最低投票者分红比例百分比 %

5. 错误

HTTP 状态码见 公共错误说明。本接口要点:

  • 空结果 ≠ 错误:无匹配记录时返回 200 + data: [],属于正常响应。
最后更新于: