{"eip":3569,"title":"Sealed NFT Metadata Standard","description":"The Sealed NFT Metadata Extension provides a mechanism to immortalize NFT metadata in a cost-effective manner.","authors":["Sean Papanikolas (@pizzarob)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2021-05-07","discussionsTo":"https://ethereum-magicians.org/t/eip-3569-sealed-nft-metadata-standard/7130","repo":"ERCs","label":"ERC-3569","officialUrl":"https://eips.ethereum.org/EIPS/eip-3569","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-3569.md","url":"https://eips.huatuo.xyz/eip-3569/","tldr":{"en":"A stagnant NFT extension that lets a creator permanently \"seal\" the metadata for a range of tokens behind one decentralized-storage URI, so collectors can verify it will never change.","ja":"クリエイターが、一連のトークンのメタデータを 1 つの分散型ストレージ URI の背後に恒久的に「封印（seal）」できる、停滞（Stagnant）中の NFT 拡張。コレクターは、それが決して変わらないことを検証できる。","ko":"크리에이터가 일정 범위 토큰의 메타데이터를 하나의 분산 스토리지 URI 뒤에 영구히 '봉인(seal)'할 수 있게 하는 정체(Stagnant) 상태의 NFT 확장. 수집가는 그것이 절대 바뀌지 않음을 검증할 수 있다.","zh":"一项处于停滞（Stagnant）状态的 NFT 扩展：让创作者把一段范围内代币的元数据永久“封印”（seal）在一个去中心化存储 URI 之后，收藏者因此可以验证它永远不会改变。"},"tags":["nft","metadata","ipfs","erc721","stagnant"],"explainers":{"en":{"lang":"en","tldr":"A stagnant NFT extension that lets a creator permanently \"seal\" the metadata for a range of tokens behind one decentralized-storage URI, so collectors can verify it will never change.","tags":["nft","metadata","ipfs","erc721","stagnant"],"related":[721,1155,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3569/","markdown":"## What problem does it solve?\n\nERC-721's `tokenURI` returns a link per token, often to a server the creator controls. Nothing stops that server, or a contract owner, from changing the image or attributes later — a \"metadata rug pull\". Updating metadata token by token is also expensive at scale.\n\nERC-3569 adds an opt-in **seal**: once a token range is sealed, the contract records a single URI (ideally on IPFS or similar) holding the metadata for all those tokens, and promises it can never be sealed again. Creators can still iterate before sealing, then lock things down when ready.\n\n## How it works\n\nThe extension interface:\n\n- `seal(fromTokenId, toTokenId, uri)` — seals a consecutive range (use the same ID twice for one token). It must revert if any token in the range is already sealed, and must emit `Sealed`. Restricting who can call it is recommended but left to the implementer.\n- `sealedURI(tokenId)` — returns the sealed URI; reverts if the token does not exist or is not sealed.\n- `isSealed(tokenId)` — returns whether the token is sealed.\n- `event Sealed(fromTokenId, toTokenId, uri)` — lets indexers and marketplaces cache metadata automatically.\n\nThe sealed file is a JSON object whose keys are token IDs. Each value is either inline metadata or a URI to a per-token file. The contract does not check that the URI is on decentralized storage; collectors and platforms are expected to verify that themselves.\n\n## Sample code\n\nA sealed metadata file:\n\n```json\n{\n  \"1\": { \"name\": \"Metadata for token 1\", \"image\": \"ipfs://\u003ccid\u003e/1.png\" },\n  \"2\": { \"name\": \"Metadata for token 2\" },\n  \"3\": \"ipfs://\u003ccid\u003e/3.json\"\n}\n```\n\nMinimal Solidity implementation of the extension:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nabstract contract SealedMetadata {\n    event Sealed(uint256 indexed fromTokenId, uint256 indexed toTokenId, string uri);\n\n    mapping(uint256 =\u003e string) private _sealed;\n\n    function _exists(uint256 tokenId) internal view virtual returns (bool);\n\n    function _seal(uint256 fromId, uint256 toId, string memory uri) internal {\n        require(fromId \u003c= toId, \"range\");\n        for (uint256 id = fromId; id \u003c= toId; id++) {\n            require(_exists(id), \"nonexistent\");\n            require(bytes(_sealed[id]).length == 0, \"already sealed\");\n            _sealed[id] = uri;\n        }\n        emit Sealed(fromId, toId, uri);\n    }\n\n    function isSealed(uint256 tokenId) public view returns (bool) {\n        require(_exists(tokenId), \"nonexistent\");\n        return bytes(_sealed[tokenId]).length != 0;\n    }\n\n    function sealedURI(uint256 tokenId) external view returns (string memory) {\n        require(isSealed(tokenId), \"not sealed\");\n        return _sealed[tokenId];\n    }\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**; it is not a widely supported marketplace standard.\n- The per-token loop above costs gas proportional to the range. A production version would store ranges instead of one entry per token.\n- A seal only proves the *URI* is fixed. If it points to a mutable HTTP server, the content can still change, so check that it is content-addressed (e.g. an IPFS CID).\n- For signalling metadata *changes* rather than freezing them, see [ERC-4906](/eip-4906/).\n"},"ja":{"lang":"ja","tldr":"クリエイターが、一連のトークンのメタデータを 1 つの分散型ストレージ URI の背後に恒久的に「封印（seal）」できる、停滞（Stagnant）中の NFT 拡張。コレクターは、それが決して変わらないことを検証できる。","tags":["nft","metadata","ipfs","erc721","stagnant"],"related":[721,1155,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3569/","markdown":"## 何を解決するのか\n\nERC-721 の `tokenURI` はトークンごとのリンクを返しますが、多くの場合はクリエイターが管理するサーバーを指します。そのサーバーやコントラクトのオーナーが、後から画像や属性を変更することを止めるものは何もありません。これが「メタデータのラグプル」です。大規模な場合、トークンごとにメタデータを更新するのもコストがかかります。\n\nERC-3569 はオプトイン式の**封印（seal）**を追加します。トークンの範囲が封印されると、コントラクトはそれらすべてのトークンのメタデータを保持する 1 つの URI（理想的には IPFS など）を記録し、二度と封印できないことを約束します。クリエイターは封印前なら引き続き試行錯誤でき、準備ができたところで固定できます。\n\n## 仕組み\n\n拡張のインターフェース:\n\n- `seal(fromTokenId, toTokenId, uri)` — 連続する範囲を封印します（1 つのトークンなら同じ ID を 2 回指定）。範囲内のいずれかのトークンがすでに封印されている場合は revert しなければならず、`Sealed` を emit しなければなりません。誰が呼び出せるかを制限することは推奨されますが、実装者に委ねられています。\n- `sealedURI(tokenId)` — 封印された URI を返します。トークンが存在しない、または封印されていない場合は revert します。\n- `isSealed(tokenId)` — トークンが封印されているかどうかを返します。\n- `event Sealed(fromTokenId, toTokenId, uri)` — インデクサーやマーケットプレイスがメタデータを自動的にキャッシュできるようにします。\n\n封印されるファイルは、キーがトークン ID の JSON オブジェクトです。各値は、インラインのメタデータか、トークンごとのファイルへの URI です。URI が分散型ストレージ上にあるかどうかはコントラクトでは検証されません。コレクターやプラットフォームが自分で確認することが期待されています。\n\n## サンプルコード\n\n封印されたメタデータファイル:\n\n```json\n{\n  \"1\": { \"name\": \"Metadata for token 1\", \"image\": \"ipfs://\u003ccid\u003e/1.png\" },\n  \"2\": { \"name\": \"Metadata for token 2\" },\n  \"3\": \"ipfs://\u003ccid\u003e/3.json\"\n}\n```\n\n拡張の最小限の Solidity 実装:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nabstract contract SealedMetadata {\n    event Sealed(uint256 indexed fromTokenId, uint256 indexed toTokenId, string uri);\n\n    mapping(uint256 =\u003e string) private _sealed;\n\n    function _exists(uint256 tokenId) internal view virtual returns (bool);\n\n    function _seal(uint256 fromId, uint256 toId, string memory uri) internal {\n        require(fromId \u003c= toId, \"range\");\n        for (uint256 id = fromId; id \u003c= toId; id++) {\n            require(_exists(id), \"nonexistent\");\n            require(bytes(_sealed[id]).length == 0, \"already sealed\");\n            _sealed[id] = uri;\n        }\n        emit Sealed(fromId, toId, uri);\n    }\n\n    function isSealed(uint256 tokenId) public view returns (bool) {\n        require(_exists(tokenId), \"nonexistent\");\n        return bytes(_sealed[tokenId]).length != 0;\n    }\n\n    function sealedURI(uint256 tokenId) external view returns (string memory) {\n        require(isSealed(tokenId), \"not sealed\");\n        return _sealed[tokenId];\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** で、マーケットプレイスで広くサポートされている標準ではありません。\n- 上のトークンごとのループは、範囲に比例したガスがかかります。本番向けのバージョンでは、トークンごとに 1 エントリではなく範囲を保存するでしょう。\n- 封印が証明するのは *URI* が固定されることだけです。それが変更可能な HTTP サーバーを指している場合、内容は変わりうるので、コンテンツアドレス指定（例: IPFS の CID）になっているか確認してください。\n- メタデータを固定するのではなく、メタデータの*変更*を通知したい場合は、[ERC-4906](/eip-4906/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"크리에이터가 일정 범위 토큰의 메타데이터를 하나의 분산 스토리지 URI 뒤에 영구히 '봉인(seal)'할 수 있게 하는 정체(Stagnant) 상태의 NFT 확장. 수집가는 그것이 절대 바뀌지 않음을 검증할 수 있다.","tags":["nft","metadata","ipfs","erc721","stagnant"],"related":[721,1155,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3569/","markdown":"## 어떤 문제를 해결하나요?\n\nERC-721의 `tokenURI`는 토큰마다 링크를 반환하는데, 흔히 크리에이터가 통제하는 서버를 가리킵니다. 그 서버나 컨트랙트 소유자가 나중에 이미지나 속성을 바꾸는 것을 막을 방법이 없습니다. 이른바 \"메타데이터 러그풀\"입니다. 대규모에서는 토큰 하나하나 메타데이터를 업데이트하는 것도 비용이 큽니다.\n\nERC-3569는 선택적 **봉인(seal)**을 추가합니다. 토큰 범위가 봉인되면 컨트랙트는 그 모든 토큰의 메타데이터를 담은 URI 하나(이상적으로는 IPFS 등)를 기록하고, 다시는 봉인할 수 없다고 약속합니다. 크리에이터는 봉인 전에는 계속 다듬을 수 있고, 준비가 되면 고정합니다.\n\n## 어떻게 동작하나요?\n\n확장 인터페이스:\n\n- `seal(fromTokenId, toTokenId, uri)` — 연속된 범위를 봉인합니다(토큰 하나라면 같은 ID를 두 번 사용). 범위 안의 토큰 중 이미 봉인된 것이 있으면 revert해야 하고 `Sealed`를 emit해야 합니다. 호출할 수 있는 주체를 제한하길 권장하지만 구현자에게 맡깁니다.\n- `sealedURI(tokenId)` — 봉인된 URI를 반환합니다. 토큰이 존재하지 않거나 봉인되지 않았으면 revert합니다.\n- `isSealed(tokenId)` — 토큰이 봉인되었는지 반환합니다.\n- `event Sealed(fromTokenId, toTokenId, uri)` — 인덱서와 마켓플레이스가 메타데이터를 자동으로 캐시할 수 있게 합니다.\n\n봉인된 파일은 키가 토큰 ID인 JSON 객체입니다. 각 값은 인라인 메타데이터이거나 토큰별 파일의 URI입니다. 컨트랙트는 URI가 분산 스토리지에 있는지 검사하지 않으며, 수집가와 플랫폼이 직접 확인해야 합니다.\n\n## 샘플 코드\n\n봉인된 메타데이터 파일:\n\n```json\n{\n  \"1\": { \"name\": \"Metadata for token 1\", \"image\": \"ipfs://\u003ccid\u003e/1.png\" },\n  \"2\": { \"name\": \"Metadata for token 2\" },\n  \"3\": \"ipfs://\u003ccid\u003e/3.json\"\n}\n```\n\n확장의 최소한의 Solidity 구현:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nabstract contract SealedMetadata {\n    event Sealed(uint256 indexed fromTokenId, uint256 indexed toTokenId, string uri);\n\n    mapping(uint256 =\u003e string) private _sealed;\n\n    function _exists(uint256 tokenId) internal view virtual returns (bool);\n\n    function _seal(uint256 fromId, uint256 toId, string memory uri) internal {\n        require(fromId \u003c= toId, \"range\");\n        for (uint256 id = fromId; id \u003c= toId; id++) {\n            require(_exists(id), \"nonexistent\");\n            require(bytes(_sealed[id]).length == 0, \"already sealed\");\n            _sealed[id] = uri;\n        }\n        emit Sealed(fromId, toId, uri);\n    }\n\n    function isSealed(uint256 tokenId) public view returns (bool) {\n        require(_exists(tokenId), \"nonexistent\");\n        return bytes(_sealed[tokenId]).length != 0;\n    }\n\n    function sealedURI(uint256 tokenId) external view returns (string memory) {\n        require(isSealed(tokenId), \"not sealed\");\n        return _sealed[tokenId];\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**이며, 마켓플레이스에서 널리 지원되는 표준은 아닙니다.\n- 위의 토큰별 반복문은 범위에 비례하는 가스가 듭니다. 프로덕션 버전이라면 토큰마다 항목 하나가 아니라 범위를 저장할 것입니다.\n- 봉인은 *URI*가 고정된다는 것만 증명합니다. 가변적인 HTTP 서버를 가리킨다면 내용은 여전히 바뀔 수 있으니, 콘텐츠 주소 지정 방식(예: IPFS CID)인지 확인하세요.\n- 메타데이터를 동결하는 대신 메타데이터의 *변경*을 알리고 싶다면 [ERC-4906](/eip-4906/)을 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一项处于停滞（Stagnant）状态的 NFT 扩展：让创作者把一段范围内代币的元数据永久“封印”（seal）在一个去中心化存储 URI 之后，收藏者因此可以验证它永远不会改变。","tags":["nft","metadata","ipfs","erc721","stagnant"],"related":[721,1155,4906],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3569/","markdown":"## 它解决什么问题？\n\nERC-721 的 `tokenURI` 为每个代币返回一个链接，往往指向创作者控制的服务器。没有什么能阻止该服务器或合约所有者日后更改图片或属性，这就是“元数据 rug pull”。在大规模场景下，逐个代币更新元数据也很昂贵。\n\nERC-3569 增加了一个可选的**封印（seal）**：一旦某段代币范围被封印，合约就会记录一个 URI（最好在 IPFS 或类似服务上），其中包含所有这些代币的元数据，并承诺它永远不能再次被封印。创作者在封印之前仍可以反复迭代，准备好之后再锁定。\n\n## 它如何运作\n\n扩展接口：\n\n- `seal(fromTokenId, toTokenId, uri)`：封印一段连续的范围（对单个代币，两个参数传同一个 ID）。如果范围内任何代币已被封印，则必须 revert，并且必须触发 `Sealed`。建议限制谁可以调用它，但留给实现者决定。\n- `sealedURI(tokenId)`：返回被封印的 URI；如果代币不存在或未被封印则 revert。\n- `isSealed(tokenId)`：返回该代币是否已被封印。\n- `event Sealed(fromTokenId, toTokenId, uri)`：让索引器和市场可以自动缓存元数据。\n\n被封印的文件是一个 JSON 对象，键是代币 ID。每个值要么是内联的元数据，要么是指向单个代币文件的 URI。合约不会检查该 URI 是否位于去中心化存储上；这需要收藏者和平台自行验证。\n\n## 示例代码\n\n一个被封印的元数据文件：\n\n```json\n{\n  \"1\": { \"name\": \"Metadata for token 1\", \"image\": \"ipfs://\u003ccid\u003e/1.png\" },\n  \"2\": { \"name\": \"Metadata for token 2\" },\n  \"3\": \"ipfs://\u003ccid\u003e/3.json\"\n}\n```\n\n该扩展的最小 Solidity 实现：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nabstract contract SealedMetadata {\n    event Sealed(uint256 indexed fromTokenId, uint256 indexed toTokenId, string uri);\n\n    mapping(uint256 =\u003e string) private _sealed;\n\n    function _exists(uint256 tokenId) internal view virtual returns (bool);\n\n    function _seal(uint256 fromId, uint256 toId, string memory uri) internal {\n        require(fromId \u003c= toId, \"range\");\n        for (uint256 id = fromId; id \u003c= toId; id++) {\n            require(_exists(id), \"nonexistent\");\n            require(bytes(_sealed[id]).length == 0, \"already sealed\");\n            _sealed[id] = uri;\n        }\n        emit Sealed(fromId, toId, uri);\n    }\n\n    function isSealed(uint256 tokenId) public view returns (bool) {\n        require(_exists(tokenId), \"nonexistent\");\n        return bytes(_sealed[tokenId]).length != 0;\n    }\n\n    function sealedURI(uint256 tokenId) external view returns (string memory) {\n        require(isSealed(tokenId), \"not sealed\");\n        return _sealed[tokenId];\n    }\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**；它并不是市场广泛支持的标准。\n- 上面按代币循环的做法，gas 成本与范围大小成正比。生产版本会存储范围，而不是每个代币一条记录。\n- 封印只能证明 *URI* 是固定的。如果它指向一个可变的 HTTP 服务器，内容仍然可能改变，所以请检查它是否是内容寻址的（例如 IPFS CID）。\n- 如果想表达元数据的*变更*而不是冻结它们，请参见 [ERC-4906](/eip-4906/)。\n"}}}
