{"eip":7588,"title":"Blob Transactions Metadata JSON Schema","description":"Attaching metadata to blobs carried by blob transactions","authors":["Gavin Fu (@gavfu)","Leo Wang (@wanglie1986)","Bova Chen (@appoipp)","Aiden X (@4ever9)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2024-01-01","requires":[4844],"discussionsTo":"https://ethereum-magicians.org/t/erc7588-attaching-metadata-to-blobs-carried-by-blob-transactions/17873","repo":"ERCs","label":"ERC-7588","officialUrl":"https://eips.ethereum.org/EIPS/eip-7588","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7588.md","url":"https://eips.huatuo.xyz/eip-7588/","tldr":{"en":"A JSON schema for describing the blobs in an EIP-4844 blob transaction (originator, description, MIME type per blob), placed as UTF-8 text in the transaction's data field so indexers and storage apps can tell what the blobs contain.","ja":"EIP-4844 の blob トランザクションに含まれる blob を記述する JSON スキーマ（発信者、説明、blob ごとの MIME タイプ）。トランザクションの data フィールドに UTF-8 テキストとして置かれ、インデクサーやストレージアプリが blob の中身を判別できるようにする。","ko":"EIP-4844 blob 트랜잭션의 blob을 설명하는 JSON 스키마(발행자, 설명, blob별 MIME 타입). 트랜잭션의 data 필드에 UTF-8 텍스트로 넣어, 인덱서와 스토리지 앱이 blob에 무엇이 들어 있는지 알 수 있게 한다.","zh":"一种 JSON 模式，用于描述 EIP-4844 blob 交易中的 blob（发布者、描述、每个 blob 的 MIME 类型），以 UTF-8 文本形式放在交易的 data 字段中，使索引器和存储应用能够知道 blob 包含什么。"},"tags":["blobs","metadata","json","data-availability","indexing"],"explainers":{"en":{"lang":"en","tldr":"A JSON schema for describing the blobs in an EIP-4844 blob transaction (originator, description, MIME type per blob), placed as UTF-8 text in the transaction's data field so indexers and storage apps can tell what the blobs contain.","tags":["blobs","metadata","json","data-availability","indexing"],"related":[4844,7516],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7588/","markdown":"## What problem does it solve?\n\n[EIP-4844](/eip-4844/) added blob transactions: transactions that carry large, temporary data blobs, mainly used by rollups to post their batch data cheaply. A blob is just 128 KB of opaque bytes. Rollups know what their own blobs mean, but anyone else looking at them, such as blob explorers, indexing services or storage networks that archive blobs, sees only raw data.\n\nThe data (calldata) field of a blob transaction is usually empty. ERC-7588 proposes using it to carry a small, human- and machine-readable description of the blobs: who posted them, what they are, and their MIME type. This makes blobs easier to audit and opens the door to apps such as decentralized storage or \"blob inscriptions\".\n\n## How it works\n\nThe transaction's `data` field is set to the UTF-8 bytes of a JSON object with these optional properties:\n\n| Property | Meaning |\n| --- | --- |\n| `originator` | Who posted the blobs |\n| `description` | What the blobs contain |\n| `content_type` | MIME type (per RFC 2046) for all blobs |\n| `extras` | Free-form extra information (string) |\n| `blobs` | Array, one entry per blob in order, each with its own `description`, `content_type` and `extras` that override the top-level values |\n\nNothing else about the blob transaction changes. The metadata is not checked by consensus and has no effect on execution or validity; it is purely informational for off-chain readers.\n\nThe standard covers blob transactions whose data field is otherwise unused. If a blob transaction also needs to call a contract (for example a storage contract recording versioned hashes), the data field holds that call instead and this ERC does not apply.\n\n## Sample code\n\nSending a blob transaction with metadata (ethers v6, which needs a KZG library for blobs):\n\n```ts\nimport { Wallet, JsonRpcProvider, toUtf8Bytes, hexlify, parseUnits } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst metadata = {\n  originator: \"example.app\",\n  description: \"Text plus an illustration\",\n  blobs: [\n    { content_type: \"text/plain\", description: \"Explanation text\" },\n    { content_type: \"image/png\", description: \"Illustration, RFC 2397 data URL\" },\n  ],\n};\n\nconst tx = await wallet.sendTransaction({\n  type: 3,\n  to: wallet.address,\n  data: hexlify(toUtf8Bytes(JSON.stringify(metadata))),\n  blobs: [textBlobBytes, imageBlobBytes], // blob payloads (Uint8Array)\n  kzg,                                   // a KZG library instance (e.g. c-kzg / kzg-wasm) for commitments\n  maxFeePerBlobGas: parseUnits(\"10\", \"gwei\"),\n});\n```\n\nReading it back:\n\n```ts\nimport { toUtf8String } from \"ethers\";\nconst meta = JSON.parse(toUtf8String((await provider.getTransaction(hash))!.data));\n```\n\n## Things to know\n\n- Status is **Final**.\n- Metadata is unverified: anyone can claim any originator or content type. Treat it as a hint and validate the blob contents yourself.\n- Treat it as untrusted input. It can contain spam, phishing links or malicious payloads; sanitise before displaying.\n- Calldata costs gas, so keep metadata small. Unlike blobs, the data field is stored permanently in execution-layer history, while blobs themselves are pruned by consensus nodes after a limited retention window.\n"},"ja":{"lang":"ja","tldr":"EIP-4844 の blob トランザクションに含まれる blob を記述する JSON スキーマ（発信者、説明、blob ごとの MIME タイプ）。トランザクションの data フィールドに UTF-8 テキストとして置かれ、インデクサーやストレージアプリが blob の中身を判別できるようにする。","tags":["blobs","metadata","json","data-availability","indexing"],"related":[4844,7516],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7588/","markdown":"## 何を解決するのか\n\n[EIP-4844](/eip-4844/) は blob トランザクションを追加しました。これは、大きな一時的データの blob を運ぶトランザクションで、主にロールアップがバッチデータを安価に投稿するために使われます。blob は単なる 128 KB の不透明なバイト列です。ロールアップは自分の blob の意味を知っていますが、blob エクスプローラー、インデックスサービス、blob をアーカイブするストレージネットワークなど、それ以外の人が見ても、生のデータしか見えません。\n\nblob トランザクションの data（calldata）フィールドは通常は空です。ERC-7588 は、このフィールドを使って、blob について人間にも機械にも読める短い説明、つまり誰が投稿したか、それは何か、MIME タイプは何か、を運ぶことを提案します。これにより blob の監査がしやすくなり、分散型ストレージや「blob インスクリプション」のようなアプリへの道が開けます。\n\n## 仕組み\n\nトランザクションの `data` フィールドには、次の任意のプロパティを持つ JSON オブジェクトの UTF-8 バイト列が設定されます。\n\n| プロパティ | 意味 |\n| --- | --- |\n| `originator` | blob を投稿した者 |\n| `description` | blob に含まれるもの |\n| `content_type` | すべての blob の MIME タイプ（RFC 2046 準拠） |\n| `extras` | 自由形式の追加情報（文字列） |\n| `blobs` | 配列。blob ごとに順番に 1 エントリーで、それぞれが独自の `description`、`content_type`、`extras` を持ち、トップレベルの値を上書きする |\n\nblob トランザクションについて、他に変わることはありません。メタデータはコンセンサスでは検査されず、実行や有効性には影響しません。オフチェーンの読み手のための純粋な情報です。\n\nこの標準は、data フィールドが他に使われていない blob トランザクションを対象とします。blob トランザクションがコントラクトも呼び出す必要がある場合（たとえば、バージョン付きハッシュを記録するストレージコントラクト）、data フィールドにはその呼び出しが入り、この ERC は適用されません。\n\n## サンプルコード\n\nメタデータ付きで blob トランザクションを送信する例（ethers v6。blob には KZG ライブラリが必要）:\n\n```ts\nimport { Wallet, JsonRpcProvider, toUtf8Bytes, hexlify, parseUnits } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst metadata = {\n  originator: \"example.app\",\n  description: \"Text plus an illustration\",\n  blobs: [\n    { content_type: \"text/plain\", description: \"Explanation text\" },\n    { content_type: \"image/png\", description: \"Illustration, RFC 2397 data URL\" },\n  ],\n};\n\nconst tx = await wallet.sendTransaction({\n  type: 3,\n  to: wallet.address,\n  data: hexlify(toUtf8Bytes(JSON.stringify(metadata))),\n  blobs: [textBlobBytes, imageBlobBytes], // blob payloads (Uint8Array)\n  kzg,                                   // a KZG library instance (e.g. c-kzg / kzg-wasm) for commitments\n  maxFeePerBlobGas: parseUnits(\"10\", \"gwei\"),\n});\n```\n\n読み戻す例:\n\n```ts\nimport { toUtf8String } from \"ethers\";\nconst meta = JSON.parse(toUtf8String((await provider.getTransaction(hash))!.data));\n```\n\n## 知っておくべきこと\n\n- ステータスは **Final** です。\n- メタデータは未検証です。誰でも任意の発信者やコンテンツタイプを名乗れます。ヒントとして扱い、blob の内容は自分で検証してください。\n- 信頼できない入力として扱ってください。スパム、フィッシングリンク、悪意のあるペイロードが含まれる可能性があるため、表示前にサニタイズしてください。\n- calldata にはガスがかかるため、メタデータは小さく保ってください。blob と異なり、data フィールドは実行レイヤーの履歴に永久に保存されますが、blob 自体は限られた保持期間の後、コンセンサスノードによってプルーニングされます。\n"},"ko":{"lang":"ko","tldr":"EIP-4844 blob 트랜잭션의 blob을 설명하는 JSON 스키마(발행자, 설명, blob별 MIME 타입). 트랜잭션의 data 필드에 UTF-8 텍스트로 넣어, 인덱서와 스토리지 앱이 blob에 무엇이 들어 있는지 알 수 있게 한다.","tags":["blobs","metadata","json","data-availability","indexing"],"related":[4844,7516],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7588/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-4844](/eip-4844/)는 blob 트랜잭션을 추가했습니다. 크고 임시적인 데이터 blob을 실어 나르는 트랜잭션으로, 주로 롤업이 배치 데이터를 저렴하게 게시하는 데 쓰입니다. blob은 그저 128 KB짜리 불투명한 바이트일 뿐입니다. 롤업은 자기 blob의 의미를 알지만, blob 탐색기, 인덱싱 서비스, blob을 아카이브하는 스토리지 네트워크처럼 그 밖의 누구에게든 원시 데이터만 보입니다.\n\nblob 트랜잭션의 data(calldata) 필드는 보통 비어 있습니다. ERC-7588은 이 필드에 blob에 대한 사람과 기계가 모두 읽을 수 있는 짧은 설명, 즉 누가 게시했는지, 무엇인지, MIME 타입이 무엇인지를 담자고 제안합니다. 이렇게 하면 blob을 감사하기 쉬워지고, 탈중앙화 스토리지나 \"blob 인스크립션\" 같은 앱의 길이 열립니다.\n\n## 어떻게 동작하나요?\n\n트랜잭션의 `data` 필드는 다음 선택적 속성을 가진 JSON 객체의 UTF-8 바이트로 설정됩니다.\n\n| 속성 | 의미 |\n| --- | --- |\n| `originator` | blob을 게시한 주체 |\n| `description` | blob에 담긴 내용 |\n| `content_type` | 모든 blob의 MIME 타입(RFC 2046 기준) |\n| `extras` | 자유 형식의 추가 정보(문자열) |\n| `blobs` | 배열. blob마다 순서대로 항목 하나이며, 각 항목은 자체 `description`, `content_type`, `extras`를 가지고 최상위 값을 덮어씀 |\n\nblob 트랜잭션의 다른 부분은 바뀌지 않습니다. 메타데이터는 합의에서 검사되지 않으며 실행이나 유효성에 영향을 주지 않습니다. 오프체인 독자를 위한 순수한 정보입니다.\n\n이 표준은 data 필드를 달리 쓰지 않는 blob 트랜잭션을 대상으로 합니다. blob 트랜잭션이 컨트랙트도 호출해야 한다면(예: 버전 해시를 기록하는 스토리지 컨트랙트) data 필드에는 그 호출이 들어가며 이 ERC는 적용되지 않습니다.\n\n## 샘플 코드\n\n메타데이터를 담아 blob 트랜잭션 보내기(ethers v6, blob에는 KZG 라이브러리가 필요):\n\n```ts\nimport { Wallet, JsonRpcProvider, toUtf8Bytes, hexlify, parseUnits } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst metadata = {\n  originator: \"example.app\",\n  description: \"Text plus an illustration\",\n  blobs: [\n    { content_type: \"text/plain\", description: \"Explanation text\" },\n    { content_type: \"image/png\", description: \"Illustration, RFC 2397 data URL\" },\n  ],\n};\n\nconst tx = await wallet.sendTransaction({\n  type: 3,\n  to: wallet.address,\n  data: hexlify(toUtf8Bytes(JSON.stringify(metadata))),\n  blobs: [textBlobBytes, imageBlobBytes], // blob payloads (Uint8Array)\n  kzg,                                   // a KZG library instance (e.g. c-kzg / kzg-wasm) for commitments\n  maxFeePerBlobGas: parseUnits(\"10\", \"gwei\"),\n});\n```\n\n다시 읽어 오기:\n\n```ts\nimport { toUtf8String } from \"ethers\";\nconst meta = JSON.parse(toUtf8String((await provider.getTransaction(hash))!.data));\n```\n\n## 알아둘 점\n\n- 상태는 **Final**입니다.\n- 메타데이터는 검증되지 않습니다. 누구나 임의의 발행자나 콘텐츠 타입을 주장할 수 있습니다. 힌트로만 취급하고 blob 내용은 직접 검증하세요.\n- 신뢰할 수 없는 입력으로 취급하세요. 스팸, 피싱 링크, 악성 페이로드가 들어 있을 수 있으므로 표시하기 전에 정제하세요.\n- calldata에는 가스가 들므로 메타데이터는 작게 유지하세요. blob과 달리 data 필드는 실행 계층 히스토리에 영구 저장되는 반면, blob 자체는 제한된 보존 기간이 지나면 합의 노드가 프루닝합니다.\n"},"zh":{"lang":"zh","tldr":"一种 JSON 模式，用于描述 EIP-4844 blob 交易中的 blob（发布者、描述、每个 blob 的 MIME 类型），以 UTF-8 文本形式放在交易的 data 字段中，使索引器和存储应用能够知道 blob 包含什么。","tags":["blobs","metadata","json","data-availability","indexing"],"related":[4844,7516],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7588/","markdown":"## 它解决什么问题？\n\n[EIP-4844](/eip-4844/) 引入了 blob 交易：携带大块临时数据 blob 的交易，主要被 rollup 用来低成本地发布其批量数据。一个 blob 只是 128 KB 的不透明字节。Rollup 知道自己的 blob 是什么意思，但其他任何查看它们的人，例如 blob 浏览器、索引服务或归档 blob 的存储网络，看到的只有原始数据。\n\nblob 交易的 data（calldata）字段通常是空的。ERC-7588 提议用它来携带一份简短的、人和机器都可读的 blob 描述：谁发布的、是什么、MIME 类型是什么。这使 blob 更易于审计，也为去中心化存储或\"blob 铭文\"之类的应用打开了大门。\n\n## 它如何运作\n\n交易的 `data` 字段被设置为一个 JSON 对象的 UTF-8 字节，该对象具有以下可选属性：\n\n| 属性 | 含义 |\n| --- | --- |\n| `originator` | 谁发布了这些 blob |\n| `description` | blob 包含什么 |\n| `content_type` | 所有 blob 的 MIME 类型（遵循 RFC 2046） |\n| `extras` | 自由格式的额外信息（字符串） |\n| `blobs` | 数组，按顺序每个 blob 一项，每项有自己的 `description`、`content_type` 和 `extras`，会覆盖顶层的值 |\n\nblob 交易的其他方面都不变。元数据不会被共识检查，对执行或有效性没有任何影响；它纯粹是供链下读取者参考的信息。\n\n该标准适用于 data 字段本来没有其他用途的 blob 交易。如果 blob 交易还需要调用某个合约（例如记录版本化哈希的存储合约），则 data 字段保存的是该调用，此 ERC 不适用。\n\n## 示例代码\n\n发送带元数据的 blob 交易（ethers v6，blob 需要 KZG 库）：\n\n```ts\nimport { Wallet, JsonRpcProvider, toUtf8Bytes, hexlify, parseUnits } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst metadata = {\n  originator: \"example.app\",\n  description: \"Text plus an illustration\",\n  blobs: [\n    { content_type: \"text/plain\", description: \"Explanation text\" },\n    { content_type: \"image/png\", description: \"Illustration, RFC 2397 data URL\" },\n  ],\n};\n\nconst tx = await wallet.sendTransaction({\n  type: 3,\n  to: wallet.address,\n  data: hexlify(toUtf8Bytes(JSON.stringify(metadata))),\n  blobs: [textBlobBytes, imageBlobBytes], // blob payloads (Uint8Array)\n  kzg,                                   // a KZG library instance (e.g. c-kzg / kzg-wasm) for commitments\n  maxFeePerBlobGas: parseUnits(\"10\", \"gwei\"),\n});\n```\n\n读取回来：\n\n```ts\nimport { toUtf8String } from \"ethers\";\nconst meta = JSON.parse(toUtf8String((await provider.getTransaction(hash))!.data));\n```\n\n## 需要注意\n\n- 状态为 **Final**。\n- 元数据未经验证：任何人都可以声称任意的发布者或内容类型。请把它当作提示，并自行验证 blob 的内容。\n- 请把它当作不可信输入。它可能包含垃圾信息、钓鱼链接或恶意载荷；显示之前请先清理。\n- calldata 要消耗 gas，所以请保持元数据尽量小。与 blob 不同，data 字段会永久保存在执行层历史中，而 blob 本身会在有限的保留期之后被共识节点修剪掉。\n"}}}
