Service operations ⚙️
Check logs
Copy sudo journalctl -u haqqd -f
Start service
Copy sudo systemctl start haqqd
Stop service
Copy sudo systemctl stop haqqd
Restart service
Copy sudo systemctl restart haqqd
Check service status
Copy sudo systemctl status haqqd
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable haqqd
Disable Service
Copy sudo systemctl disable haqqd
Sync info
Copy haqqd status 2>&1 | jq .SyncInfo
Node info
Copy haqqd status 2>&1 | jq .NodeInfo
Your node peer
Copy echo $( 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/".*//' )
Key management
Add New Wallet
Copy haqqd keys add $WALLET
Restore executing wallet
Copy haqqd keys add $WALLET --recover
List All Wallets
Delete wallet
Copy haqqd keys delete $WALLET
Check Balance
Copy haqqd q bank balances $( haqqd keys show $WALLET -a )
Export Key (save to wallet.backup)
Copy haqqd keys export $WALLET
Import Key (restore from wallet.backup)
Copy haqqd keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
Copy haqqd tx distribution withdraw-all-rewards --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM"
Withdraw rewards and commission from your validator
Copy haqqd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -y
Check your balance
Copy haqqd query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy haqqd 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" -y
Delegate
Copy haqqd tx staking delegate < TO_VALOPER_ADDRES S > 1000000aISLM --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -y
Redelegate Stake to Another Validator
Copy haqqd tx staking redelegate $VALOPER_ADDRESS < TO_VALOPER_ADDRES S > 1000000aISLM --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -y
Unbond
Copy haqqd 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" -y
Transfer Funds
Copy haqqd tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000aISLM --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -y
Validator operations
Create New Validator
Copy haqqd 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" \
-y
Edit Existing Validator
Copy haqqd 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" \
-y
Validator info
Copy haqqd status 2>&1 | jq .ValidatorInfo
Validator Details
Copy haqqd q staking validator $( haqqd keys show $WALLET --bech val -a )
Jailing info
Copy haqqd q slashing signing-info $( haqqd tendermint show-validator )
Unjail validator
Copy haqqd tx slashing unjail --broadcast-mode block --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -y
Active Validators List
Copy haqqd 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
Check Validator key
Copy [[ $( 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"
Signing info
Copy haqqd q slashing signing-info $( haqqd tendermint show-validator )
Governance
Create New Text Proposal
Copy haqqd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000aISLM \
--type Text \
--from $WALLET \
--gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" \
-y
Proposals List
Copy haqqd query gov proposals
View proposal
Copy haqqd query gov proposal 1
Vote
Copy haqqd tx gov vote 1 yes --from $WALLET --chain-id haqq_11235-1 --gas-adjustment=1.15 --gas auto --gas-prices "27500000000aISLM" -y
Delete node
Copy sudo 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
Last updated 9 months ago