Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article covers ERC5625, a proposal to add a dStorage field to the metadata JSON used by ERC721 and ERC1155, indicating which decentralized storage system holds the NFT's data.

This article translates, summarizes, and expands on the proposal linked below.

I also cover a range of EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC5625 extends the NFT metadata JSON schemas defined in EIP721 and EIP1155 with a new key, dStorage, that describes how NFT data is stored. A metadata JSON schema defines the field names and formats used for information associated with an NFT, such as its name, description, and image reference. dStorage stands for decentralized storage. The key is intended to hold information about how the underlying data referenced by an NFT (files with MIME types such as images, audio, and video) is stored and how that storage can be verified.

Motivation

NFTs are valuable digital possessions that are expected to be immutable, trustworthy, and durable over long periods. NFT ownership is recorded on the blockchain by EIP721 or EIP1155 smart contracts, so ownership records are less of a concern here. The underlying data that an NFT points to, however, is a separate matter. Ideally, this data should be held in trustworthy, verifiable decentralized storage that can accommodate larger files than the blockchain itself. Decentralized storage refers to storage systems that do not depend on a particular administrator and provide mechanisms to improve the verifiability and availability of stored data.

Examples of decentralized storage include IPFS and Arweave.

To encourage the adoption of decentralized storage in the NFT ecosystem, ERC5625 proposes adding decentralized storage information (dStorage) to the NFT metadata JSON schema. Readers could then more easily determine where and how the underlying data is stored from the metadata alone, making the NFT's quality in terms of reliability, verifiability, and long-term preservation more transparent.

Looking at the existing metadata standards, none of them describes how the underlying data is stored. ERC5625 is intended to fill that gap.

Standard or specification Metadata reference mechanism Main properties (examples) Notes
EIP721 tokenURI (function returning the location of the metadata JSON for a particular token ID) name, description, image Defines the metadata structure, but not how the underlying data is stored
EIP1155 uri (function returning the location of the metadata JSON) name, decimals, description, image, properties, localization Likewise, storage methods and verification information are not included
OpenSea Metadata Standards (marketplace-specific extensions) — image_data, external_url, attributes, background_color, animation_url, youtube_url, among others Widely referenced as a de facto standard, but does not include storage information
  • tokenURI/uri are functions that tell clients where to find the metadata JSON.
  • A MIME type is a standardized identifier for a file type. It describes the content or format of the underlying data an NFT references, such as an image, audio file, video, or 3D model.
  • A de facto standard is not an official standard but serves as one in practice because of its widespread use.

As the table shows, the standard schemas in EIP721 and EIP1155, as well as extended schemas such as OpenSea's, specify metadata including names, descriptions, display images, and external links. They do not describe where the underlying data is stored, how it is stored, or how its storage can be verified. Although this information is directly relevant to NFT immutability, trustworthiness, and durability, the lack of a standardized representation has made it difficult to assess storage quality from metadata alone.

ERC5625 therefore aims to make storage information explicit by adding a dStorage key to the metadata JSON. NFT issuers can make their storage policies transparent, while buyers and marketplaces can more easily assess whether the storage is appropriate and whether the data will remain accessible in the future. The broader goal is to encourage decentralized storage adoption and standardize how NFT quality is communicated.

Specification

ERC5625 defines a new optional property, dStorage, for the metadata JSON files returned by EIP721 and EIP1155 smart contracts. The dStorage key explicitly identifies the decentralized storage system in which the underlying NFT or token data (images, audio, video, and so on) is stored.

Metadata JSON schema for EIP721

EIP721 smart contracts expose the metadata JSON file through the tokenURI method. The dStorage property can be added to this file.

The following is an example of an EIP721 metadata JSON schema. The schema examples retain the Japanese descriptions from the original article.

json
{
  "title": "Asset Metadata",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "このNFTが表す資産の名称を示します。"
    },
    "description": {
      "type": "string",
      "description": "このNFTが表す資産についての説明文です。"
    },
    "image": {
      "type": "string",
      "description": "このNFTが表す資産を示す画像のURIです。mime-typeが image/* であるリソースを指します。推奨される画像サイズは幅320〜1080ピクセル、アスペクト比は1.91:1〜4:5の範囲内です。"
    },
    "dStorage": {
      "type": "object",
      "required": [
        "platform",
        "description",
        "persistence_mechanism",
        "challenge_mechanism",
        "consensus",
        "dstorage_note"
      ],
      "properties": {
        "platform": {
          "type": "string",
          "description": "利用している分散型ストレージ(dStorage)プラットフォーム名です。例: Swarm, Arweave, Filecoin, Crust など。"
        },
        "description": {
          "type": "string",
          "description": "そのdStorageプラットフォームの概要説明です。"
        },
        "persistence_mechanism": {
          "type": "string",
          "description": "データの永続性を保証する仕組みや、インセンティブ構造を記述します。例: 'blockchain-based'(ブロックチェーンベース), 'contract-based'(スマートコントラクトベース)など。"
        },
        "challenge_mechanism": {
          "type": "string",
          "description": "データの正当性や可用性を検証するチャレンジメカニズムです。例: Arweaveの 'proof-of-access' など。"
        },
        "consensus": {
          "type": "string",
          "description": "dStorageプラットフォームで使用されているコンセンサスアルゴリズム(合意形成メカニズム)です。例: PoW, PoS など。"
        },
        "dstorage_note": {
          "type": "string",
          "description": "NFTの実体データがdStorage上に保存されていることを証明するための注記です。例: Filecoinのdeal idや、Crustのplace_storage_orderトランザクションハッシュなど。"
        }
      }
    }
  }
}

In this schema, each field within the dStorage object is defined as mandatory (required). When dStorage is supplied, the metadata must therefore specify the platform and explain its persistence, verification, and consensus mechanisms.

Metadata JSON schema for EIP1155

EIP1155 smart contracts expose the metadata JSON file through the uri method. This schema likewise allows the dStorage property to be added optionally.

The following is the EIP1155 schema definition.

json
{
  "title": "Token Metadata",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "このトークンが表す資産の名称を示します。"
    },
    "decimals": {
      "type": "integer",
      "description": "トークンの小数点以下の桁数を示します。たとえば18なら、トークン量を1,000000000000000000で割った値がユーザーに表示されます。"
    },
    "description": {
      "type": "string",
      "description": "このトークンが表す資産についての説明文です。"
    },
    "image": {
      "type": "string",
      "description": "トークンの実体を示す画像リソースのURIです。mime-typeが image/* である必要があります。推奨される画像サイズは幅320〜1080ピクセル、アスペクト比は1.91:1〜4:5の範囲です。"
    },
    "properties": {
      "type": "object",
      "description": "任意の追加プロパティを定義できます。値は文字列・数値・オブジェクト・配列のいずれも可能です。"
    },
    "localization": {
      "type": "object",
      "required": ["uri", "default", "locales"],
      "properties": {
        "uri": {
          "type": "string",
          "description": "ローカライズされたデータを取得するためのURIパターンです。このURIには `{locale}` という文字列を含める必要があります。実際のリクエスト前に、適切なロケール値に置き換えられます。"
        },
        "default": {
          "type": "string",
          "description": "ベースJSON内のデフォルトデータに対応するロケールです。"
        },
        "locales": {
          "type": "array",
          "description": "利用可能なロケールの一覧です。これらはUnicode Common Locale Data Repository(http://cldr.unicode.org/)で定義された形式に準拠する必要があります。"
        }
      }
    },
    "dStorage": {
      "type": "object",
      "required": [
        "platform",
        "description",
        "persistence_mechanism",
        "challenge_mechanism",
        "consensus",
        "dstorage_note"
      ],
      "properties": {
        "platform": {
          "type": "string",
          "description": "利用している分散型ストレージプラットフォーム名です。例: Swarm, Arweave, Filecoin, Crust など。"
        },
        "description": {
          "type": "string",
          "description": "dStorageプラットフォームの概要説明です。"
        },
        "persistence_mechanism": {
          "type": "string",
          "description": "データの永続性や報酬構造を支える仕組みです。例: 'blockchain-based' や 'contract-based' など。"
        },
        "challenge_mechanism": {
          "type": "string",
          "description": "データの可用性や正当性を検証するチャレンジメカニズムです。例: Arweaveの 'proof-of-access' など。"
        },
        "consensus": {
          "type": "string",
          "description": "使用されているコンセンサスアルゴリズムを示します。例: PoW, PoS など。"
        },
        "dstorage_note": {
          "type": "string",
          "description": "NFTデータがdStorage上に保存されていることを示す証拠情報です。例: Filecoinのdeal id、Crustのトランザクションハッシュなど。"
        }
      }
    }
  }
}

The purpose of ERC5625 is to provide a standardized representation of how the underlying data of NFTs and multi-tokens (EIP1155) is stored. By introducing the dStorage property, the proposal aims to make it easier for users, marketplaces, and developers to assess the reliability of NFT storage methods.

This offers several benefits.

  • Readers can see at a glance which decentralized storage system holds an NFT's data, what guarantees it provides, and how the data is stored.
  • Selecting and evaluating decentralized storage becomes easier, contributing to a more transparent NFT ecosystem.
  • NFT durability and verifiability become clearer at the metadata level, making NFTs easier to assess as trustworthy assets.

Rationale

To add dStorage (decentralized storage) information to NFT metadata, ERC5625 opts to extend the JSON schema rather than extend the smart contract interface. There are several reasons for this choice.

Why extend the JSON schema rather than the interface?

Extending the EIP721 or EIP1155 contract interfaces (their function definitions, for example) to handle new information would require developers to implement new functions or modify existing contract structures. This approach presents the following problems.

Aspect Problems with extending the interface
Implementation cost Additional code is required to define and implement new functions
Operational risk The change cannot be applied to already deployed NFT contracts, preventing existing projects from using the specification
Consistency with existing standards NFT metadata is fundamentally off-chain information, making an on-chain function extension excessive and inefficient

By contrast, the JSON schema extension adopted by ERC5625 can safely extend the metadata format without disrupting existing mechanisms. In other words, it only requires a small extension to the metadata file's JSON structure, without redeploying the NFT smart contract or rewriting its code. Even existing NFT projects can adopt the extension simply by adding the dStorage field to the metadata JSON referenced by tokenURI or uri.

Extending the JSON schema is therefore lightweight, flexible, and backward compatible, making adoption easier across the NFT industry.

Backward compatibility

ERC5625 maintains full compatibility with the existing EIP721 and EIP1155 standards.

  • dStorage is defined as an optional property, so it does not have to be included.
  • Existing EIP721/EIP1155-compliant contracts continue to work as before. The absence of the new dStorage field does not interfere with reading metadata or trading tokens.
  • Already deployed smart contracts do not need to be modified. The additional key only needs to be included in the metadata JSON referenced by tokenURI or uri. No smart contract-level changes are required.

Security

ERC5625 states that the extension introduces no new security risks.

dStorage is an informational field within the metadata JSON and does not affect the NFT's smart contract logic. It has no role in the smart contract's execution logic or transaction validity checks, serving only as supplementary information for display and reference. Adding this field therefore does not affect NFT operations such as ownership transfers, minting, or burning, nor does it alter transaction processing.

In other words, adding dStorage is an extension of information, not a change in functionality. This is why the proposal does not consider the extension itself to introduce security vulnerabilities.

Even when metadata consumers (wallets or marketplaces) do not support the new dStorage field, they can continue to read the existing properties, allowing safe, gradual adoption.

Citation

Gavin Fu (@gavfu), Leo Wang (@wanglie1986), Bova Chen (@appoipp), Guang Han (@pangwa), Brian Wu (@wuhaixian1984), "ERC-5625: NFT Metadata JSON Schema dStorage Extension," Ethereum Improvement Proposals, no. 5625, September 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5625.

Conclusion

This article covered ERC5625, a proposal to add a dStorage field to ERC721 and ERC1155 metadata JSON to indicate which decentralized storage system manages the NFT's data. I hope this explanation was useful.

If you have questions, feel free to send me a direct message on Twitter.

Twitter @cardene777

I also publish content on other platforms.

https://chaldene.net/