{"eip":4844,"title":"Shard Blob Transactions","description":"Shard Blob Transactions scale data-availability of Ethereum in a simple, forwards-compatible manner.","authors":["Vitalik Buterin (@vbuterin)","Dankrad Feist (@dankrad)","Diederik Loerakker (@protolambda)","George Kadianakis (@asn-d6)","Matt Garnett (@lightclient)","Mofi Taiwo (@Inphi)","Ansgar Dietrichs (@adietrichs)"],"status":"Final","type":"Standards Track","category":"Core","created":"2022-02-25","requires":[1559,2718,2930,4895],"discussionsTo":"https://ethereum-magicians.org/t/eip-4844-shard-blob-transactions/8430","repo":"EIPs","label":"EIP-4844","officialUrl":"https://eips.ethereum.org/EIPS/eip-4844","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4844.md","url":"https://eips.huatuo.xyz/eip-4844/","tldr":{"en":"Proto-danksharding: adds blob-carrying transactions with their own cheap fee market, giving rollups temporary data space and cutting L2 fees sharply.","ja":"Proto-danksharding。独自の安価な手数料市場を持つブロブ搭載トランザクションを追加し、ロールアップに一時的なデータ領域を提供して L2 手数料を大幅に引き下げる。","ko":"Proto-danksharding. 자체적인 저렴한 수수료 시장을 가진 블롭 탑재 트랜잭션을 추가해, 롤업에 임시 데이터 공간을 제공하고 L2 수수료를 크게 낮춘다.","zh":"Proto-danksharding：新增携带 blob 的交易，拥有独立且廉价的费用市场，为 rollup 提供临时数据空间，大幅降低 L2 费用。"},"tags":["blobs","rollups","scaling","data-availability","kzg","dencun"],"explainers":{"en":{"lang":"en","tldr":"Proto-danksharding: adds blob-carrying transactions with their own cheap fee market, giving rollups temporary data space and cutting L2 fees sharply.","tags":["blobs","rollups","scaling","data-availability","kzg","dencun"],"related":[1559,2718,7516,7691,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4844/","markdown":"## What problem does it solve?\n\nRollups post their transaction data to Ethereum so anyone can reconstruct L2 state. Before this EIP that data went into `calldata`, which is stored forever by every node and priced like any other execution resource. Data posting was most of what users paid on L2s.\n\nEIP-4844 (shipped in the Dencun upgrade, March 2024) gives rollups a dedicated, cheaper place for that data: **blobs**. Blobs are not accessible to the EVM and are pruned after a few weeks, which is enough for anyone to download and check them. It is the first step toward full danksharding, and keeps the same transaction format that later data-availability sampling will use.\n\n## How it works\n\n- **Blob transactions** are a new [EIP-2718](/eip-2718/) type, `0x03`. They have the [EIP-1559](/eip-1559/) fee fields plus `max_fee_per_blob_gas` and `blob_versioned_hashes`. `to` must be set, so they cannot create contracts.\n- **A blob** is 4096 field elements × 32 bytes = 128 KiB. Each is committed to with a KZG commitment; the transaction only carries `versioned_hash = 0x01 || sha256(commitment)[1:]`.\n- **Sidecars.** Blobs travel next to the beacon block, not inside the execution payload. The consensus layer keeps them for `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` = 4096 epochs (about 18 days). In the mempool a blob tx is gossiped as `[tx, blobs, commitments, proofs]` and only announced, never pushed.\n- **Separate fee market.** Each blob costs `GAS_PER_BLOB` = 131072 blob gas. Headers gain `blob_gas_used` and `excess_blob_gas`, and the blob base fee is `fake_exponential(1, excess_blob_gas, 3338477)`: it rises exponentially while usage stays above target and falls when below. The blob fee is burned and not refunded if the transaction fails.\n- **Original limits:** target 393216 / max 786432 blob gas per block, i.e. 3 / 6 blobs. These were later raised (see below).\n- **EVM access:** `BLOBHASH` (`0x49`, 3 gas) returns the versioned hash at an index; the **point evaluation precompile** at `0x0A` (50000 gas) verifies a KZG proof that the blob evaluates to `y` at point `z`. This is how fraud or validity proofs reference blob contents.\n\n## Sample code\n\nA rollup inbox contract recording the blobs attached to the current transaction (Solidity ≥ 0.8.24 exposes `blobhash` and `block.blobbasefee`):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\ncontract BlobInbox {\n    event BatchPosted(uint256 indexed index, bytes32 versionedHash, uint256 blobBaseFee);\n\n    function postBatch(uint256 numBlobs) external {\n        for (uint256 i = 0; i \u003c numBlobs; i++) {\n            bytes32 h = blobhash(i);           // BLOBHASH opcode\n            require(h != bytes32(0), \"missing blob\");\n            emit BatchPosted(i, h, block.blobbasefee);\n        }\n    }\n}\n```\n\nThe blob base fee update from the spec:\n\n```python\ndef calc_excess_blob_gas(parent):\n    total = parent.excess_blob_gas + parent.blob_gas_used\n    return max(0, total - TARGET_BLOB_GAS_PER_BLOCK)\n\nbase_fee_per_blob_gas = fake_exponential(1, excess_blob_gas, 3338477)\n```\n\n## Things to know\n\n- Status: **Final**, live on mainnet since Dencun.\n- Blob capacity has since been raised by [EIP-7691](/eip-7691/), and the `BLOBBASEFEE` opcode ([EIP-7516](/eip-7516/)) lets contracts read the blob price. Check current parameters rather than relying on the original 3/6 numbers.\n- Blobs are temporary. Anyone who needs the data long-term (rollup nodes, indexers, explorers) must archive it within the retention window.\n- Contracts can never read blob bytes, only their versioned hash and KZG-proven evaluations.\n- Sending blob transactions needs a KZG library to compute commitments and proofs; most teams use their rollup stack's batcher or a client library rather than doing it by hand.\n"},"ja":{"lang":"ja","tldr":"Proto-danksharding。独自の安価な手数料市場を持つブロブ搭載トランザクションを追加し、ロールアップに一時的なデータ領域を提供して L2 手数料を大幅に引き下げる。","tags":["blobs","rollups","scaling","data-availability","kzg","dencun"],"related":[1559,2718,7516,7691,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4844/","markdown":"## 何を解決するのか\n\nロールアップは、誰でも L2 の状態を再構築できるように、トランザクションデータを Ethereum に投稿します。この EIP 以前は、そのデータは `calldata` に入っていました。`calldata` はすべてのノードが永久に保存し、他の実行リソースと同じように価格付けされます。L2 でユーザーが支払うコストの大部分はデータ投稿でした。\n\nEIP-4844（2024 年 3 月の Dencun アップグレードで導入）は、そのデータ専用の、より安価な置き場所である**ブロブ**をロールアップに提供します。ブロブは EVM からアクセスできず、数週間後に削除されますが、誰もがダウンロードして検証するにはそれで十分です。これは完全な danksharding への第一歩であり、将来のデータ可用性サンプリングが使うのと同じトランザクション形式を維持します。\n\n## 仕組み\n\n- **ブロブトランザクション**は、新しい [EIP-2718](/eip-2718/) タイプ `0x03` です。[EIP-1559](/eip-1559/) の手数料フィールドに加えて `max_fee_per_blob_gas` と `blob_versioned_hashes` を持ちます。`to` の指定が必須なので、コントラクトの作成はできません。\n- **ブロブ**は 4096 個のフィールド要素 × 32 バイト = 128 KiB です。それぞれに KZG コミットメントが付き、トランザクションは `versioned_hash = 0x01 || sha256(commitment)[1:]` だけを運びます。\n- **サイドカー。** ブロブは実行ペイロードの中ではなく、ビーコンブロックの隣を通ります。コンセンサスレイヤーは `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` = 4096 エポック（約 18 日）の間それらを保持します。mempool では、ブロブトランザクションは `[tx, blobs, commitments, proofs]` としてゴシップされ、通知されるだけで、プッシュされることはありません。\n- **独立した手数料市場。** 各ブロブのコストは `GAS_PER_BLOB` = 131072 ブロブガスです。ヘッダーに `blob_gas_used` と `excess_blob_gas` が加わり、ブロブのベース手数料は `fake_exponential(1, excess_blob_gas, 3338477)` となります。使用量が目標を上回り続けると指数的に上昇し、下回ると下落します。ブロブ手数料はバーンされ、トランザクションが失敗しても返金されません。\n- **当初の上限:** 1 ブロックあたりのブロブガスは目標 393216 / 最大 786432、つまりブロブ 3 個 / 6 個です。これらは後に引き上げられました（下記参照）。\n- **EVM からのアクセス:** `BLOBHASH`（`0x49`、3 gas）は指定インデックスの versioned hash を返します。`0x0A` にある**ポイント評価プリコンパイル**（50000 gas）は、ブロブが点 `z` で `y` と評価されるという KZG 証明を検証します。不正証明や有効性証明がブロブの内容を参照するのは、この仕組みによります。\n\n## サンプルコード\n\n現在のトランザクションに添付されたブロブを記録するロールアップの inbox コントラクトです（Solidity 0.8.24 以降は `blobhash` と `block.blobbasefee` を使えます）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\ncontract BlobInbox {\n    event BatchPosted(uint256 indexed index, bytes32 versionedHash, uint256 blobBaseFee);\n\n    function postBatch(uint256 numBlobs) external {\n        for (uint256 i = 0; i \u003c numBlobs; i++) {\n            bytes32 h = blobhash(i);           // BLOBHASH opcode\n            require(h != bytes32(0), \"missing blob\");\n            emit BatchPosted(i, h, block.blobbasefee);\n        }\n    }\n}\n```\n\n仕様にあるブロブのベース手数料の更新式:\n\n```python\ndef calc_excess_blob_gas(parent):\n    total = parent.excess_blob_gas + parent.blob_gas_used\n    return max(0, total - TARGET_BLOB_GAS_PER_BLOCK)\n\nbase_fee_per_blob_gas = fake_exponential(1, excess_blob_gas, 3338477)\n```\n\n## 知っておくべきこと\n\n- ステータス: **Final**。Dencun 以降メインネットで稼働中です。\n- ブロブ容量はその後 [EIP-7691](/eip-7691/) で引き上げられ、`BLOBBASEFEE` opcode（[EIP-7516](/eip-7516/)）によりコントラクトがブロブ価格を読めるようになりました。当初の 3/6 という数値に頼らず、現在のパラメータを確認してください。\n- ブロブは一時的なものです。データを長期的に必要とする人（ロールアップノード、インデクサー、エクスプローラーなど）は、保持期間内にアーカイブする必要があります。\n- コントラクトはブロブのバイト列を読むことはできず、versioned hash と KZG で証明された評価結果だけを読めます。\n- ブロブトランザクションの送信には、コミットメントと証明を計算する KZG ライブラリが必要です。多くのチームは手作業ではなく、ロールアップスタックの batcher やクライアントライブラリを使います。\n"},"ko":{"lang":"ko","tldr":"Proto-danksharding. 자체적인 저렴한 수수료 시장을 가진 블롭 탑재 트랜잭션을 추가해, 롤업에 임시 데이터 공간을 제공하고 L2 수수료를 크게 낮춘다.","tags":["blobs","rollups","scaling","data-availability","kzg","dencun"],"related":[1559,2718,7516,7691,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4844/","markdown":"## 어떤 문제를 해결하나요?\n\n롤업은 누구나 L2 상태를 재구성할 수 있도록 트랜잭션 데이터를 이더리움에 게시합니다. 이 EIP 이전에는 그 데이터가 `calldata`에 들어갔는데, `calldata`는 모든 노드가 영구 저장하며 다른 실행 자원과 같은 방식으로 가격이 매겨집니다. L2에서 사용자가 내는 비용의 대부분이 데이터 게시 비용이었습니다.\n\nEIP-4844(2024년 3월 Dencun 업그레이드로 도입)는 롤업에 그 데이터를 위한 전용의 더 저렴한 공간인 **블롭**을 제공합니다. 블롭은 EVM에서 접근할 수 없고 몇 주 뒤에 삭제되지만, 누구나 내려받아 검증하기에는 충분합니다. 이는 완전한 danksharding으로 가는 첫 단계이며, 이후 데이터 가용성 샘플링이 사용할 것과 같은 트랜잭션 형식을 유지합니다.\n\n## 어떻게 동작하나요?\n\n- **블롭 트랜잭션**은 새로운 [EIP-2718](/eip-2718/) 타입 `0x03`입니다. [EIP-1559](/eip-1559/)의 수수료 필드에 더해 `max_fee_per_blob_gas`와 `blob_versioned_hashes`를 가집니다. `to`를 반드시 지정해야 하므로 컨트랙트를 생성할 수 없습니다.\n- **블롭 하나**는 필드 요소 4096개 × 32바이트 = 128 KiB입니다. 각각 KZG 커밋먼트로 커밋되며, 트랜잭션은 `versioned_hash = 0x01 || sha256(commitment)[1:]`만 담습니다.\n- **사이드카.** 블롭은 실행 페이로드 안이 아니라 비콘 블록 옆으로 전달됩니다. 합의 계층은 이를 `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` = 4096 에포크(약 18일) 동안 보관합니다. 멤풀에서 블롭 트랜잭션은 `[tx, blobs, commitments, proofs]`로 가십되며, 공지만 될 뿐 푸시되지는 않습니다.\n- **별도의 수수료 시장.** 블롭 하나당 `GAS_PER_BLOB` = 131072 블롭 가스가 듭니다. 헤더에 `blob_gas_used`와 `excess_blob_gas`가 추가되고, 블롭 기본 수수료는 `fake_exponential(1, excess_blob_gas, 3338477)`입니다. 사용량이 목표를 넘는 동안에는 지수적으로 오르고, 밑돌면 내려갑니다. 블롭 수수료는 소각되며 트랜잭션이 실패해도 환불되지 않습니다.\n- **초기 한도:** 블록당 블롭 가스 목표 393216 / 최대 786432, 즉 블롭 3개 / 6개입니다. 이는 이후 상향되었습니다(아래 참조).\n- **EVM 접근:** `BLOBHASH`(`0x49`, 3 gas)는 해당 인덱스의 versioned hash를 반환하고, `0x0A`에 있는 **포인트 평가 프리컴파일**(50000 gas)은 블롭이 점 `z`에서 `y`로 평가된다는 KZG 증명을 검증합니다. 사기 증명이나 유효성 증명이 블롭 내용을 참조하는 방식이 바로 이것입니다.\n\n## 샘플 코드\n\n현재 트랜잭션에 첨부된 블롭을 기록하는 롤업 inbox 컨트랙트입니다(Solidity 0.8.24 이상은 `blobhash`와 `block.blobbasefee`를 제공합니다).\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\ncontract BlobInbox {\n    event BatchPosted(uint256 indexed index, bytes32 versionedHash, uint256 blobBaseFee);\n\n    function postBatch(uint256 numBlobs) external {\n        for (uint256 i = 0; i \u003c numBlobs; i++) {\n            bytes32 h = blobhash(i);           // BLOBHASH opcode\n            require(h != bytes32(0), \"missing blob\");\n            emit BatchPosted(i, h, block.blobbasefee);\n        }\n    }\n}\n```\n\n사양에 있는 블롭 기본 수수료 갱신식입니다.\n\n```python\ndef calc_excess_blob_gas(parent):\n    total = parent.excess_blob_gas + parent.blob_gas_used\n    return max(0, total - TARGET_BLOB_GAS_PER_BLOCK)\n\nbase_fee_per_blob_gas = fake_exponential(1, excess_blob_gas, 3338477)\n```\n\n## 알아둘 점\n\n- 상태: **Final**. Dencun 이후 메인넷에서 동작 중입니다.\n- 블롭 용량은 이후 [EIP-7691](/eip-7691/)로 늘어났고, `BLOBBASEFEE` opcode([EIP-7516](/eip-7516/))로 컨트랙트가 블롭 가격을 읽을 수 있습니다. 처음의 3/6이라는 수치에 의존하지 말고 현재 파라미터를 확인하세요.\n- 블롭은 임시적입니다. 데이터가 장기적으로 필요한 쪽(롤업 노드, 인덱서, 익스플로러 등)은 보관 기간 안에 직접 아카이브해야 합니다.\n- 컨트랙트는 블롭의 바이트를 읽을 수 없고, versioned hash와 KZG로 증명된 평가값만 읽을 수 있습니다.\n- 블롭 트랜잭션을 보내려면 커밋먼트와 증명을 계산하는 KZG 라이브러리가 필요합니다. 대부분의 팀은 직접 하지 않고 롤업 스택의 batcher나 클라이언트 라이브러리를 사용합니다.\n"},"zh":{"lang":"zh","tldr":"Proto-danksharding：新增携带 blob 的交易，拥有独立且廉价的费用市场，为 rollup 提供临时数据空间，大幅降低 L2 费用。","tags":["blobs","rollups","scaling","data-availability","kzg","dencun"],"related":[1559,2718,7516,7691,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4844/","markdown":"## 它解决什么问题？\n\nRollup 把交易数据发布到以太坊，让任何人都能重建 L2 状态。在这个 EIP 之前，这些数据放在 `calldata` 中，每个节点会永久存储它，其定价也和其他执行资源一样。数据发布占了用户在 L2 上所付费用的大部分。\n\nEIP-4844（随 2024 年 3 月的 Dencun 升级上线）为 rollup 提供了一个专用、更便宜的数据存放位置：**blob**。Blob 无法被 EVM 访问，并在几周后被修剪，这足够让任何人下载并验证。这是迈向完整 danksharding 的第一步，并保持了日后数据可用性采样将使用的同一种交易格式。\n\n## 它如何运作\n\n- **Blob 交易**是一种新的 [EIP-2718](/eip-2718/) 类型，即 `0x03`。它们具有 [EIP-1559](/eip-1559/) 的费用字段，外加 `max_fee_per_blob_gas` 和 `blob_versioned_hashes`。必须设置 `to`，因此无法创建合约。\n- **一个 blob** 是 4096 个域元素 × 32 字节 = 128 KiB。每个 blob 都有一个 KZG 承诺；交易只携带 `versioned_hash = 0x01 || sha256(commitment)[1:]`。\n- **Sidecar。** Blob 随信标区块传输，而不在执行负载之内。共识层会保留它们 `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` = 4096 个 epoch（约 18 天）。在内存池中，blob 交易以 `[tx, blobs, commitments, proofs]` 的形式进行 gossip，且只做通告，从不主动推送。\n- **独立的费用市场。** 每个 blob 消耗 `GAS_PER_BLOB` = 131072 blob gas。区块头新增 `blob_gas_used` 和 `excess_blob_gas`，blob 基础费用为 `fake_exponential(1, excess_blob_gas, 3338477)`：使用量持续高于目标时按指数上升，低于目标时下降。Blob 费用会被销毁，交易失败时也不退还。\n- **最初的限制：** 每个区块目标 393216 / 最大 786432 blob gas，即 3 / 6 个 blob。这些数值后来已被提高（见下文）。\n- **EVM 访问：** `BLOBHASH`（`0x49`，3 gas）返回指定索引处的 versioned hash；位于 `0x0A` 的**点求值预编译**（50000 gas）验证一个 KZG 证明，证明该 blob 在点 `z` 处求值为 `y`。欺诈证明或有效性证明就是这样引用 blob 内容的。\n\n## 示例代码\n\n一个 rollup inbox 合约，记录当前交易所附带的 blob（Solidity ≥ 0.8.24 提供 `blobhash` 和 `block.blobbasefee`）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\ncontract BlobInbox {\n    event BatchPosted(uint256 indexed index, bytes32 versionedHash, uint256 blobBaseFee);\n\n    function postBatch(uint256 numBlobs) external {\n        for (uint256 i = 0; i \u003c numBlobs; i++) {\n            bytes32 h = blobhash(i);           // BLOBHASH opcode\n            require(h != bytes32(0), \"missing blob\");\n            emit BatchPosted(i, h, block.blobbasefee);\n        }\n    }\n}\n```\n\n规范中的 blob 基础费用更新公式：\n\n```python\ndef calc_excess_blob_gas(parent):\n    total = parent.excess_blob_gas + parent.blob_gas_used\n    return max(0, total - TARGET_BLOB_GAS_PER_BLOCK)\n\nbase_fee_per_blob_gas = fake_exponential(1, excess_blob_gas, 3338477)\n```\n\n## 需要注意\n\n- 状态：**Final**，自 Dencun 起已在主网上线。\n- Blob 容量后来已由 [EIP-7691](/eip-7691/) 提高，`BLOBBASEFEE` opcode（[EIP-7516](/eip-7516/)）让合约可以读取 blob 价格。请查看当前参数，不要依赖最初的 3/6 这组数字。\n- Blob 是临时的。需要长期保存数据的人（rollup 节点、索引器、浏览器等）必须在保留窗口内将其归档。\n- 合约永远无法读取 blob 的字节内容，只能读取其 versioned hash 和经 KZG 证明的求值结果。\n- 发送 blob 交易需要 KZG 库来计算承诺和证明；大多数团队使用其 rollup 技术栈的 batcher 或客户端库，而不是手工完成。\n"}},"requiredBy":[6404,7503,7516,7569,7588,7594,7664,7702,7706,7742,7762,7886,7915,7918,7999,8025,8070,8075,8096,8101,8131,8141,8142,8149,8164,8179,8180,8197,8202,8256,8369]}
