How do EIP-4844 blobs work, and why did they cut rollup fees? · Jumpstart Blockchain
How do EIP-4844 blobs work, and why did they cut rollup fees?
Type 3 transactions carry 128 KiB blobs that consensus nodes keep for about 18 days. The EVM sees only KZG versioned hashes, and blobs have their own fee market, so rollup data stopped paying calldata prices.
EIP-4844 ("proto-danksharding"), activated in Ethereum's Dencun upgrade in March 2024, added a new transaction type (type 3) that carries blobs: chunks of 131,072 bytes (128 KiB) that are gossiped and stored by consensus nodes for about 18 days and then pruned. The EVM can't read blob contents; it only sees a 32-byte versioned hash of each blob's KZG commitment. Blobs are priced in their own blob gas market, separate from normal gas, with a base fee that starts at 1 wei and only rises when demand exceeds a target. Rollups had been paying full calldata prices to post transaction data to L1; moving that data to cheap, temporary blob space removed most of their costs, so L2 fees fell sharply.
Why rollups needed a new kind of space
A rollup executes transactions off-chain but must publish enough data on Ethereum for anyone to reconstruct its state and challenge or verify it, as explained in how optimistic and ZK rollups work. Before Dencun, that data went into transaction calldata, at 16 gas per non-zero byte. Calldata is kept forever by every full node and competes with every swap and transfer for the same block gas. For most rollups it was by far the largest part of what users paid.
But rollup data doesn't need to live forever, and no contract needs to read it. It only needs to be available long enough for anyone to download it: through a fraud-proof window, or until a validity proof is verified. EIP-4844 sells exactly that, at a separate price.
What a blob is
A blob is 4,096 field elements of 32 bytes each. Each element must be smaller than the BLS12-381 scalar field modulus, so in practice rollups pack about 31 usable bytes per element, roughly 127 KB of payload per blob.
delegatecall runs another contract's code on your storage by slot number, so mismatched layouts overwrite data. Delegate only to trusted code, use ERC-1967 and ERC-7201 slots, check the target has code, and diff layouts.
4,096 epochs, about 18 days, then pruned by consensus clients
Fee market
Separate blob base fee, minimum 1 wei per blob gas
A type 3 transaction is an EIP-1559 transaction with two extra fields: max_fee_per_blob_gas and blob_versioned_hashes. When it's broadcast, the network wrapper also carries the blobs, commitments and proofs. Once it's in a block, the execution payload keeps only the versioned hashes; the blobs themselves travel alongside the beacon block as sidecars. Type 3 transactions must have a to address, so they can't deploy contracts.
How does the EVM verify blob data?
Contracts get two tools:
The BLOBHASH opcode (0x49, blobhash(i) in Solidity 0.8.24+) returns the versioned hash of the transaction's blob at index i, or zero if there isn't one.
The point evaluation precompile at 0x0A takes a versioned hash, a point z, a claimed value y, the commitment and a proof, and checks that the committed polynomial evaluates to y at z. It costs 50,000 gas.
A KZG commitment treats the blob as a polynomial and commits to it in 48 bytes. A ZK rollup can prove that its batch matches the blob by checking one evaluation; an optimistic rollup can prove a single field element during a dispute. Unlike the Merkle commitments covered in how Merkle trees and Merkle proofs work, the proof size is constant regardless of which part of the data you open.
A rollup inbox contract typically records the hash and lets the proof system do the rest:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract BlobInbox {
event BatchPosted(uint256 indexed batch, bytes32 versionedHash, uint256 blobBaseFee);
uint256 public nextBatch;
function postBatch() external {
bytes32 h = blobhash(0);
require(h != bytes32(0), "no blob attached");
emit BatchPosted(nextBatch++, h, block.blobbasefee);
}
}
block.blobbasefee (the BLOBBASEFEE opcode, EIP-7516) exposes the current blob price to contracts.
How blob fees are set
Blob gas has its own target and maximum per block. The protocol tracks excess blob gas: the running total of blob gas used above the target. The blob base fee is an exponential function of that excess:
Blocks above target push the fee up, blocks below target let it decay, and the update fraction is tuned at each fork. Under current parameters, a full block raises the fee by about 8% and an empty one cuts it by about 14.5%. Like EIP-1559's base fee, the blob base fee is burned. A blob transaction pays both its normal execution gas and blob_gas_used × base_fee_per_blob_gas.
The limits have been raised several times:
Upgrade
Date
Blobs per block (target / max)
Dencun (EIP-4844)
March 2024
3 / 6
Pectra (EIP-7691)
May 2025
6 / 9
BPO1, after Fusaka
December 2025
10 / 15
BPO2
January 2026
14 / 21
Fusaka (December 2025) made those last increases possible. PeerDAS (EIP-7594) means nodes no longer download every blob; each custodies and samples parts of the erasure-extended data, as described in how data availability sampling works. Fusaka also introduced blob-parameter-only (BPO) forks (EIP-7892), which change only the blob target, maximum and update fraction, so capacity can grow without a full hard fork. Further increases are expected with later upgrades; check current parameters rather than assuming these.
Fusaka also added EIP-7918, a reserve price. When the blob fee is very low compared with the execution base fee, excess blob gas stops falling, so the blob price can't stay at 1 wei while blob transactions still consume real execution resources. This keeps the blob market responsive instead of letting the fee sit at its floor for weeks.
Why fees dropped so much
Three effects combined:
Separate market. Blob space doesn't compete with DeFi activity for execution gas, so a busy L1 doesn't automatically make rollup data expensive.
Excess supply. For long stretches after Dencun, rollups used less than the blob target, so the blob base fee stayed at or near its 1 wei minimum. Data that had cost dollars per batch in calldata cost a tiny fraction of that.
Cheaper to provide. Because blobs are pruned and, since PeerDAS, sampled rather than fully downloaded, the network can offer far more data per block than permanent calldata allows.
Rollups passed most of that saving to users: typical L2 fees fell by an order of magnitude or more within days of Dencun, and many simple L2 transactions now cost well under a cent. The remaining cost is mostly L2 execution and congestion pricing, plus the L1 gas for verifying batches or proofs. Blob prices do still spike when demand exceeds the target for a sustained period, and because the fee is exponential, a long surge becomes expensive quickly.
Pectra also made the alternative worse: EIP-7623 set a calldata floor of 10 gas per zero byte and 40 per non-zero byte for data-heavy transactions, so posting batches as calldata is now deliberately uneconomic.
What this means for developers
Read blob fees like any other fee. Check the current blob base fee and per-block usage:
In viem, publicClient.getBlobBaseFee() does the same. Set maxFeePerBlobGas with headroom, since a burst of blob demand can raise the price quickly over a few blocks.
Fetch blob data from the consensus layer. Execution RPCs don't serve blob contents. Use a beacon node or provider's beacon API: on post-Fusaka clients, GET /eth/v1/beacon/blobs/{block_id} (optionally filtered by versioned hash) replaces the older, now deprecated blob_sidecars endpoint. After about 18 days, regular nodes no longer have the data, so indexers and fraud provers that need history must archive it themselves or use a blob archive service.
Replacements cost more. Mempools treat blob transactions conservatively; Geth, for example, requires roughly double the fees to replace a pending blob transaction, far above the usual 10% bump for replacing a stuck transaction. Many clients also limit how many pending blob transactions one sender can have.
Don't assume blobs exist on every chain. Some L2s return zero or placeholder values for BLOBHASH and BLOBBASEFEE, as noted in what zkEVM types mean for deployment. Code that uses them should be tested on each target chain.
Know your data availability assumptions. A chain that posts blobs to Ethereum is a rollup in the strict sense. One that posts data elsewhere is a validium or optimium, with a different trust model. That distinction also affects how withdrawals are proven, as in moving assets between Ethereum and a ZK rollup like Linea.
Summary
Question
Answer
What is a blob?
128 KiB of data in a type 3 transaction, committed with KZG, pruned after about 18 days
Can contracts read it?
No; they see versioned hashes via BLOBHASH and verify contents with the 0x0A precompile
How is it priced?
Separate blob base fee from excess blob gas, minimum 1 wei, burned, with a reserve price since Fusaka
Why did L2 fees drop?
Rollup data moved from permanent, contested calldata to cheap, temporary, separately priced space
What scaled it further?
Pectra's higher limits, then PeerDAS and BPO forks after Fusaka
Pair an execution client such as Geth with a consensus client such as Lighthouse, linked by the Engine API on port 8551 and a shared JWT secret. Use checkpoint sync, 4 TB of NVMe and open P2P ports, then confirm both are synced.
ERC-721 maps each token id to one owner, ideal for unique items. ERC-1155 tracks quantities per id with batch transfers and mandatory receiver hooks, suiting editions and game items. Pick by data model, not hype.