Testnet
Axone
- Chain ID
- Version
- Go
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
axoned keys add $WALLETRecover a key
axoned keys add $WALLET --recoverList keys
axoned keys listWallet balance
axoned q bank balances $(axoned keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(axoned comet show-validator), "amount": "1000000uaxone", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF axoned tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yEdit the validator
axoned tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yUnjail
axoned tx slashing unjail --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yValidator details
axoned q staking validator $(axoned keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
axoned tx distribution withdraw-all-rewards --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yWithdraw commission and rewards
axoned tx distribution withdraw-rewards $(axoned keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yDelegate to yourself
axoned tx staking delegate $(axoned keys show $WALLET --bech val -a) 1000000uaxone --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yRedelegate
axoned tx staking redelegate $(axoned keys show $WALLET --bech val -a) <TO_VALOPER> 1000000uaxone --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -yUnbond
axoned tx staking unbond $(axoned keys show $WALLET --bech val -a) 1000000uaxone --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -ySend tokens
axoned tx bank send $WALLET <TO_ADDRESS> 1000000uaxone --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -y
Governance
List proposals
axoned q gov proposalsView a proposal
axoned q gov proposal <ID>Vote
axoned tx gov vote <ID> yes --from $WALLET --chain-id $AXONE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.001uaxone -y # yes | no | abstain | no_with_veto
Maintenance
Node status
axoned status 2>&1 | jqNode peer address
echo $(axoned comet show-node-id)@$(wget -qO- eth0.me):$AXONE_PORT656Live peers
curl -s localhost:$AXONE_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(axoned q staking validator $(axoned keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(axoned comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
axoned comet unsafe-reset-all --keep-addr-book --home $HOME/.axonedRemove the node
sudo systemctl stop axoned sudo systemctl disable axoned sudo rm /etc/systemd/system/axoned.service sudo systemctl daemon-reload rm -rf $HOME/.axoned $(which axoned)
Service
Service status
sudo systemctl status axonedFollow logs
sudo journalctl -fu axoned -o catRestart
sudo systemctl restart axonedStop
sudo systemctl stop axoned