Skip to main content

Command

Wallet:

Add New Wallet:

gaiad keys add wallet

Restore executing wallet:

gaiad keys add wallet --recover

List All Wallets:

gaiad keys list

Delete wallet:

gaiad keys delete wallet

Check Balance:

gaiad q bank balances $(gaiad keys show wallet -a)

Validator:

Create Validator:

gaiad tx staking create-validator <(cat <<EOF
{
"pubkey": $(gaiad tendermint show-validator),
"amount": "1000000000uatom",
"moniker": "Node39-Guide",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security-contact": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--from wallet \
--chain-id=cosmoshub-4 \
--gas=auto \
--gas-adjustment 1.5 \
--fees=3000uatom \
-y

Edit Validator:

gaiad tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--security-contact "YOUR_SECURITY_EMAIL" \
--commission-rate 0.05 \
--from your-wallet \
--chain-id=cosmoshub-4 \
--fees=5000uatom
-y

Check sync | False -> done.

gaiad status 2>&1 | jq .SyncInfo.catching_up

Delegate:

gaiad tx staking delegate $(gaiad keys show wallet --bech val -a) 1000000000uatom \
--from wallet \
--chain-id=cosmoshub-4 \
--gas=auto \
--gas-adjustment 1.5 \
--fees=3000uatom \
-y

Withdraw rewards and commission:

gaiad tx distribution withdraw-rewards $(gaiad keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=cosmoshub-4 \
--gas=auto \
--gas-adjustment 1.5 \
--fees=3000uatom \
-y

Unjail:

gaiad tx slashing unjail \
--from wallet \
--chain-id=cosmoshub-4 \
--fees=5000uatom\
-y

Unbond:

gaiad tx staking unbond $(gaiad keys show wallet --bech val -a) 1000000000uatom \
--from wallet \
--chain-id=cosmoshub-4 \
--gas=auto \
--gas-adjustment 1.5 \
--fees=3000uatom \
-y

Vote:

gaia tx gov vote proposal_id yes \
--from wallet \
--chain-id=cosmoshub-4 \
--gas=auto \
--gas-adjustment 1.5 \
--fees=3000uatom \
-y

System:

Reload Service:

sudo systemctl daemon-reload

Enable Service:

sudo systemctl enable gaiad

Disable Service:

sudo systemctl disable gaiad

Start Service:

sudo systemctl start gaiad

Stop Service:

sudo systemctl stop gaiad

Restart Service:

sudo systemctl restart gaiad

Check Service Status:

sudo systemctl status gaiad

Check Service Logs:

sudo journalctl -u gaiad -fo cat