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

UnauthorizedError
  • If the requester does not have necessary privileges.

OptionNotFoundError
  • If no option with the given option_item_id exists in the proposal.

InvalidLockAmountError
  • If the provided lock amount is negative.