Skip to main content
For an introduction on Validators in Hyperlane, you can check out the Overview section.
As you follow this guide, you can run a Hyperlane validator on any of the existing chains the protocol is live on. Hyperlane Validators are run on a per-origin-chain basis, and these instructions are written for a single chain.

Requirements

  • Secure Signing Key
    • Validators use this key to sign Merkle Tree Hook checkpoints. A compromised key can be used to sign fraudulent checkpoints.
    • The Validator supports AWS KMS, Google Cloud KMS, and local hex keys. See checkpoint signer configuration and agent keys.
  • Publicly Readable Storage
    • Validators write their signatures off-chain to publicly accessible, highly available, storage, so that they can be aggregated by the Relayer.
    • Use Amazon S3 or Google Cloud Storage (GCS) in production. For local testing, write signatures to the filesystem. See checkpoint syncer configuration.
  • Machine Requirements
    • Validators can build the Rust binary or use the Docker image. Give each instance a persistent, writable database directory. You can run instances in different regions for high availability.
  • RPC Node
    • Validators use RPC to index Merkle Tree Hook insertions and read on-chain checkpoints. Use private endpoints that can serve historical insertion logs and state reads under the origin chain’s finality policy.
    • Validators should configure multiple RPC URLs for redundancy and reliability. Different chains have different configurations—check the Configuration section for details.
Polygon mainnet uses the finalized block tag. Choose an RPC provider that supports it and serves the insertion history your Validator needs. See the Polygon chain configuration.

Guide

Pre-Requisites

As a recap - before running a production Validator you need to have:
  1. Created a key for your Validator to sign with, see the Agent Keys documentation.
  2. Set up storage for your Validator signatures. See Amazon S3 setup or Google Cloud Storage setup.

Configuration

Experienced operators may prefer to deploy agents with Terraform or a community-submitted Ansible playbook instead. This process will automatically create agent keys, Validator buckets, permissions and any other auxiliary setup required to run a Validator cluster on AWS.

RPC Configuration

Hyperlane Validators can use multiple RPC URLs for reliability and redundancy. For production, configure independent private providers. For local testing with endpoints marked public, set --allowPublicRpcs true.
Set customRpcUrls to a comma-separated list of RPC URLs. This replaces the chain’s rpcUrls list. With majority or quorum, the Validator uses these endpoints for checkpoint votes.
The origin chain’s rpcConsensusType controls how the Validator verifies checkpoints before signing. With majority or quorum, the Validator compares each endpoint’s reported root with its local tree at the reported leaf index. Providers can report different indices. Exact duplicate URLs count once. With majority or quorum, an unavailable endpoint keeps its place in the vote. Signing waits until enough endpoints agree. Indexing and other RPC calls can still use fallback. See the Validator checkpoint consensus rules.

Validator WebSocket (optional)

The Validator WebSocket wakes your Validator on each new Merkle Tree Hook insertion so it can verify and sign checkpoints sooner. Keep all existing RPC endpoints so the Validator can independently check its locally computed Merkle root against the on-chain root before signing. With Validator v4.0.0, add websocketUrl and keep your chain’s configured blocks.reorgPeriod.

Configuration Settings

Replace <origin> with your origin chain name, such as ethereum.
Your Validator takes both command line arguments and environment variables as configuration. Take a look at the agent configuration page and the configuration reference for a full list of configuration possibilities.
You can also provide the path to additional configuration files as a comma separated list with the CONFIG_FILES environment variable. If you choose to run in Docker, see the docker section of agent configuration for tips on mounting your config files into your Docker container.

Setup-specific configuration

Choose a checkpoint signer and a storage backend for your environment.

Checkpoint signer configuration

For production, we strongly recommend an external, HSM-backed signing key. Use AWS KMS by default or Google Cloud KMS as an alternative.
Create the signing key and grant the Validator access. AWS KMS setup guide

Transaction signer configuration

The checkpoint signer uses secp256k1 on every origin chain. The transaction signer pays gas to publish the signed storage announcement on the origin chain. Keep your checkpoint key in KMS even when the announcement needs a separate local key. Configure the announcement signer under chains.<origin>.signer. If you omit it, the agent uses defaultSigner when configured. On EVM and Tron only, the Validator falls back to its checkpoint signer when both settings are absent. AWS and Google Cloud KMS transaction signers are available for EVM and Tron in v4.0.0. The other chain adapters in the table sign transactions with local keys. Fund the announcement account with native tokens. For local tests that only need checkpoint signing, use skipAnnounce. Signer implementation

Checkpoint syncer configuration

Amazon S3 is the default production setup in this guide. Amazon S3 and Google Cloud Storage can both store signed checkpoints from any supported origin chain, regardless of the checkpoint or announcement signer.
Create the bucket and grant write access to the Validator and public read access to Relayers. Amazon S3 setup guide

Start Validating

Setup

The recommended installation method for a production environment is using a Docker image.
First download the docker image:

Running the binary

The examples below use AWS KMS and S3 on Ethereum. Replace the key alias, bucket, and regions with your own. Set ETHEREUM_RPC_URLS to a comma-separated list of your private RPC endpoints. The agent loads contract addresses and finality settings from its bundled chain configuration. If you use AWS environment credentials, export the following variables before starting the Validator. AWS KMS also supports ECS task roles and EKS web identity. See AWS KMS setup for key and IAM configuration.
Start the Validator with a persistent database volume.

Announcing your Validator

The Relayer needs to know where to find your Validator’s signatures. Your Validator will automatically attempt to announce itself by writing to the ValidatorAnnounce contract on the chain that you’re validating. The origin-chain transaction signer needs enough native tokens to pay for gas. The Validator writes a signed copy of the announcement to the checkpoint syncer before sending the transaction. If your Validator has not yet announced itself, and does not have enough tokens to pay for gas, it will log a message specifying how many tokens are needed.

Success!

With the default majority policy, look for Initial consensus backfill verified in the logs after the chain has a Merkle Tree Hook insertion. Then look for Initial historical checkpoint publication complete to confirm that signed checkpoints have reached storage. For local storage, inspect index.json and the corresponding <index>_with_id.json. See Validator monitoring for ongoing checks.

Running Multiple Validators

We encourage folks to validate on as many chains as they are interested in supporting. This section provides an overview of the considerations and instructions to set up multiple validators. Multiple instances can improve availability. To increase signer redundancy on a given origin, run distinct signing keys that the destination ISM is configured to accept.

Running Multiple Validators: Key Considerations

  • Reusing Keys: You can reuse a signing key across origins. Use distinct keys for Validators that should count as separate signers on the same origin.
  • Shared AWS Account: The same AWS account can be used by multiple validators.
  • Using a Shared Bucket. Give each origin and signer its own folder in S3 or GCS (for example, --checkpointSyncer.folder ethereum-validator-1).

Additional Steps for Multiple Validators

1. Create an Agent Configuration

  • Generate an agent configuration file for each validator, specifying the chains they will validate and the corresponding RPC URLs.
  • Ensure that each configuration file points to the correct signing key and checkpoint storage location.

2. Run Each Validator

  • Give each Validator a separate writable database directory. In Docker, use a dedicated volume at /data or a unique directory under a shared volume, such as --db /data/validator_db_1.
  • When processes share a network namespace, assign each Validator a unique metrics port (for example, --metricsPort 9090 and --metricsPort 9091).
  • If running multiple validators on the same machine, allocate sufficient system resources (CPU, memory, and storage).
  • Ensure logs are directed to separate files or services for easier debugging and monitoring.
  • If using Docker, assign unique container names and network configurations to avoid conflicts.
By following these additional steps, you can efficiently manage multiple Hyperlane Validators.

Design Reference