Skip to main content
Version: mainnet (v0.71)

List votes

Get a list of votes for a party ID

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

    Newest records first, older records last, default 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.

    cursor string
    node object

    Data associated with a governance vote.

    partyId string
    proposalId string
    timestamp int64
    totalEquityLikeShareWeight string
    totalGovernanceTokenBalance string
    totalGovernanceTokenWeight string
    value Vote value

    Possible values: [VALUE_UNSPECIFIED, VALUE_NO, VALUE_YES]

    pageInfo object

    Page information that is used for fetching further pages.

    endCursor string
    hasNextPage boolean
    hasPreviousPage boolean
    startCursor string
Loading...