How To Vote

Overview

This how-to guide provides instructions on how to vote for block producers.

Before you begin

Command Reference

See the following reference guides for command line usage and related options for the cleos command:

Procedure

The following steps show:

  1. 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 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"]}

Summary

In conclusion, the above instructions show how to vote for block producers.