Skip to content

Install

Website | Twitter | Discord | Explorer


Public Endpoints | Genesis | Addrbook

Chain ID: chiado_10010-1 | Latest Version: v0.5.3 | Custom Port: 127
Specify the name of your “MONIKER” (validator) which will be visible in the explorer
MONIKER="YOUR_MONIKER_NAME"

Update system and install tools

sudo apt update && sudo apt upgrade -y
sudo apt install curl build-essential git jq lz4 ncdu bashtop -y

Install GO

cd $HOME
version="1.22.5"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile

Install Cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0

Download and install

cd $HOME
wget https://github.com/warden-protocol/wardenprotocol/releases/download/v0.5.3/wardend_Linux_x86_64.zip
sudo unzip wardend_Linux_x86_64.zip
sudo chmod +x wardend
mv wardend $HOME/go/bin
rm wardend_Linux_x86_64.zip
wardend version --long | grep -e commit -e version

Config and Init node

# Set node configuration
wardend config set client chain-id chiado_10010-1
wardend config set client keyring-backend file
wardend config set client node tcp://localhost:12757
# Initialize node
wardend init $MONIKER --chain-id chiado_10010-1
# Download genesis and addrbook
curl -Ls https://snapshots.moonbridge.team/testnet/warden/genesis.json > $HOME/.warden/config/genesis.json
curl -Ls https://snapshots.moonbridge.team/testnet/warden/addrbook.json > $HOME/.warden/config/addrbook.json
# Set seeds and peers
SEEDS=""
PEERS=""
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.warden/config/config.toml
# Setting minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"250000000000000award\"|" $HOME/.warden/config/app.toml
# Setting pruning
sed -i -e 's|^pruning *=.*|pruning = "custom"|' $HOME/.warden/config/app.toml
sed -i -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' $HOME/.warden/config/app.toml
sed -i -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' $HOME/.warden/config/app.toml
sed -i -e 's|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.warden/config/app.toml
# Disable indexer
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.warden/config/config.toml
# Enable Prometheus
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.warden/config/config.toml
# Setting custom ports
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:12758\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:12757\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:12760\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:12756\"%; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):12756\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":12766\"%" $HOME/.warden/config/config.toml
sed -i -e "s%:1277%:12717%g; s%:8080%:12780%g; s%:9090%:12790%g; s%:9091%:12791%g; s%:8545%:12745%g; s%:8546%:12746%g; s%:6065%:12765%g" $HOME/.warden/config/app.toml

Configure Cosmovisor

mkdir -p $HOME/.warden/cosmovisor/genesis/bin
mkdir -p $HOME/.warden/cosmovisor/upgrades
cp $HOME/go/bin/wardend $HOME/.warden/cosmovisor/genesis/bin/

Create service

sudo tee /etc/systemd/system/wardend.service > /dev/null << EOF
[Unit]
Description=Warden Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=always
RestartSec=5
LimitNOFILE=65535
Environment="DAEMON_NAME=wardend"
Environment="DAEMON_HOME=$HOME/.warden"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable wardend

Download latest snapshot

curl -o - -L https://snapshots.moonbridge.team/testnet/warden/snapshot_latest.tar.lz4 | lz4 -dc - | tar -x -C $HOME/.warden
[[ -f $HOME/.warden/data/upgrade-info.json ]] && cp $HOME/.warden/data/upgrade-info.json $HOME/.warden/cosmovisor/genesis/upgrade-info.json

Start service and check the logs

sudo systemctl start wardend && sudo journalctl -u wardend -f --no-hostname -o cat

Create wallet

wardend keys add wallet

Check wallet balance

wardend q bank balances $(wardend keys show wallet -a)

Create a validator.json

Get pubkey

wardend tendermint show-validator
cd $HOME/.warden/config
nano validator.json
{
"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="},
"amount": "1000000000000000000award",
"moniker": "YOUR_MONIKER_NAME",
"identity": "YOUR_KEYBASE_ID",
"details": "YOUR_DETAILS",
"website": "YOUR_WEBSITE_URL",
"security": "YOUR_EMAIL_ADDRESS",
"commission-rate": "0.10",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}

Create validator

wardend tx staking create-validator $HOME/.warden/config/validator.json \
--chain-id chiado_10010-1 \
--from wallet \
--fees 250000000000000award \
--gas auto \
--gas-adjustment 1.5 \
--node https://rpc.chiado.wardenprotocol.org:443 \
-y

Delete node

sudo systemctl stop wardend
sudo systemctl disable wardend
sudo rm -rf /etc/systemd/system/wardend.service
sudo systemctl daemon-reload
sudo rm -f $(which wardend)
sudo rm -rf $HOME/.warden
sudo rm -rf $HOME/wardenprotocol