---
eip: 8209
label: EIP-8209
title: Commit-Reveal Transaction Frames
status: Draft
type: Standards Track
category: Core
created: 2026-04-01
requires: 8141
official: https://eips.ethereum.org/EIPS/eip-8209
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8209.md
canonical: https://eips.huatuo.xyz/eip-8209/
lang: en
tldr: "Adds COMMIT and REVEAL frame modes to EIP-8141 frame transactions: users lock in a hash of their call in one block and reveal it at the top of the next, so nobody can target-front-run them."
tags: [mev, front-running, commit-reveal, frame-transactions, core]
---

# EIP-8209: Commit-Reveal Transaction Frames

> A Frame Transaction extension allowing delaying and concealing execution frame payload

**TL;DR:** Adds COMMIT and REVEAL frame modes to EIP-8141 frame transactions: users lock in a hash of their call in one block and reveal it at the top of the next, so nobody can target-front-run them.

## What problem does it solve?

A normal Ethereum transaction is fully visible in the public mempool before it is ordered. Searchers and builders can read it and front-run, sandwich or censor it. The profits from this have helped concentrate block building in very few hands.

Other proposals attack this with encrypted mempools (for example [EIP-8184](/eip-8184/) and [EIP-8105](/eip-8105/)). EIP-8209 takes a simpler route: no new cryptography, no new kinds of protocol participants, just a delay. If the transaction is **included before its contents are known**, a targeted front-run becomes impossible.

## How it works

It extends [EIP-8141](/eip-8141/) frame transactions with two new frame modes.

**Block N-1: commit.** The user builds a transaction with their usual VERIFY frame(s) followed by one or more COMMIT frames (mode `0x05`). Each COMMIT frame carries only `keccak256(payload)` of the real call. Only the verify frames execute. For each commitment the gas payer is charged a fixed `COMMIT_GAS_RESERVATION` of 1,000,000 gas at the highest possible next-block base fee (`base_fee + max(base_fee // 8, 1)`, from [EIP-1559](/eip-1559/)). The hash is recorded on-chain.

**Block N: reveal.** In the first ~2 seconds of slot N (`REVEAL_DEADLINE`), the user broadcasts a separate frame transaction with REVEAL frame(s) (mode `0x06`) containing the actual payload. Then:

- All REVEAL transactions must form a contiguous block at the **top** of block N, in an order shuffled by `RANDAO`.
- Attesters enforce inclusion through fork choice, like [EIP-7805](/eip-7805/) inclusion lists: if they saw a valid reveal in time and the block omits it, they do not attest to that block.
- Execution is charged at block N's real base fee with no priority fee; the rest of the escrow is refunded to the original gas payer.
- One REVEAL can consume several commitments for calls that need more than 1M gas.

**No reveal?** The escrowed reservation is burned and the commitment expires. If slot N is missed, commitments carry over to the next produced block.

The fixed 1M reservation hides the real gas limit (it is only known to fall within `[0, k × 1M]`). The number of commitments per block is capped at `block_gas_limit // 1_000_000`, so all reveals fit in the next block.

## Sample code

Frame layouts as defined in the spec (pseudocode):

```python
payload = [mode, flags, target, limits, value, data]   # the real call
commitment = keccak256(payload)

# Block N-1: commit transaction
frames_n1 = [
    verify_frame,                                   # establishes gas payer via APPROVE
    [0x05, 0, 0x00, [0, 0], 0, commitment],         # COMMIT: no EVM execution
]

# Block N: reveal transaction (broadcast within REVEAL_DEADLINE = 2 s)
frames_n = [
    [0x06, flags, target, limits, value, data],     # REVEAL: runs like DEFAULT, caller = ENTRY_POINT
]

# Gas accounting
max_next_base_fee = base_fee_n1 + max(base_fee_n1 // 8, 1)
escrow = 1_000_000 * max_next_base_fee
refund = escrow - gas_used * base_fee_n
```

## Things to know

- **Status: Draft.** It requires [EIP-8141](/eip-8141/), which is itself a Draft.
- Accepted trade-offs: execution lands one block later, and failing to reveal costs the full escrowed reservation.
- It does not stop back-running or "speculative front-running", where an attacker pre-commits several possible front-runs and reveals only the profitable ones. A low commit cap and randomized order reduce but do not remove this.
- Committers can also choose not to reveal after watching slot N-1, which effectively buys a top-of-block slot.
- The gas payer used in the VERIFY frame can leak who the sender is; using a widely shared paymaster helps. Paymasters must explicitly support COMMIT transactions.
- `RANDAO` ordering is unpredictable to users but known to the builder once it is generated.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8209
