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
Obtain your validator public key by running the following command:
axoned comet show-validator
The output will be similar to this (with a different key):
{"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="}
Then, create a file named validator.json
with the following content:
nano $HOME/validator.json
Change your info, from "pubkey" to "details" and Save them
{
"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="},
"amount": "900000uaxone",
"moniker": "<validator-name>",
"identity": "optional identity signature (ex. UPort or Keybase)",
"website": "validator's (optional) website",
"security": "validator's (optional) security contact email",
"details": "validator's (optional) details",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
Finally, we're ready to submit the transaction to create the validator:
axoned tx staking create-validator $HOME/validator.json \
--chain-id=axone-dentrite-1 \
--from=wallet \
--gas-prices=0.001uaxone \
--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-dentrite-1 \
--from=wallet \
--gas-prices=0.001uaxone \
--gas-adjustment=1.5 \
--gas=auto \
-y
Withdraw rewards and commission from your validator
axoned tx distribution withdraw-rewards $(axoned keys show wallet --bech val -a) \
--chain-id=axone-dentrite-1 \
--from=wallet \
--gas-prices=0.001uaxone \
--gas-adjustment=1.5 \
--gas=auto \
-y
Unjail validator
axoned tx slashing unjail --from wallet \
--chain-id=axone-dentrite-1 \
--from=wallet \
--gas-prices=0.001uaxone \
--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