Last modified: 2024-09-14
NEO.Vote Method
Votes for the candidates.
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
Voting towards non-candidate is recorded but not taken into account in committee & validator election. However, such votes will be effective as soon as the voted address becomes a candidate.
Voter's signature will be checked.
Syntax
Parameters:
-
account: Script hash of the voting account.
-
voteTo: Public key of the account to vote.
Example
响应正文:
Respond description:
-
Boolean type: voted successfully.
-
Others: failed.