⚙️Installation

Hardware
Minimum requirement

CPU

4

RAM

8+ GB

Storage

200 GB SSD

Setup validator name

MONIKER="YOUR_MONIKER_GOES_HERE"

Install dependencies

sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

INSTALL GO

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

rm -rf axelar-core

git clone https://github.com/axelarnetwork/axelar-core.git

cd axelar-core

# make sure your checkout latest version , check on github before checkout
git checkout v0.35.6

make build

cp bin/axelard /usr/local/bin/axelard

Initialize Node

axelard init "$MONIKER" --chain-id=axelar-testnet-lisbon-3

Download genesis and addrbook

wget -O $HOME/.axelar/config/genesis.json https://testnet-files.suntzu.dev/download/testnet/axelar/genesis.json 
wget -O $HOME/.axelar/config/addrbook.json https://testnet-files.suntzu.dev/download/testnet/axelar/addrbook.json 

Change port

CUSTOM_PORT=114
sed -i.bak -e "s%:1317%:${CUSTOM_PORT}17%g;
s%:8080%:${CUSTOM_PORT}80%g;
s%:9090%:${CUSTOM_PORT}90%g;
s%:9091%:${CUSTOM_PORT}91%g;
s%:8545%:${CUSTOM_PORT}45%g;
s%:8546%:${CUSTOM_PORT}46%g;
s%:6065%:${CUSTOM_PORT}65%g" $HOME/.axelar/config/app.toml

# set custom ports in config.toml file
sed -i.bak -e "s%:26658%:${CUSTOM_PORT}58%g;
s%:26657%:${CUSTOM_PORT}57%g;
s%:6060%:${CUSTOM_PORT}60%g;
s%:26656%:${CUSTOM_PORT}56%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${CUSTOM_PORT}56\"%;
s%:26660%:${CUSTOM_PORT}60%g" $HOME/.axelar/config/config.toml

Create Service

sudo tee /etc/systemd/system/axelard.service > /dev/null <<EOF
[Unit]
Description=axelard Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which axelard) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable axelard

Download Snapshot

axelard tendermint unsafe-reset-all --home $HOME/.axelar --keep-addr-book 
curl https://testnet-files.suntzu.dev/download/testnet/axelar/axelar-snapshot.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.axelar

Start the node

sudo systemctl restart axelard
journalctl -u axelard -f

Last updated