ERC-8179 · Draft · ERC · 2026-02-08
ERC-8179: Blob Space Segments
A one-function, event-only interface for declaring which field-element range of an EIP-4844 blob belongs to which protocol, so several rollups and apps can share one blob.
What problem does it solve?
An EIP-4844 blob holds 4,096 field elements (128 KiB), and you pay for the whole blob whether you fill it or not. Large rollups tend to fill theirs, but many small rollups use only a small fraction, so a lot of paid-for data availability goes to waste.
Projects that try to share blob space each invent their own registry or events, so indexers and tooling cannot interoperate. ERC-8179 standardizes just one piece: an on-chain declaration that says "field elements [start, end) of this blob are mine, and they carry content type X". Blob construction, fee splitting and negotiation are left out.
How it works
- A contract exposes
declareBlobSegment(blobIndex, startFE, endFE, contentTag), called in the same transaction that carries the blob. - It reads the blob's versioned hash with the
BLOBHASHopcode. If there is no blob at that index it reverts withNoBlobAtIndex; ifstartFE >= endFEorendFE > 4096it reverts withInvalidSegment. - It emits
BlobSegmentDeclared(versionedHash, declarer, startFE, endFE, contentTag)and returns the hash. Hash, declarer and tag are indexed so indexers can filter by blob, sender or protocol. - No storage writes in the core interface: the log is the only record. The spec estimates about 3,500 gas per declaration, roughly 7x cheaper than storing it.
- Ranges are half-open, so segments tile cleanly:
[0, 2000) + [2000, 4096). A protocol using a whole blob declares[0, 4096). contentTagis abytes32, conventionallykeccak256("protocol.version"), avoiding any central registry.- Multiple and even overlapping declarations are allowed; overlap detection and deduplication happen off-chain.
- Optional extensions add a storage-backed paginated Queryable interface and a Batch call that declares several segments atomically.
Sample code
Reference-style implementation:
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.24;
contract BlobSpaceSegments {
event BlobSegmentDeclared(bytes32 indexed versionedHash, address indexed declarer,
uint16 startFE, uint16 endFE, bytes32 indexed contentTag);
error InvalidSegment(uint16 startFE, uint16 endFE);
error NoBlobAtIndex(uint256 blobIndex);
function declareBlobSegment(uint256 blobIndex, uint16 startFE, uint16 endFE, bytes32 contentTag)
external returns (bytes32 versionedHash)
{
if (startFE >= endFE || endFE > 4096) revert InvalidSegment(startFE, endFE);
assembly { versionedHash := blobhash(blobIndex) }
if (versionedHash == bytes32(0)) revert NoBlobAtIndex(blobIndex);
emit BlobSegmentDeclared(versionedHash, msg.sender, startFE, endFE, contentTag);
}
}
Two protocols tiling one blob in the same blob transaction:
bss.declareBlobSegment(0, 0, 2000, keccak256("optimism.bedrock"))
bss.declareBlobSegment(0, 2000, 4096, keccak256("social-blobs.v4"))
Things to know
- Status: Draft. The interface name and details may still change.
- Anyone can use any
contentTag. Consumers should keep an allowlist of canonical declarer contracts per chain and tag, and treat declarations as claims, not proof of what is in the blob (the EVM cannot read blob contents). - Blob data is pruned by consensus nodes after about 18 days, but the declaration events remain forever.
- Segments can anchor KZG point-evaluation proofs, but at about 50k gas per field element on-chain verification is only practical for small segments.
- ERC-7588 (blob transaction metadata) is complementary and can be used alongside it.