Skip to content

Before you start

LayerZero's quickstart runs a Zero validator in your own AWS account. What you need, who does which step, and how long it takes.

On this page

A Zero validator can run on any cloud or on your own hardware. This quickstart is the fastest way: LayerZero's onboarding tool sets up everything in your own AWS account, from sealed keys to a running validator host. To run somewhere else, talk to your LayerZero contact.

The quickstart takes four steps over two sessions: set up access and generate your keys now, then start your validator once LayerZero tells you, through your contact, that the network is ready. Each step is one or two commands in your terminal.

New to Zero? Read How validators work first.

The steps

StepWhoWhenYou see
1. Set up your terminalWhoever runs the stepsNow, and in each new terminalLogin Succeeded
2. Set up accessYour AWS administrator, onceNowSuccessfully created/updated stack - zero-onboarding
3. Generate your keysYouNowACCEPTED and your validator address
4. Run your validatorYouWhen LayerZero sends "Run your Zero validator: Step 4"READY, then RUNNING

Steps 1 to 3 take under an hour. Step 4 comes later, often days later, once every validator in the committee has registered and LayerZero has built the network.

What you need

  1. Your invite from LayerZero

    An email with three lines to paste into your terminal: your validator's AWS Region, the onboarding tool's exact version, and a command that signs Docker in to LayerZero's registry. Keep it: you paste the same lines again in Step 4. LayerZero has already registered your contact email for a seat.

  2. An AWS account used only for this validator

    Your keys live only in this account, with no other backup. Don't close it, and don't use it for anything else. You need an administrator of the account for Step 2. For the other steps, sign in as an IAM user or role (for example through AWS SSO), never as the account's root user.

  3. Enough EC2 capacity in your Region

    Your validator host needs a set number of vCPUs: 8 by default, and LayerZero may set a different size for your network. In Service Quotas, check Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances for Amazon EC2 in your Region. If it's lower, ask AWS to raise it now: it can take a day. Step 3 checks this for you and names the number.

  4. A Mac or Linux machine with Docker and the AWS CLI

    Docker, and the AWS CLI v2 (2.9 or later), in bash or zsh. On Linux, run Docker as yourself, not with sudo (add yourself to the docker group). See Get Docker and Install the AWS CLI.

  5. Access to your contact mailbox

    Step 3 emails a one-time code to the address LayerZero invited.

Who does what

You can run every step yourself if you administer the account. Many teams split it:

  • Your AWS administrator runs Step 2 once. It creates the role the onboarding tool uses, and names who may use that role. They can deploy it from their terminal, from AWS CloudShell, or from your infrastructure pipeline.
  • Your operator runs Steps 3 and 4. They need permission to assume the zero-onboarding role and to pull images from LayerZero's registry, and nothing else. An administrator already has both.

If your security team wants to review the setup first, give them Security model, the template from Step 2a, and ask your LayerZero contact for the full security review.

Inspect before you run

Everything you run is pinned by digest, so you can inspect exactly what will run. After Step 1:

Inspect the onboarding tool and its templates
docker pull "$IMAGE"
docker inspect "$IMAGE"                                      # labels name the source commit
docker run --rm "$IMAGE" access-template --any-principal     # the Step 2 template
docker run --rm "$IMAGE" access-template --keygen            # the key-generation template
docker run --rm "$IMAGE" access-template --validator         # the validator host template

None of these use your AWS credentials. Your LayerZero contact can show you the build provenance of any digest.

Messages from LayerZero

LayerZero only ever asks you to paste the three lines in your invite, and they always have the form shown in Step 1. Later messages, such as Step 4's, have nothing to paste. If a message asks you to run anything else, confirm it with your LayerZero contact another way first. LayerZero reaches you through your contact, on Slack or Telegram.