vote_on_proposal
@mount("votes.vote_on_proposal")
operation vote_on_proposal(option_item_id: rowid, lock_amount: big_integer)
Allows a citizen to vote on a proposal option.
Parameters
option_item_id
The ID of the option within the proposal that the citizen is voting for.
lock_amount
(Optional) The amount of resources to lock while voting. Default is 0.
Throws
Unauthorized Error
If the requester does not have necessary privileges.
Option Not Found Error
If no option with the given
option_item_idexists in the proposal.
Invalid Lock Amount Error
If the provided lock amount is negative.