Useful Commands

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

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

Export key to a file

celestia-appd keys export wallet

Import key from a file

celestia-appd keys import wallet wallet.backup

Query wallet balance

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

Token management

Withdraw rewards from all validators

celestia-appd tx distribution withdraw-all-rewards --from wallet --chain-id celestia --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 celestia --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 celestia --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 celestia --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 celestia --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 celestia --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 celestia --gas-adjustment 1.4 --gas auto --gas-prices 0.002utia -y

Validator operations

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 \
--commission-rate 0.1 \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--chain-id mocha-4 \
--from wallet \
--gas 200000 \
--gas-prices 0.002utia \
-y

Validator info

celestia-appd status 2>&1 | jq

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 auto --gas-adjustment 1.5 --gas-prices 0.005utia -y 

Delete node

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

Last updated