[Quick Start Tutorial] How to install a validator for the Oraichain Testnet

  1. Install docker and docker-compose

    https://docs.docker.com/engine/install/
    https://docs.docker.com/compose/install/

  2. Download and run script
    curl -OL https://raw.githubusercontent.com/oraichain/oraichain-static-files/master/setup.sh && chmod +x ./setup.sh && ./setup.sh

  3. Pull image

docker-compose pull orai

  1. Update orai.env

USER=[your username]
MNEMONIC=[your mnemonic]
PASS=[your keyring passphrase]
MONIKER=[your moniker name]

  1. Start orai_node docker

docker-compose up -d --force-recreate

  1. Check logs of orai_node docker

##The last 10 lines
docker-compose logs --tail=10
##All logs
docker-compose logs -f

Check the last block height in https://testnet.scan.orai.io and wait for your node to synchronize with the network before doing anything further. It will take around 15 minutes or more.

  1. Ask the Oraichain dev team for native ORAI tokens
  1. Broadcast yourself as a Validator

docker exec -it orai_node bash
fn createValidator
exit
docker-compose restart orai

To check if the process finishes correctly, type:

curl http://0.0.0.0:1317/websocket/health

If you receive a response similar to this:

{“alive”: true}