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

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/341/tally"

Response

json{
    "tally": {
        "yes_count": "35102265275414",
        "abstain_count": "763068307757",
        "no_count": "8545777331",
        "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