Install Dependencies

Update system package and install build tools

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential fail2ban ufw unzip
sudo apt -qy upgrade

Configure Moniker

Replace <your-moniker-name> with your own validator name

MONIKER="<your-moniker-name>"

Install Go

Install go version 1.20.10

sudo rm -rf /usr/local/go
curl -Ls <https://go.dev/dl/go1.20.10.linux-amd64.tar.gz> | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

Build Binaries

Download libwasmvm.x86_64.so file

sudo wget -O /usr/lib/libwasmvm.x86_64.so <https://github.com/CosmWasm/wasmvm/releases/download/v1.3.0/libwasmvm.x86_64.so>

Download mantrachain binaries

cd $HOME
wget <https://snap.parict1993.one/mantra-testnet/mantrachaind-linux-amd64.zip>
unzip mantrachaind-linux-amd64.zip
chmod +x mantrachaind

Prepare binaries for cosmovisor

mkdir -p $HOME/.mantrachain/cosmovisor/genesis/bin
mv mantrachaind $HOME/.mantrachain/cosmovisor/genesis/bin/

Create symlinks

sudo ln -s $HOME/.mantrachain/cosmovisor/genesis $HOME/.mantrachain/cosmovisor/current -f
sudo ln -s $HOME/.mantrachain/cosmovisor/current/bin/mantrachaind /usr/local/bin/mantrachaind -f

Cosmovisor Setup

Install cosmovisor