Useful Commands
Service operations ⚙️
Check logs
sudo journalctl -u initiad -f
Start service
sudo systemctl start initiad
Stop service
sudo systemctl stop initiad
Restart service
sudo systemctl restart initiad
Check service status
sudo systemctl status initiad
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable initiad
Disable Service
sudo systemctl disable initiad
Node info
initiad status 2>&1 | jq
Your node peer
echo $(initiad tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.initia/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
initiad keys add $WALLET
Restore executing wallet
initiad keys add $WALLET --recover
List All Wallets
initiad keys list
Delete wallet
initiad keys delete $WALLET
Check Balance
initiad q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
initiad keys export $WALLET
View EVM Prived Key
initiad keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
initiad keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
initiad tx distribution withdraw-all-rewards --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit
Withdraw rewards and commission from your validator
initiad tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id initiation-1 --gas auto --fees 80000uinit -y
Check your balance
initiad query bank balances $WALLET_ADDRESS
Delegate to Yourself
initiad tx staking delegate $(initiad keys show $WALLET --bech val -a) 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit -y
Delegate
initiad tx staking delegate <TO_VALOPER_ADDRESS> 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit -y
Redelegate Stake to Another Validator
initiad tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit -y
Unbond
initiad tx staking unbond $(initiad keys show $WALLET --bech val -a) 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit -y
Transfer Funds
initiad tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uinit --gas auto --fees 80000uinit -y
Validator operations
Create New Validator
initiad tx staking create-validator \
--amount 1000000uinit \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(initiad tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id initiation-1 \
--gas auto --fees 80000uinit \
-y
Edit Existing Validator
initiad tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id initiation-1 \
--gas auto --fees 80000uinit \
-y
Validator info
initiad status 2>&1 | jq
Validator Details
initiad q staking validator $(initiad keys show $WALLET --bech val -a)
Jailing info
initiad q slashing signing-info $(initiad tendermint show-validator)
Slashing parameters
initiad q slashing params
Unjail validator
initiad tx slashing unjail --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit -y
Active Validators List
initiad 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
[[ $(initiad q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(initiad status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
initiad q slashing signing-info $(initiad tendermint show-validator)
Governance
Create New Text Proposal
initiad tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uinit \
--type Text \
--from $WALLET \
--gas auto --fees 80000uinit \
-y
Proposals List
initiad query gov proposals
View proposal
initiad query gov proposal 1
Vote
initiad tx gov vote 1 yes --from $WALLET --chain-id initiation-1 --gas auto --fees 80000uinit -y
Last updated