Skip to main content
Version: testnet (v0.77)

List votes

GET 

/api/v2/votes

Get a list of votes. A party ID or a proposal ID must be provided.

Request

Query Parameters

    partyId string

    Party for which the votes are requested.

    proposalId string

    Proposal ID to list votes for.

    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Whether to order the results with the newest records first. If not set, the default value is true.

Responses

A successful response.

Schema
    votes object

    Page of votes data received and corresponding page information.

    edges object[]

    Page of vote data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Data associated with a governance vote.

    elsPerMarket object[]

    The per market weight of the vote compared to the total amount of equity-like share on the market.. It is only populated if the vote is for a batch type proposal.

  • Array [
  • els string

    The equity-like share weight for this market.

    marketId string

    The market ID.

  • ]
  • partyId string

    Voter's party ID.

    proposalId string

    Proposal ID being voted on.

    timestamp int64

    Timestamp in Unix nanoseconds when the vote was acknowledged by the network.

    totalEquityLikeShareWeight string

    The weight of the vote compared to the total amount of equity-like share on the market. It is only populated if the vote is for a single type proposal.

    totalGovernanceTokenBalance string

    Total number of governance token for the party that cast the vote.

    totalGovernanceTokenWeight string

    The weight of this vote based on the total number of governance tokens.

    value Vote value

    Possible values: [VALUE_UNSPECIFIED, VALUE_NO, VALUE_YES]

    Default value: VALUE_UNSPECIFIED

    Which way the party voted.

  • ]
  • pageInfo object

    Page information that is used for fetching further pages.

    endCursor string

    End cursor.

    hasNextPage boolean

    Indicator if there is a next page.

    hasPreviousPage boolean

    Indicator if there is a previous page.

    startCursor string

    Start cursor.

Loading...