Overview

Enabling mev-commit on your relay is simple and requires minimal changes to your existing setup.

This guide explains how to integrate your relay with mev-commit.

Your relay will check if the current slot’s validator has opted into mev-commit:

  • If they haven’t opted in, your relay works normally:
  • If they have opted in, your relay only accepts blocks from mev-commit builders:

To implement this, your relay needs to track two things:

  1. Provider Registry: Lists opted-in builders and their BLS keys
  2. Validator Registry: Shows which validators have opted into mev-commit

Quick Start

1

View the Example Implementation

MEV_COMMIT_RPC=wss://chainrpc-wss.testnet.mev-commit.xyz PROVIDER_REGISTRY_ADDR=

2

Test and Deploy

Test filtering behavior on Holesky:

3

Register Your Relay

  1. Add your relay to our supporting relays list
  2. Provide connection details for validators
  3. Contact the Primev team to coordinate validator outreach

You have now successfully integrated your relay with mev-commit.

Implementation Details

What Contracts to Monitor

To track which validators have opted into mev-commit, you’ll want to monitor the following contracts:

  1. Validator Registry Router on Ethereum L1:

    • Network: Ethereum Mainnet
    • Address: 0x251Fbc993f58cBfDA8Ad7b0278084F915aCE7fc3
  2. Provider Registry on mev-commit-chain:

    • Network: mev-commit
    • Address: 0x1C2a592950E5dAd49c0E2F3A402DCF496bdf7b67

By monitoring these contracts, you can determine which validators and providers have opted into mev-commit and ensure compliance with the protocol.

How to Query the Provider Registry

The mev-commit provider registry contract maintains the list of authorized providers such as block builders. You can query this contract to validate builder addresses.

Contract Details:

  • Network: mev-commit-chain
  • Address:

Mainnet Integration

Mainnet Contracts

The two main contracts on mainnet will be the provider registry and validator registry router.

  • The provider registry will list all builders that have opted into mev-commit, and will be on the mev-commit-chain.
  • The validator registry router will track which validators have opted into mev-commit, and will be on the eth-mainnet.

We expect to deploy these contracts before the start of 2025.