Reference

APP_TOML="~/.cascadiad/config/app.toml" sed -i 's|^pruning =.|pruning = "custom"|' $APP_TOML sed -i 's|^pruning-keep-recent =.|pruning-keep-recent = "100"|' $APP_TOML sed -i 's|^pruning-keep-every =.|pruning-keep-every = "0"|' $APP_TOML sed -i 's|^pruning-interval =.|pruning-interval = "10"|' $APP_TOML

Set custom pruning.

cascadiad --help

Access help.

cascadiad keys show wallet --bech val -a

Get your valoper address.

cascadiad q staking params cascadiad q slashing params

Check network parameters.

cascadiad q txs --events transfer.recipient=

2>&1 | jq | grep txhash

Search all input transactions by address.

cascadiad q txs --events transfer.sender=

2>&1 | jq | grep txhash

Search all output transactions by address.

cascadiad query bank balances <your_validator_address>

Check your validator balance.

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

Query jailed validator.

cascadiad query staking validators --limit 2000 -o json | jq -r '.validators[] | select(.status=="BOND_STATUS_BONDED") | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv' | column -t -s"," | sort -k3 -n -r

Query active validators.

cascadiad query staking validators --limit 2000 -o json | jq -r '.validators[] | select(.status=="BOND_STATUS_UNBONDED") | [.operator_address, .status, (.tokens|tonumber / pow(10; 6)), .description.moniker] | @csv' | column -t -s"," | sort -k3 -n -r

Query inactive validators.

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

Check synchronization status.

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

Check latest block height.

cascadiad status 2>&1 | jq .ValidatorInfo

Check validator status.

cascadiad query tx <tx_hash>

Check transaction.

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

Reset network.

cascadiad tx staking edit-validator --from <validator_key> --commission-rate <new_commission_rate> --gas-prices "7aCC" --gas "auto" --gas-adjustment 1.4

Change your validator commission rate. (Can only be changed daily, by 1%.)

cascadiad tx bank send <your_validator_address> <your_key_name> <destination_validator_address> <amount>aCC --chain-id cascadia_11029-1 --gas-prices 7aCC --gas-adjustment 1.2 --gas auto --yes --trace

Transfer tokens between your validator's wallet and another wallet.

cascadiad tx distribution withdraw-rewards <your_validator_address> --commission --from <key_name> --chain-id cascadia_11029-1 --gas-prices 7aCC --gas-adjustment 1.2 --gas auto --yes

Withdraw earned commission.

cascadiad tx gov proposal [id]

Query with commands.

cascadiad tx slashing unjail --from wallet-name --chain-id cascadia_11029-1 --gas-prices=8aCC -y

Unjail validator.

cascadiad tx staking delegate <your_valoper_address> <amount>aCC --from wallet --chain-id $CHAIN_ID --fees 5000aCC

Bond additional tokens.

cascadiad unsafe-reset-all

Reset all settings.

cd ~/.cascadiad/config sed -i "s/^timeout_propose =.*/timeout_propose = "2.7s"/" config.toml sed -i "s/^timeout_prevote =.*/timeout_prevote = "0.9s"/" config.toml sed -i "s/^timeout_precommit =.*/timeout_precommit = "0.9s"/" config.toml sed -i "s/^timeout_commit =.*/timeout_commit = "3.6s"/" config.toml

Update config.toml.

echo -e "\033[0;32m$(grep -A 3 "[rpc]" ~/.cascadiad/config/config.toml | egrep -o ":[0-9]+")\033[0m"

Check RPC.

echo $(cascadiad tendermint show-node-id)@$(curl http://ifconfig.me/)$(grep -A 3 "[p2p]" ~/.cascadiad/config/config.toml | egrep -o ":[0-9]+")

Check peers.

git clone https://github.com/cascadiafoundation/cascadia.git cd cascadia sudo apt install make

Build binary from source.

sed -i 's|^indexer =.|indexer = "kv"|' $HOME/.cascadiad/config/config.toml

Turn on indexing.

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

Turn off indexing.

sed -i.bak -e "s%^proxy_app = "tcp://127.0.0.1:26658"%proxy_app = "tcp://127.0.0.1:36658"%; s%^laddr = "tcp://127.0.0.1:26657"%laddr = "tcp://127.0.0.1:36657"%; s%^pprof_laddr = "localhost:6060"%pprof_laddr = "localhost:7060"%; s%^laddr = "tcp://0.0.0.0:26656"%laddr = "tcp://0.0.0.0:36656"%; s%^prometheus_listen_addr = ":26660"%prometheus_listen_addr = ":36660"%" $HOME/.cascadiad/config/config.toml && sed -i.bak -e "s%^address = "0.0.0.0:9090"%address = "0.0.0.0:10090"%; s%^address = "0.0.0.0:9091"%address = "0.0.0.0:10091"%; s%^address = "tcp://0.0.0.0:1317"%address = "tcp://0.0.0.0:2317"%" $HOME/.cascadiad/config/app.toml && sed -i.bak -e "s%^node = "tcp://localhost:26657"%node = "tcp://localhost:36657"%" $HOME/.cascadiad/config/client.toml

Set custom ports.

sudo cascadiad keys add <wallet_name> --recover --keyring-backend os

Recover wallet.

sudo cascadiad keys delete <wallet_name>

Delete wallet.

sudo journalctl -u cascadiad.service -f

Display cascadiad logs.

sudo journalctl -xeu <service_name>.service -f

Display extended, historic service logs.

sudo systemctl daemon-reload

Reload service.

sudo systemctl disable cascadiad

Disable cascadiad.

sudo systemctl enable cascadiad

Enable cascadiad.

sudo systemctl restart cascadiad.service

Restart cascadiad.

sudo systemctl start cascadiad

Start cascadiad.

sudo systemctl status cascadiad

Check cascadiad status.

sudo systemctl stop cascadiad.service

Stop cascadiad.

sudo systemctl stop cascadiad && sudo systemctl disable cascadiad && sudo rm /etc/systemd/system/cascadiad.service && sudo systemctl daemon-reload && rm -rf $HOME/.cascadiad && rm -rf $HOME/cascadiad

Delete node.

systemctl stop cascadiad sudo systemctl disable cascadiad sudo rm -rf ~/cascadia ~/.cascadiad /etc/systemd/system/cascadiad.service

Disable node.

wget -qO- eth0.me

Check server IP address.

Last updated