Skip to content

Step 4: Run your validator

Once LayerZero tells you the network is ready, prepare your validator host, start it before the genesis time, and check it's signing.

On this page

Do this when LayerZero sends you "Run your Zero validator: Step 4". Two commands create your validator host and turn it on, and a third shows how it's doing. Start it before the network's genesis time, which your LayerZero contact gives you.

StepCommandTakesYou see
4a. Set up your terminalSign in, the invite's three lines, the zero commandA minuteLogin Succeeded
4b. Preparezero validator prepareUp to 30 minutesREADY
4c. Startzero validator startA few minutesRUNNING
4d. Checkzero validator statusSecondsYour seat, host and node

4a. Set up your terminal

It may be days since Step 3, so set up your terminal again as in Step 1: sign in to AWS, paste the same three lines from your original invite, and create the zero command. The Step 4 email has nothing to paste.

4b. Prepare

zero validator prepare

This creates your validator host, a stack named zero-validator. The host:

  1. downloads LayerZero's validator software for the network;
  2. loads your sealed keys and checks them, and the network's genesis, against what LayerZero released;
  3. tells LayerZero it's ready, and stops.

When it's done, you see READY, your validator address, the genesis and software it checked, and your host's public IP address. The host stays stopped until you start it.

4c. Start

Run this before the genesis time. If your contact gave you no genesis time, run it as soon as you see READY.

zero validator start

The host checks itself again and starts your validator, which connects to the network. You see RUNNING.

4d. Check

zero validator status

This shows how your validator is doing. It changes nothing, so run it whenever you like. Look for three things in the node's status line:

  • finalized_height keeps rising;
  • peers is above 0;
  • signing_enabled=true: your validator is signing.

The last line, Next:, tells you what to do, if anything. See Check your validator for every field.

Next

Your validator runs on its own from here. Operate your validator covers checking it, installing new releases, stopping it, and cleaning up when a network ends.