Useful commands
List of commands used to manage the validator and node
Wallet interaction
Create Wallet
aurad keys add <WALLET_NAME>
Restore wallet
aurad keys add <WALLET_NAME> --recover
Show all wallets
Delete wallet
aurad keys delete <WALLET_NAME>
Export wallet
aurad keys export <WALLET_NAME>
Import wallet
aurad keys import <WALLET_NAME> wallet.backup
Show balance
aurad q bank balances $(aurad keys show <WALLET_NAME> -a)
Validator control
Create a validator
aurad tx staking create-validator \
--amount 1000000uaura \
--from <WALLET_NAME> \
--commission-max-change-rate "0.1" \
--commission-max-rate "0.2" \
--commission-rate "0.05" \
--min-self-delegation "1" \
--details="<YOUR_DETAILS>" \
--identity="<YOUR_KEYBASE_ID>" \
--pubkey $(aurad tendermint show-validator) \
--moniker <YOUR_MONIKER> \
--fees 555uaura \
--chain-id xstaxy-1 -y
Edit validator
bcnad tx staking edit-validator \
--new-moniker="<YOUR_MONIKER_NAME>" \
--identity="<YOUR_KEYBASE_ID>" \
--details="<YOUR_DETAILS>" \
--website="<YOUR_WEBSITE_URL>"
--chain-id=xstaxy-1 \
--commission-rate=0.05 \
--from=<WALLET_NAME> \
--gas-adjustment=1.4 \
--gas=auto -y
Unjail
aurad tx slashing unjail --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Jail reason
aurad query slashing signing-info $(aurad tendermint show-validator)
Active validators
aurad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Inactive validators
aurad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Information about the validator
aurad status 2>&1 | jq .ValidatorInfo
Balance management
Withdrawal of all rewards
aurad tx distribution withdraw-all-rewards --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Withdrawal of rewards and commissions
aurad tx distribution withdraw-rewards $(aurad keys show <WALLET_NAME> --bech val -a) --commission --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Self-delegation
aurad tx staking delegate $(aurad keys show <WALLET_NAME> --bech val -a) 1000000uaura --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Delegation to validator
aurad tx staking delegate <TO_VALOPER_ADDRESS> 1000000uaura --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Redelegation to another validator
aurad tx staking redelegate $(aurad keys show <WALLET_NAME> --bech val -a) <TO_VALOPER_ADDRESS> 1000000uaura --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Unbond tokens
aurad tx staking unbond $(aurad d keys show <WALLET_NAME> --bech val -a) 1000000uaura --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Sending tokens to a wallet
aurad tx bank send <WALLET_NAME> <TO_WALLET_ADDRESS> 1000000uaura --from <WALLET_NAME> --fees 555uaura --chain-id xstaxy-1 -y
Governance
All proposals
aurad query gov proposals
All proposals by ID
aurad query gov proposal 1
Vote "YES"
aurad tx gov vote 1 yes --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Vote "NO"
aurad tx gov vote 1 no --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Vote "Abstain"
aurad tx gov vote 1 abstain --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Vote "NoWithVeto"
aurad tx gov vote 1 nowithveto --from <WALLET_NAME> --chain-id xstaxy-1 --fees 555uaura -y
Utility
Update ports
CUSTOM_PORT=10
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.aura/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.aura/config/app.toml
Disable Indexer
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.aura/config/config.toml
Enable Indexer
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.aura/config/config.toml
Update pruning
sed -i.bak -e 's|^pruning *=.*|pruning = "custom"|; s|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|; s|^pruning-keep-every *=.*|pruning-keep-every = "0"|; s|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.aura/config/app.toml
Node support
Validator Info
aurad status 2>&1 | jq .ValidatorInfo
Sync info
aurad status 2>&1 | jq .SyncInfo
Deleting a node
Before deleting a node make sure you save priv_validator_key.json
sudo systemctl stop aurad
sudo systemctl disable aurad
rm /etc/systemd/system/aurad.service
sudo systemctl daemon-reload
cd $HOME
rm -rf .aura
rm -rf aura
rm -rf $(which aurad)
Service setup
Reload service configuration
sudo systemctl daemon-reload
Enable service
sudo systemctl enable aurad
Disable service
sudo systemctl disable aurad
Start service
sudo systemctl start aurad
Stop service
sudo systemctl stop aurad
Restart service
sudo systemctl restart aurad
Check service status
sudo systemctl status aurad
Check service logs
sudo journalctl -u aurad -f --no-hostname -o cat
Last updated