Skip to content
EEZ Protocol Documents home

Integrate a chain

Any chain can join the Ethereum Economic Zone (EEZ), however it is sequenced. Your chain keeps its own sequencer, transaction format, block construction, governance, and token — while letting users call Ethereum mainnet contracts synchronously through local cross-chain proxies and receive the return value in the same transaction. A new chain can build this in from genesis. An existing live chain has more to change, and the note below lists what.

The EEZ core protocol is the framework: the contracts and specification every chain integrates. RollupX is its reference implementation. Gnosis Chain, built on eez-rollup0, is set to be the first general-purpose chain on EEZ. This guide is how other EVM chains integrate.

Start with the 60-second overview, scope your stack with the interactive checklist, then follow the six playbook steps from devnet PoC to mainnet. Full ABI structs, hash formulas, and deployment scripts live in eez-core-protocol.

How it works in 60 seconds

EEZ does not dictate how your chain sequences blocks or governs upgrades. You keep your sequencer, transaction format, block construction, and governance — and add EEZ settlement on L1, EEZL2 on your chain, and an off-chain composer with same-L1-block proof verification.

Every chain integrating with EEZ settles its state changes through the EEZ contract on L1. If your chain already has a native bridge, how the two fit together is part of scoping with the protocol engineers.

Part of your stackWhat stays yoursWhat you add for EEZ
Sequencer & orderingLocal block production, mempool, fee policy, governanceSync-slot coordination with an off-chain composer, needed once you enable cross-chain calls
Execution nodeEVM / execution client, state DB, RPCsEEZL2 contract + protected SYSTEM_ADDRESS + follow executed L1 updates (including L1 reorgs)
Proof systemsYour choice of verifiers, keys, and per-rollup thresholdProof or attestation ready within the same L1 block (start with ECDSA for PoC, upgrade to ZK / multi-prover)
L1 settlementAny existing bridge (how it fits with EEZ is scoped per chain)One Rollup contract registered on EEZ; your batch poster submits state batches with execution entries to EEZ.postAndVerifyBatch
ApplicationsNormal Solidity interfaces and user flowsOpt-in calls through local CrossChainProxy contracts (no async bridge wrapper)

Every joining chain meets two core rules:

  1. Verify state within one L1 block. Synchronous cross-chain calls work only in an L1 block where your rollup's batch is verified on EEZ. Each rollup configures its own proof systems and approval threshold. The reference Rollup accepts a threshold of 0, but every batch still needs at least one valid proof from a proof system your rollup allows.
  2. Follow Ethereum L1 history. Your chain follows only the updates that actually execute on L1. If a block your node already executed does not land on L1 as simulated, or L1 itself reorgs, the affected L2 blocks must be reorged.

Scope your integration

Pick your chain type, proof system, and target stage to generate a tailored component checklist you can copy straight into an issue or RFC.

[ INTEGRATION SCOPER ]
eez-core-protocol
Chain
Proof system
Target stage
Deploy ECDSAProofSystem + Rollup (per-rollup threshold) and register via EEZ.registerRollup with initialRoot = starting block hash.
deployment/README.md
Post batches carrying L2→L1 ExecutionEntry items via EEZ.postAndVerifyBatch.+ Stage 2
src/EEZ.sol
Deploy EEZL2 with rollupId + protected SYSTEM_ADDRESS for loadExecutionTable.+ Stage 2
src/L2/EEZL2.sol
Off-chainStep 3
Composer (simulate L2→L1 + build entries) + DA publisher + same-block proving.+ Stage 2
EXECUTION_ENTRY_SPEC.md
ProverStep 5
ECDSAProofSystem signer approves publicInputsHash for PoC bring-up; replace or raise threshold before real value.
MULTI_PROVER_SPEC.md
Existing L2 + ECDSA: pin initialRoot to your starting block hash, plan L1 reorg reconciliation, and govern Rollup / ProxyAdmin keys before production.
Referenceeez-rollup0· baseline L2→L1 & L1→L2

Integration playbook

Cross-chain calls are optional at first — start with root-only settlement and add synchronous calls incrementally. Want to see the reference stack running before modifying your own client? Start with the four Rollup Operators walkthroughs on build.eez.io using ECDSAProofSystem on a local devnet or Chiado.

1. Register on L1

Goal: Give your chain an on-chain identity (rollupId) and define which proof systems can approve its state updates.

Deploy your own isolated EEZ contract for a private devnet, or register directly on a canonical deployment. Deploy the proof systems your chain accepts (ECDSAProofSystem is the fastest option for an early PoC), then deploy Rollup (or a custom IRollupContract) configured with those proof systems, their vkeys, and a per-rollup approval threshold (the reference Rollup accepts 0, but every batch still needs at least one valid proof from a proof system your rollup allows).

Call EEZ.registerRollup(rollupContract, initialRoot) (permissionless on EEZ; owned-caller on the reference Rollup) to receive your rollupId (0 is reserved for L1). For an existing chain, initialRoot marks where EEZ integration begins; a block hash is a natural choice.

2. Submit state updates

Goal: Advance your chain's EEZ state root on L1 within the same L1 block.

Send batches to EEZ.postAndVerifyBatch. Each update specifies currentRoot, newRoot, and an etherDelta on your chain's isolated L1 ETH balance, which must match the ETH the entry's calls actually move (zero for a root-only update). A batch can advance the root with no cross-chain calls at all — ideal for Stage 1 verification before wiring cross-chain execution.

3. Publish your chain data

Goal: Make your L2 block data reconstructible from L1 so nodes, derivers, and proof systems agree on state transitions.

We recommend the EEZ message format, which the reference composer and proof systems use, published in blobs, calldata, or both. Any custom format works too, as long as it preserves nested call order, results, and reverts and your composer, node, and proof systems agree on how to read it.

4. Add cross-chain calls

Goal: Enable synchronous L2 → L1 and L1 → L2 calls through local cross-chain proxies.

Applications call a local cross-chain proxy representing a contract on another chain using its normal interface. We recommend the same proxy pattern on L2; a chain that uses its own call mechanism must provide equivalent execution, access control, and ETH accounting. To use the reference contract, deploy EEZL2 configured with your rollupId, a protected SYSTEM_ADDRESS (gated by node execution, derivation, and proving rules for loadExecutionTable and executeIncomingCrossChainCall), and enough pooled ETH for incoming value transfers.

Wire an off-chain composer to simulate cross-chain calls and build the paired L1 and L2 execution entries. For calls starting on L1, the batch must be verified before the call reaches the proxy in the same block: either an L1 block builder bundle places the batch before the user's transaction, or a posting contract implementing IMetaCrossChainReceiver makes the call itself inside postAndVerifyBatch, from its executeMetaCrossChainTransactions() hook.

5. Set what your proof systems check

Goal: Ensure your verifiers prove every cross-chain invariant that L1 does not inspect directly.

On L1, EEZ verifies proofs and checks each executed entry's rollingHash. It commits to your blob hashes and calldata hash but never reads their contents. Your proof systems must approve a batch (verify(proof, publicInputsHash)) only when all five hold:

  1. Published data is valid under your chain's rules.
  2. New roots and ETH deltas are true when executing that data from currentRoot.
  3. L1 entries match the published calls (same callers, targets, order, ETH amounts, and return/revert bytes; mutable entries list every involved rollup in rollupUpdates; static entries pin expectedRoots).
  4. L2 entries and deliveries match L1 (loadExecutionTable and executeIncomingCrossChainCall correspond exactly to L1 entries).
  5. Unsupported call patterns are absent (rejected by both composer and proof systems).

For the exact two-stage publicInputsHash formula (shared batch inputs, per-proof-system vkey accumulation, and omitted fields), see MULTI_PROVER_SPEC.md.

6. Harden for mainnet

Goal: Close every operational and security gate before holding real value on Ethereum mainnet.

  • Upgrade proof systems & threshold: Replace or augment ECDSAProofSystem with production proof system(s) that enforce all five checks in Step 5, and set a non-zero approval threshold.
  • Bind deployment domain: Bind every proof approval to your specific deployment — via a deployment-specific vkey or a custom IRollupContract.getCustomData (the reference Rollup binds at most the L1 block hash and timestamp, and nothing when blockNumber is 0) — since publicInputsHash omits chain IDs and the EEZ contract address.
  • Lock down governance keys: Move Rollup owner (setRoot, setThreshold, verifier swaps) and ProxyAdmin keys behind production multisig / governance controls.
  • Verify operational limits: Fund EEZL2 pooled ETH for incoming value transfers, test L1 reorg reconciliation on testnet, and review CAVEATS.md and Integration boundaries.

Trace a cross-chain call

Step through how paired L1 and L2 execution entries move across the composer, EEZ, and EEZL2 — including static reads, reverts, and missed-transaction expiration.

[ FLOW STEPPER ]EXECUTION_ENTRY_SPEC.md
simulate D → C · compute rollingHashL2 · EEZL2RollupComposer / ProverOff-chainL1 · EEZEthereum

Composer simulates D (L2) calling C (L1), captures returnData, and computes callHash + rollingHash for both tables.

L2 · EEZL2
proxyEntryHashcallHash(D → C)
returnData<C return>
L1 · EEZ
proxyEntryHashbytes32(0) // L2-origin
l2ToL1Calls[0]D (R) → C (L1)
1 / 3 · ← / → keys

Canonical deployments

Register on an existing EEZ deployment to compose with Ethereum L1 (and other rollups on the same registry), or deploy your own EEZ instance for private devnet staging.

EnvironmentL1 networkEEZ L1 contractCore commitLive reference rollup
Ethereum mainnet (stress test)Ethereum0x4b2760f84b83d6b3829e30a7573b0172b6d6402c84a5b52RollupX (rollupId = 2)
Chiado testnetChiado0x6258189d3a04eb31a196a8931077dfe001a9f6fd84a5b52EEZ-X Testnet (rollupId = 2)
Private devnetLocal / custom L1Self-deployed via deployment/README.mdmainLocal eez-rollup0 / eez-rollupX

Reference implementations & support

  • eez-rollupX: the reference implementation. It covers the wider call patterns, including nested calls, callbacks, read-only (STATICCALL) calls, and reverted calls.
  • eez-rollup0: the rollup behind Gnosis Chain's integration, with L2-to-L1 and L1-to-L2 calls.
  • Rollup Operators on build.eez.io: hands-on labs to run the reference stack locally, deploy contracts, and test cross-chain calls.
  • Working with the EEZ team: Planning a PoC or architecture review? Reach out via Get in touch to scope your stack (existing chain vs. new chain, proof path, and timeline) with the protocol engineers.

Go deeper