Useful commands
List of commands used to manage the validator and node
Wallet interaction
Create Wallet
celestia-appd keys add <WALLET_NAME>
Restore wallet
celestia-appd keys add <WALLET_NAME> --recover
Show all wallets
celestia-appd keys list
Delete wallet
celestia-appd keys delete <WALLET_NAME>
Export wallet
celestia-appd keys export <WALLET_NAME>
Import wallet
celestia-appd keys import <WALLET_NAME> <WALLET_NAME>.backup
Show balance
celestia-appd q bank balances $(archwayd keys show <WALLET_NAME> -a)
Validator control
Create a 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 celestia \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from <WALLET_NAME> \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005utia - y
Edit validator
celestia-appd tx staking edit-validator \
--new-moniker="<YOUR_MONIKER>" \
--identity=<YOUR MONIKER> \
--details="<YOUR_DETAILS>" \
--chain-id celestia \
--commission-rate=0.1 \
--from=<WALLET_NAME> \
--gas-prices=0.005utia \
--gas-adjustment=1.5 \
--gas=auto \
-y
Unjail
celestia-appd tx slashing unjail --from <WALLET_NAME> --fees 400utia --gas 256000 -y
Jail reason
celestia-appd q slashing signing-info $(celestia-appd tendermint show-validator)
Active validators
celestia-appd q staking validators -o json --limit=1000 \| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \| jq -r '.tokens + " - " + .description.moniker' \| sort -gr | nl
Inactive validators
celestia-appd q staking validators -o json --limit=1000 \| jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' \| jq -r '.tokens + " - " + .description.moniker' \| sort -gr | nl
Information about the validator
celestia-appd q staking validator $(celestia-appd keys show <WALLET_NAME> --bech val -a)
Balance management
Withdrawal of all rewards
celestia-appd tx distribution withdraw-all-rewards --from <WALLET_NAME> --fees 400utia --gas 256000 -y
Withdrawal of rewards and commissions
celestia-appd tx distribution withdraw-rewards <WALLET_NAME> --from <WALLET_NAME> --fees 400utia --gas 256000 --commission -y
Self-delegation
celestia-appd tx staking delegate <TO_VALOPER_ADDRESS> 1000000utia --from <WALLET_NAME> --fees 400utia --gas 256000 -y
Delegation to validator
celestia-appd tx staking delegate <WALLET_NAME> <TO_VALOPER_ADDRESS> 1000000aarch --from <WALLET_NAME> --fees 400utia --gas 256000 -y
Redelegation to another validator
celestia-appd tx staking redelegate <WALLET_NAME> <TO_VALOPER_ADDRESS> 1000000utia --from <WALLET_NAME> --fees 400utia --gas 256000 -y
Unbond tokens
celestia-appd tx staking unbond <WALLET_NAME> 1000000utia --from <WALLET_NAME> --fees 400utia --gas 256000 -y
Sending tokens to a wallet
celestia-appd tx bank send <FROM_WALLET_NAME> <TO_WALLET_ADDRESS> 1000000utia --fees 400utia --gas 256000 -y
Governance
All proposals
celestia-appd query gov proposals
All proposals by ID
celestia-appd query gov proposal 1
Vote "YES"
celestia-appd tx gov vote 1 yes --from <WALLET_NAME> --fees 400utia
Vote "NO"
celestia-appd tx gov vote 1 no --from <WALLET_NAME> --fees 400utia
Vote "Abstain"
celestia-appd tx gov vote 1 abstain --from <WALLET_NAME> --fees 400utia
Vote "NoWithVeto"
celestia-appd tx gov vote 1 no_with_veto --from <WALLET_NAME> --fees 400utia
Utility
Disable Indexer
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.celestia-app/config/config.toml
Enable Indexer
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.celestia-app/config/config.toml
Update pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.celestia-app/config/app.toml
Node support
Validator Info
celestia-appd status 2>&1 | jq .ValidatorInfo
Sync info
celestia-appd status 2>&1 | jq .SyncInfo.catching_up
Deleting a node
Before deleting a node make sure you save priv_validator_key.json
systemctl stop celestia
systemctl disable celestia
rm /etc/systemd/system/celestia.service
systemctl daemon-reload
cd $HOME
rm -rf .celestia-app celestia-app
rm -rf $(which celestia-appd)
Service setup
Reload service configuration
sudo systemctl daemon-reload
Enable service
sudo systemctl enable celestia
Disable service
sudo systemctl disable celestia
Start service
sudo systemctl start celestia
Stop service
sudo systemctl stop celestia
Restart service
sudo systemctl restart celestia
Check service status
sudo systemctl status celestia
Check service logs
sudo journalctl -u celestia -f --no-hostname -o cat
Last updated