π Installation
π» Hardware Requirements
Components | Minimum Requirements |
---|---|
CPU | 4 |
RAM | 16 GB |
STORAGE | 400 GB SSD |
Automatic Insallation
pruning: custom: 100/0/10 | indexer: null
source <(curl -s https://raw.githubusercontent.com/MictoNode/warden-protocol/refs/heads/main/warden-menu.sh)
1οΈβ£ Installation packeges and dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
β‘οΈ Go Installation
cd $HOME
VER="1.23.0"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
β‘οΈ Set Vars
You can replace 119 with anything you want. Please write 3 digits.
echo "export W_PORT="119"" >> $HOME/.bash_profile
source $HOME/.bash_profile
2οΈβ£ Install node
cd $HOME
mkdir -p $HOME/.warden/cosmovisor/genesis/bin/
wget https://github.com/warden-protocol/wardenprotocol/releases/download/v0.5.4/wardend_Linux_x86_64.zip
unzip wardend_Linux_x86_64.zip
chmod +x wardend
rm -rf wardend_Linux_x86_64.zip
cd $HOME
mv $HOME/wardend $HOME/.warden/cosmovisor/genesis/bin/
sudo ln -s $HOME/.warden/cosmovisor/genesis $HOME/.warden/cosmovisor/current -f
sudo ln -s $HOME/.warden/cosmovisor/current/bin/wardend /usr/local/bin/wardend -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
β‘οΈ Create a service
sudo tee /etc/systemd/system/wardend.service > /dev/null << EOF
[Unit]
Description=warden node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.warden"
Environment="DAEMON_NAME=wardend"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.warden/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable wardend
β‘οΈ Initialize the node
wardend config set client chain-id chiado_10010-1
wardend config set client keyring-backend test
wardend config set client node tcp://localhost:${W_PORT}57
wardend init "change-moniker" --chain-id chiado_10010-1
β‘οΈ Genesis
wget -O $HOME/.warden/config/genesis.json "https://raw.githubusercontent.com/MictoNode/warden-protocol/refs/heads/main/genesis.json"
β‘οΈ Addrbook
wget -O $HOME/.warden/config/addrbook.json "https://raw.githubusercontent.com/MictoNode/warden-protocol/refs/heads/main/addrbook.json"
β‘οΈ Gas Settings
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "25000000award"|g' $HOME/.warden/config/app.toml
β‘οΈ Port
sed -i.bak -e "s%:1317%:${W_PORT}17%g;
s%:8080%:${W_PORT}80%g;
s%:9090%:${W_PORT}90%g;
s%:9091%:${W_PORT}91%g;
s%:8545%:${W_PORT}45%g;
s%:8546%:${W_PORT}46%g;
s%:6065%:${W_PORT}65%g" $HOME/.warden/config/app.toml
sed -i.bak -e "s%:26658%:${W_PORT}58%g;
s%:26657%:${W_PORT}57%g;
s%:6060%:${W_PORT}60%g;
s%:26656%:${W_PORT}56%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${W_PORT}56\"%;
s%:26660%:${W_PORT}61%g" $HOME/.warden/config/config.toml
β‘οΈ Peers and Seeds
SEEDS="[email protected]:26656"
PEERS="d8106774d544591c0dd5b073ac0fd2e481669cf0@warden-testnet-peers.mictonode.com:11956,[email protected]:26656,[email protected]:31656,[email protected]:26656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*seeds *=.*/seeds = \"$SEEDS\"/}" \
-e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.warden/config/config.toml
β‘οΈ 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-interval *=.*/pruning-interval = \"10\"/" $HOME/.warden/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.warden/config/config.toml
β‘οΈ Starter Snap (Thx Itrocket)
wardend tendermint unsafe-reset-all --home $HOME/.warden
SNAPSHOT_URL="https://server-4.itrocket.net/testnet/warden/"
LATEST_SNAPSHOT=$(curl -s $SNAPSHOT_URL | grep -oP 'warden_\d{4}-\d{2}-\d{2}_\d+_snap\.tar\.lz4' | sort | tail -n 1)
if [ -n "$LATEST_SNAPSHOT" ]; then
FULL_URL="${SNAPSHOT_URL}${LATEST_SNAPSHOT}"
if curl -s --head "$FULL_URL" | head -n 1 | grep "200" > /dev/null; then
curl "$FULL_URL" | lz4 -dc - | tar -xf - -C $HOME/.warden
else
echo "Snapshot URL not accessible"
fi
else
echo "No snapshot found"
fi
β‘οΈ Letβs get started
sudo systemctl restart wardend
journalctl -fu wardend -o cat
β‘οΈ Create wallet
wardend keys add wallet-name
β‘οΈ Import wallet
wardend keys add wallet-name --recover
β‘οΈ Faucet
β‘οΈ Create Validator
Warning
Save your pubkey
wardend tendermint show-validator
nano /root/validator.json
{
"pubkey": paste-your-pubkey,
"amount": "1000000000000000000award",
"moniker": "MictoNodeGuide",
"identity": "optional identity signature (ex. UPort or Keybase)",
"website": "validator's (optional) website",
"security": "validator's (optional) security contact email",
"details": "validator's (optional) details",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
wardend tx staking create-validator /root/validator.json \
--from=wallet-name \
--chain-id=chiado_10010-1 \
--gas auto --gas-adjustment 1.6 --fees 250000000000000award \
-y
β‘οΈ Delegation
wardend tx staking delegate $(wardend keys show wallet-name --bech val -a) amount000000000000000000award \
--chain-id chiado_10010-1 \
--from "wallet-name" \
--gas auto --gas-adjustment 1.6 --fees 250000000000000award \
-y
β‘οΈ Complete deletion
cd $HOME
sudo systemctl stop wardend
sudo systemctl disable wardend
sudo rm -rf /etc/systemd/system/wardend.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/wardend
sudo rm -f $(which wardend)
sudo rm -rf $HOME/.warden
sed -i "/W_PORT_/d" $HOME/.bash_profile
β‘οΈ Block check
local_height=$(wardend status | jq -r .sync_info.latest_block_height); network_height=$(curl -s https://warden-testnet-rpc.mictonode.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "MictoNode height: $network_height"; echo "Blocks left: $blocks_left"
- Your node height - the current block of your node
- MictoNode height - the last block of the network
- Blocks left - how many blocks your node has left to sync.
On This Page
- π» Hardware Requirements
- Automatic Insallation
- 1οΈβ£ Installation packeges and dependencies
- β‘οΈ Go Installation
- β‘οΈ Set Vars
- 2οΈβ£ Install node
- β‘οΈ Create a service
- β‘οΈ Initialize the node
- β‘οΈ Genesis
- β‘οΈ Addrbook
- β‘οΈ Gas Settings
- β‘οΈ Port
- β‘οΈ Peers and Seeds
- β‘οΈ Pruning
- β‘οΈ Starter Snap (Thx Itrocket)
- β‘οΈ Letβs get started
- β‘οΈ Create wallet
- β‘οΈ Import wallet
- β‘οΈ Faucet
- β‘οΈ Create Validator
- β‘οΈ Delegation
- β‘οΈ Complete deletion
- β‘οΈ Block check