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 examines ERC-3569, which proposes a mechanism for sealing NFT metadata against subsequent changes.

This article translates, summarizes, and supplements the material linked below.

I have also covered other EIPs.

Overview

The Sealed NFT Metadata Extension proposes a mechanism for permanently fixing NFT metadata references.

Creators can finalize the metadata of an NFT once, after which a conforming smart contract must not permit the sealed reference to be changed.

The extension provides the following features.

  • Applications can determine whether metadata has been sealed.
  • Metadata for multiple NFTs can be sealed together.
  • Metadata for multiple NFTs can be retrieved from a single file and cached.

A creator calls seal to seal metadata for a consecutive range of token IDs. The supplied URI, which may point to a decentralized storage system such as IPFS, is recorded by the smart contract.

The referenced JSON file contains metadata associated with individual token IDs. Each token can be sealed only once, and applications can subsequently query its sealed status.

Sealing can take place when NFTs are created or later, providing flexibility for creators.

The immutability of the referenced content itself depends on the URI and storage mechanism, not merely on the contract preventing changes to the URI.

Motivation

The metadata extensions of ERC-721 and ERC-1155 expose URI-based metadata for individual token IDs, through tokenURI and uri, respectively.

Such URIs are often hosted on centralized servers whose contents can be modified. This introduces risks for NFT holders, including fraudulent changes to the assets they believe they own.

Moreover, updating metadata for a large number of NFTs individually can require O(n) operations and substantial gas expenditure.

ERC-3569 allows metadata for multiple NFTs to be referenced through one JSON document, potentially stored using content-addressed decentralized storage. Its objectives include:

  • Providing a verifiable commitment to immutable metadata when the referenced content is also immutable.
  • Allowing creators to seal metadata later when appropriate.
  • Supporting initial corrections or dynamic NFT behavior before the metadata is permanently sealed, for example in digital art and marketing projects.

The extension balances flexibility before sealing with stronger assurances after sealing. It is particularly useful for applications that value the authenticity and permanence of NFT metadata.

Specification

Interface

SealedMetadata.sol
interface SealedMetadata {
  /**
    @notice This function is used to set a sealed URI for the given range of tokens.
    @dev
      - If the sealed URI is being set for one token then the fromTokenId and toTokenId
      values MUST be the same.

      - If any token within the range of tokens specified has already
      been sealed then this function MUST throw.

      - This function MAY be called at the time of NFT creation, or after the NFTs have been created.

      - It is RECOMMENDED that this function only be executable by either the creator of the smart contract,
        or the creator of the NFTs, but this is OPTIONAL and should be implemented based on use case.

      - This function MUST emit the Sealed event

      - The URI argument SHOULD point to a JSON file hosted within a decentralized file system like IPFS

    @param fromTokenId The first token in a consecutive range of tokens
    @param toTokenId The ending token in a consecutive range of tokens
    @param uri A URI which points to a JSON file hosted on a decentralized file system.
  */
  function seal(uint256 fromTokenId, uint256 toTokenId, string memory uri) external;

  /**
    @notice This function returns the URI which the sealed metadata can be found for the given token ID
    @dev
      - This function MUST throw if the token ID does not exist, or is not sealed

    @param tokenId Token ID to retrieve the sealed URI for

    @return The sealed URI in which the metadata for the given token ID can be found
  */
  function sealedURI(uint256 tokenId) external view returns (string);

  /**
    @notice This function returns a boolean stating if the token ID is sealed or not
    @dev This function should throw if the token ID does not exist

    @param tokenId The token ID that will be checked if sealed or not

    @return Boolean stating if token ID is sealed
  */
  function isSealed(uint256 tokenId) external view returns (bool)

  /// @dev This emits when a range of tokens is sealed
  event Sealed(uint256 indexed fromTokenId, uint256 indexed toTokenId, string memory uri);

}

seal

js
function seal(uint256 fromTokenId, uint256 toTokenId, string memory uri) external;

Sets a sealed metadata URI for a consecutive range of NFTs.

The function registers one URI for the range from fromTokenId to toTokenId and permanently fixes the metadata reference.

If the range contains a token ID that has already been sealed, the operation fails.

Sealing can be performed at NFT creation or afterward. For security, the proposal recommends restricting access to an authorized creator, such as the contract or NFT creator.

A successful call emits the Sealed event.

Arguments

  • fromTokenId
    • First token ID in the range to be sealed.
  • toTokenId
    • Last token ID in the range to be sealed.
  • uri
    • URI of the metadata JSON document, for example on IPFS.

sealedURI

js
function sealedURI(uint256 tokenId) external view returns (string);

Returns the sealed metadata URI associated with the specified token ID.

If the token has been sealed, the function returns its sealed URI. It must fail for nonexistent or unsealed token IDs.

Arguments

  • tokenId
    • ID of the NFT whose sealed URI is requested.

Return value

  • string
    • Sealed metadata URI associated with the NFT.

isSealed

js
function isSealed(uint256 tokenId) external view returns (bool);

Checks whether a token ID has been sealed through the seal function.

The function should throw for nonexistent token IDs.

Arguments

  • tokenId
    • NFT token ID to check.

Return value

  • bool
    • true if the token is sealed; otherwise false.

Sealed

js
event Sealed(uint256 indexed fromTokenId, uint256 indexed toTokenId, string memory uri);

Emitted when metadata for a range of token IDs is sealed.

The event identifies the range and associated URI. Platforms and block explorers can observe it to retrieve and cache the relevant metadata.

Parameters

  • fromTokenId
    • First sealed token ID.
  • toTokenId
    • Last sealed token ID.
  • uri
    • URI of the metadata document.

ERC721Metadata

typescript
type ERC721Metadata = {
  name?: string;
  image?: string;
  description?: string;
}

Defines the basic metadata structure for ERC-721 tokens.

It contains information used to display NFTs, such as their names, image URLs, and descriptions. All fields are optional and can be used as appropriate.

Fields

  • name
    • NFT name.
  • image
    • URL of the displayed image.
  • description
    • Description of the NFT.

SealedMetaDataJson

typescript
type SealedMetaDataJson = {
  [tokenId: string]: string | ERC721Metadata;
}

Defines a JSON structure containing sealed metadata for multiple NFTs in a single file.

The keys are token IDs represented as strings. Each value is either a metadata object or a URI pointing to metadata stored elsewhere, such as IPFS.

This supports scalable metadata delivery and reduces the need for individual on-chain metadata assignments.

Fields

  • tokenId
    • NFT token ID represented as a string.
  • string | ERC721Metadata
    • Metadata object or reference to an external URI.

Additional Notes

Why Not Require Decentralized Storage at the Contract Level?

ERC-3569 does not require the smart contract to verify that the sealed URI is hosted using IPFS or another decentralized storage technology.

This is intended to preserve compatibility with future storage mechanisms.

URI validation is instead performed by clients. The standard can accommodate different URI schemes and technologies beyond IPFS.

Consequently, a sealed URI alone is not proof that its contents are immutable or permanently available. Clients should validate the relevant content-addressing and availability properties.

Why Include Multiple Metadata Records in One JSON File?

The proposal recommends grouping metadata for multiple NFTs into a single JSON file.

This avoids assigning individual metadata URIs through separate transactions for every token and can substantially reduce gas costs.

Platforms and block explorers can also cache the shared file to retrieve and display the metadata efficiently.

When the referenced file is immutable, caching can avoid unnecessary repeated retrieval and verification.

Why Emit the Sealed Event?

The Sealed event allows other applications and platforms to detect when NFT metadata references have been sealed.

It can trigger cache updates or metadata retrieval and supports consistent indexing and presentation of the sealed state.

Why Allow URI Strings as JSON Values?

For NFTs with large metadata records or collections containing many tokens, embedding every metadata object directly in one file could make that file excessively large.

The format therefore allows the value for a token ID to be a URI rather than an inline object.

This keeps the main JSON document smaller and allows more flexible metadata organization, improving scalability.

Citation

Sean Papanikolas (@pizzarob), "ERC-3569: Sealed NFT Metadata Standard [DRAFT]," Ethereum Improvement Proposals, no. 3569, May 2021. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-3569.

Conclusion

ERC-3569 proposes a standardized mechanism for sealing NFT metadata references, including the ability to seal consecutive ranges of token IDs.

If you have questions, feel free to contact me on Twitter.

Twitter @cardene777

I also publish articles on the following platforms.

https://chaldene.net/