Chain ID: cosmoshub-4 | Node Version: v25.1.0
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export COSMOSHUB_CHAIN_ID="cosmoshub-4"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Governance
- Status
Wallet
Create Wallet
gaiad keys add wallet
Recovery Wallet
gaiad keys add wallet --recover
List All Wallet
gaiad keys list
Delete Wallet
gaiad keys delete wallet
Check Wallet Balance
gaiad q bank balances $(gaiad keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
gaiad tx staking create-validator \
--amount=1000000uatom \
--pubkey=$(gaiad tendermint show-validator) \
--moniker=$MONIKER \
--identity=YOUR_KEYBASE_ID \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$COSMOSHUB_CHAIN_ID \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=wallet \
--gas-adjustment=1.5 \
--gas=auto \
--gas-prices=0.005uatom \
-y
Edit Validator
gaiad tx staking edit-validator \
--new-moniker=$MONIKER \
--identity=YOUR_KEYBASE_ID \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$COSMOSHUB_CHAIN_ID \
--commission-rate=0.05 \
--from=wallet \
--gas-adjustment=1.5 \
--gas=auto \
--gas-prices=0.005uatom \
-y
Unjail Validator
gaiad tx slashing unjail --from wallet --chain-id $COSMOSHUB_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.005uatom -y
Validator Info
gaiad q staking validator $(gaiad keys show wallet --bech val -a)