EOS public chain main-net (how to vote/connect)

Hi gang,
Anyone know how to compile and use CLI to vote and stake a name on the EOS main-net? Not having much luck on google. THANKS!

What operating system @Dorian? EOS themselves have simple documentation to compile and install EOS.

On a Mac;

git clone https://github.com/EOSIO/eos --recursive

Then cd into the eos folder with cd eos

cd eos    
git submodule update --init --recursive

The next build step will probably fail a few times, getting further each time. This is because homebrew has to install a few dependencies for compiling and cryptography.

./eosio_build.sh

If the build keeps failing, read the last 4-10 lines of the error for details of missing dependencies. You might need to install them manually using brew install MISSING_DEPENDENCY. gettext and llvm are especially annoying, and require older versions.

Running the make test like the documentation says always hangs up at test 24 for me, so I just skip and install.

cd build
sudo make install

That’s it, you now have nodeos for a local EOS instance, keosd for managing keys, and cleos for interfacing between keys and the network. You can use the --url="EOS_NETWORK_URL" to connect outside of localhost. Here’s more cleos documentation.

1 Like

EDIT

Actually I have no idea how to vote using CLI… I know you can with Scatter, but manually?

@ivan @filip Interesting predicament… I can’t even find CLI documentation on this, and votes are only at 2.3% out of 15% required for the network to finish launching. @ivan can you figure this out and cover it on YouTube please, for the EOS hodl community

You can do it with cleos @MitchPierias @Dorian .

cleos -u https://fn.eossweden.se:443 system voteproducer approve <youraccount> <BP-candidate>

You can get documentation within cleos if you only parts of the command, for example:
cleos -u https://fn.eossweden.se:443 system voteproducer

outputs

 ERROR: RequiredError: Subcommand required
    Vote for a producer
    Usage: cleos system voteproducer [OPTIONS] SUBCOMMAND
    Options:
      -h,--help                   Print this help message and exit

Subcommands:
  proxy                       Vote your stake through a proxy
  prods                       Vote for one or more producers
  approve                     Add one producer to list of voted producers
  unapprove                   Remove one producer from list of voted producers
3 Likes