List votes
Get a list of votes for a party ID
Query Parameters
Party for which the votes are requested.
Proposal ID to list votes for.
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
- 200
- 500
- default
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.
node object
Data associated with a governance vote.
Possible values: [VALUE_UNSPECIFIED
, VALUE_NO
, VALUE_YES
]
pageInfo object
Page information that is used for fetching further pages.
{
"votes": {
"edges": [
{
"cursor": "string",
"node": {
"partyId": "string",
"proposalId": "string",
"timestamp": "string",
"totalEquityLikeShareWeight": "string",
"totalGovernanceTokenBalance": "string",
"totalGovernanceTokenWeight": "string",
"value": "VALUE_UNSPECIFIED"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}