Useful Commands
Service Management
Reload service configuration
sudo systemctl daemon-reloadEnable service
sudo systemctl enable gaiadDisable service
sudo systemctl disable gaiadStart service
sudo systemctl start gaiadStop service
sudo systemctl stop gaiadRestart service
sudo systemctl restart gaiadCheck service status
sudo systemctl status gaiadCheck service logs
sudo journalctl -u gaiad -fKey management
Add New Wallet
gaiad keys add walletRestore executing wallet
gaiad keys add wallet --recoverList All Wallets
gaiad keys listDelete wallet
gaiad keys delete walletCheck Balance
gaiad q bank balances $(gaiad keys show wallet -a)Export key to a file
gaiad keys export walletView EVM Prived Key
gaiad keys unsafe-export-eth-key walletImport key from a file
gaiad keys import wallet wallet.backupToken management
Withdraw rewards from all validators
gaiad tx distribution withdraw-all-rewards --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yWithdraw commission and rewards from your validator
gaiad tx distribution withdraw-rewards $(gaiad keys show wallet --bech val -a) --commission --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yDelegate tokens to yourself
gaiad tx staking delegate $(gaiad keys show wallet --bech val -a) 1000000uatom --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yDelegate tokens to validator
gaiad tx staking delegate $(gaiad keys show wallet --bech val -a) 1000000uatom --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yRedelegate tokens to another validator
gaiad tx staking redelegate $(gaiad keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uatom --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yUnbond tokens from your validator
gaiad tx staking unbond $(gaiad keys show wallet --bech val -a) 1000000uatom --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -ySend tokens to the wallet
gaiad tx bank send wallet <TO_WALLET_ADDRESS> 1000000uatom --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yValidator operations
Create New Validator
gaiad tx staking create-validator \
--amount 1000000uatom \
--pubkey $(gaiad tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id provider \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005uatom \
-y
Edit Existing Validator
gaiad tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id provider \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005uatom \
-yGet sync info
gaiad status 2>&1 | jq .SyncInfoValidator info
gaiad status 2>&1 | jq .ValidatorInfoValidator Details
gaiad q staking validator $(gaiad keys show wallet --bech val -a) Jailing info
gaiad q slashing signing-info $(gaiad tendermint show-validator) Slashing parameters
gaiad q slashing params Unjail validator
gaiad tx slashing unjail --from wallet --chain-id provider --gas-adjustment 1.4 --gas auto --gas-prices 0.005uatom -yDelete node
cd $HOME
sudo systemctl stop gaiad
sudo systemctl disable gaiad
sudo rm /etc/systemd/system/gaiad.service
sudo systemctl daemon-reload
rm -f $(which gaiad)
rm -rf $HOME/.gaia
rm -rf $HOME/gaiaLast updated