Warden Testnet

Guide to deploy validator node on Warden

System Requirement

Recommendations

Buy VPS From contabo.com

CPURAMDISK

8 Core

32 GB

300 GB

Installation

Install Warden From Binary

# Echo Clone project repository

cd $HOME && rm -rf wardenprotocol
git clone https://github.com/warden-protocol/wardenprotocol && cd  wardenprotocol
git checkout v0.3.0

# Echo Install dependencies

sudo apt install curl iptables build-essential git wget jq make gcc nano tmux lz4 htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y

# Echo Install GO

ver="1.22.2"
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

# Echo Build binary

make build-wardend
sed -i '$a export PATH=$PATH:/root/wardenprotocol/build' ~/.bashrc
source ~/.bashrc

# NOTE IF WARDEND COMMAND NOT FOUND DO " source ~/.bashrc " DO THIS EVERY LOGIN TO VPS


# Echo Set node CLI configuration
wardend config set client chain-id buenavista-1
wardend config set client keyring-backend test
wardend config set client node tcp://localhost:26657

# Echo Initialize the node
wardend init "oriconre" --chain-id buenavista-1

# Echo Download genesis and addrbook files
curl -L https://snapshots-testnet.nodejumper.io/wardenprotocol-testnet/genesis.json > $HOME/.warden/config/genesis.json
curl -L https://snapshots-testnet.nodejumper.io/wardenprotocol-testnet/addrbook.json > $HOME/.warden/config/addrbook.json

# Echo Set seeds
sed -i -e 's|^seeds *=.*|seeds = "ddb4d92ab6eba8363bab2f3a0d7fa7a970ae437f@sentry-1.buenavista.wardenprotocol.org:26656,c717995fd56dcf0056ed835e489788af4ffd8fe8@sentry-2.buenavista.wardenprotocol.org:26656,e1c61de5d437f35a715ac94b88ec62c482edc166@sentry-3.buenavista.wardenprotocol.org:26656"|' $HOME/.warden/config/config.toml

# Echo Set minimum gas price
sed -i -e 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.01uward"|' $HOME/.warden/config/app.toml

# Echo Set pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.warden/config/app.toml

# Echo Download latest chain data snapshot
curl "https://snapshots.polkachu.com/testnet-snapshots/warden/warden_396409.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.warden"

# Echo Create a service
sudo tee /etc/systemd/system/wardend.service > /dev/null << EOF
[Unit]
Description=Warden Protocol node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which wardend) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable wardend.service

# Echo Start the service and check the logs
sudo systemctl start wardend.service
sudo journalctl -u wardend.service -f --no-hostname -o cat

After Node Sync you can go to the next step

  • create wallet

  • create validator

  • delegate validator

to check if your node is already Sync you can use

wardend status 2>&1 | jq -r '.SyncInfo.catching_up // .sync_info.catching_up'

If the return is True your node is still sync up, if its return false then your node already sync

Create Wallet

wardend keys add wallet

after creat wallet request faucet to your wallet

Check Wallet Address

wardend keys list

Request Faucet

curl -XPOST -d '{"address": "your-wallet-address"}' https://faucet.buenavista.wardenprotocol.org

Change your-wallet-address with your wallet address

Create Validator

Showing Pubkey Wallet

wardend comet show-validator

Copy content of your Key : "this-key" to create validator.json

Create file validator.json

nano validator.json
{    
    "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"this-key"},
    "amount": "1000000uward",
    "moniker": "your-node-moniker",
    "identity": "eqlab testnet validator",
    "website": "optional website for your validator",
    "security": "optional security contact for your validator",
    "details": "optional details for your validator",
    "commission-rate": "0.1",
    "commission-max-rate": "0.2",
    "commission-max-change-rate": "0.01",
    "min-self-delegation": "1"
}

change of "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"this-key"} this-key from saved key

and change moniker, identity, website, security, details with your own credentials

to save the file press ctrl + x then y

Create validator command

wardend tx staking create-validator validator.json \
    --from=wallet \
    --chain-id=buenavista-1 \
    --fees=500uward

if you got error fees change it more than requested from error chain

Delegate Validator

Run Command

Check Valoper Address

wardend keys show wallet --bech val -a

Its showing your valoper address copy it for delegate your validator

wardend tx staking delegate YOUR_TO_VALOPER_ADDRESS 1000000uward --from wallet --chain-id buenavista-1 --gas-prices 0.01uward --gas-adjustment 1.5 --gas auto -y 

Change YOUR_TO_VALOPER_ADDRESS with your address

Last updated