Version: 21.0.0
This documentation is for Taquito version 21.0.0 and is no longer being updated. Some information may be outdated. View the latest version .
Ballot Operation
Written by Davis Sawali
The Ballot operation allows delegates to cast one Yay, Nay, or Pass ballot on a selected proposal. Delegates are only able to cast their votes during the Exploration period and the Promotion period
Examples
The Ballot operation is currently available in the Contract API, and can be used as such:
const op = await Tezos.contract.ballot({
proposal: 'PROPOSAL_HASH',
ballot: 'BALLOT_VOTE_STRING'
});
await op.confirmation();
proposalis the proposal hash string that you (a delegate) would like to point your ballot towards. Information on the current proposal can be obtained by calling this RPC endpoint. Alternatively, you could also get the proposal hash by using Taquito’s RPC Client methodRpcClient.getCurrentProposal. For more information on theRpcClientrefer to this documentballotis your ballot vote (yay,nay, orpass)
For more information in regards to the Amendment (and Voting) Process refer to this document