Node Axone Setup – BoyGau.top

Install

Minimum Hardware Requirements:

Install Required Packages


sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

Install Go


cd ~
VER="1.23.4"
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:~/go/bin" >> ~/.bash_profile
source ~/.bash_profile

Build Binary


cd $HOME
git clone https://github.com/axone-protocol/axoned
cd axoned
git checkout v12.0.0
make install
axoned version

Initialize Node


axoned init MyNode --chain-id axone-1

Download Genesis & Addrbook


curl -Ls https://snapshots.boygau.top/Mainnet/Axone/genesis.json > $HOME/.axoned/config/genesis.json
curl -Ls https://snapshots.boygau.top/Mainnet/Axone/addrbook.json > $HOME/.axoned/config/addrbook.json

Configure Peers


peers="88a89303f7efed5310d2333fc40940aaacac7d3d@217.160.102.31:26656,..."
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.axoned/config/config.toml

Set Gas Price and Pruning


sed -i -E 's|^minimum-gas-prices\s*=.*|minimum-gas-prices = "0.001uaxone"|' $HOME/.axoned/config/app.toml

sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.axoned/config/app.toml

Change Ports


sed -i -e "s%:1317%:17617%; s%:8080%:17680%; ..." $HOME/.axoned/config/app.toml
sed -i -e "s%:26658%:17658%; s%:26657%:17657%; ..." $HOME/.axoned/config/config.toml

Download Snapshot


curl https://snapshots.boygau.top/Mainnet/Axone/axone-latest.tar.lz4 | lz4 -dc - | tar -xf - -C "$HOME/.axoned"

Create systemd Service


sudo tee /etc/systemd/system/axoned.service > /dev/null EOF
[Unit]
Description=Axone Validator
After=network-online.target
[Service]
User=$USER
ExecStart=$(which axoned) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable axoned
sudo systemctl start axoned
sudo journalctl -u axoned -f --no-hostname -o cat

Command

Wallet

Add New Wallet Key


axoned keys add wallet

Recover Existing Key


axoned keys add wallet --recover

List All Keys


axoned keys list

Query Wallet Balance


axoned q bank balances $(axoned keys show wallet -a)

Check Sync Status


axoned status 2>&1 | jq .sync_info

Create Validator


axoned tx staking create-validator <(cat EOF
{
  "pubkey": $(axoned comet show-validator),
  "amount": "1000000uaxone",
  "moniker": "YOUR_MONIKER_NAME",
  "identity": "YOUR_KEYBASE_ID",
  "website": "YOUR_WEBSITE_URL",
  "security": "YOUR_SECURITY_EMAIL",
  "details": "YOUR_DETAILS",
  "commission-rate": "0.05",
  "commission-max-rate": "0.20",
  "commission-max-change-rate": "0.05",
  "min-self-delegation": "1"
}
EOF
) --chain-id axone-1 --from wallet --gas-prices=0.025uaxone --gas-adjustment=1.5 --gas=auto -y

Edit Existing Validator


axoned tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--commission-rate 0.05 \
--chain-id axone-1 \
--from wallet \
--gas-prices=0.025uaxone \
--gas-adjustment=1.5 \
--gas=auto \
-y

Delegate Token to Your Own Validator


axoned tx staking delegate $(axoned keys show wallet --bech val -a) 1000000uaxone \
--chain-id=axone-1 \
--from=wallet \
--gas-prices=0.025uaxone \
--gas-adjustment=1.5 \
--gas=auto \
-y

Withdraw Rewards from All Validators


axoned tx distribution withdraw-all-rewards --from wallet --chain-id axone-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.025uaxone -y

Withdraw Rewards and Commission from Your Validator


axoned tx distribution withdraw-rewards $(axoned keys show wallet --bech val -a) --commission --from wallet --chain-id axone-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.025uaxone -y

Unjail Validator


axoned tx slashing unjail --from wallet \
--chain-id=axone-1 \
--from=wallet \
--gas-prices=0.025uaxone \
--gas-adjustment=1.5 \
--gas=auto \
-y

Services Management

Reload Service


sudo systemctl daemon-reload

Enable Service


sudo systemctl enable axoned

Disable Service


sudo systemctl disable axoned

Start Service


sudo systemctl start axoned

Stop Service


sudo systemctl stop axoned

Restart Service


sudo systemctl restart axoned

Check Service Status


sudo systemctl status axoned

Check Service Logs


sudo journalctl -u axoned -f --no-hostname -o cat

Backup Validator


cat $HOME/.axoned/config/priv_validator_key.json

Remove Node


sudo systemctl stop axoned
sudo systemctl disable axoned
rm -rf /etc/systemd/system/axoned.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/axoned
sudo rm -f $(which axoned)
sudo rm -rf $HOME/.axoned