跳至主要内容
此页面是从英文翻译而来的。请注意,与原始页面相比,可能会出现错误或差异。真实的文档来源应始终是英文版本。

how to vote

Goal

Vote for a block producer

Before you begin

  • Install the currently supported version of cleos

  • Ensure the reference system contracts from eosio.contracts repository is deployed and used to manage system resources

  • Understand the following:

    • What is a block producer
    • How does voting works
  • Unlock your wallet

Steps

Assume you are going to vote for blockproducer1 and blockproducer2 from an account called eosiotestts2, execute the following:

cleos system voteproducer prods eosiotestts2 blockproducer1 blockproducer2

This should produce similar output as below:

executed transaction: 2d8b58f7387aef52a1746d7a22d304bbbe0304481d7751fc4a50b619df62676d  128 bytes  374 us
# eosio <= eosio::voteproducer {"voter":"eosiotestts2","proxy":"","producers":["blockproducer1","blockproducer2"]}