/cosmos/gov/v1/proposals/{proposal_id}/tally - Axelar

Returns the current tally of votes for a proposal.

Endpoint

httpGET /cosmos/gov/v1/proposals/{proposal_id}/tally

Path Parameters

ParameterTypeDescription
proposal_idstringProposal id

Example

bashexport AKASH_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${AKASH_REST}cosmos/gov/v1/proposals/42/tally"

Response

json{
    "tally": {
        "yes_count": "1000000",
        "no_count": "0",
        "abstain_count": "0",
        "no_with_veto_count": "0"
    }
}

Response Fields

FieldTypeDescription
tallyobjectCurrent vote counts

Use Cases

  • Voting: Show live tally

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA parameter was invalid
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect