Skip to content
Logo Maouam Nodelab

Shido Cheat Sheet

export HOMEDIR="$HOME/.shidod/"
WALLET=wallet #your_wallet_name
shidod keys add $WALLET --keyring-backend os --algo eth_secp256k1 --home $HOMEDIR
shidod keys add $WALLET --recover --keyring-backend os --algo eth_secp256k1 --home $HOMEDIR
shidod keys list
shidod query bank balances $(shidod keys show $WALLET -a)
shidod tx bank send $(shidod keys show $WALLET -a) <receiver_wallet_address> <amount><denom> \
--chain-id shido_9008-1 \
--gas-prices 0.025shido \
--gas-adjustment 1.5 \
--gas auto \
-y
cd $HOME
# Create validator.json file
echo "{\"pubkey\":{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"$(shidod comet show-validator | grep -Po '\"key\":\s*\"\K[^"]*')\"},
\"amount\": \"1000000000000000000shido\",
\"moniker\": \"YourMoniker\",
\"identity\": \"KeybaseKey\",
\"website\": \"YourWebsite.com\",
\"security\": \"youremail@example.com\",
\"details\": \"YourDescription\",
\"commission-rate\": \"0.1\",
\"commission-max-rate\": \"0.2\",
\"commission-max-change-rate\": \"0.01\",
\"min-self-delegation\": \"1\"
}" > $HOME/.shidod/validator.json
# Create validator
shidod tx staking create-validator $HOME/.shidod/validator.json \
--from $WALLET \
--chain-id shido_9008-1 \
--fees 800000shido \
--gas 500000
shidod tx staking delegate $(shidod keys show $WALLET --bech val -a) <amount>shido \
--chain-id shido_9008-1 \
--gas-prices 0.025shido \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y
shidod tx distribution withdraw-rewards $(shidod keys show $WALLET --bech val -a) \
--chain-id shido_9008-1 \
--gas-prices 0.025shido \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y
4. Withdraw Rewards (Validator Commission)
Section titled “4. Withdraw Rewards (Validator Commission)”
shidod tx distribution withdraw-rewards $(shidod keys show $WALLET --bech val -a) --commission \
--chain-id shido_9008-1 \
--gas-prices 0.025shido \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y
shidod tx staking unbond $(shidod keys show $WALLET --bech val -a) <amount>shido \
--chain-id shido_9008-1 \
--gas-prices 0.025shido \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y
shidod tx staking redelegate $(shidod keys show $WALLET --bech val -a) <destination_validator_address> <amount>shido \
--chain-id shido_9008-1 \
--gas-prices 0.025shido \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-y