Useful commands
Last updated
haqqd status 2>&1 | jq .SyncInfohaqqd status 2>&1 | jq .NodeInfoecho $(haqqd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.haqqd/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')haqqd keys add $WALLEThaqqd keys add $WALLET --recoverhaqqd keys listhaqqd keys delete $WALLEThaqqd q bank balances $(haqqd keys show $WALLET -a)haqqd keys export $WALLEThaqqd keys import $WALLET wallet.backuphaqqd tx distribution withdraw-all-rewards --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM"haqqd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd query bank balances $WALLET_ADDRESShaqqd tx staking delegate $(haqqd keys show $WALLET --bech val -a) 1000000aISLM --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd tx staking delegate <TO_VALOPER_ADDRESS> 1000000aISLM --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000aISLM --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd tx staking unbond $(haqqd keys show $WALLET --bech val -a) 1000000aISLM --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000aISLM --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd tx staking create-validator \
--amount 1000000aISLM \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(haqqd tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxxxxx" \
--chain-id haqq_11235-1 \
--gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" \
-yhaqqd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxx" \
--from $WALLET \
--chain-id haqq_11235-1 \
--gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" \
-yhaqqd status 2>&1 | jq .ValidatorInfohaqqd q staking validator $(haqqd keys show $WALLET --bech val -a)haqqd q slashing signing-info $(haqqd tendermint show-validator)haqqd tx slashing unjail --broadcast-mode block --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -yhaqqd q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl[[ $(haqqd q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(haqqd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"haqqd q slashing signing-info $(haqqd tendermint show-validator)haqqd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000aISLM \
--type Text \
--from $WALLET \
--gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" \
-y haqqd query gov proposalshaqqd query gov proposal 1haqqd tx gov vote 1 yes --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -ysudo systemctl stop haqqd
sudo systemctl disable haqqd
sudo rm -rf /etc/systemd/system/haqqd.service
sudo rm $(which haqqd)
sudo rm -rf $HOME/.haqqd
sed -i "/HAQQ_/d" $HOME/.bash_profile