← Back to Cosmos Documentation

Axone Installation

TESTNET • axone-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.25.8"
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/axone-protocol/axoned/raw/refs/heads/main/testnet/releases/axoned-linux-amd64 -O axoned 
chmod +x axoned 
mv axoned ~/go/bin/

Initialize Node

axoned init "Your_Validator_Name" --chain-id axone-testnet --home $HOME/.axoned

Configure Pruning

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

Set Minimum Gas Price

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

Configure Indexer

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

Wasm

# Wasm support enabled. Configure as needed for your chain.

Create Service

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

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

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

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

[Install] 
WantedBy=multi-user.target 
EOF

Enable and Start Service

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

Create Wallet

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

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

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

Create Validator

Create validator.json

tee $HOME/validator.json > /dev/null <<EOF
{
  "pubkey": $(axoned comet show-validator), 
  "amount": "1000000uaxone", 
  "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

axoned tx staking create-validator $HOME/validator.json --from wallet --chain-id axone-testnet --home $HOME/.axoned --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uaxone -y

Delete Node

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

Service Operations

Check logs

sudo journalctl -u axoned -f

Sync info

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

Node info

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

Your node peer

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

Key Management

Add New Wallet

axoned keys add wallet --home $HOME/.axoned

Restore existing wallet

axoned keys add wallet --recover --home $HOME/.axoned

List All Wallets

axoned keys list --home $HOME/.axoned

Delete wallet

axoned keys delete wallet --home $HOME/.axoned

Check Balance

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

Export Key (save to wallet.backup)

axoned keys export wallet --home $HOME/.axoned

Export Key to EVM

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

Import Key (restore from wallet.backup)

axoned keys import wallet wallet.backup --home $HOME/.axoned

Tokens

Withdraw all rewards

axoned tx distribution withdraw-all-rewards --from wallet --chain-id axone-testnet --home $HOME/.axoned --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uaxone -y

Withdraw rewards and commission from your validator

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

Delegate to Yourself

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

Delegate to Other Validator

axoned tx staking delegate <TO_VALOPER_ADDRESS> 1000000uaxone --from wallet --chain-id axone-testnet --home $HOME/.axoned --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uaxone -y

Redelegate Stake to Another Validator

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

Unbond

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

Transfer Funds

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

Validator Operations

Edit Existing Validator

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

Validator info

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

Validator Details

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

Jailing info

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

Slashing parameters

axoned q slashing params --home $HOME/.axoned

Unjail validator

axoned tx slashing unjail --from wallet --chain-id axone-testnet --home $HOME/.axoned --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uaxone -y

Active Validators List

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

Signing info

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

Governance

Create New Text Proposal

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

Proposals List

axoned query gov proposals --home $HOME/.axoned

View proposal

axoned query gov proposal 1 --home $HOME/.axoned

Vote

axoned tx gov vote 1 yes --from wallet --chain-id axone-testnet --home $HOME/.axoned --gas auto --gas-adjustment 1.5 --gas-prices 2500000000uaxone -y