Auto Install:

 curl https://revonode.xyz/sc/warden | bash

Manual Install:

Server preparation

  • Updating packages
sudo apt update && sudo apt upgrade -y
  • Install developer tools and necessary packages
sudo apt install curl build-essential pkg-config libssl-dev git wget jq make gcc tmux chrony -y
  • Installing GO
ver="1.21.5"
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

Node installation

  • Clone the project repository with the node, go to the project folder and collect the binary files
cd $HOME
rm -rf warden
git clone git clone https://github.com/warden-protocol/wardenprotocol warden
cd warden
git checkout 4d37e5aa6eb2a0ee288baf3afbfec0c8b8e2551d
make install-wardend
  • Creating Variables
MONIKER_WARDEN=type in your name
CHAIN_ID_WARDEN=alfama
PORT_WARDEN=21
  • Save variables, reload .bash_profile and check variable values
echo "export MONIKER_WARDEN="${MONIKER_WARDEN}"" >> $HOME/.bash_profile
echo "export CHAIN_ID_WARDEN="${CHAIN_ID_WARDEN}"" >> $HOME/.bash_profile
echo "export PORT_WARDEN="${PORT_WARDEN}"" >> $HOME/.bash_profile
source $HOME/.bash_profile

echo -e "\nmoniker_WARDEN > ${MONIKER_WARDEN}.\n"
echo -e "\nchain_id_WARDEN > ${CHAIN_ID_WARDEN}.\n"
echo -e "\nport_WARDEN > ${PORT_WARDEN}.\n"
  • Setting up the config
wardend config chain-id $CHAIN_ID_WARDEN
wardend config keyring-backend test
wardend config node tcp://localhost:${PORT_WARDEN}657
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025uward\"/" $HOME/.warden/config/app.toml
  • Initialize the node
wardend init $MONIKER_WARDEN --chain-id $CHAIN_ID_WARDEN
  • Loading the genesis file and address book
wget -O $HOME/.warden/config/genesis.json "https://snapshot-de-1.genznodes.dev/warden/genesis.json"
wget -O $HOME/.warden/config/addrbook.json "https://snapshot-de-1.genznodes.dev/warden/addrbook.json"
  • Adding seeds and peers
SEED=
PEERS=2fa750223e22cc19a96391be254680e76387039c@174.138.6.105:26656,1d6470f4cdce902b787c9552810343eaf7c75857@138.201.95.136:26656,f86a398fdb81dc077367c946088068df3969605c@65.108.124.121:60656,f93548291ec4437a62b9c9d59652cbdc78928492@167.235.24.7:26656,b4ada846a9e379336293cec5c72ee2dc6cbf6e65@136.243.75.46:24456,12caf2f5e3618cb6c57f45e93ac713b2bc6243b1@164.90.205.67:26656,ce1bd0d7d8a0fd09d24828c3b8950f2ab0932e33@89.117.57.6:26686,9ee156a6c01cbbe5ecf210e7acf008d78bcb07c4@31.220.84.185:26656,47bb1d48c17e1cb37fa17c56c58c66abd8a77342@128.140.91.92:11156,6fb5cf2179ca9dd98ababd1c8d29878b2021c5c3@146.19.24.175:26856,f995c84635c099329bfaaa255389d63e052cb0ac@65.109.36.231:18656,9d3c8da6bdeec2ec276f8f2866cd57ca6a682479@65.108.148.13:11156,70b088ae23440b8ef5ad3dc10fc8bb1342279a28@220.126.178.243:26656,dd3281db93362f7a9b58b347064187d58fb00a39@62.68.128.216:61156,7229df891aae2a7eaceff8d55c72dd52a5b8ae29@173.249.24.143:11156,f362d57aa6f78e035c8924e7144b7225392b921d@213.239.217.52:38656,7e9adbd0a34fcab219c3a818a022248c575f622b@65.108.227.207:16656,55c5b6ab09002dfba354ff924775ea9ba319f226@81.31.197.120:26656,00644259c3e639f0105daade0061c318055964b8@5.9.104.181:15556,0be8cf6de2a01a6dc7adb29a801722fe4d061455@65.109.115.100:27060,00c0b45d650def885fcbcc0f86ca515eceede537@152.53.18.245:15656,3ac2b676b90be89a620c4c0d9b66cc23cba09c78@114.32.3.126:26656,8524178db3e5359cf9841da8d31ac6ea96fab328@65.109.88.254:33656,5515f06d36f7438aa35bb045859efea8073cbfbf@65.21.199.230:26656,53af63f06ec368ce64fe65d6b08b05d005ab36cb@65.109.89.18:18656,b21e72db910d1f9e772bbc51ecb2d607abac8d5e@88.198.34.105:27356,47dfde30eaa1d807fa702b6b2cd72ce6dd010059@193.187.175.250:26656,be9d2a009589d3d7194ad66a3baf66fc47a87033@144.76.97.251:26726,93d5d2402f0578cf9b0ce7d4da089059a9c09c75@207.244.232.168:11156,b73cbb4a3395f73a06ebb97b3b67c05d0dd3ab71@62.195.206.235:26656,225054d5ddf2386762450e21075c0e8677c3d0fc@144.76.29.90:26656,6c9f61823b15a81b54571e381ae88b3e23c50995@62.171.185.105:26656,3520e49f7b083ea904a39fd7e8bf19afc08f480d@173.212.193.212:26686,eee54c85c14748f7793738fadbc747ed1511efac@176.9.58.5:46656,e25748b3680a8431f2326fedb8185dfcda944bbb@65.108.233.104:26656,4b5777664aacfeeb76a51dea8d1264c2983e6aed@65.109.104.111:56103,36988ffbd7fe7b18b20395908d84ab0e9e5b777a@142.132.239.80:26656,c6845a9fa7e31d570f823b22e7e3a1d79af871e3@46.250.226.117:26656,3ae5e612e1cb72b4bee393517b58fb932e9f144f@37.252.186.201:26656,535d13134ea0c3fb269f446f20f1495761cfc1eb@109.199.121.180:26656,708e16011e12c3eeced40931bc51cb714881c372@95.165.149.94:22656,9bb2d5fa7b17278286fc2d1412794cbfaeea8ebb@142.132.251.87:26656,3b4c9af8935d087e383edb69428e46386a894060@65.109.84.37:30656,d8c2ea6ade02fd2fb22aa59d72863c6292f1b74e@158.220.98.12:18656,2a677903dfcafa9f8e6c4ed8b3226b1903c343a4@37.27.1.50:26656,d9adc2a28643623294b0ba8b50090f92f768a50d@37.27.36.208:26656,169c8c9b7eb1e9cde981bcfca51b5428e49dc01a@213.199.39.207:18656,f6fbded10338c1fed764c656a8968b648922b621@135.181.210.171:23316,9eb15351ad2d1fd9cd866e4f9e4153f6dddcf151@51.178.92.69:16656,27994efdba4df95118dc2748f0ebbccf72d8bd0a@65.108.232.156:29656,ad6db1f33c559707509a777c26a5db86b5dddd0c@37.27.97.16:26656,2581489669e7a297fcd9e9d2c050a177b8d82010@85.10.201.125:56656,7410959ecee865d518ffe763f6794939641435ce@144.91.76.16:11156,128c662b2466196e0e225ffe92b35304f62ee989@65.108.143.210:25656,b55a390f5589ec43460c9ebb878581f2a8f38294@65.109.82.17:46656,6be838208b250858763b2175c80172f0ffd49e39@5.78.44.235:26656,2992ea96175253603828620b3bab8688ef5d7517@65.109.92.148:61556,1f9f8705a5d3dad8508a3437c009a9581a79f82f@95.216.7.84:29656,ce520fdd9ad9d1d24fb5b3adcc065591f22fc770@65.108.206.118:46656,1aad03b1d5908ff5e0789f90d0ef41705a1b44ae@65.21.202.124:18656,30efd647170e838f5b1994301c89cef9734f9ba2@84.247.160.149:11156,651244365bd6cbde014303c7349461c6f37b0ff8@143.110.156.86:26656,aef76fc25f10c50913fef69794c4bd859d2e72d9@5.78.107.130:26656,f1618f3eb0a4a801ffaaddd9391165a995b7089d@65.109.30.35:11956,3bf29de0f005aaf33584feaea0ff07f35676fe6a@149.102.152.62:18656,05ba82cc5179a12481d9d2c8b4e50f43283c8642@84.247.152.165:11156,5a04f2769b72ec57dff85a8e237e0906c2f2b615@64.23.225.157:26656,bb0ea81a95a062e42fa5a4bf01f09dbccaf9d761@109.123.251.126:26656,167188499d15972c56000e098f94284b2ba8c8d2@82.223.31.166:26656,271c33598e42ec12f1293c8b68eeda0af8fcecc3@65.109.38.91:26656,74c54ac4f553f98fababee89a8deddffe75cefb4@109.123.242.92:26656,a494aba5f0976292ca9cd64be73e793b63556da2@164.68.117.20:26656,32405c78f2c62d969664a0fe1ce5ce3389263600@84.82.47.57:26656,309101bdc24188c467bffe6130b81d168ae79fe8@51.79.82.227:11656,f331a348be260d836a428cbdecdcae992381a668@178.128.61.143:26656,91180eb311a3c3e4af772a65df9f06c696ee2bdb@62.171.131.71:11156,c7e29dad47a59d80d40d3daec3936cb9b8238744@185.225.191.31:26656,3f388f408361553a942cf9633ad4f005324aec15@167.235.72.201:26656,9ae05ad6e15ea8db8b5c3baa62b0ed8ce791afc0@89.117.150.238:26656,4135cbcd218a816e8f9af35b3c5cb3759c01c0ec@38.242.237.130:11156,c9ccbaeedf49700b51b44fe6ccf79ade1895f63c@15.235.144.20:18656,1c0681a30964d3d63125deaf0f678ece95de8dc4@158.220.115.162:18656,81828ce535e04be74a921137fffcccc6bcd03a27@95.46.0.52:26656,e36da00d19dc793fa259d38f616bf1bccf950e10@65.21.255.161:26656,e8eaa960cab25de5c337dd0802980c2aaa06c668@176.57.184.198:11156,b08765ef61557ae1f49e64dfa0f5af42d934b945@148.251.235.130:22656,0f42164c49f0a193eac986e003bca746a94a21b7@116.202.30.235:11156,c1dd25ae1d251787ced179ba6b00cf8ff481f968@5.189.174.40:56,eea1b21d75685ab5e28dff9d6cd9b5660898aba9@65.108.11.119:656,e9de6af379ae2fa4460fd77fc36da81a38b50449@173.249.28.105:26656,a5e04abb9dce85cd8b4176f97868db85e3451048@173.212.193.103:26686,afede188ca76320b6fe7560560ede13ef63d8b8d@89.117.51.142:26686,0dc2b51aa0dfffb03ac18a70d85a89a0c93c747e@45.67.216.29:11156,e550a8ea8b03963c93d2001ffbfa93f04d68519c@95.216.155.14:26656,c9ba25c16177b9e34582df6ef985fba6ce336d0c@194.5.152.216:26656,704e8989a1c069deb79bda28178fbb6685436185@45.85.147.82:11156,d8a1ff7eff1cd122a2fdd5707490dc19f96cab46@84.46.255.68:26686,4a926f24325ece861051fae1b020e8bde383f478@161.97.72.95:26656,33b2a8a029ef26dd015093414e697b7db6a80eb3@149.102.155.8:26656,f236e203b40e1a771a4dd77a090c365d08596a6e@84.46.255.1:26686,6d68d299fe832e6eb94141c6d8094019695ce1ac@173.249.3.156:26656,29331767650d861b0917b58e37aa29d089e1c2d9@161.97.121.198:36656,a5323c6f9a2aa490fa80b9135cfd97f7e8e6ca39@64.23.238.78:18656,6e268c21c20e79387536bf5df066a909e4ecb39c@38.242.153.169:11156,e553d3b6158f9345c2b1b38e5135366e9c23182b@173.212.192.130:26686,a36bc3e7789fdcf3ebd4bc414fcf6ecdcd72b659@135.181.90.175:26656,2ffe15e53173736cc774cfd8881dbb3581688687@37.120.189.81:11156,bea588f3114ff59db39a33564088462bb807bcc6@89.58.36.209:5656,a35a31e0b83044b9a19b07db9110a2b8fe03dc1e@95.216.153.109:11156,e84c686dd5d08a0a0f8c5f4343cb709cacef9d53@149.102.152.191:26656,ca5a83c2b49bc6c3ca6d804b5eeff9f985704deb@173.212.238.15:26656,f40907b024c0bb2020654abf4171661e2d01b3bb@31.220.87.17:26666,5ae7cf8e91dfd1290f84fb9e31f0bed7b8d12d74@5.230.229.210:26656,ff0885377c44d58164f29d356b9d3d3a755c6213@65.108.231.124:18656,18c495d3f1ccb79e2983dbf703c4c01f1a33ab65@135.125.66.66:23156,6a55cd0c902196546e634d684ff870874e3abc8a@144.76.28.163:56656,18c0cf1f2fcb1e3e00251da32e7720fcdd7b5fed@85.239.235.219:26656,f14bf963bf8446cd7b0b9cb776e76a72c0d6fa0f@95.111.247.187:11156,1909265c71fbacd077966306f5a381d103b90841@143.198.66.175:26656,4bbfe501049e4307aa112e577f9564936090fa5e@128.199.242.29:26656,cfc41ea1eb57932dc95f37ea9312451fd06d63d4@155.133.22.148:26656,1fb2d34932dc311f502c7b20c0713c9afd102317@195.3.222.117:61456,395f3c90177bee9fc7f8ed022ab6df5167f49bd8@65.109.113.228:60556,59178a321454cb7cf630397bb0fbfca6a3d00c43@213.199.49.229:26656,1328be203b9cdbee6760b794671bb5977f8706df@167.235.59.164:26656,dcd41b92a994bbcf42180b093ed3314ce6213f0d@94.72.120.27:26656,165fe95facc0f76ec6a9076035771980ae3c265a@91.207.54.129:26656,837d8748b4d5f6bd21f58a87fb5c5bcf9d60d0c7@65.108.121.227:13556,4b32aec66d9e7d4906622e646242e90d9f08a60b@116.203.106.180:26656,2550f663bda13e3cb9a255f3d258d47affb63fea@195.3.222.189:36656,85b6f8c6d7ac2e1e66e50af9825210d23eb1f806@95.217.200.98:23656,c149e0c7900096ccfbea74d7fce74d63b9c9d6a1@1.53.252.54:26656,6f3f4997a9ddd69aca494f09a0ed7bde2df9686c@51.89.155.177:21356,d07149ea955c6483380775d7b6019c51436b8b8d@65.109.108.150:26656,d5a060ad7eab7f51b682bbaafa79e8e125c56f73@158.220.103.41:26656,4a16598fb8ca7b474dc261862c5fb29438e113bc@58.187.137.89:26656,e753c9016259364486acee135530a4118806fcb8@49.13.148.101:26656,f52eddaac4b1f897cbe5f0f33ceee087223ca007@213.199.56.98:26656,8e684d5c6f9cdef859431a6191a0635d27f771e8@84.247.165.17:26656,1a404ff80ab2957d334b6aac84ae5051ffa32df6@66.45.236.14:26656
sed -i -e 's/^persistent_peers *=.*/persistent_peers = "'"$PEERS"'"/' $HOME/.warden/config/config.toml
  • Setting up pruning
PRUNING="custom"
PRUNING_KEEP_RECENT="100"
PRUNING_INTERVAL="19"

sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.warden/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
\"$PRUNING_KEEP_RECENT\"/" $HOME/.warden/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
\"$PRUNING_INTERVAL\"/" $HOME/.warden/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.warden/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.warden/config/config.toml
  • Create a service file
printf "[Unit]
Description=Warden Service
After=network.target

[Service]
Type=simple
User=$USER
ExecStart=$(which wardend) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target" > /etc/systemd/system/wardend.service
  • Start the service and check the logs
sudo systemctl daemon-reload && \
sudo systemctl enable wardend && \
sudo systemctl restart wardend && \
sudo journalctl -u wardend -f -o cat
  • We are waiting for the end of synchronization, you can check the synchronization with the command
wardend status 2>&1 | jq .SyncInfo

If the output shows false, the sync is complete.

Creating a wallet and validator

  • Create a wallet
wardend keys add $MONIKER_WARDEN

Save the mnemonic phrase in a safe place!

If you participated in previous testnets, restore the wallet with the command and enter the mnemonic phrase

wardend keys add $MONIKER_WARDEN --recover
  • Create a variable with the address of the wallet and validator
WALLET_WARDEN=$(wardend keys show $MONIKER_WARDEN -a)
VALOPER_WARDEN=$(wardend keys show $MONIKER_WARDEN --bech val -a)

echo "export WALLET_WARDEN="${WALLET_WARDEN}"" >> $HOME/.bash_profile
echo "export VALOPER_WARDEN="${VALOPER_WARDEN}"" >> $HOME/.bash_profile
source $HOME/.bash_profile
echo -e "\nwallet_WARDEN > ${WALLET_WARDEN}.\n"
echo -e "\nvaloper_WARDEN > ${VALOPER_WARDEN}.\n"
  • Checking your balance
wardend q bank balances $WALLET_WARDEN
  • After the synchronization is completed and the wallet is replenished, we create a validator
wardend tx staking create-validator \
  --amount "1000000uward" \
  --pubkey $(wardend tendermint show-validator) \
  --moniker "MONIKER" \
  --identity "KEYBASE_ID" \
  --details "YOUR DETAILS" \
  --website "YOUR WEBSITE" \
  --chain-id warden \
  --commission-rate "0.05" \
  --commission-max-rate "0.20" \
  --commission-max-change-rate "0.01" \
  --min-self-delegation "1" \
  --gas-prices "10uward" \
  --gas "500000" \
  --gas-adjustment "1.5" \
  --from wallet \
  -y

Deleting a node

  • Before deleting a node, make sure that the files from the ~/.warden/config directory are saved To remove a node, use the following commands
sudo systemctl stop wardend
sudo systemctl disable wardend
sudo rm -rf $HOME/.warden
sudo rm -rf $HOME/warden
sudo rm -rf /etc/systemd/system/wardend.service
sudo rm -rf /usr/local/bin/wardend
sudo systemctl daemon-reload