๐Ÿ“œ Useful Commands

Get validator info

celestia-appd status 2>&1 | jq .ValidatorInfo

Get sync info

celestia-appd status 2>&1 | jq

Key management

Add new key

celestia-appd keys add wallet

Recover existing key

celestia-appd keys add wallet --recover

List all keys

celestia-appd keys list

Delete key

celestia-appd keys delete wallet

Query wallet balance

celestia-appd q bank balances $(celestia-appd keys show wallet -a)

Validator management

Please make sure you have adjusted moniker, identity, details and website to match your values.

Create new validator

celestia-appd tx staking create-validator \
--amount 1000000utia \
--pubkey $(celestia-appd tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id mocha-4 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.05 \
--min-self-delegation 1 \
--from wallet \
--gas 200000 \
--gas-prices 0.002utia \
-y

Edit existing validator

celestia-appd tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id mocha-4 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas 200000 \
--gas-prices 0.002utia \
-y

Validator Details

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

Jailing info

celestia-appd q slashing signing-info $(celestia-appd tendermint show-validator) 

Slashing parameters

celestia-appd q slashing params 

Unjail validator

celestia-appd tx slashing unjail --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Token management

Withdraw rewards from all validators

celestia-appd tx distribution withdraw-all-rewards --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Withdraw commission and rewards from your validator

celestia-appd tx distribution withdraw-rewards $(celestia-appd keys show wallet --bech val -a) --commission --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Delegate tokens to yourself

celestia-appd tx staking delegate $(celestia-appd keys show wallet --bech val -a) 1000000utia --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Delegate tokens to validator

celestia-appd tx staking delegate <TO_VALOPER_ADDRESS> 1000000utia --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Redelegate tokens to another validator

celestia-appd tx staking redelegate $(celestia-appd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000utia --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Unbond tokens from your validator

celestia-appd tx staking unbond $(celestia-appd keys show wallet --bech val -a) 1000000utia --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Send tokens to the wallet

celestia-appd tx bank send wallet <TO_WALLET_ADDRESS> 1000000utia --from wallet --chain-id mocha-4 --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Remove node

Please, before proceeding with the next step! All chain data will be lost! Make sure you have backed up your priv_validator_key.json!

sudo systemctl stop celestia-appd
sudo systemctl disable celestia-appd
sudo rm -rf /etc/systemd/system/celestia-appd.service
sudo rm $(which celestia-appd)
sudo rm -rf $HOME/.celestia-app
sudo rm -rf $HOME/celestia-app

Service Management

Reload service configuration

sudo systemctl daemon-reload

Enable service

sudo systemctl enable celestia-appd

Disable service

sudo systemctl disable celestia-appd

Start service

sudo systemctl start celestia-appd

Stop service

sudo systemctl stop celestia-appd

Restart service

sudo systemctl restart celestia-appd

Check service status

sudo systemctl status celestia-appd

Check service logs

sudo journalctl -u celestia-appd -f --no-hostname -o cat

Last updated