Creating a validator node for Archway

Step 1 — Install base node and setup ubuntu

sudo apt-get update
sudo apt-get upgrade
sudo apt install htop
sudo apt-get install screen
--add firewall
sudo apt-get install ufw
sudo ufw allow 22/tcp
sudo ufw allow 26656/tcp
sudo ufw enable
sudo ufw status
--install git
sudo apt-get install git
--install pre-requisites
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y

Step 2— Create a user

--create user
sudo adduser archway
sudo usermod -a -G sudo archway
su — archway

Step 3— Install binary

ver="1.17.2"
cd $HOME
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
git clone https://github.com/archway-network/archway
cd archway
git checkout main
make install

Step 4 — Configure Validator

archwayd keys add <wallet.name>
--Initialise
archwayd init staking4all --chain-id torii-1
--Download genesis
wget -qO- https://torii-1.archway.tech/genesis| jq ."result"."genesis" > ~/.archway/config/genesis.json
nano ~/.archway/config/config.toml

Step 5 — Start and test the node, then create a service

archwayd start
sudo nano /etc/systemd/system/archway.service [Unit]
Description=archway
Requires=network-online.target
After=network-online.target
[Service]
User=archway
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
ExecStart=/home/archway/go/bin/archwayd --home=/home/archway/.archway/ start
[Install]
WantedBy=multi-user.target
sudo service archway start
sudo service archway status
journalctl -f -u archway.service

Step 6 — Wait for your node to sync

archwayd status status 2>&1 | jq .SyncInfo

Step 7 — Get testnet tokens

archwayd query bank balances archway <insert.your.wallet.address>

Step 8 — Create validator

archwayd tx staking create-validator \
--from $(archwayd keys show <wallet.name> -a) \
--amount 1000000utorii \
--min-self-delegation 1000000 \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--pubkey $(archwayd tendermint show-validator) \
--chain-id torii-1

About Staking4All

--

--

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