Useful Commands/
testnet/
celestia

Rpc status: Active

Service operations

#check logs
sudo journalctl -u celestia-appd -f

#start service
sudo systemctl start celestia-appd

#stop service
sudo systemctl stop celestia-appd

#restart service
sudo systemctl restart celestia-appd

#service status
sudo systemctl status celestia-appd

#enable service
sudo systemctl enable celestia-appd

#disable service
sudo systemctl disable celestia-appd

#reload all service files
sudo systemctl daemon-reload

#get node info
celestia-appd status 2>&1 | jq -r

#get node id
celestia-appd tendermint show-node-id

Key management

#add new wallet
celestia-appd keys add <wallet-name>

#restore existing wallet
celestia-appd keys add <wallet-name> --recover

#delete wallet
celestia-appd keys delete <wallet-name>

#list all wallets
celestia-appd keys list

#check balance
celestia-appd q bank balances <wallet-address>

Tokens operations

#withdraw all rewards
celestia-appd tx distribution withdraw-all-rewards --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#withdraw rewards from specific validator
celestia-appd tx distribution withdraw-rewards <validator-valoper-address> --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#delegate
celestia-appd tx staking delegate <validator-valoper-address> ${10**network.other.denom_exponent}utia --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#redelegate
celestia-appd tx staking redelegate <from-validator-valoper-address> <to-validator-valoper-address> ${10**network.other.denom_exponent}utia --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#unbond
celestia-appd tx staking unbond <validator-valoper-address> ${10**network.other.denom_exponent}utia --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#transfer
celestia-appd tx bank send <wallet-name> <wallet-address> ${10**network.other.denom_exponent}utia --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

Governance operations

#vote "yes"
celestia-appd tx gov vote <proposal-id> yes --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#vote "no"
celestia-appd tx gov vote <proposal-id> no --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#vote "no with veto"
celestia-appd tx gov vote <proposal-id> no_with_veto --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#vote "abstain"
celestia-appd tx gov vote <proposal-id> abstain --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y

#view all proposals
celestia-appd query gov proposals

#view proposal by ID
celestia-appd query gov proposal <proposal-id>

Validator operations

#create validator
celestia-appd tx staking create-validator \
--amount 1000000utia \
--moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--pubkey $(celestia-appd tendermint show-validator) \
--commission-rate 0.05 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--chain-id mocha-4 \
--from <wallet-name> \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.002utia \
--node "https://rpc.celestia.testnet.dteam.tech:443" \
-y

#edit validator
celestia-appd tx staking edit-validator \
--new-moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--commission-rate 0.05 \
--chain-id mocha-4 \
--from <wallet-name> \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.002utia \
--node "https://rpc.celestia.testnet.dteam.tech:443" \
-y

#unjail validator
celestia-appd tx slashing unjail --from <wallet-name> --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.002utia --node "https://rpc.celestia.testnet.dteam.tech:443" -y