Chain ID: aura_6322-2
| Current Node Version: v0.9.3
This cheatsheet collects commonly used CLI commands for node operators to easily copy and paste. A few conventions we follow:
- Capitalized words indicate placeholders
- Always use our own [NODERS]TEAM RPC endpoints
- Always specify
--chain-id
and--node
flags even when they are unnecessary - Query CLI command always uses
--output json
flag and pipes result throughjq
Wallet generate and recover
Add new key
aurad keys add KEY
Recover key (via existing mnemonic)
aurad keys add KEY --recover
List all keys
aurad keys list
Delete key
aurad keys delete KEY
Wallet
Wallet balance
aurad q bank balances $(aurad keys show KEY -a) --node https://aura-rpc.noders.services:443
Send
aurad tx bank send YOUR_KEY RECEIVER_ADDRESS 1000000uaura \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Withdraw rewards from all validators
aurad tx distribution withdraw-all-rewards \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Withdraw Rewards including Commission
aurad tx distribution withdraw-rewards VALIDATOR_ADRESS \
--commission \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Delegate tokens to yourself
aurad tx staking delegate $(aurad keys show KEY --bech val -a) 1000000uaura \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Delegate tokens to validator
aurad tx staking delegate VALIDATOR_ADDRESS 1000000uaura \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Redelegate tokens to another validator
aurad tx staking redelegate $(aurad keys show KEY --bech val -a) VALIDATOR_ADDRESS 1000000uaura \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Unbond tokens from your validator
aurad tx staking unbond $(aurad keys show KEY --bech val -a) uaura \
--chain-id andromeda-1 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Governance
List of all proposals
aurad query gov proposals --node https://aura-rpc.noders.services:443
Check vote
aurad query gov proposal PROPOSAL_NUMBER \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--output json | jq
Vote
Vote options:
- yes
- no
- no_with_veto
- abstain
aurad tx gov vote PROPOSAL_NUMBER VOTE_OPTION \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Validator management
Create Validator
note
We use example filed values instead of capitalized dummy words for demo purpose in this command. Please make sure to adjust accordingly for your use.
aurad tx staking create-validator \
--amount 1000000uaura \
--commission-max-change-rate "0.05" \
--commission-max-rate "0.10" \
--commission-rate "0.05" \
--min-self-delegation "1" \
--pubkey=$(aurad tendermint show-validator) \
--moniker '[NODERS]TEAM SERVICE' \
--website "https://noders.team" \
--identity "220491ADDD660741" \
--details "Trusted blockchain validator and web3 developer team" \
--security-contact="office@noders.team" \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Edit validator
aurad tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id aura_6322-2 \
--commission-rate 0.05 \
--from KEY \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
Unjail
aurad tx slashing unjail \
--chain-id aura_6322-2 \
--node https://aura-rpc.noders.services:443 --fees 3000uaura \
--from KEY
Jail reason
aurad query slashing signing-info $(aurad tendermint show-validator)
Validator details
aurad q staking validator $(aurad keys show KEY --bech val -a)
Maintenance
Get validator info
aurad status 2>&1 | jq .ValidatorInfo
Get sync info
aurad status 2>&1 | jq .SyncInfo
Get node peer
echo $(aurad tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat ~/.aura/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Check if validator key is correct
[[ $(aurad q staking validator $(aurad keys show KEY --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(aurad status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"
Get live peers
curl -sS https://aura-rpc.noders.services:443/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
Set minimum gas price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.001uaura\"/" ~/.aura/config/app.toml
###Enable prometheus
sed -i -e "s/prometheus = false/prometheus = true/" ~/.aura/config/config.toml
Reset chain data
aurad tendermint unsafe-reset-all --keep-addr-book --home ~/.aura
Service Management
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
Remove node
cd $HOME
sudo systemctl stop aurad
sudo systemctl disable aurad
sudo rm /etc/systemd/system/aurad.service
sudo systemctl daemon-reload
rm -f $(which aurad)
rm -rf ~/.aura
rm -rf $HOME/aura-nw