Useful commands
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export AARON_CHAIN_ID="aaronetwork"" >> $HOME/.bash_profile
source $HOME/.bash_profile
WALLET MANAGEMENT
Add Wallet Specify the value <wallet> with your own wallet name
#Add new wallet
aaronetworkd keys add wallet
#Recover Wallet
aaronetworkd keys add wallet --recover
#List Wallet
aaronetworkd keys list
#Delete Wallet
aaronetworkd keys delete wallet
#Check Wallet Balance
aaronetworkd q bank balances $(aaronetworkd keys show wallet -a)
VALIDATOR MANAGEMENT
Please adjust , MONIKER , YOUR_KEYBASE_ID , YOUR_DETAILS , YOUR_WEBSITE_URL
#check pubkey
aaronetworkd tendermint show-validator
#Make file validator.json
tee $HOME/.aaronetwork/validator.json > /dev/null << EOF
{
"pubkey": YOUR_PUBKEY,
"amount": "1000000uaaron",
"moniker": "MONIKER",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"details": "YOUR_DETAILS.",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
EOF
#Create Validator
aaronetworkd tx staking create-validator $HOME/.aaronetwork/validator.json --from wallet --chain-id $AARON_CHAIN_ID --gas auto
#Unjail Validator
aaronetworkd tx slashing unjail --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#Check Jailed Reason
aaronetworkd query slashing signing-info $(aaronetworkd tendermint show-validator)
TOKEN MANAGEMENT
#Withdraw Rewards
aaronetworkd tx distribution withdraw-all-rewards --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#Withdraw Rewards with Comission
aaronetworkd tx distribution withdraw-rewards $(aaronetworkd keys show wallet --bech val -a) --commission --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#Delegate Token to your own validator
aaronetworkd tx staking delegate $(aaronetworkd keys show wallet --bech val -a) 100000aaron --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#Delegate Token to other validator
aaronetworkd tx staking redelegate $(aaronetworkd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000aaron --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#Unbond Token from your validator
aaronetworkd tx staking unbond $(aaronetworkd keys show wallet --bech val -a) 100000aaron --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#Send Token to another wallet
aaronetworkd tx bank send wallet <TO_WALLET_ADDRESS> 100000aaron --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
GOVERNANCE
#Vote, You can change the value of yes to no,abstain,nowithveto
aaronetworkd tx gov vote 1 yes --from wallet --chain-id $AARON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.25uaaron -y
#List all proposals
aaronetworkd query gov proposals
#Create new text proposal
aaronetworkd tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000aaron \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=0.25uaaron \
-y
SERVICES MANAGEMENT
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable aaronetworkd
# Disable Service
sudo systemctl disable aaronetworkd
# Start Service
sudo systemctl start aaronetworkd
# Stop Service
sudo systemctl stop aaronetworkd
# Restart Service
sudo systemctl restart aaronetworkd
# Check Service Status
sudo systemctl status aaronetworkd
# Check Service Logs
sudo journalctl -u aaronetworkd -f --no-hostname -o cat
UTILITY
#Set Indexer NULL / KV
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.aaronetwork/config/config.toml
#Get Validator info
aaronetworkd status 2>&1 | jq .ValidatorInfo
#Get denom info
aaronetworkd q bank denom-metadata -oj | jq
#Get sync status
aaronetworkd status 2>&1 | jq .sync_info.catching_up
#Get latest height
aaronetworkd status 2>&1 | jq .sync_info.latest_block_height
#Reset Node
aaronetworkd tendermint unsafe-reset-all --home $HOME/.aaronetwork --keep-addr-book
DELETE NODE
WARNING! Use this command wisely Backup your key first it will remove node from your system
sudo systemctl stop aaronetworkd && sudo systemctl disable aaronetworkd && sudo rm /etc/systemd/system/aaronetworkd.service && sudo systemctl daemon-reload && sudo rm -rf $(which aaronetworkd) && rm -rf $HOME/.aaronetwork
Last updated