Tally

TallyResult queries the tally of a proposal vote.

GET//rest.origin.uptick.network/cosmos/gov/v1beta1/proposals/{proposal_id}/tally
Path parameters
proposal_id*string (uint64)

proposal_id defines the unique id of the proposal.

Response

A successful response.

Body
tallyobject

tally defines the requested tally.

Request
const response = await fetch('//rest.origin.uptick.network/cosmos/gov/v1beta1/proposals/{proposal_id}/tally', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "tally": {
    "yes": "text",
    "abstain": "text",
    "no": "text",
    "no_with_veto": "text"
  }
}

Last updated