> For the complete documentation index, see [llms.txt](https://service.block-pro.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://service.block-pro.net/testnet/celestia/useful-commands/validator-operations.md).

# Validator Operations

**Mocha Testnet · `mocha-5`**

The complete reference is now on [Useful Commands](/testnet/celestia/useful-commands.md#validator-operations).

## Validator operations

### Details

Inspect status, stake, commission and jailed state.

```bash
celestia-appd query staking validator YOUR_VALOPER_ADDRESS --node http://127.0.0.1:26657 -o json
```

### Consensus public key

Show the local consensus public key.

```bash
celestia-appd tendermint show-validator
```

### Set gas price

Set an accepted gas price including the utia denomination.

```bash
GAS_PRICE="YOUR_GAS_PRICE_IN_UTIA"
```

### Edit name

Update the public validator name.

```bash
celestia-appd tx staking edit-validator \
  --new-moniker "YOUR_NEW_NAME" \
  --from validator \
  --chain-id mocha-5 \
  --node http://127.0.0.1:26657 \
  --keyring-backend file \
  --gas auto \
  --gas-adjustment 1.5 \
  --gas-prices "$GAS_PRICE"
```

### Commission and rewards

Withdraw your validator commission and rewards.

```bash
celestia-appd tx distribution withdraw-rewards YOUR_OWN_VALOPER_ADDRESS \
  --commission \
  --from validator \
  --chain-id mocha-5 \
  --node http://127.0.0.1:26657 \
  --keyring-backend file \
  --gas auto \
  --gas-adjustment 1.5 \
  --gas-prices "$GAS_PRICE"
```

### Unjail

Use only after fixing the cause of jailing; tombstoned validators cannot unjail.

```bash
celestia-appd tx slashing unjail \
  --from validator \
  --chain-id mocha-5 \
  --node http://127.0.0.1:26657 \
  --keyring-backend file \
  --gas auto \
  --gas-adjustment 1.5 \
  --gas-prices "$GAS_PRICE"
```
