# Useful commands

{% tabs %}
{% tab title="Service operations" %}

#### Check logs

```
sudo journalctl -u celestia-appd -fo cat
```

#### 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
```

#### Reload services

```
sudo systemctl daemon-reload
```

#### Enable Service

```
sudo systemctl enable celestia-appd
```

#### Disable Service

```
sudo systemctl disable celestia-appd
```

#### Node info

```
celestia-appd status 2>&1 | jq
```

#### Your node peer

```
echo $(celestia-appd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.celestia-app/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
```

{% endtab %}

{% tab title="Governance" %}

#### **View all proposals**

```
celestia-appd query gov proposals
```

#### **View specific proposal**

```
celestia-appd query gov proposal 1
```

#### V**ote yes**

```
celestia-appd tx gov vote 1 yes --from wallet --chain-id mocha-4  --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### V**ote no**

```
celestia-appd tx gov vote 1 no --from wallet --chain-id mocha-4  --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### V**ote abstain**

```
celestia-appd tx gov vote 1 abstain --from wallet --chain-id mocha-4  --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### V**ote no\_with\_veto**

```
celestia-appd tx gov vote 1 no_with_veto --from wallet --chain-id mocha-4  --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

{% endtab %}

{% tab title="Key management" %}

#### Add New Wallet

```
celestia-appd keys add wallet
```

#### Restore executing wallet

```
celestia-appd keys add wallet --recover
```

#### List All Wallets

```
celestia-appd keys list
```

#### **D**elete wallet

```
celestia-appd keys delete wallet
```

#### **C**heck Balance

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

#### **E**xport Key (save to wallet.backup)

```
celestia-appd keys export wallet
```

#### **V**iew EVM Prived Key

```
celestia-appd keys unsafe-export-eth-key wallet
```

#### Import Key (restore from wallet.backup)

```
celestia-appd keys import wallet wallet.backup
```

{% endtab %}

{% tab title="Validator management" %}
{% hint style="info" %}
Before running this command, ensure that you have replaced the default values for `moniker`, `identity`, `details`, and `website` with your own validator information.
{% endhint %}

#### Create New Validator

```
celestia-appd tx staking edit-validator \
--amount 1000000utia \
--new-moniker "Your_Moniker" \
--identity "Keybase_ID" \
--details "Your_Description" \
--website "Your_Website" \
--security-contact "Your_Email" \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--chain-id mocha-4 \
--gas auto --gas-adjustment 1.5 --gas-prices 0.005utia \
-y 
```

#### Edit Existing Validator

```
celestia-appd tx staking edit-validator \
--new-moniker "Your_Moniker" \
--identity "Keybase_ID" \
--details "Your_Description" \
--website "Your_Website" \
--security-contact "Your_Email" \
--commission-rate 0.05 \
--from Wallet_Name \
--chain-id mocha-4 \
--gas auto --gas-adjustment 1.5 --gas-prices 0.005utia \
-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
```

#### Active Validators List

```
celestia-appd q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl 
```

#### Check Validator key

```
[[ $(celestia-appd q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(celestia-appd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
```

#### Signing info

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

{% endtab %}

{% tab title="Token management" %}
{% hint style="info" %}
Replace the placeholders `<TO_WALLET_ADDRESS>`, `<TO_VALOPER_ADDRESS>`, and the `amount` value with your actual target wallet address, validator address, and the amount you want to transfer (denominated in `utia`).
{% endhint %}

#### Withdraw all rewards

```
celestia-appd tx distribution withdraw-all-rewards --from $WALLET --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### Withdraw rewards and commission from your validator

```
celestia-appd tx distribution withdraw-rewards VALOPER_ADDRESS --from wallet --commission --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### Check your balance

```
celestia-appd query bank balances wallet
```

#### Delegate to Yourself

```
celestia-appd tx staking delegate $(celestia-appd keys show wallet --bech val -a) <amount>utia --from $WALLET ---chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### Delegate

```
celestia-appd tx staking delegate <TO_VALOPER_ADDRESS> <amount>utia --from wallet --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### Redelegate Stake to Another Validator

```
celestia-appd tx staking redelegate VALOPER_ADDRESS <TO_VALOPER_ADDRESS> <amount>utia --from wallet --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### Unbond

```
celestia-appd tx staking unbond $(celestia-appd keys show $WALLET --bech val -a) <amount>utia --from wallet --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

#### Transfer Funds

```
celestia-appd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> <amount>utia --chain-id mocha-4 --gas auto --gas-adjustment 1.5 --gas-prices 0.005utia -y
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://service.block-pro.net/testnet/celestia/validator-node/useful-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
