---
eip: 8142
label: EIP-8142
title: Block-in-Blobs (BiB)
status: Draft
type: Standards Track
category: Core
created: 2026-01-29
requires: 4844, 7594, 7732, 7892, 7928
official: https://eips.ethereum.org/EIPS/eip-8142
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8142.md
canonical: https://eips.huatuo.xyz/eip-8142/
lang: en
tldr: "Requires every block's transactions and block access list to be published inside blobs, so data stays available even once validators verify blocks with zkEVM proofs instead of downloading and re-executing them."
tags: [blobs, data-availability, zkevm, das, core]
---

# EIP-8142: Block-in-Blobs (BiB)

> Ensures execution payload data availability via blobs

**TL;DR:** Requires every block's transactions and block access list to be published inside blobs, so data stays available even once validators verify blocks with zkEVM proofs instead of downloading and re-executing them.

## What problem does it solve?

Today a validator checks a block by downloading the execution payload, executing it, and comparing the result with the header. Because nobody can verify a block without the payload, the payload is implicitly guaranteed to be *available*.

With zkEVMs, validators would instead verify a succinct proof against the payload header and never need the transactions themselves. That removes the availability guarantee. A builder could publish a valid proof and withhold the data, leaving itself as the only party able to build the next block, and leaving RPC providers and indexers (who must re-execute) unable to follow the chain.

Block-in-Blobs (BiB) closes this gap by putting the execution-payload data into blobs, which are already protected by data availability sampling ([EIP-7594](/eip-7594/), PeerDAS).

## How it works

- **What goes into blobs:** the block access list from [EIP-7928](/eip-7928/) and the transactions. Withdrawals and execution requests are left out because they can be derived elsewhere; the header is left out to avoid a circular dependency.
- **Encoding:** an 8-byte prefix (4-byte BAL length, 4-byte transactions length, big-endian), then the RLP-encoded BAL, then the RLP list of transactions. The bytes are packed 31 per 32-byte field element (first byte zero, so each element is a valid BLS field element), i.e. 4096 × 31 = 126,976 usable bytes per blob. No compression for now.
- **Header field:** a new `payload_blob_count` (uint64) in the execution payload. The first `payload_blob_count` blob commitments in the beacon block are the payload blobs; the rest belong to ordinary type-3 ([EIP-4844](/eip-4844/)) blob transactions.
- **Engine API:** `engine_getPayload` builds the payload blobs and returns them first in the blobs bundle. `engine_newPayload` re-derives them, checks the count and checks that the expected versioned hashes are the payload blobs followed by the type-3 ones. A zkEVM-friendly variant verifies KZG opening proofs instead of recomputing commitments, which is cheaper to prove.
- **Fees:** payload blobs pay no per-blob user fee, but they do consume blob gas and count toward `MAX_BLOBS_PER_BLOCK` ([EIP-7892](/eip-7892/)), so they compete with rollup blobs and affect the blob base fee. Inflating them requires paying for extra calldata through normal gas.

## Sample code

Encoding the payload data into blobs, condensed from the spec:

```python
FIELD_ELEMENTS_PER_BLOB = 4096
USABLE_BYTES_PER_FE = 31
USABLE_BYTES_PER_BLOB = FIELD_ELEMENTS_PER_BLOB * USABLE_BYTES_PER_FE   # 126_976

def execution_payload_data_to_blobs(bal: bytes, txs: list[bytes]) -> list[bytes]:
    txs_bytes = rlp.encode(txs)
    data = len(bal).to_bytes(4, "big") + len(txs_bytes).to_bytes(4, "big") + bal + txs_bytes
    blobs = []
    for off in range(0, len(data), USABLE_BYTES_PER_BLOB):
        chunk = data[off:off + USABLE_BYTES_PER_BLOB].ljust(USABLE_BYTES_PER_BLOB, b"\0")
        blob = bytearray(FIELD_ELEMENTS_PER_BLOB * 32)
        for i in range(FIELD_ELEMENTS_PER_BLOB):
            blob[i*32 + 1:(i+1)*32] = chunk[i*31:(i+1)*31]   # byte 0 stays zero
        blobs.append(bytes(blob))
    return blobs   # len(blobs) must equal header.payload_blob_count
```

## Things to know

- **Status: Draft.** Test cases, explicit pricing for payload blobs and some networking details are still marked TODO.
- It needs a hard fork: both the execution payload header and the Engine API change.
- Builders must leave room for payload blobs when choosing blob transactions, and payload blobs are not pre-propagated through the mempool, so builders need more bandwidth at block time.
- If the payload is not received over the [EIP-7732](/eip-7732/) `execution_payload` gossip topic, nodes can rebuild it from the payload blobs and re-seed the topic.


---

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