> For the complete documentation index, see [llms.txt](https://fangdarth.gitbook.io/fangdarth/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fangdarth.gitbook.io/fangdarth/guides/0g-validator-setup-guide.md).

# 0g Validator Setup Guide

## **Create the validator:**

Create a wallet for our validator:

```bash
0gchaind keys add $WALLET_NAME --eth
```

You may also import an existing wallet:

```bash
0gchaind keys add --recover $WALLET_NAME --eth
```

You will be given our wallet with a seed — save it in a safe place

Request private key of the EVM address:

```bash
0gchaind keys unsafe-export-eth-key $WALLET_NAME
```

Copy address and import in Metamask.

Now, go to the [faucet](https://faucet.0g.ai/) and request test tokens

Checking the balance in the terminal:

```bash
0gchaind q bank balances $(0gchaind keys show $WALLET_NAME -a)
```

#### The faucet gives you 1000000000000000000aevmos. For a validator to join an active set, you need at least 10000000000000000000aevmos (10 times more)

* Create the validator (you may change identity, website and details):

```bash
0gchaind tx staking create-validator \
  --amount=1000000ua0gi \
  --pubkey=$(0gchaind tendermint show-validator) \
  --moniker="$MONIKER" \
  --chain-id=zgtendermint_16600-1 \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --details="Your Details" \
  --min-self-delegation="1" \
  --from=$WALLET_NAME \
  --gas=auto \
  --gas-adjustment=1.4
```

* Copy 0gvaloper address

Delegate tokens to yourself:

```bash
0gchaind q staking validator $(0gchaind keys show $WALLET_NAME --bech val -a)
```

Delegating to another validator:

```bash
0gchaind tx staking delegate <validator address> --from <wallet> <amount>ua0gi --gas=auto --gas-adjustment=1.4 -y
```

Check transactions in explorer.
