Live
USD · 24h
Ethereum & Altcoins

A beginner’s guide to Ethereum’s danksharding implementation

Ethereum's Dencun upgrade introduced 128 KB data blobs to lower rollup costs, reducing average Layer 1 gas prices by 58.5%. This mechanism separates data from execution logic to improve scalability for rollups like Arbitrum and Base.

A beginner's guide to Ethereum's danksharding implementation

The mechanics of blobs

The March 2024 Dencun upgrade introduced Type 3 blob-carrying transactions to Ethereum. These transactions attach 128 KB data blobs to the consensus layer. Before this change, rollups posted data via calldata, incurring a cost of 16 gas per nonzero byte. This method forced rollups to pay full execution gas for every byte. Unlike calldata, which resides in the permanent state, blobs vanish after 4,096 epochs, or about 18 days. This temporary storage allows rollups to post data for validity proofs without bloating node storage. Smart contracts cannot read the underlying blob bytes directly. Instead, they verify a KZG proof against a commitment using the BLOBHASH opcode and a precompile at address 0x0A. The Ethereum KZG ceremony included more than 140,000 participants throughout 2023 to generate the parameters that compress a polynomial of degree 4,095 into a single point on an elliptic curve. I find the separation of data from execution logic quite smart. This design simplifies how rollups manage their storage requirements.

Economic reality for rollups

Rollups like Arbitrum, Optimism, and Base saw transaction fees drop from $0.20 to $1.00 ranges down to $0.01 to $0.10 within the first week of deployment. This reduction happened because EIP-4844 created a separate fee market for blob gas. The cost uses a formula: the blob count multiplied by 131,072 gas units and the max fee per blob gas. The protocol targets three blobs per block to stabilize costs. When usage exceeds this target, the base fee increases using the same exponential adjustment mechanism as EIP-1559. If demand stays low, the fee drops to a minimum of 1 wei. Following activation, the average Layer 1 gas cost fell by 58.5% from 33.24 to 13.78 Gwei, while the median value fell by 67.5% from 30.49 to 9.91 Gwei. The share of days with gas prices below 10 Gwei increased by 2,225%.

Metric Legacy Calldata Data Blobs Full Danksharding Target
Data Size per Object Variable 128 KB 512 KB
Max Objects per Block Unlimited 6 64
Persistence Permanent ~18 Days ~18 Days
L2 Cost Reduction Baseline 10x to 100x 1000x+

Large rollups like Base and Arbitrum, which together accounted for roughly 70% of L2 daily transactions in mid-2024, captured the biggest cost reductions. However, the market remains volatile. Builders sometimes include blob transactions that yield less profit than other mempool options. I find this suboptimal behavior annoying for network efficiency. You should know that the KZG commitment remains in the execution layer indefinitely, even after the consensus layer prunes the blob. This separation ensures that validity remains verifiable without the original data.

The roadmap toward full Danksharding

The roadmap moves from proto-danksharding toward full Danksharding. The next step involves the PeerDAS mechanism. This implementation uses Reed-Solomon erasure coding to distribute data across 128 columns. Nodes subscribe to eight separate gossip subnets. This approach aims for an 8x increase in throughput compared to the current model where all nodes download all data. Full Danksharding eventually targets 32 blobs of 512 KB each per slot and a capacity of over 100,000 transactions per second.

The progression involves increasing the number of blobs per block through programmed forks. The Pectra upgrade will raise the target from three to six blobs and the cap from six to nine. This staged increase prevents overwhelming consensus client bandwidth. Will PeerDAS successfully handle the massive increase in data availability demand once the network scales to 64 blobs per block?

Join the discussion

Leave a Reply

Your email address will not be published. Required fields are marked *