Overview
This how-to guide provides instructions on how to vote for block producers.
Before you begin
- Install the latest version of
cleos
. - Ensure the reference system contracts are deployed and used to manage system resources.
-
Understand the following:
- What is a block producer.
- How does voting work.
- Unlock your wallet.
Command Reference
See the following reference guides for command line usage and related options for the cleos
command:
- The cleos system voteproducer prods reference.
Procedure
The following steps show:
- How to vote for blockproducer1 and blockproducer2 from an account called
eosiotestts2
:
cleos system voteproducer prods eosiotestts2 blockproducer1 blockproducer2
Where:
eosiotestts2
= the account that votes.blockproducer1
andblockproducer2
= 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"]}
Summary
In conclusion, the above instructions show how to vote for block producers.