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.
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.
| Step | Command | Takes | You see |
|---|---|---|---|
| 4a. Set up your terminal | Sign in, the invite's three lines, the zero command | A minute | Login Succeeded |
| 4b. Prepare | zero validator prepare | Up to 30 minutes | READY |
| 4c. Start | zero validator start | A few minutes | RUNNING |
| 4d. Check | zero validator status | Seconds | Your 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 prepareThis creates your validator host, a stack named zero-validator. The host:
- downloads LayerZero's validator software for the network;
- loads your sealed keys and checks them, and the network's genesis, against what LayerZero released;
- 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 startThe host checks itself again and starts your validator, which connects to the network. You see RUNNING.
4d. Check
zero validator statusThis 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_heightkeeps rising;peersis 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.