TESTNET
Cheat Sheed

Key Management

Add new key

sided keys add wallet

Recover existing key

sided keys add wallet --recover

List All key

sided keys list

Delete key

sided keys delete wallet

Export Key (save to wallet.backup)

sided keys export wallet

Import key

sided keys import wallet wallet.backup

Query Wallet Balance

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

Validator Management

Create Validator

sided tx staking create-validator \
  --amount "1000000uside" \
  --pubkey $(sided tendermint show-validator) \
  --moniker "<MONIKER>" \
  --identity "YOUR-FINGER_KEYBASE" \
  --details "zulna guide" \
  --website "YOUR WEBSITE" \
  --chain-id side-testnet-3 \
  --commission-rate "0.01" \
  --commission-max-rate "0.2" \
  --commission-max-change-rate "0.01" \
  --min-self-delegation "1" \
  --gas-prices 0.05uside \
  --gas "auto" \
  --gas-adjustment "1.5" \
  --from wallet \
  -y
 

Edit Validator

sided tx staking edit-validator \
--new-moniker "<MONIKER>" \
--identity "" \
--details "zulna guide" \
--website "YOUR WEBSITE" \
--chain-id side-testnet-3 \
--commission-rate "0.01" \
--gas-prices 0.05uside \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-y

Unjail Validator

sided tx slashing unjail \
--chain-id side-testnet-3 \
--gas-prices 0.05uside \
--gas-adjustment 1.5\
--gas "auto" \
--from wallet \
-y 

Signing Info

sided query slashing signing-info $(sided tendermint show-validator) 

List all active validators

sided q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl 

List all inactive validators

sided q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED") or .status=="BOND_STATUS_UNBONDING")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl 

View validators details

sided q staking validator $(sided keys show wallet --bech val -a) 

Token Management

Withdraw rewards from all validators

sided tx distribution withdraw-all-rewards --from wallet --chain-id side-testnet-3 --gas-prices 0.05uside  --gas-adjustment 1.5 --gas "auto" -y 

Withdraw comission and rewards from your validator

sided tx distribution withdraw-rewards $(sided keys show wallet --bech val -a) --commission --from wallet --chain-id side-testnet-3 --gas-prices 0.05uside  --gas-adjustment 1.5 --gas "auto" -y 

Delegate to your validator

sided tx staking delegate $(sided keys show wallet --bech val -a) 1000000uside --from wallet --chain-id side-testnet-3 --gas-prices 0.05uside  --gas-adjustment 1.5 --gas "auto" -y 

Delegate to other

c4ed tx staking delegate <TO_VALOPER_ADDRESS> 1000000uside --from wallet --chain-id side-testnet-3 --gas-prices 0.05uside  --gas-adjustment 1.5 --gas "auto" -y 

Redelegate your stake to other validators

sided tx staking redelegate $(sided keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uside --from wallet --chain-id side-testnet-3 --gas-prices 0.05uside  --gas-adjustment 1.5 --gas "auto" -y 

Send tokens

sided tx bank send wallet <TO_WALLET_ADDRESS> 1000000uside --from wallet --chain-id side-testnet-3 --gas-prices 0.05uside  --gas-adjustment 1.5 --gas "auto" -y 

Governance

Create new text proposal

sided tx gov submit-proposal \
--title "" \
--description "" \
--deposit "1000000uside" \
--type "Text" \
--from wallet \
--gas-prices 0.05uside \ 
--gas-adjustment 1.5 \
--gas "auto" \
-y 

List all proposals

sided query gov proposals

Vote

sided tx gov vote 1 yes \
--from wallet \
--chain-id side-testnet-3 \
--gas-prices 0.05uside \
--gas-adjustment 1.5 \
--gas "auto" \
-y 

Utility

sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.side/config/config.toml

Set Custom Port

CUSTOM_PORT=13
sed -i.bak -e "s%^proxy_app = "tcp://127.0.0.1:26658"%proxy_app = "tcp://127.0.0.1:${CUSTOM_PORT}658"%; s%^laddr = "tcp://127.0.0.1:26657"%laddr = "tcp://127.0.0.1:${CUSTOM_PORT}657"%; s%^pprof_laddr = "localhost:6060"%pprof_laddr = "localhost:${CUSTOM_PORT}060"%; s%^laddr = "tcp://0.0.0.0:26656"%laddr = "tcp://0.0.0.0:${CUSTOM_PORT}656"%; s%^prometheus_listen_addr = ":26660"%prometheus_listen_addr = ":${CUSTOM_PORT}660"%" $HOME/.side/config/config.toml
sed -i.bak -e "s%^address = "tcp://0.0.0.0:1317"%address = "tcp://0.0.0.0:${CUSTOM_PORT}317"%; s%^address = ":8080"%address = ":${CUSTOM_PORT}080"%; s%^address = "0.0.0.0:9090"%address = "0.0.0.0:${CUSTOM_PORT}090"%; s%^address = "0.0.0.0:9091"%address = "0.0.0.0:${CUSTOM_PORT}091"%; s%^address = "0.0.0.0:8545"%address = "0.0.0.0:${CUSTOM_PORT}545"%; s%^ws-address = "0.0.0.0:8546"%ws-address = "0.0.0.0:${CUSTOM_PORT}546"%" $HOME/.side/config/app.toml

Get Validator info

sided status 2>&1 | jq .ValidatorInfo

Get denom info

sided q bank denom-metadata -oj | jq
 

Get latest height

sided status 2>&1 | jq .SyncInfo.latest_block_height

Reset Node

sided tendermint unsafe-reset-all --home $HOME/.side --keep-addr-book

Delete Node

cd $HOME && sudo systemctl stop sided && sudo systemctl disable sided && sudo rm /etc/systemd/system/sided.service && sudo systemctl daemon-reload && sudo rm -rf $(which sided) && sudo rm -rf $HOME/.side && sudo rm -rf $(which sided) 

Services Management

Reload Service

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable sided

Disable Service

sudo systemctl disable sided

Start Service

sudo systemctl start sided

Stop Service

sudo systemctl stop sided

Restart Service

sudo systemctl restart sided

Check Service Status

sudo systemctl status sided

Check Service Logs

sudo journalctl -u sided -f --no-hostname -o cat