Installation
Install 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 Version
cd $HOME
sudo rm -rf /usr/local/go
VER="1.25"
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
mkdir -p ~/go/bin
go version
Install Binary
cd $HOME
mkdir -p ~/go/bin
wget https://github.com/worrellchain/worrell/releases/latest/download/worrell_linux_amd64.tar.gz -O worrelld.tar.gz
tar -xzf worrelld.tar.gz
chmod +x worrelld
mv worrelld ~/go/bin/
Initialize Node
worrelld init "Your_Validator_Name" --chain-id worrell-testnet-1 --home $HOME/.worrell
Download Genesis and Addrbook
wget -O $HOME/.worrell/config/genesis.json https://raw.githubusercontent.com/worrellchain/networks/main/worrell-testnet-1/genesis.json
Configure Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="19"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.worrell/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.worrell/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.worrell/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.worrell/config/app.toml
Set Minimum Gas Price
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025uworrell"|g' $HOME/.worrell/config/app.toml
Configure Indexer
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.worrell/config/config.toml
Create Service
sudo tee /etc/systemd/system/worrelld.service > /dev/null <<EOF
[Unit]
Description=Worrell node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.worrell
ExecStart=$(which worrelld) start --home $HOME/.worrell
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
mkdir -p $HOME/.worrell/cosmovisor/genesis/bin
mv $HOME/go/bin/worrelld $HOME/.worrell/cosmovisor/genesis/bin/
sudo ln -s $HOME/.worrell/cosmovisor/genesis $HOME/.worrell/cosmovisor/current -f
sudo ln -s $HOME/.worrell/cosmovisor/current/bin/worrelld /usr/local/bin/worrelld -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
sudo tee /etc/systemd/system/worrelld.service > /dev/null <<EOF
[Unit]
Description=Worrell node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.worrell
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.worrell"
Environment="DAEMON_NAME=worrelld"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF
Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable worrelld
sudo systemctl restart worrelld && sudo journalctl -u worrelld -f
Create Wallet
# Create new wallet
worrelld keys add wallet --home $HOME/.worrell
# Restore existing wallet
worrelld keys add wallet --recover --home $HOME/.worrell
# Check sync status (false = fully synced)
worrelld status --home $HOME/.worrell 2>&1 | jq .sync_info
Create Validator
Create validator.json
tee $HOME/validator.json > /dev/null <<EOF
{
"pubkey": $(worrelld comet show-validator),
"amount": "1000000uworrell",
"moniker": "CodeBlockLabs",
"identity": "",
"website": "https://codeblocklabs.com",
"details": "Join Our Community on Telegram @CodeBlockLabs",
"commission-rate": "0.05",
"commission-max-rate": "0.25",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1000000"
}
EOF
Create Validator
worrelld tx staking create-validator $HOME/validator.json --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Delete Node
sudo systemctl stop worrelld
sudo systemctl disable worrelld
sudo rm -rf /etc/systemd/system/worrelld.service
sudo rm $(which worrelld)
sudo rm -rf $HOME/.worrell
Service Operations
Check logs
sudo journalctl -u worrelld -f
Sync info
worrelld status --home $HOME/.worrell 2>&1 | jq .sync_info
Node info
worrelld status --home $HOME/.worrell 2>&1 | jq .node_info
Your node peer
# CometBFT
echo $(worrelld comet show-node-id --home $HOME/.worrell)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.worrell/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
# Tendermint (legacy)
# echo $(worrelld tendermint show-node-id --home $HOME/.worrell)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.worrell/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key Management
Add New Wallet
worrelld keys add wallet --home $HOME/.worrell
Restore existing wallet
worrelld keys add wallet --recover --home $HOME/.worrell
List All Wallets
worrelld keys list --home $HOME/.worrell
Delete wallet
worrelld keys delete wallet --home $HOME/.worrell
Check Balance
worrelld q bank balances $(worrelld keys show wallet -a --home $HOME/.worrell) --home $HOME/.worrell
Export Key (save to wallet.backup)
worrelld keys export wallet --home $HOME/.worrell
Export Key to EVM
worrelld keys export wallet --unarmored-hex --unsafe --home $HOME/.worrell
Import Key (restore from wallet.backup)
worrelld keys import wallet wallet.backup --home $HOME/.worrell
Tokens
Withdraw all rewards
worrelld tx distribution withdraw-all-rewards --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Withdraw rewards and commission from your validator
worrelld tx distribution withdraw-rewards $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) --from wallet --commission --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Delegate to Yourself
worrelld tx staking delegate $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) 1000000uworrell --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Delegate to Other Validator
worrelld tx staking delegate <TO_VALOPER_ADDRESS> 1000000uworrell --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Redelegate Stake to Another Validator
worrelld tx staking redelegate $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) <TO_VALOPER_ADDRESS> 1000000uworrell --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Unbond
worrelld tx staking unbond $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) 1000000uworrell --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Transfer Funds
worrelld tx bank send $(worrelld keys show wallet -a --home $HOME/.worrell) <TO_WALLET_ADDRESS> 1000000uworrell --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Validator Operations
Edit Existing Validator
worrelld tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I am validator" \
--from wallet \
--chain-id worrell-testnet-1 \
--home $HOME/.worrell \
--gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell \
-y
Validator info
worrelld status --home $HOME/.worrell 2>&1 | jq .validator_info
Validator Details
worrelld q staking validator $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) --home $HOME/.worrell
Jailing info
# CometBFT
worrelld q slashing signing-info $(worrelld comet show-validator --home $HOME/.worrell) --home $HOME/.worrell# Tendermint (legacy)
# worrelld q slashing signing-info $(worrelld tendermint show-validator --home $HOME/.worrell) --home $HOME/.worrell
Slashing parameters
worrelld q slashing params --home $HOME/.worrell
Unjail validator
worrelld tx slashing unjail --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
Active Validators List
worrelld q staking validators -oj --limit=2000 --home $HOME/.worrell | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
# CometBFT
[[ $(worrelld q staking validator $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) -oj --home $HOME/.worrell | jq -r .consensus_pubkey.key) = $(worrelld status --home $HOME/.worrell 2>&1 | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
# Tendermint (legacy)
# [[ $(worrelld q staking validator $(worrelld keys show wallet --bech val -a --home $HOME/.worrell) -oj --home $HOME/.worrell | jq -r .consensus_pubkey.key) = $(worrelld status --home $HOME/.worrell 2>&1 | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
# CometBFT
worrelld q slashing signing-info $(worrelld comet show-validator --home $HOME/.worrell) --home $HOME/.worrell# Tendermint (legacy)
# worrelld q slashing signing-info $(worrelld tendermint show-validator --home $HOME/.worrell) --home $HOME/.worrell
Governance
Create New Text Proposal
worrelld tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uworrell \
--type Text \
--from wallet \
--home $HOME/.worrell \
--gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell \
-y
Proposals List
worrelld query gov proposals --home $HOME/.worrell
View proposal
worrelld query gov proposal 1 --home $HOME/.worrell
Vote
worrelld tx gov vote 1 yes --from wallet --chain-id worrell-testnet-1 --home $HOME/.worrell --gas auto --gas-adjustment 1.5 --gas-prices 0.025uworrell -y
CodeBlockLabs