Blob gas is the unit of computation required to post and temporarily store data blobs on the Ethereum blockchain, introduced via EIP-4844 (Proto-Danksharding). It is a separate fee market from the standard gas used for transaction execution and smart contract deployment. This separation allows the cost of posting large data batches—essential for Layer 2 rollups—to fluctuate independently, preventing competition and price spikes in the main execution gas market. Users pay blob gas fees in ETH when submitting transactions that include blob-carrying transactions.
Blob Gas
What is Blob Gas?
Blob gas is a new fee mechanism introduced in Ethereum's Dencun upgrade to pay for posting large data packets, known as data blobs, on the blockchain.
The primary purpose of blob gas is to drastically reduce the cost for Layer 2 (L2) rollups like Optimism and Arbitrum to post their transaction data to Ethereum. Instead of storing this data permanently in calldata, which is expensive, rollups can post it to a new, dedicated blobspace for approximately 1/10th the cost. Each blob can hold up to ~128 KB of data and is stored by the consensus layer for a short, fixed period (currently 4096 epochs, or ~18 days), which is sufficient for all parties to verify and challenge L2 state transitions.
The blob gas market operates on a target-and-limit mechanism similar to EIP-1559. There is a per-block blob gas target (currently 3 blobs or 0.375 MB) and a blob gas limit (6 blobs or 0.75 MB). If blob usage is above the target, the fee increases; if below, it decreases. This base fee for blob gas is also burned, applying deflationary pressure to ETH. The design ensures blob space is reliably available for rollups at predictable, low costs, scaling Ethereum's data capacity without burdening the execution layer.
How Blob Gas Works
An explanation of the fee market and resource accounting system for data blobs introduced in Ethereum's Dencun upgrade.
Blob gas is the fee unit used to pay for the temporary data storage and bandwidth of blobs—large data packets introduced by EIP-4844 to scale Layer 2 rollups. Unlike standard execution gas for computation, blob gas is priced by a separate, dedicated fee market and is consumed when a transaction includes one or more blobs in its blob-carrying transaction type. This separation prevents competition for block space between execution and data availability, creating a more stable and predictable cost environment for rollup data posting.
The blob gas fee market operates on a target-and-limit system. Each Ethereum block has a blob gas limit (currently targeting 3 blobs per block, or 0.375 MB) and a target of 2 blobs. A base fee for blob gas adjusts dynamically block-by-block based on the utilization of blob space relative to this target, using a mechanism similar to EIP-1559. If blob usage exceeds the target, the base fee increases exponentially; if it's below, the fee decreases. This ensures blob space is used efficiently and prevents long-term congestion.
A critical feature of blob gas economics is its scarcity mechanism. The total blob gas limit per block is designed to grow slowly but is intentionally kept low to ensure the data can be widely propagated and stored by the network's nodes only for a short, fixed period (approximately 18 days). This temporary storage, enabled by blob-carrying transactions, is sufficient for Layer 2s to verify data availability but prevents the permanent state bloat associated with calldata, making it vastly cheaper.
From a user or rollup operator's perspective, the cost of a blob transaction has two components: the standard execution gas fee (for processing the transaction's main body) and the blob gas fee (for the attached data). The blob gas fee itself is calculated as blob_gas_used * blob_base_fee, where blob_gas_used is fixed per blob. This cost is then burned (EIP-1559 style), removing ETH from circulation, while the priority fee for the block builder is paid only on the execution component.
The introduction of blob gas fundamentally changes Ethereum's capacity model. By creating a dedicated data availability lane with its own pricing, it reduces the cost for Layer 2 rollups like Optimism and Arbitrum to post their transaction data by orders of magnitude. This cheaper, high-volume data pipeline is the core scaling mechanism of proto-danksharding, setting the stage for a future where full danksharding can further increase blob capacity across multiple data lanes.
Key Features of Blob Gas
Blob Gas is a new fee mechanism introduced in Ethereum's Dencun upgrade to make Layer 2 transaction data posting dramatically cheaper and more scalable.
Separate Fee Market
Blob Gas operates on a separate fee market from standard execution gas. This prevents competition between regular transactions and data availability (DA) posting from Layer 2s (L2s). The price of blob gas is determined by a dedicated EIP-1559-style mechanism with its own base fee and target, allowing it to adjust independently based on demand for data space.
Ephemeral Data Storage
Data carried in blobs is not stored permanently on the Ethereum execution layer. It is stored in the Beacon Chain consensus layer for approximately 18 days (4096 epochs) before being pruned. This temporary storage is sufficient for nodes to verify transaction validity and for fraud/validity proofs, drastically reducing the long-term state growth burden compared to calldata.
Fixed Per-Block Capacity
Each Ethereum block has a target of 3 blobs and a maximum of 6 blobs. This creates a scalable, dedicated data lane with predictable throughput for rollups. Each blob can hold ~128 KB of data (roughly 0.375 MB per block at target). This limit prevents the consensus layer from being overwhelmed by data.
KZG Commitments & Proofs
Blobs use KZG (Kate-Zaverucha-Goldberg) polynomial commitments for verification. The blob data itself is not directly executed; instead, a small commitment is posted to the execution layer. This allows nodes to cryptographically verify that the data is available and correct without downloading the full blob, enabling efficient data availability sampling (DAS).
Blob Gas Price Mechanism
The blob gas price is adjusted per block based on the blob gas used versus the target blob gas per block (target is 3 blobs). It uses an EIP-1559-style formula:
- Base Fee: Adjusts up if previous block used more than target, down if it used less.
- Priority Fee (Tip): Optional fee paid to validators for inclusion.
- Burn: The base fee for blob gas is burned, applying deflationary pressure to ETH.
Integration with Rollups (L2s)
The primary users of blob gas are optimistic rollups (like Arbitrum, Optimism) and zk-rollups (like zkSync, Starknet). Instead of posting transaction data as expensive calldata, they post it as blobs. This reduces their DA costs by ~100x, enabling lower transaction fees for end-users while maintaining Ethereum's security guarantees.
Evolution & EIP-4844
This section details the pivotal upgrade, EIP-4844 (Proto-Danksharding), which introduced a new transaction type and fee market to scale Ethereum's data availability layer, a critical step towards a full Danksharding future.
EIP-4844, known as Proto-Danksharding, was a major Ethereum upgrade implemented in March 2024 as part of the Dencun hard fork. Its primary innovation was the introduction of blob-carrying transactions, which provide a new, low-cost data channel for Layer 2 rollups. By separating data posting from execution, EIP-4844 dramatically reduced transaction fees for rollup users while laying the foundational architecture—blobs, a separate blob gas market, and blobspace—required for the network's long-term scaling roadmap.
The upgrade was a direct response to the high and volatile cost of using CALLDATA, the previous method rollups used to post transaction data on-chain for security. CALLDATA is processed by every Ethereum node forever, creating permanent storage costs. EIP-4844's blobs, in contrast, are large data packets (~128 KB each) that are only stored by consensus nodes for a short period (approximately 18 days) before being pruned. This temporary storage model is the key to achieving scalable data availability without bloating the chain's permanent state.
A core component of EIP-4844 is the independent blob gas market. Unlike the gas used for execution (gas), blob gas is priced by a dedicated EIP-1559-style fee market that targets three blobs per block. This separation prevents competition between execution and data availability, ensuring rollup data posting has predictable costs. The fee mechanism dynamically adjusts based on demand for blobspace, burning excess fees to regulate supply.
The architecture introduced by Proto-Danksharding is explicitly designed for evolution. The term "proto" indicates it is the prototype for full Danksharding, a future upgrade that will expand capacity to 16 MB per slot and distribute blob data across a committee of validators. EIP-4844's successful deployment validates the core concepts and allows the ecosystem to build tooling and infrastructure, creating a smooth pathway for this next leap in scalability.
The immediate impact of EIP-4844 was a radical reduction in Layer 2 transaction fees, often by an order of magnitude or more, making applications on networks like Arbitrum, Optimism, and Base significantly more affordable. Beyond cost, it cemented Ethereum's rollup-centric roadmap by providing a dedicated, scalable highway for data, ensuring the L2 ecosystem can grow without congesting the base layer's execution block space.
Blob Gas vs. Execution Gas
A technical comparison of the two primary gas types in Ethereum's post-Dencun upgrade fee market, highlighting their distinct purposes and economic models.
| Feature | Blob Gas | Execution Gas |
|---|---|---|
Primary Purpose | Pays for data availability for Layer 2 rollups | Pays for computation and storage on the Ethereum Virtual Machine (EVM) |
Resource Consumed | Data bandwidth and storage in the Beacon Chain | Computation (CPU), memory, and state storage |
Fee Market | Separate, independent market (blob gas price) | Primary Ethereum gas market (base fee + priority fee) |
Pricing Mechanism | Targets a fixed number of blobs per block (3); price adjusts via EIP-1559-style mechanism | Targets a variable block gas limit (~30M gas); price adjusts via EIP-1559 |
Persistence | Temporary (~18 days), then pruned | Permanent, stored in Ethereum state |
Fee Burning (EIP-1559) | Yes, 100% of base blob gas fee is burned | Yes, base fee is burned, priority fee goes to validator |
Typical User | Layer 2 rollup sequencers | End-users, dApps, smart contracts |
Transaction Field |
|
|
Ecosystem Usage
Blob gas is the fee mechanism for posting large data blobs on Ethereum, enabling cheaper data availability for Layer 2 rollups. Its usage is defined by market dynamics and protocol rules.
Blob Gas Market & Pricing
Blob gas has a separate fee market from standard EIP-1559 gas. Its price is determined by a target per-block blob limit and actual usage. Key mechanisms include:
- Base Fee: Adjusts based on whether blob usage is above or below the target.
- Blob Fee Cap: Users set a maximum fee, with transactions using the current blob base fee.
- Burn: The blob base fee is burned, similar to EIP-1559.
Blob Transaction Structure
A blob-carrying transaction (type-3) contains both regular execution data and one or more blobs. Each blob is ~128 KB of data stored in the Beacon Chain consensus layer for ~18 days (4096 epochs). The execution layer only stores a small commitment to this data, enabling efficient verification.
Data Availability Sampling (DAS)
The long-term purpose of blob gas is to enable Data Availability Sampling. Light clients and rollups can probabilistically verify that blob data is available by sampling small random chunks. This scales data availability securely without requiring any single node to download all data.
The Blob Gas Limit & Throughput
Network throughput for blob data is controlled by the blob gas limit. Initially set to 3 blobs per block (0.375 MB/block), this limit is designed to increase over time with Proto-Danksharding and full Danksharding. The limit prevents consensus overload from excessive blob data.
Security & Design Considerations
Blob gas is a distinct fee mechanism for posting large data blobs in Ethereum's EIP-4844 upgrade, designed to decouple data availability costs from execution gas. Its design introduces specific security and economic trade-offs.
Blob Gas Market & Fee Dynamics
Blob gas operates on a separate fee market from execution gas, using an exponential EIP-1559-style pricing mechanism. This design prevents congestion in blob posting from spiking fees for standard transactions. Key dynamics include:
- Target and limit per block: A target of 3 blobs and a hard limit of 6 blobs per block.
- Price adjustments: The base fee for blob gas adjusts rapidly based on blob usage relative to the target, creating a volatile but isolated pricing model.
- Burn mechanism: Like EIP-1559, the base fee is burned, applying deflationary pressure.
Data Availability & Pruning
Blobs provide short-term data availability, persisting for approximately 18 days (4096 epochs) before being pruned by consensus nodes. This creates a critical security assumption:
- Layer 2s must retrieve and store their data within this window to be able to reconstruct their state.
- Data availability sampling (DAS) by light clients and Layer 2 nodes is essential to ensure the data was actually published.
- The system relies on the assumption that at least one honest actor will have the data available for dispute resolution during the challenge period.
Blob Spam & Denial-of-Service Vectors
The blob gas mechanism introduces new potential attack vectors that validators must manage:
- Blob spam: An attacker could fill all blob slots with garbage data, temporarily denying service to legitimate rollups. The rapidly increasing base fee is the primary economic deterrent.
- Block size management: A full complement of 6 blobs increases block size significantly (~0.75 MB). Validators must handle the associated bandwidth and propagation latency.
- Validator memory pressure: While blobs are stored in a sidecar, processing and verifying them requires sufficient node resources.
Integration with Layer 2 Security
Blob gas is a core component of ensuring Layer 2 (L2) security. Its design directly impacts L2 safety models:
- Commitment schemes: L2s post cryptographic commitments (usually KZG commitments) to their data in blobs. The Ethereum consensus verifies these commitments, not the data itself.
- Fraud proof window: The ~18-day data retention period defines the maximum time available for submitting fraud proofs in optimistic rollups.
- Cost/security trade-off: Cheaper data than calldata allows L2s to post more frequent state updates, potentially reducing withdrawal times and improving security assumptions.
Validator Economics & Incentives
Validators are compensated for including blobs via priority fees (tips), but face new economic considerations:
- Resource costs: Propagating and storing blobs (temporarily) incurs higher bandwidth and memory costs than standard blocks.
- Tip market: A separate tip market for blob inclusion may develop, especially when blob space is congested.
- MEV considerations: The ordering of blobs within a block could become a source of Maximal Extractable Value (MEV), as certain L2 transactions may be time-sensitive.
Forward Compatibility & Proto-Danksharding
EIP-4844 (Proto-Danksharding) is explicitly designed as a stepping stone to full Danksharding. Its security model anticipates this evolution:
- KZG cryptographic setup: Uses a trusted setup ceremony, a temporary requirement until full Danksharding moves to a different polynomial commitment scheme.
- Blob count limit: The 6-blob limit is a safety measure for the initial rollout, to be increased significantly with future upgrades.
- Sidecar design: Blobs are transmitted in separate sidecar messages, preparing the network for the modular data layer envisioned in the full sharding roadmap.
Technical Details
Blob gas is a specialized fee mechanism introduced by EIP-4844 (Proto-Danksharding) on Ethereum to price temporary data storage for Layer 2 scaling solutions.
Blob gas is a distinct fee mechanism on Ethereum that prices the temporary storage of large data packets called blobs. It works by creating a separate gas market from the standard execution gas used for transactions. When a user submits a transaction containing a blob, they pay a fee calculated from the current blob gas price, which is determined by a dedicated EIP-1559-style fee market. The blob data is stored by consensus nodes for approximately 18 days (4096 epochs) before being pruned, making it a low-cost, temporary data availability solution primarily for Layer 2 rollups.
Key Mechanism:
- Blobs are carried in a new transaction type,
TransactionType=3(blob transaction). - Each transaction can carry up to 6 blobs, with each blob being ~128 KB.
- The blob gas price is calculated independently from execution gas, often resulting in significantly lower costs for bulk data.
Frequently Asked Questions
Essential questions and answers about Blob Gas, the fee mechanism for data blobs introduced in Ethereum's Dencun upgrade.
Blob Gas is a distinct fee mechanism introduced in Ethereum's Dencun upgrade (EIP-4844) to pay for posting large data packets called blobs to the beacon chain. It operates on a separate, independent fee market from standard execution gas. The cost of blob gas is determined by a dedicated EIP-1559-style pricing model, with a base fee that adjusts per block based on network demand for blob space, aiming to keep blob usage near a target of three blobs per block. This separation prevents competition for block space between transaction execution and data availability, making Layer 2 rollup data posting significantly cheaper and more predictable.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.