← Back to Cosmos Documentation

DAODISEO Installation

TESTNET • odiseo-testnet

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.23.6"
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/daodiseomoney/Achilles/raw/refs/heads/main/testnet/releases/achillesd-linux-amd64 -O achillesd 
chmod +x achillesd 
mv achillesd ~/go/bin/

Initialize Node

achillesd init "Your_Validator_Name" --chain-id odiseo-testnet --home $HOME/.achilles

Configure Pruning

pruning="custom"
pruning_keep_recent="100" 
pruning_keep_every="0" 
pruning_interval="19" 
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.achilles/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.achilles/config/app.toml 
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.achilles/config/app.toml 
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.achilles/config/app.toml

Set Minimum Gas Price

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "2500000000uodis"|g' $HOME/.achilles/config/app.toml

Configure Indexer

sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.achilles/config/config.toml

Create Service

sudo tee /etc/systemd/system/achillesd.service > /dev/null <<EOF
[Unit] 
Description=DAODISEO node 
After=network-online.target 
[Service] 
User=$USER 
WorkingDirectory=$HOME/.achilles 
ExecStart=$(which achillesd) start --home $HOME/.achilles 
Restart=on-failure 
RestartSec=5 
LimitNOFILE=65535 
[Install] 
WantedBy=multi-user.target 
EOF
mkdir -p $HOME/.achilles/cosmovisor/genesis/bin
mv $HOME/go/bin/achillesd $HOME/.achilles/cosmovisor/genesis/bin/ 
sudo ln -s $HOME/.achilles/cosmovisor/genesis $HOME/.achilles/cosmovisor/current -f 
sudo ln -s $HOME/.achilles/cosmovisor/current/bin/achillesd /usr/local/bin/achillesd -f 

go install cosmossdk.io/tools/cosmovisor/cmd/[email protected] 

sudo tee /etc/systemd/system/achillesd.service > /dev/null <<EOF
[Unit] 
Description=DAODISEO node service 
After=network-online.target 

[Service] 
User=$USER 
ExecStart=$(which cosmovisor) run start --home $HOME/.achilles 
Restart=on-failure 
RestartSec=10 
LimitNOFILE=65535 
Environment="DAEMON_HOME=$HOME/.achilles" 
Environment="DAEMON_NAME=achillesd" 
Environment="UNSAFE_SKIP_BACKUP=true" 

[Install] 
WantedBy=multi-user.target 
EOF

Enable and Start Service

sudo systemctl daemon-reload 
sudo systemctl enable achillesd 
sudo systemctl restart achillesd && sudo journalctl -u achillesd -f

Create Wallet

# Create new wallet
achillesd keys add wallet --home $HOME/.achilles 

# Restore existing wallet
achillesd keys add wallet --recover --home $HOME/.achilles 

# Check sync status (false = fully synced)
achillesd status --home $HOME/.achilles 2>&1 | jq .sync_info

Create Validator

Create validator.json

tee $HOME/validator.json > /dev/null <<EOF
{
  "pubkey": $(achillesd tendermint show-validator), 
  "amount": "1000000uodis", 
  "moniker": "CodeBlockLabs", 
  "identity": "E1ADDC27DCE641C2", 
  "website": "https://codeblocklabs.com", 
  "details": "Join Our Community on Telegram @CodeBlockLabs", 
  "commission-rate": "0.05", 
  "commission-max-rate": "0.2", 
  "commission-max-change-rate": "0.1", 
  "min-self-delegation": "1" 
}
EOF

Create Validator

achillesd tx staking create-validator $HOME/validator.json --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Delete Node

sudo systemctl stop achillesd 
sudo systemctl disable achillesd 
sudo rm -rf /etc/systemd/system/achillesd.service 
sudo rm $(which achillesd) 
sudo rm -rf $HOME/.achilles

Service Operations

Check logs

sudo journalctl -u achillesd -f

Sync info

achillesd status --home $HOME/.achilles 2>&1 | jq .sync_info

Node info

achillesd status --home $HOME/.achilles 2>&1 | jq .node_info

Your node peer

# CometBFT
echo $(achillesd comet show-node-id --home $HOME/.achilles)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.achilles/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
# Tendermint (legacy)
# echo $(achillesd tendermint show-node-id --home $HOME/.achilles)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.achilles/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Key Management

Add New Wallet

achillesd keys add wallet --home $HOME/.achilles

Restore existing wallet

achillesd keys add wallet --recover --home $HOME/.achilles

List All Wallets

achillesd keys list --home $HOME/.achilles

Delete wallet

achillesd keys delete wallet --home $HOME/.achilles

Check Balance

achillesd q bank balances $(achillesd keys show wallet -a --home $HOME/.achilles) --home $HOME/.achilles

Export Key (save to wallet.backup)

achillesd keys export wallet --home $HOME/.achilles

Export Key to EVM

achillesd keys export wallet --unarmored-hex --unsafe --home $HOME/.achilles

Import Key (restore from wallet.backup)

achillesd keys import wallet wallet.backup --home $HOME/.achilles

Tokens

Withdraw all rewards

achillesd tx distribution withdraw-all-rewards --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Withdraw rewards and commission from your validator

achillesd tx distribution withdraw-rewards $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) --from wallet --commission --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Delegate to Yourself

achillesd tx staking delegate $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) 1000000uodis --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Delegate to Other Validator

achillesd tx staking delegate <TO_VALOPER_ADDRESS> 1000000uodis --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Redelegate Stake to Another Validator

achillesd tx staking redelegate $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) <TO_VALOPER_ADDRESS> 1000000uodis --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Unbond

achillesd tx staking unbond $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) 1000000uodis --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Transfer Funds

achillesd tx bank send $(achillesd keys show wallet -a --home $HOME/.achilles) <TO_WALLET_ADDRESS> 1000000uodis --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Validator Operations

Edit Existing Validator

achillesd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I am validator" \
--from wallet \
--chain-id odiseo-testnet \
--home $HOME/.achilles \
--gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis  \
-y

Validator info

achillesd status --home $HOME/.achilles 2>&1 | jq .validator_info

Validator Details

achillesd q staking validator $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) --home $HOME/.achilles

Jailing info

# CometBFT
achillesd q slashing signing-info $(achillesd comet show-validator --home $HOME/.achilles) --home $HOME/.achilles# Tendermint (legacy)
# achillesd q slashing signing-info $(achillesd tendermint show-validator --home $HOME/.achilles) --home $HOME/.achilles

Slashing parameters

achillesd q slashing params --home $HOME/.achilles

Unjail validator

achillesd tx slashing unjail --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y

Active Validators List

achillesd q staking validators -oj --limit=2000 --home $HOME/.achilles | 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
[[ $(achillesd q staking validator $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) -oj --home $HOME/.achilles | jq -r .consensus_pubkey.key) = $(achillesd status --home $HOME/.achilles 2>&1 | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
# Tendermint (legacy)
# [[ $(achillesd q staking validator $(achillesd keys show wallet --bech val -a --home $HOME/.achilles) -oj --home $HOME/.achilles | jq -r .consensus_pubkey.key) = $(achillesd status --home $HOME/.achilles 2>&1 | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

Signing info

# CometBFT
achillesd q slashing signing-info $(achillesd comet show-validator --home $HOME/.achilles) --home $HOME/.achilles# Tendermint (legacy)
# achillesd q slashing signing-info $(achillesd tendermint show-validator --home $HOME/.achilles) --home $HOME/.achilles

Governance

Create New Text Proposal

achillesd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uodis \
--type Text \
--from wallet \
--home $HOME/.achilles \
--gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis  \
-y

Proposals List

achillesd query gov proposals --home $HOME/.achilles

View proposal

achillesd query gov proposal 1 --home $HOME/.achilles

Vote

achillesd tx gov vote 1 yes --from wallet --chain-id odiseo-testnet --home $HOME/.achilles --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uodis -y