Cast vote
As the name of the functionality would suggest, a validator can cast a vote for a ongoing proposal (e.g. carbon footprint report, project proposal or carbon credit batch proposal) or a complaint (for a account ID based entity of hash based entity).
The validator can achieve this by utilizing the cast_vote(vote_type, ipfs, vote)
functionality. When calling the functionality, the validator needs to provide the type of he/she is casting (i.e. for what is the vote meant for), as well as the IPFS link to the underlying documentation of the proposal/complaint and finally if he/she votes 'for' or 'against'.
It is also worth mentioning that there is a corresponding fee associated with this functionality call. Here you can find more about the pallet fees.
Last updated