Skip to Content
API超级代表获取超级代表当前投票信息

获取超级代表当前投票信息

1. 概述与典型用途

返回指定超级代表的当前投票详情,包括实时排名、投票数变化、佣金比例、年化收益率及投票趋势图数据。不传 address 参数时返回全局投票概览。

  • 典型用途:超级代表详情页、投票趋势图、佣金历史查询。
  • 何时不要用:查询账户的投票分布用「获取账户投票列表」;查询所有超级代表列表用「获取超级代表列表」。
  • 不传 address 时返回全局概览,非错误;无效地址返回 data: null

2. 接口与鉴权

GET /api/vote/witness

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

3. 请求

参数类型必填默认说明
addressstring超级代表地址;不传时返回全局投票概览

4. 响应

顶层

字段类型是否必返说明单位/精度
statusstring必返请求状态码字符串,正常为 "1"
codeinteger必返HTTP 状态码,正常为 200
messagestring必返请求结果描述,正常为 "request ok"
successstring必返请求是否成功,值为 "true"
dataobject | array可选超级代表详情;传 address 时为单一对象;不传 address 时为数组(投票记录列表),见下
totalWitnessinteger必返超级代表总数
totalinteger可选超级代表总数(不传 address 时)
totalVotesinteger可选全网总投票数(不传 address 时)
fastestRiseobject可选投票数增长最快的超级代表(不传 address 时)
maxVotesRiseobject可选票数增幅最大的超级代表(不传 address 时)
changedBrokerageboolean必返是否修改过佣金
lowestBrokerageinteger必返最低投票者分红比例百分比 %
brokerageChangeNuminteger必返佣金修改次数
brokerageHistoryarray可选佣金修改历史(传 address 时),见下

brokerageHistory[] 元素

字段类型是否必返说明单位/精度
frominteger必返修改前的投票者分红比例百分比 %
tointeger必返修改后的投票者分红比例百分比 %
timeinteger必返修改时间戳秒时间戳
hashstring必返修改交易哈希

data 对象字段

字段类型是否必返说明单位/精度
addressstring必返超级代表地址
namestring必返名称
urlstring必返官网 URL
hasPageboolean可选是否有详情页
logoUrlstring可选Logo URL
lastRankinginteger必返上一周期排名
realTimeRankinginteger必返实时排名
lastCycleVotesinteger必返上一周期投票数
realTimeVotesinteger必返实时投票数
changeVotesinteger必返投票变化量
change_cycleinteger可选周期内票数变化
votesPercentagenumber必返投票占比百分比 %
lastCycleVotesPercentagenumber必返上一周期投票占比百分比 %
brokeragenumber必返超级代表佣金比例百分比 %
voterBrokeragenumber必返投票者分红比例百分比 %
annualizedRatestring必返年化收益率百分比 %
producedTotalinteger必返累计出块数
producedEfficiencynumber必返出块效率百分比 %
blockRewardinteger必返出块奖励
versioninteger可选节点版本号
totalOutOfTimeTransinteger可选累计超时交易数
lastWeekOutOfTimeTransinteger可选上周超时交易数
changedBrokerageboolean可选是否修改过佣金(data 对象内)
lowestBrokerageinteger可选最低佣金比例(data 对象内)
witnessTypeinteger必返节点类型:1 超级代表,2 合伙人,3 候选人
realtimeVoteLinearray可选实时投票趋势数据(含 time/vote,传 address 时)

5. 错误

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

  • 不传 address:返回全局概览,属于正常响应,非错误。
  • 无效地址:返回 data: null,不报 HTTP 错误。
最后更新于: