docs/02_cleos/02_how-to-guides/how-to-vote.md
This how-to guide provides instructions on how to vote for block producers.
Install the latest version of cleos.
Ensure the reference system contracts are deployed and used to manage system resources.
Understand the following:
Unlock your wallet.
See the following reference guides for command line usage and related options for the cleos command:
The following steps show:
eosiotestts2:cleos system voteproducer prods eosiotestts2 blockproducer1 blockproducer2
Where:
eosiotestts2 = the account that votes.blockproducer1 and blockproducer2 = the accounts receiving the votes. The number of accounts receiving the votes can vary from one to multiple. Maximum default number of block producers one account can vote for is 30.Example output:
executed transaction: 2d8b58f7387aef52a1746d7a22d304bbbe0304481d7751fc4a50b619df62676d 128 bytes 374 us
# eosio <= eosio::voteproducer {"voter":"eosiotestts2","proxy":"","producers":["blockproducer1","blockproducer2"]}
In conclusion, the above instructions show how to vote for block producers.