Skip to Content
APIWitnessGet Super Representative Current Vote Info

Get Super Representative Current Vote Info

1. Overview & Typical Use

Returns the current vote details for a specified Super Representative, including real-time ranking, vote change, commission ratio, annualized yield, and vote trend chart data. When the address parameter is omitted, returns a global vote overview.

  • Typical use: super representative details page, vote trend chart, commission history queries.
  • When not to use: for an account’s vote distribution use “Get Account Vote List”; for all SR list use “Get Super Representative List”.
  • Omitting address returns a global overview — this is not an error; an invalid address returns data: null.

2. Endpoint & Authentication

GET /api/vote/witness

For Base URL and authentication, see Common Network & Authentication.

3. Request

ParameterTypeRequiredDefaultDescription
addressstringNo—Super Representative address; omitting returns a global vote overview

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
statusstringRequiredRequest status code string; "1" on success—
codeintegerRequiredHTTP status code; 200 on success—
messagestringRequiredRequest result description; "request ok" on success—
successstringRequiredWhether the request succeeded; value is "true"—
dataobject | arrayOptionalSR details; single object when address is provided; array of vote records when address is omitted; see below—
totalWitnessintegerRequiredTotal number of Super Representatives—
totalintegerOptionalTotal SR count (when address is omitted)—
totalVotesintegerOptionalTotal network vote count (when address is omitted)—
fastestRiseobjectOptionalSR with the fastest vote count increase (when address is omitted)—
maxVotesRiseobjectOptionalSR with the largest vote increase (when address is omitted)—
changedBrokeragebooleanRequiredWhether the commission has ever been modified—
lowestBrokerageintegerRequiredLowest voter dividend ratioPercentage %
brokerageChangeNumintegerRequiredNumber of commission modifications—
brokerageHistoryarrayOptionalCommission modification history (when address is provided); see below—

brokerageHistory[] elements

FieldTypeRequiredDescriptionUnit/Precision
fromintegerRequiredVoter dividend ratio before the modificationPercentage %
tointegerRequiredVoter dividend ratio after the modificationPercentage %
timeintegerRequiredModification timestampSeconds timestamp
hashstringRequiredModification transaction hash—

data object fields

FieldTypeRequiredDescriptionUnit/Precision
addressstringRequiredSuper Representative address—
namestringRequiredName—
urlstringRequiredOfficial website URL—
hasPagebooleanOptionalWhether a details page exists—
logoUrlstringOptionalLogo URL—
lastRankingintegerRequiredPrevious cycle ranking—
realTimeRankingintegerRequiredReal-time ranking—
lastCycleVotesintegerRequiredPrevious cycle vote count—
realTimeVotesintegerRequiredReal-time vote count—
changeVotesintegerRequiredVote change amount—
change_cycleintegerOptionalVote change within the current cycle—
votesPercentagenumberRequiredVote sharePercentage %
lastCycleVotesPercentagenumberRequiredPrevious cycle vote sharePercentage %
brokeragenumberRequiredSR commission ratioPercentage %
voterBrokeragenumberRequiredVoter dividend ratioPercentage %
annualizedRatestringRequiredAnnualized yieldPercentage %
producedTotalintegerRequiredCumulative blocks produced—
producedEfficiencynumberRequiredBlock production efficiencyPercentage %
blockRewardintegerRequiredBlock rewards—
versionintegerOptionalNode version number—
totalOutOfTimeTransintegerOptionalCumulative out-of-time transactions—
lastWeekOutOfTimeTransintegerOptionalLast week’s out-of-time transactions—
changedBrokeragebooleanOptionalWhether the commission has ever been modified (inside data object)—
lowestBrokerageintegerOptionalLowest commission ratio (inside data object)—
witnessTypeintegerRequiredNode type: 1 Super Representative, 2 partner, 3 candidate—
realtimeVoteLinearrayOptionalReal-time vote trend data (contains time/vote; when address is provided)—

5. Errors

For HTTP status codes, see Common Errors. Key points for this endpoint:

  • Omitting address: returns a global overview — this is a normal response, not an error.
  • Invalid address: returns data: null — no HTTP error is thrown.
Last updated on: