---
eip: 7742
label: EIP-7742
title: Uncouple blob count between CL and EL
status: Stagnant
type: Standards Track
category: Core
created: 2024-07-12
requires: 4844
official: https://eips.ethereum.org/EIPS/eip-7742
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7742.md
canonical: https://eips.huatuo.xyz/eip-7742/
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]
---

# EIP-7742: Uncouple blob count between CL and EL

> Have CL verify blob maximum and have EL get target value from CL

**TL;DR:** 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.

## What problem does it solve?

[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.

Both 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.

EIP-7742 proposed to uncouple these values between the layers.

## How it works

- **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.
- **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.
- **Use the header target for fees.** Excess blob gas is computed from the parent's target instead of a constant.
- **Block building.** The CL passes both target and max when asking the EL to build a payload.

The CL keeps the max (DoS protection) and the EL keeps fee accounting, preserving the separation of concerns.

## Sample code

Updated excess-blob-gas calculation from the spec:

```python
def calc_excess_blob_gas(parent: Header) -> int:
    target_blob_gas = parent.target_blobs_per_block * GAS_PER_BLOB
    if parent.excess_blob_gas + parent.blob_gas_used < target_blob_gas:
        return 0
    else:
        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas
```

Conceptual header extension:

```python
class Header:
    ...
    blob_gas_used: uint64
    excess_blob_gas: uint64
    target_blobs_per_block: uint64  # new, supplied by the CL via the Engine API
```

## Things to know

- **Status: Stagnant.** It is not part of the live protocol.
- 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.
- 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.
- Apart from where the target comes from, blob base fee accounting stays as in EIP-4844.


---

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