{"eip":7742,"title":"Uncouple blob count between CL and EL","description":"Have CL verify blob maximum and have EL get target value from CL","authors":["Alex Stokes (@ralexstokes)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2024-07-12","requires":[4844],"discussionsTo":"https://ethereum-magicians.org/t/eip-7742-uncouple-blob-count-between-cl-and-el/20550","repo":"EIPs","label":"EIP-7742","officialUrl":"https://eips.ethereum.org/EIPS/eip-7742","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7742.md","url":"https://eips.huatuo.xyz/eip-7742/","tldr":{"en":"Proposed letting the consensus layer own the blob limit and pass a per-block blob target to the execution layer, so blob parameters could change without coordinated hard-coded values in both clients.","ja":"blob の上限をコンセンサスレイヤーが持ち、ブロックごとの blob ターゲットを実行レイヤーに渡す案。これにより、両クライアントにハードコードした値を協調して変更しなくても blob パラメータを変更できる。","ko":"blob 한도를 합의 레이어가 관리하고 블록별 blob 목표치를 실행 레이어에 전달하도록 제안했던 EIP. 두 클라이언트에 하드코딩된 값을 함께 맞추지 않고도 blob 파라미터를 바꿀 수 있게 하려는 것이었다.","zh":"提议让共识层掌管 blob 上限，并把每个区块的 blob 目标值传给执行层，这样修改 blob 参数时就不必在两种客户端里协调修改硬编码值。"},"tags":["blobs","core","engine-api","scaling","stagnant"],"explainers":{"en":{"lang":"en","tldr":"Proposed letting the consensus layer own the blob limit and pass a per-block blob target to the execution layer, so blob parameters could change without coordinated hard-coded values in both clients.","tags":["blobs","core","engine-api","scaling","stagnant"],"related":[4844,7840,7691,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7742/","markdown":"## What problem does it solve?\n\n[EIP-4844](/eip-4844/) introduced blobs with two hard-coded numbers: a **maximum** blobs per block (an anti-DoS limit) and a **target** (used to adjust the blob base fee, EIP-1559 style). The target was fixed at half the max.\n\nBoth values were hard-coded in execution clients (EL), and the max was also hard-coded in consensus clients (CL). Raising blob throughput, a key part of Ethereum's scaling roadmap, therefore required changing both client types in lockstep, and the `target == max / 2` relation was rigid.\n\nEIP-7742 proposed to uncouple these values between the layers.\n\n## How it works\n\n- **Drop the max check in the EL.** The CL already enforces the maximum, and the EL inherits that check through the versioned-hash consistency check in the Engine API. So the EL's `MAX_BLOB_GAS_PER_BLOCK` logic can be removed without weakening security.\n- **Send the target from the CL.** The Engine API passes `target_blobs_per_block` with each payload. The EL header gains a new 64-bit field `target_blobs_per_block`, which must match what the CL provided (similar to how withdrawals are validated). Keeping it in the header preserves optimistic-sync security.\n- **Use the header target for fees.** Excess blob gas is computed from the parent's target instead of a constant.\n- **Block building.** The CL passes both target and max when asking the EL to build a payload.\n\nThe CL keeps the max (DoS protection) and the EL keeps fee accounting, preserving the separation of concerns.\n\n## Sample code\n\nUpdated excess-blob-gas calculation from the spec:\n\n```python\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = parent.target_blobs_per_block * GAS_PER_BLOB\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\nConceptual header extension:\n\n```python\nclass Header:\n    ...\n    blob_gas_used: uint64\n    excess_blob_gas: uint64\n    target_blobs_per_block: uint64  # new, supplied by the CL via the Engine API\n```\n\n## Things to know\n\n- **Status: Stagnant.** It is not part of the live protocol.\n- The approach that shipped instead is [EIP-7840](/eip-7840/): each execution client config carries a per-fork `blobSchedule` (target, max, base-fee update fraction), avoiding a new header field and Engine API handshake.\n- Blob parameters have since been raised by [EIP-7691](/eip-7691/), and [EIP-7892](/eip-7892/) defines blob-parameter-only hard forks for further adjustments.\n- Apart from where the target comes from, blob base fee accounting stays as in EIP-4844.\n"},"ja":{"lang":"ja","tldr":"blob の上限をコンセンサスレイヤーが持ち、ブロックごとの blob ターゲットを実行レイヤーに渡す案。これにより、両クライアントにハードコードした値を協調して変更しなくても blob パラメータを変更できる。","tags":["blobs","core","engine-api","scaling","stagnant"],"related":[4844,7840,7691,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7742/","markdown":"## 何を解決するのか\n\n[EIP-4844](/eip-4844/) は、2 つのハードコードされた数値とともに blob を導入しました。ブロックあたりの blob の**最大数**（DoS 対策の上限）と、**ターゲット**（EIP-1559 方式で blob の base fee を調整するのに使用）です。ターゲットは最大数の半分に固定されていました。\n\nどちらの値も実行クライアント（EL）にハードコードされ、最大数はコンセンサスクライアント（CL）にもハードコードされていました。そのため、Ethereum のスケーリングロードマップの重要な要素である blob スループットを引き上げるには、両方のクライアントを同時に変更する必要があり、`target == max / 2` という関係も硬直的でした。\n\nEIP-7742 は、これらの値をレイヤー間で切り離すことを提案しました。\n\n## 仕組み\n\n- **EL での最大数チェックを廃止する。** CL がすでに最大数を強制しており、EL は Engine API のバージョン付きハッシュの整合性チェックを通じてそのチェックを引き継いでいます。そのため、EL の `MAX_BLOB_GAS_PER_BLOCK` ロジックは、セキュリティを弱めることなく削除できます。\n- **CL からターゲットを送る。** Engine API は各ペイロードとともに `target_blobs_per_block` を渡します。EL のヘッダーには新たに 64 ビットのフィールド `target_blobs_per_block` が追加され、CL が提供した値と一致しなければなりません（ウィズドローアルの検証と同様）。ヘッダーに持たせることで、optimistic sync のセキュリティが保たれます。\n- **手数料にはヘッダーのターゲットを使う。** excess blob gas は、定数ではなく親ブロックのターゲットから計算されます。\n- **ブロック構築。** CL は EL にペイロードの構築を依頼するとき、ターゲットと最大数の両方を渡します。\n\nCL が最大数（DoS 対策）を持ち、EL が手数料の計算を持つことで、関心の分離が保たれます。\n\n## サンプルコード\n\n仕様にある、更新後の excess blob gas の計算:\n\n```python\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = parent.target_blobs_per_block * GAS_PER_BLOB\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\n概念的なヘッダーの拡張:\n\n```python\nclass Header:\n    ...\n    blob_gas_used: uint64\n    excess_blob_gas: uint64\n    target_blobs_per_block: uint64  # new, supplied by the CL via the Engine API\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** 現在稼働しているプロトコルの一部ではありません。\n- 代わりに採用された方式は [EIP-7840](/eip-7840/) です。各実行クライアントの設定がフォークごとの `blobSchedule`（ターゲット、最大数、base fee 更新係数）を持ち、新しいヘッダーフィールドや Engine API のハンドシェイクを避けています。\n- blob パラメータはその後 [EIP-7691](/eip-7691/) で引き上げられ、[EIP-7892](/eip-7892/) はさらなる調整のための、blob パラメータのみを変更するハードフォークを定義しています。\n- ターゲットの出どころ以外は、blob の base fee の計算は EIP-4844 のままです。\n"},"ko":{"lang":"ko","tldr":"blob 한도를 합의 레이어가 관리하고 블록별 blob 목표치를 실행 레이어에 전달하도록 제안했던 EIP. 두 클라이언트에 하드코딩된 값을 함께 맞추지 않고도 blob 파라미터를 바꿀 수 있게 하려는 것이었다.","tags":["blobs","core","engine-api","scaling","stagnant"],"related":[4844,7840,7691,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7742/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-4844](/eip-4844/)는 두 개의 하드코딩된 숫자와 함께 blob을 도입했습니다. 블록당 blob의 **최대 개수**(DoS 방지 한도)와 **목표 개수**(EIP-1559 방식으로 blob base fee를 조정하는 데 사용)입니다. 목표는 최대치의 절반으로 고정되어 있었습니다.\n\n두 값 모두 실행 클라이언트(EL)에 하드코딩되어 있었고, 최대치는 합의 클라이언트(CL)에도 하드코딩되어 있었습니다. 그래서 이더리움 확장 로드맵의 핵심인 blob 처리량을 늘리려면 두 종류의 클라이언트를 동시에 바꿔야 했고, `target == max / 2`라는 관계도 경직되어 있었습니다.\n\nEIP-7742는 이 값들을 레이어 사이에서 분리하자고 제안했습니다.\n\n## 어떻게 동작하나요?\n\n- **EL의 최대치 검사를 없앱니다.** CL이 이미 최대치를 강제하고, EL은 Engine API의 versioned hash 일관성 검사를 통해 그 검사를 물려받습니다. 따라서 보안을 약화시키지 않고 EL의 `MAX_BLOB_GAS_PER_BLOCK` 로직을 제거할 수 있습니다.\n- **CL이 목표치를 보냅니다.** Engine API가 각 페이로드와 함께 `target_blobs_per_block`을 전달합니다. EL 헤더에는 64비트 필드 `target_blobs_per_block`이 새로 추가되며, CL이 제공한 값과 일치해야 합니다(출금 검증 방식과 비슷). 헤더에 두면 optimistic sync의 보안이 유지됩니다.\n- **수수료에는 헤더의 목표치를 씁니다.** excess blob gas는 상수 대신 부모 블록의 목표치로 계산합니다.\n- **블록 빌딩.** CL이 EL에 페이로드 생성을 요청할 때 목표치와 최대치를 모두 전달합니다.\n\nCL은 최대치(DoS 방어)를, EL은 수수료 계산을 맡아 관심사의 분리를 유지합니다.\n\n## 샘플 코드\n\n명세에 나온, 갱신된 excess blob gas 계산:\n\n```python\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = parent.target_blobs_per_block * GAS_PER_BLOB\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\n개념적인 헤더 확장:\n\n```python\nclass Header:\n    ...\n    blob_gas_used: uint64\n    excess_blob_gas: uint64\n    target_blobs_per_block: uint64  # new, supplied by the CL via the Engine API\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 현재 운영 중인 프로토콜의 일부가 아닙니다.\n- 대신 채택된 방식은 [EIP-7840](/eip-7840/)입니다. 각 실행 클라이언트 설정이 포크별 `blobSchedule`(목표치, 최대치, base fee 갱신 계수)을 담아, 새 헤더 필드와 Engine API 핸드셰이크를 피합니다.\n- blob 파라미터는 이후 [EIP-7691](/eip-7691/)로 상향되었고, [EIP-7892](/eip-7892/)는 추가 조정을 위해 blob 파라미터만 바꾸는 하드 포크를 정의합니다.\n- 목표치의 출처를 제외하면 blob base fee 계산은 EIP-4844와 같습니다.\n"},"zh":{"lang":"zh","tldr":"提议让共识层掌管 blob 上限，并把每个区块的 blob 目标值传给执行层，这样修改 blob 参数时就不必在两种客户端里协调修改硬编码值。","tags":["blobs","core","engine-api","scaling","stagnant"],"related":[4844,7840,7691,7892],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7742/","markdown":"## 它解决什么问题？\n\n[EIP-4844](/eip-4844/) 引入 blob 时带有两个硬编码数值：每个区块的 blob **最大数量**（防 DoS 的上限）和**目标数量**（用于按 EIP-1559 的方式调整 blob 基础费用）。目标值固定为最大值的一半。\n\n这两个值都硬编码在执行客户端（EL）里，最大值还硬编码在共识客户端（CL）里。因此，提高 blob 吞吐量（以太坊扩容路线图的关键部分）需要两类客户端同步修改，而且 `target == max / 2` 的关系也过于僵化。\n\nEIP-7742 提议在两层之间解耦这些值。\n\n## 它如何运作\n\n- **在 EL 中去掉最大值检查。** CL 已经强制执行最大值，EL 则通过 Engine API 中的 versioned hash 一致性检查继承了这项检查。因此，可以移除 EL 的 `MAX_BLOB_GAS_PER_BLOCK` 逻辑，而不会削弱安全性。\n- **由 CL 发送目标值。** Engine API 在每个 payload 中传递 `target_blobs_per_block`。EL 区块头新增一个 64 位字段 `target_blobs_per_block`，必须与 CL 提供的值一致（类似于提款的验证方式）。把它放在区块头中可以保持 optimistic sync 的安全性。\n- **用区块头中的目标值计算费用。** excess blob gas 根据父区块的目标值计算，而不是使用常量。\n- **区块构建。** CL 请求 EL 构建 payload 时，同时传入目标值和最大值。\n\nCL 保留最大值（DoS 防护），EL 保留费用核算，从而保持职责分离。\n\n## 示例代码\n\n规范中更新后的 excess blob gas 计算：\n\n```python\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = parent.target_blobs_per_block * GAS_PER_BLOB\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\n概念性的区块头扩展：\n\n```python\nclass Header:\n    ...\n    blob_gas_used: uint64\n    excess_blob_gas: uint64\n    target_blobs_per_block: uint64  # new, supplied by the CL via the Engine API\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 它不属于当前运行的协议。\n- 最终落地的方案是 [EIP-7840](/eip-7840/)：每个执行客户端配置都携带按分叉区分的 `blobSchedule`（目标值、最大值、基础费用更新系数），避免了新增区块头字段和 Engine API 握手。\n- 此后 blob 参数已由 [EIP-7691](/eip-7691/) 提高，[EIP-7892](/eip-7892/) 则定义了仅调整 blob 参数的硬分叉，用于后续调整。\n- 除了目标值的来源之外，blob 基础费用的核算与 EIP-4844 保持一致。\n"}},"requiredBy":[7788]}
