BINARY=
CHAIN=
PORT=
NODENAME=
FOLDER=
PORT=
sudo $BINARY config chain-id $CHAIN
sudo $BINARY config keyring-backend file
sudo $BINARY config node tcp://localhost:${PORT}657
sudo $BINARY init $NODENAME --chain-id $CHAIN
sudo $BINARY validate-genesis
sudo $BINARY keys add <wallet_name>
sudo $BINARY keys add <wallet_name> --recover
$BINARY keys unsafe-import-eth-key <wallet_name>-imported <metamask_private-key>
$BINARY keys unsafe-export-eth-key <wallet_name> > <wallet_name>-eth.export
sudo $BINARY keys list
sudo $BINARY keys delete <wallet_name>
sudo $BINARY query bank balances $($BINARY keys show <wallet_name> -a)
sudo $BINARY keys show <wallet_name> -a
$BINARY tx bank send <YOUR_WALLET_ADDRESS_OR_WALLET_NAME> <TO_ADDRESS> <AMOUNT>$DENOM --gas=auto --fees=<AMOUNT&DENOM> --chain-id $CHAIN --from <wallet_name>
sudo $BINARY keys show <wallet_name> --bech val -a
sudo $BINARY tx staking create-validator \
--amount= \ # amount & denom
--pubkey=$($BINARY tendermint show-validator) \
--moniker=$NODENAME \
--chain-id=$CHAIN \
--commission-rate= \ # 1% = 0.01 || 10% = 0.1 || 100% = 1
--commission-max-rate= \ # 1% = 0.01 || 10% = 0.1 || 100% = 1
--commission-max-change-rate= \ # 1% = 0.01 || 10% = 0.1 || 100% = 1
--min-self-delegation= \ # just number
--gas=auto \
--fees= \ # amount & denom
--from=<wallet_name>
sudo $BINARY tx staking edit-validator \
--website="YOUR_WEBSITE_LINK" \
--identity=YOUR_KEYBASE_PGP \
--details="YOUR_DETAILS" \
--chain-id=$CHAIN \
--gas=auto \
--fees= \ # amount & denom
--gas-adjustment= \ # 1% = 0.01 || 10% = 0.1 || 100% = 1
--from=<wallet_name> \
--commission-rate= \ # 1% = 0.01 || 10% = 0.1 || 100% = 1
-y
sudo $BINARY tx slashing unjail \
--broadcast-mode=block \
--from=$WALLET \
--chain-id=$CHAIN \
--gas=auto \
--fees= \ # amount & denom
--from=<wallet_name>
$BINARY query tendermint-validator-set | grep "$($BINARY tendermint show-address)"
$BINARY query distribution rewards $($BINARY keys show <wallet_name> -a) $($BINARY keys show <wallet_name> --bech val -a)
$BINARY query distribution commission $($BINARY keys show <wallet_name> --bech val -a)
$BINARY tx distribution withdraw-all-rewards --from <wallet_name> --chain-id $CHAIN --fees <amount&denom> --gas auto -y
$BINARY tx distribution withdraw-rewards $($BINARY keys show <wallet_name> --bech val -a) --commission --from <wallet_name> --chain-id $CHAIN --fees <amount&denom> --gas auto -y
sudo $BINARY status 2>&1 | jq .SyncInfo
OR
curl -s localhost:${PORT}657/status | jq .result.sync_info
sudo $BINARY status 2>&1 | jq .NodeInfo
sudo $BINARY tendermint show-node-id
journalctl -fu $BINARY -o cat
curl -sS http://localhost:$PORT/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
$BINARY query staking validators --limit 100 -o json | jq -r '.validators[] | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv' | column -t -s"," | sort -k3 -n -r | nl
echo $($BINARY tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/$FOLDER/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
$BINARY tx gov vote 1 <yes/no> --from <wallet_name> --chain-id $CHAIN