# Validator

#### To create validator

```
celestia-appd tx staking create-validator \
--amount 1000000utia \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(celestia-appd tendermint show-validator) \
--moniker "validator" \
--identity "" \
--website "" \
--details "" \
--chain-id celestia \
--gas 1000 --fees 3000utia \
-y
```

#### Edit Existing Validator

```
celestia-appd tx staking edit-validator \
--commission-rate 0.11 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id celestia \
--gas 1000 --fees 3000utia \
-y 
```

#### Validator info

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

#### Validator Details

```bash
celestia-appd q staking validator $(celestia-appd keys show $WALLET --bech val -a) 
```

#### Jailing info

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

#### Slashing parameters

```bash
celestia-appd q slashing params 
```

#### Unjail validator

```bash
celestia-appd tx slashing unjail --from $WALLET --chain-id celestia --gas 300000 --fees 2000utia -y 
```

#### Active Validators List

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

```bash
[[ $(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

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