Skip to main content

Cheat Sheet

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