Returns the current tally of votes for a proposal.
Endpoint
httpGET /cosmos/gov/v1/proposals/{proposal_id}/tally
Path Parameters
| Parameter | Type | Description |
|---|
| proposal_id | string | Proposal id |
Example
bashexport AKASH_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
curl "${AKASH_REST}cosmos/gov/v1/proposals/341/tally"
Response
json{
"tally": {
"yes_count": "35102265275414",
"abstain_count": "763068307757",
"no_count": "8545777331",
"no_with_veto_count": "0"
}
}
Response Fields
| Field | Type | Description |
|---|
| tally | object | Current vote counts |
Use Cases
Error Handling
| Error | Message | Description |
|---|
| 400 / Bad request | Bad request | A parameter was invalid |
| 403 / RBAC: access denied | Access denied | The GetBlock access token is missing or incorrect |