Skip to main content

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:
mev-commit relay diagram
  • If they have opted in, your relay only accepts blocks from mev-commit builders:
mev-commit validator relay diagram
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

Mainnet

Testnet

2

Test and Deploy

Test filtering behavior on Hoodi:
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:

Ethereum L1

mev-commit Chain

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:
You can retrieve all registered providers using the following script:
The output will contain the number of all registered keys and a list of providers with their registered BLS public keys.

Steps for v1.2 upgrade

The v1.2 upgrade to the mev-commit protocol will launch on mainnet in September 2025. For relays to enable this upgrade, the following will be required:
  • Relays must change the provider registry address used to query provider registrations. The new address will be available soon, and will be available at https://contracts.mev-commit.xyz/ or the mainnet docs page.
  • Relays must be able to handle the mev-commit chain starting from genesis. That is, the new provider registry contract address should be re-queried from block zero.
  • Any code relying on chain ID or block number values returned by the mev-commit chain RPC url must be able to handle those values changing.
Please feel free to reach out to us on telegram if you have any questions.