{"eip":5625,"title":"NFT Metadata JSON Schema dStorage Extension","description":"Add a dStorage property to non-fungible tokens (NFTs) metadata JSON schema to provide decentralized storage information of NFT assets","authors":["Gavin Fu (@gavfu)","Leo Wang (@wanglie1986)","Bova Chen (@appoipp)","Guang Han (@pangwa)","Brian Wu (@wuhaixian1984)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2022-09-08","requires":[721,1155],"discussionsTo":"https://ethereum-magicians.org/t/eip-5625-nft-metadata-json-schema-dstorage-extension/10754","repo":"ERCs","label":"ERC-5625","officialUrl":"https://eips.ethereum.org/EIPS/eip-5625","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5625.md","url":"https://eips.huatuo.xyz/eip-5625/","tldr":{"en":"Adds an optional dStorage object to ERC-721 and ERC-1155 metadata JSON that records which decentralized storage network holds the NFT's asset and how to verify it.","ja":"ERC-721 と ERC-1155 のメタデータ JSON に任意の dStorage オブジェクトを追加し、NFT のアセットをどの分散ストレージネットワークが保持しているか、およびその検証方法を記録する。","ko":"ERC-721과 ERC-1155 메타데이터 JSON에 선택적 dStorage 객체를 추가해, NFT의 자산을 어떤 탈중앙화 스토리지 네트워크가 보관하는지와 이를 검증하는 방법을 기록한다.","zh":"为 ERC-721 和 ERC-1155 元数据 JSON 增加一个可选的 dStorage 对象，记录哪个去中心化存储网络保存了 NFT 的资产，以及如何验证。"},"tags":["nft","metadata","storage","json"],"explainers":{"en":{"lang":"en","tldr":"Adds an optional dStorage object to ERC-721 and ERC-1155 metadata JSON that records which decentralized storage network holds the NFT's asset and how to verify it.","tags":["nft","metadata","storage","json"],"related":[721,1155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5625/","markdown":"## What problem does it solve?\n\nAn NFT contract records ownership on-chain, but the image, video or file the token represents almost always lives somewhere else. The metadata schemas from [ERC-721](/eip-721/) and [ERC-1155](/eip-1155/) (and marketplace conventions built on top of them) describe `name`, `description`, `image` and so on, but say nothing about *where* or *how durably* the asset is stored.\n\nERC-5625 fills that gap with a single, optional metadata field so collectors and tools can see whether an asset sits on a decentralized storage network such as Arweave, Filecoin, Swarm or Crust, and find a pointer that proves it was stored.\n\n## How it works\n\nThe metadata JSON returned by `tokenURI` (ERC-721) or `uri` (ERC-1155) may include a `dStorage` object. If present, all six of its string fields are required:\n\n| Field | Meaning |\n| --- | --- |\n| `platform` | Name of the storage network (e.g. Arweave, Filecoin) |\n| `description` | Short description of that platform |\n| `persistence_mechanism` | How data is kept alive or incentivized, e.g. \"blockchain-based\", \"contract-based\" |\n| `challenge_mechanism` | How storage is proven, e.g. Arweave's proof-of-access |\n| `consensus` | The platform's consensus, e.g. PoW, PoS |\n| `dstorage_note` | Evidence of storage for this asset, e.g. a Filecoin deal id or a Crust storage-order transaction hash |\n\nNothing changes in the smart contract. The authors deliberately chose a JSON schema extension over a new interface so that already-deployed collections can adopt it just by updating their metadata files.\n\n## Sample code\n\nERC-721 metadata with a `dStorage` block (values are illustrative placeholders):\n\n```json\n{\n  \"name\": \"Sunset #42\",\n  \"description\": \"A generative sunset.\",\n  \"image\": \"ar://\u003carweave-tx-id\u003e\",\n  \"dStorage\": {\n    \"platform\": \"Arweave\",\n    \"description\": \"Permanent, pay-once decentralized storage\",\n    \"persistence_mechanism\": \"blockchain-based\",\n    \"challenge_mechanism\": \"proof-of-access\",\n    \"consensus\": \"\u003cplatform consensus\u003e\",\n    \"dstorage_note\": \"\u003carweave-tx-id\u003e\"\n  }\n}\n```\n\nReading it from a client (ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\nconst uri: string = await nft.tokenURI(42n);\nconst meta = await (await fetch(uri.replace(\"ipfs://\", \"https://ipfs.io/ipfs/\"))).json();\nif (meta.dStorage) console.log(`stored on ${meta.dStorage.platform}: ${meta.dStorage.dstorage_note}`);\n```\n\n## Things to know\n\n- Status is **Final**, but the field is optional; most NFT metadata does not include it, so treat its absence as \"unknown\", not \"centralized\".\n- The field is purely informational. It does not prove anything on its own: a client that cares must check the `dstorage_note` against the named storage network itself.\n- It does not affect contract behaviour or transfer validity, and is fully backwards compatible with ERC-721 and ERC-1155 metadata.\n"},"ja":{"lang":"ja","tldr":"ERC-721 と ERC-1155 のメタデータ JSON に任意の dStorage オブジェクトを追加し、NFT のアセットをどの分散ストレージネットワークが保持しているか、およびその検証方法を記録する。","tags":["nft","metadata","storage","json"],"related":[721,1155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5625/","markdown":"## 何を解決するのか\n\nNFT コントラクトはオンチェーンで所有権を記録しますが、トークンが表す画像、動画、ファイルは、ほとんどの場合どこか別の場所にあります。[ERC-721](/eip-721/) と [ERC-1155](/eip-1155/) のメタデータスキーマ（およびその上に築かれたマーケットプレイスの慣習）は、`name`、`description`、`image` などを記述しますが、アセットが*どこに*、*どれだけ永続的に*保存されているかについては何も述べていません。\n\nERC-5625 は、このギャップを任意のメタデータフィールド 1 つで埋めます。これにより、コレクターやツールは、アセットが Arweave、Filecoin、Swarm、Crust などの分散ストレージネットワーク上にあるかどうかを確認でき、保存されたことを証明するポインタを見つけられます。\n\n## 仕組み\n\n`tokenURI`（ERC-721）または `uri`（ERC-1155）が返すメタデータ JSON には、`dStorage` オブジェクトを含めることができます。含める場合は、6 つの文字列フィールドすべてが必須です。\n\n| フィールド | 意味 |\n| --- | --- |\n| `platform` | ストレージネットワークの名前（例: Arweave、Filecoin） |\n| `description` | そのプラットフォームの簡単な説明 |\n| `persistence_mechanism` | データをどのように維持またはインセンティブ付けするか。例: \"blockchain-based\"、\"contract-based\" |\n| `challenge_mechanism` | 保存をどのように証明するか。例: Arweave の proof-of-access |\n| `consensus` | プラットフォームのコンセンサス。例: PoW、PoS |\n| `dstorage_note` | このアセットが保存されている証拠。例: Filecoin の deal id や Crust のストレージオーダーのトランザクションハッシュ |\n\nスマートコントラクトには何も変更がありません。作者は、すでにデプロイ済みのコレクションがメタデータファイルを更新するだけで採用できるよう、新しいインターフェースではなく JSON スキーマの拡張を意図的に選びました。\n\n## サンプルコード\n\n`dStorage` ブロックを持つ ERC-721 のメタデータです（値は例示用のプレースホルダーです）。\n\n```json\n{\n  \"name\": \"Sunset #42\",\n  \"description\": \"A generative sunset.\",\n  \"image\": \"ar://\u003carweave-tx-id\u003e\",\n  \"dStorage\": {\n    \"platform\": \"Arweave\",\n    \"description\": \"Permanent, pay-once decentralized storage\",\n    \"persistence_mechanism\": \"blockchain-based\",\n    \"challenge_mechanism\": \"proof-of-access\",\n    \"consensus\": \"\u003cplatform consensus\u003e\",\n    \"dstorage_note\": \"\u003carweave-tx-id\u003e\"\n  }\n}\n```\n\nクライアントから読み取る例（ethers v6）です。\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\nconst uri: string = await nft.tokenURI(42n);\nconst meta = await (await fetch(uri.replace(\"ipfs://\", \"https://ipfs.io/ipfs/\"))).json();\nif (meta.dStorage) console.log(`stored on ${meta.dStorage.platform}: ${meta.dStorage.dstorage_note}`);\n```\n\n## 知っておくべきこと\n\n- ステータスは **Final** ですが、このフィールドは任意です。ほとんどの NFT メタデータには含まれていないため、存在しないことは「中央集権的」ではなく「不明」として扱ってください。\n- このフィールドは純粋に情報提供のためのものです。それ自体では何も証明しません。気にするクライアントは、`dstorage_note` を指定されたストレージネットワークに対して自分で確認する必要があります。\n- コントラクトの動作や転送の有効性には影響せず、ERC-721 と ERC-1155 のメタデータと完全に後方互換です。\n"},"ko":{"lang":"ko","tldr":"ERC-721과 ERC-1155 메타데이터 JSON에 선택적 dStorage 객체를 추가해, NFT의 자산을 어떤 탈중앙화 스토리지 네트워크가 보관하는지와 이를 검증하는 방법을 기록한다.","tags":["nft","metadata","storage","json"],"related":[721,1155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5625/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT 컨트랙트는 소유권을 온체인에 기록하지만, 토큰이 나타내는 이미지, 영상, 파일은 거의 항상 다른 곳에 있습니다. [ERC-721](/eip-721/)과 [ERC-1155](/eip-1155/)의 메타데이터 스키마(그리고 그 위에 만들어진 마켓플레이스 관례)는 `name`, `description`, `image` 등을 설명하지만, 자산이 *어디에* 저장되어 있는지, *얼마나 오래* 유지되는지는 전혀 말해 주지 않습니다.\n\nERC-5625는 선택적 메타데이터 필드 하나로 이 공백을 메웁니다. 수집가와 도구는 자산이 Arweave, Filecoin, Swarm, Crust 같은 탈중앙화 스토리지 네트워크에 있는지 확인하고, 저장되었음을 증명하는 포인터를 찾을 수 있습니다.\n\n## 어떻게 동작하나요?\n\n`tokenURI`(ERC-721) 또는 `uri`(ERC-1155)가 반환하는 메타데이터 JSON에는 `dStorage` 객체를 포함할 수 있습니다. 포함하는 경우 문자열 필드 여섯 개가 모두 필수입니다.\n\n| 필드 | 의미 |\n| --- | --- |\n| `platform` | 스토리지 네트워크의 이름(예: Arweave, Filecoin) |\n| `description` | 해당 플랫폼에 대한 짧은 설명 |\n| `persistence_mechanism` | 데이터를 어떻게 유지하거나 인센티브를 주는지. 예: \"blockchain-based\", \"contract-based\" |\n| `challenge_mechanism` | 저장을 어떻게 증명하는지. 예: Arweave의 proof-of-access |\n| `consensus` | 플랫폼의 합의 방식. 예: PoW, PoS |\n| `dstorage_note` | 이 자산이 저장되었다는 증거. 예: Filecoin의 deal id 또는 Crust 스토리지 주문의 트랜잭션 해시 |\n\n스마트 컨트랙트에는 아무 변경도 없습니다. 작성자들은 이미 배포된 컬렉션이 메타데이터 파일만 업데이트해서 적용할 수 있도록, 새 인터페이스 대신 JSON 스키마 확장을 의도적으로 선택했습니다.\n\n## 샘플 코드\n\n`dStorage` 블록이 있는 ERC-721 메타데이터입니다(값은 예시용 자리 표시자입니다).\n\n```json\n{\n  \"name\": \"Sunset #42\",\n  \"description\": \"A generative sunset.\",\n  \"image\": \"ar://\u003carweave-tx-id\u003e\",\n  \"dStorage\": {\n    \"platform\": \"Arweave\",\n    \"description\": \"Permanent, pay-once decentralized storage\",\n    \"persistence_mechanism\": \"blockchain-based\",\n    \"challenge_mechanism\": \"proof-of-access\",\n    \"consensus\": \"\u003cplatform consensus\u003e\",\n    \"dstorage_note\": \"\u003carweave-tx-id\u003e\"\n  }\n}\n```\n\n클라이언트에서 읽는 예시(ethers v6)입니다.\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\nconst uri: string = await nft.tokenURI(42n);\nconst meta = await (await fetch(uri.replace(\"ipfs://\", \"https://ipfs.io/ipfs/\"))).json();\nif (meta.dStorage) console.log(`stored on ${meta.dStorage.platform}: ${meta.dStorage.dstorage_note}`);\n```\n\n## 알아둘 점\n\n- 상태는 **Final**이지만 이 필드는 선택 사항입니다. 대부분의 NFT 메타데이터에는 포함되어 있지 않으므로, 없다는 것은 \"중앙화\"가 아니라 \"알 수 없음\"으로 받아들이세요.\n- 이 필드는 순전히 정보 제공용입니다. 그 자체로는 아무것도 증명하지 않습니다. 이를 중요하게 여기는 클라이언트는 `dstorage_note`를 해당 스토리지 네트워크에 직접 확인해야 합니다.\n- 컨트랙트 동작이나 전송의 유효성에는 영향을 주지 않으며, ERC-721 및 ERC-1155 메타데이터와 완전히 하위 호환됩니다.\n"},"zh":{"lang":"zh","tldr":"为 ERC-721 和 ERC-1155 元数据 JSON 增加一个可选的 dStorage 对象，记录哪个去中心化存储网络保存了 NFT 的资产，以及如何验证。","tags":["nft","metadata","storage","json"],"related":[721,1155],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5625/","markdown":"## 它解决什么问题？\n\nNFT 合约在链上记录所有权，但代币所代表的图片、视频或文件几乎总是存放在别处。[ERC-721](/eip-721/) 和 [ERC-1155](/eip-1155/) 的元数据 schema（以及建立在其上的市场惯例）描述了 `name`、`description`、`image` 等，却完全没有说明资产存放在*哪里*，或者*存得有多持久*。\n\nERC-5625 用一个可选的元数据字段填补了这个空白，让收藏者和工具能看到资产是否存放在 Arweave、Filecoin、Swarm 或 Crust 等去中心化存储网络上，并找到可证明其已被存储的指针。\n\n## 它如何运作\n\n`tokenURI`（ERC-721）或 `uri`（ERC-1155）返回的元数据 JSON 可以包含一个 `dStorage` 对象。如果存在，它的六个字符串字段全部为必填：\n\n| 字段 | 含义 |\n| --- | --- |\n| `platform` | 存储网络的名称（例如 Arweave、Filecoin） |\n| `description` | 对该平台的简短描述 |\n| `persistence_mechanism` | 数据如何被持续保存或获得激励，例如 \"blockchain-based\"、\"contract-based\" |\n| `challenge_mechanism` | 如何证明存储，例如 Arweave 的 proof-of-access |\n| `consensus` | 该平台的共识机制，例如 PoW、PoS |\n| `dstorage_note` | 该资产已被存储的证据，例如 Filecoin 的 deal id 或 Crust 存储订单的交易哈希 |\n\n智能合约无需任何改动。作者有意选择扩展 JSON schema 而不是新增接口，这样已经部署的合集只需更新元数据文件就能采用。\n\n## 示例代码\n\n带有 `dStorage` 块的 ERC-721 元数据（值为示意用的占位符）：\n\n```json\n{\n  \"name\": \"Sunset #42\",\n  \"description\": \"A generative sunset.\",\n  \"image\": \"ar://\u003carweave-tx-id\u003e\",\n  \"dStorage\": {\n    \"platform\": \"Arweave\",\n    \"description\": \"Permanent, pay-once decentralized storage\",\n    \"persistence_mechanism\": \"blockchain-based\",\n    \"challenge_mechanism\": \"proof-of-access\",\n    \"consensus\": \"\u003cplatform consensus\u003e\",\n    \"dstorage_note\": \"\u003carweave-tx-id\u003e\"\n  }\n}\n```\n\n从客户端读取（ethers v6）：\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst nft = new Contract(nftAddress, [\"function tokenURI(uint256) view returns (string)\"], provider);\nconst uri: string = await nft.tokenURI(42n);\nconst meta = await (await fetch(uri.replace(\"ipfs://\", \"https://ipfs.io/ipfs/\"))).json();\nif (meta.dStorage) console.log(`stored on ${meta.dStorage.platform}: ${meta.dStorage.dstorage_note}`);\n```\n\n## 需要注意\n\n- 状态为 **Final**，但该字段是可选的；大多数 NFT 元数据并不包含它，所以请把它的缺失视为\"未知\"，而不是\"中心化\"。\n- 该字段纯属信息性质，本身不能证明任何事情：关心这一点的客户端必须自行对照所指明的存储网络核对 `dstorage_note`。\n- 它不影响合约行为或转移的有效性，并且与 ERC-721 和 ERC-1155 的元数据完全向后兼容。\n"}}}
