Observe votes
Subscribe to a stream of votes
Query Parameters
partyId string
Party ID for which the votes are requested.
proposalId string
Option proposal ID for which the votes are requested.
Responses
- 200
- 500
- default
A successful response.(streaming responses)
application/json
Schema
Example (from schema)
Schema
error object
code int32
details object[]
@type string
message string
result object
vote object
Data associated with governance votes that are published to the stream.
partyId string
proposalId string
timestamp int64
totalEquityLikeShareWeight string
totalGovernanceTokenBalance string
totalGovernanceTokenWeight string
value Vote value
Possible values: [VALUE_UNSPECIFIED
, VALUE_NO
, VALUE_YES
]
{
"error": {
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
},
"result": {
"vote": {
"partyId": "string",
"proposalId": "string",
"timestamp": "string",
"totalEquityLikeShareWeight": "string",
"totalGovernanceTokenBalance": "string",
"totalGovernanceTokenWeight": "string",
"value": "VALUE_UNSPECIFIED"
}
}
}
An internal server error
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
Loading...