Warning, this is probably wayyy outdated, feel free to make change requests :)
Credit Chris from Privex (@chr54 Telegram) >>
Producer Name privexinceos
How to Vote Via Command Line (cleos):
Want the Docker Version?
This tutorial assumes you have at least one registered EOS public/private key pair and EOS tokens to stake for the purposes of voting.
- Install/Build EOS (build script changes SYS namespace token to EOS)
git clone https://github.com/EOSIO/eos --recursive
cd eos
./eosio_build.sh -s "EOS"
cd build
sudo make install
If you don't want to run a node, skip to step 8. Running a node is not necessary to vote.
- Create genesis.json file using genesis data:
- Run
nodeos --print-default-config
once to produce initital config.ini file
- To edit
sudo nano ~/.local/share/eosio/nodeos/config/config.ini
- Add p2p nodes to config.ini (from site https://eosnodes.privex.io/?config=1)
- Search for
p2p-peer-address =
Add plugins to config.ini
plugin = eosio::producer_plugin
plugin = eosio::wallet_api_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::http_plugin
plugin = eosio::history_api_plugin
Change localhost port so it doesn't overlap with keosd in config.ini
- Search
http-server-address =
- Change port to 8080
- Run
nodeos --delete-all-blocks --genesis-json
(from gensis.json directory)
- On subsequent launches, do not specify
--genesis-json
, nodeos will pull the genesis state from the block log, and of course do not --delete-all-blocks
either.
- If nodeos does not restart cleanly,
--replay-blockchain
and if that does not work --hard-replay-blockchain
.
- In separate terminal, start keosd with
keosd
- Create a wallet
- Save wallet password (very important) and import private key to wallet
- Figure out a full node to connect to and run get info (known full nodes below)
- Get account info on your account
- Delegate EOS tokens to perform voting
cleos --wallet-url http://localhost:8888 --url http://[NODE_IP_HERE]:[NODE_PORT_HERE] system delegatebw eosuseraaaaa "0.1000 EOS" "0.1000 EOS"
- Positional Args
from TEXT - The account delegating bandwidth
receiver TEXT - The account to delegate bandwidth from
stake_net_quantity TEXT - The amount of EOS to delegate for network bandwidth stake_cpu_quantity TEXT - The amount of EOS to delegate for CPU bandwidth
- https://developers.eos.io/eosio-cleos/reference#cleos-system-delegatebw
- List producers to vote on
- Vote on producers by including their names in the following command
- List Producers again to see how your vote affected the producers %
cleos --wallet-url http://localhost:8888 --url http://[NODE_IP_HERE]:[NODE_PORT_HERE] system listproducers
FAQ:
- Where can I find more detailed cleos commands?
- I voted, what else should I do
- Create another account since yours is just a bunch of random letters and cannot be changed
- New account must be 12 characters in length
cleos system newaccount --stake-net "0.1000 EOS" --stake-cpu "0.1000 EOS" --buy-ram-kbytes 8 <youraccount> <newaccount> <ownerpublickey> <activepublickey>
- if you want to transfer, use with
--transfer
- be aware that you have to purchase RAM to do this. 8kb ram is around 0.12 EOS
- I'm not a programmer, so I'm not comfortable voting this way, is there another way you would recommend?
Known nodes:
https://get-scatter.com/
cleos -u https://nodes.get-scatter.com:443 get info
cleos -u http://nodes.get-scatter.com:80 get info
load balances over multiple BP endpoints
courtesy of nsjames
https://eos.cafe/
cleos -u http://mainnet.eoscalgary.io:80 get info
http://eosdetroit.io/
cleos -u https://api.eosdetroit.io:443 get info
https://www.eosnewyork.io/
cleos -v -u http://api.eosnewyork.io get info
https://www.eosphere.io/
cleos -u https://node1.eosphere.io get info
cleos -u https://node2.eosphere.io get info
https://www.saltblock.io/home
cleos -u https://eos.saltblock.io get info
List of nodes to try:
- https://eosnodes.privex.io/
- https://www.eosdocs.io/resources/apiendpoints/