Etherium 2.0 Single Machine Staking Guide

docker run -d -p 30303:30303 -p 8545:8545 --restart=always \
-v ~/.ethereum:/root/.ethereum \
ethereum/client-go:stable \
--http --http.addr "0.0.0.0"
docker run -d --restart=always -v ~/.eth2:/data -p 4000:4000 -p 13000:13000 -p 12000:12000/udp \gcr.io/prysmaticlabs/prysm/beacon-chain:stable \
--datadir=/data \
--rpc-host=0.0.0.0 \
--monitoring-host=0.0.0.0 \
--http-web3provider=http://$(hostname -I | awk '{print $1}'):8545 \
--accept-terms-of-use
cd ~/
wget https://github.com/ethereum/eth2.0-deposit-cli/releases/download/v1.1.0/eth2deposit-cli-ed5a6d3-linux-amd64.tar.gz
tar -xzf eth2deposit-cli-ed5a6d3-linux-amd64.tar.gz
cd eth2deposit-cli-ed5a6d3-linux-amd64/
./deposit new-mnemonic --num_validators 1 --chain mainnet
docker run -it -v ~/eth2deposit-cli-ed5a6d3-linux-amd64/validator_keys:/keys \
-v ~/Eth2Validators/prysm-wallet-v2:/wallet \
gcr.io/prysmaticlabs/prysm/validator:stable \
accounts import --keys-dir=/keys --wallet-dir=/wallet
sudo vim ~/Eth2Validators/password.txt
docker run -d --restart=always \
-v ~/Eth2Validators/prysm-wallet-v2:/wallet \
-v ~/Eth2Validators/password.txt:/password.txt \
-v ~/Eth2:/validatorDB \
gcr.io/prysmaticlabs/prysm/validator:stable \
--beacon-rpc-provider=$(hostname -I | awk '{print $1}'):4000 \
--wallet-dir=/wallet \
--wallet-password-file=/password.txt \
--datadir=/validatorDB \
--accept-terms-of-use
# list all the containers
docker ps
# follow the logs of one of the containers
docker logs -f <container id/name>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store