{"eip":5218,"title":"NFT Rights Management","description":"An interface for creating copyright licenses that transfer with an NFT.","authors":["James Grimmelmann (@grimmelm)","Yan Ji (@iseriohn)","Tyler Kell (@relyt29)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-07-11","requires":[721],"discussionsTo":"https://ethereum-magicians.org/t/eip-5218-nft-rights-management/9911","repo":"ERCs","label":"ERC-5218","officialUrl":"https://eips.ethereum.org/EIPS/eip-5218","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5218.md","url":"https://eips.huatuo.xyz/eip-5218/","tldr":{"en":"Proposed ERC-721 extension that records copyright licenses on chain as a tree tied to each NFT, so the root license moves with the token and every sublicense and revocation is traceable.","ja":"ERC-721 の拡張提案。著作権ライセンスを各 NFT に紐づくツリーとしてオンチェーンに記録し、ルートライセンスがトークンとともに移動し、すべてのサブライセンスと取り消しを追跡できるようにする。","ko":"ERC-721 확장 제안. 저작권 라이선스를 각 NFT에 묶인 트리 형태로 온체인에 기록해, 루트 라이선스가 토큰과 함께 이동하고 모든 하위 라이선스와 취소를 추적할 수 있게 한다.","zh":"建议的 ERC-721 扩展：把版权许可以树的形式记录在链上并与每个 NFT 绑定，使根许可随代币一起转移，每一次再许可和撤销都可追溯。"},"tags":["nft","licensing","copyright","erc721","rights"],"explainers":{"en":{"lang":"en","tldr":"Proposed ERC-721 extension that records copyright licenses on chain as a tree tied to each NFT, so the root license moves with the token and every sublicense and revocation is traceable.","tags":["nft","licensing","copyright","erc721","rights"],"related":[721,4907,5289,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5218/","markdown":"## What problem does it solve?\n\n[ERC-721](/eip-721/) tracks who owns a token, not what the owner may legally do with the artwork or music behind it. NFT projects usually publish a license on a website, but the token itself does not say which license applies, and sublicenses (say, an owner letting a brand use the image) are invisible on chain. Rental standards like [ERC-4907](/eip-4907/) cover simple \"user\" rights, but not general licensing.\n\nEIP-5218 gives NFTs a standard on-chain record of licenses: who holds one, what terms it points to, who may revoke it, and how licenses derive from each other. It does not define legal terms; it provides the structure to record them.\n\n## How it works\n\nLicenses form a **tree** per NFT:\n\n- The **root license** is granted to the NFT owner and is tethered to the token. When the NFT is transferred, the root license holder changes to the new owner.\n- Any active license holder can create **sublicenses**, which can have their own sublicenses.\n- Each license stores: token ID, parent license ID, holder, a URI to the terms, and a **revoker** address (the licensor, the holder, or a contract that revokes when conditions are met).\n\nMain functions of `IERC5218` (which extends `IERC721`):\n\n| Function | Purpose |\n| --- | --- |\n| `createLicense(tokenId, parentLicenseId, holder, uri, revoker)` | Root license (by NFT owner) or sublicense (by parent holder) |\n| `revokeLicense(licenseId)` | Only the revoker; if a root license is revoked the NFT should return to its creator |\n| `transferSublicense(licenseId, newHolder)` | Only the current holder; root licenses move with the NFT instead |\n| `isLicenseActive`, `getLicenseHolder`, `getLicenseURI`, `getParentLicenseId`, `getLicenseIdByTokenId`... | Read the state |\n\nEvents `CreateLicense`, `TransferLicense` and `RevokeLicense` make the full history traceable. `supportsInterface` must return `true` for `0xac7b5ca9`.\n\nThe license URI may point to JSON with three layers, borrowed from Creative Commons: legal code, a human-readable deed, and a machine-readable form.\n\n## Sample code\n\nLicense metadata JSON (store it on IPFS or another content-addressed system so it cannot change silently; the text values here are placeholders):\n\n```json\n{\n  \"legal-code\": \"ipfs://\u003ccid\u003e/legal.txt\",\n  \"human-readable\": \"Holder may display the artwork and use it on merchandise up to a set revenue cap.\",\n  \"machine-readable\": \"ipfs://\u003ccid\u003e/license.rdf\"\n}\n```\n\nGranting a sublicense from the NFT owner's root license:\n\n```solidity\nuint256 root = rights.getLicenseIdByTokenId(tokenId);\nuint256 subId = rights.createLicense(\n    tokenId,\n    root,                         // parent license\n    brandAddress,                 // new license holder\n    \"ipfs://\u003ccid\u003e/sublicense.json\",\n    msg.sender                    // revoker: the current owner\n);\n```\n\n## Things to know\n\n- Status: **Stagnant**.\n- There is no function to update a license URI, so terms are meant to be permanent. To change them, revoke and create a new license.\n- In the reference implementation, revoking a license implicitly revokes all its sublicenses: `isLicenseActive` checks the ancestors lazily, and only one `RevokeLicense` event may be emitted.\n- Be careful with the `revoker`: if it is a contract, do not hardcode the license holder's address, because licenses can move with transfers.\n- Whether an on-chain record creates an enforceable license depends on the license text and applicable law; get legal review. Transferring copyright *ownership* is out of scope; the spec suggests combining with [ERC-5289](/eip-5289/) for signed legal documents.\n"},"ja":{"lang":"ja","tldr":"ERC-721 の拡張提案。著作権ライセンスを各 NFT に紐づくツリーとしてオンチェーンに記録し、ルートライセンスがトークンとともに移動し、すべてのサブライセンスと取り消しを追跡できるようにする。","tags":["nft","licensing","copyright","erc721","rights"],"related":[721,4907,5289,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5218/","markdown":"## 何を解決するのか\n\n[ERC-721](/eip-721/) は誰がトークンを所有しているかを追跡しますが、所有者がその背後にあるアートワークや音楽を法的に何に使えるかは追跡しません。NFT プロジェクトは通常ウェブサイトでライセンスを公開しますが、トークン自体はどのライセンスが適用されるかを示さず、サブライセンス（たとえば所有者がブランドに画像の使用を許す場合）もオンチェーンでは見えません。[ERC-4907](/eip-4907/) のようなレンタル標準は単純な「ユーザー」権限を扱いますが、一般的なライセンスは扱いません。\n\nEIP-5218 は、NFT にライセンスの標準的なオンチェーン記録を与えます。誰が保持しているか、どの条件を指しているか、誰が取り消せるか、ライセンスが互いにどう派生するかです。法的な条件を定義するものではなく、それを記録するための構造を提供します。\n\n## 仕組み\n\nライセンスは NFT ごとに**ツリー**を形成します。\n\n- **ルートライセンス**は NFT の所有者に付与され、トークンに紐づきます（tethered）。NFT が移転されると、ルートライセンスの保持者は新しい所有者に変わります。\n- 有効なライセンスの保持者は誰でも**サブライセンス**を作成でき、サブライセンスもさらにサブライセンスを持てます。\n- 各ライセンスは、トークン ID、親ライセンス ID、保持者、条件への URI、そして**取り消し者（revoker）**のアドレス（ライセンサー、保持者、または条件が満たされたときに取り消すコントラクト）を保存します。\n\n`IERC5218`（`IERC721` を拡張）の主な関数:\n\n| 関数 | 役割 |\n| --- | --- |\n| `createLicense(tokenId, parentLicenseId, holder, uri, revoker)` | ルートライセンス（NFT の所有者による）またはサブライセンス（親の保持者による） |\n| `revokeLicense(licenseId)` | revoker のみ。ルートライセンスが取り消された場合、NFT は作成者に戻るべき |\n| `transferSublicense(licenseId, newHolder)` | 現在の保持者のみ。ルートライセンスは代わりに NFT とともに移動する |\n| `isLicenseActive`、`getLicenseHolder`、`getLicenseURI`、`getParentLicenseId`、`getLicenseIdByTokenId`... | 状態を読み取る |\n\n`CreateLicense`、`TransferLicense`、`RevokeLicense` のイベントにより、履歴全体を追跡できます。`supportsInterface` は `0xac7b5ca9` に対して `true` を返さなければなりません。\n\nライセンス URI は、Creative Commons から借りた 3 層の JSON を指すことができます。法的文言（legal code）、人間が読める要約（deed）、機械可読な形式です。\n\n## サンプルコード\n\nライセンスのメタデータ JSON（黙って変更されないよう IPFS などのコンテンツアドレス方式のシステムに保存してください。ここのテキスト値はプレースホルダーです）:\n\n```json\n{\n  \"legal-code\": \"ipfs://\u003ccid\u003e/legal.txt\",\n  \"human-readable\": \"Holder may display the artwork and use it on merchandise up to a set revenue cap.\",\n  \"machine-readable\": \"ipfs://\u003ccid\u003e/license.rdf\"\n}\n```\n\nNFT 所有者のルートライセンスからサブライセンスを付与する:\n\n```solidity\nuint256 root = rights.getLicenseIdByTokenId(tokenId);\nuint256 subId = rights.createLicense(\n    tokenId,\n    root,                         // parent license\n    brandAddress,                 // new license holder\n    \"ipfs://\u003ccid\u003e/sublicense.json\",\n    msg.sender                    // revoker: the current owner\n);\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。\n- ライセンス URI を更新する関数はないため、条件は恒久的なものとして想定されています。変更するには、取り消して新しいライセンスを作成します。\n- リファレンス実装では、ライセンスを取り消すとそのサブライセンスもすべて暗黙的に取り消されます。`isLicenseActive` が祖先を遅延的にチェックし、`RevokeLicense` イベントは 1 つだけ発行されることがあります。\n- `revoker` には注意してください。コントラクトの場合、ライセンスは移転に伴って移動しうるため、ライセンス保持者のアドレスをハードコードしないでください。\n- オンチェーンの記録が強制力のあるライセンスになるかどうかは、ライセンスの文言と適用される法律によります。法務レビューを受けてください。著作権の*所有権*の移転は対象外です。仕様は、署名付き法的文書のために [ERC-5289](/eip-5289/) との組み合わせを提案しています。\n"},"ko":{"lang":"ko","tldr":"ERC-721 확장 제안. 저작권 라이선스를 각 NFT에 묶인 트리 형태로 온체인에 기록해, 루트 라이선스가 토큰과 함께 이동하고 모든 하위 라이선스와 취소를 추적할 수 있게 한다.","tags":["nft","licensing","copyright","erc721","rights"],"related":[721,4907,5289,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5218/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-721](/eip-721/)은 누가 토큰을 소유하는지는 추적하지만, 소유자가 그 뒤에 있는 작품이나 음악으로 법적으로 무엇을 할 수 있는지는 추적하지 않습니다. NFT 프로젝트는 보통 웹사이트에 라이선스를 게시하지만, 토큰 자체는 어떤 라이선스가 적용되는지 알려주지 않으며, 하위 라이선스(예를 들어 소유자가 브랜드에 이미지 사용을 허락하는 경우)는 온체인에서 보이지 않습니다. [ERC-4907](/eip-4907/) 같은 대여 표준은 단순한 \"사용자\" 권한을 다루지만 일반적인 라이선싱은 다루지 않습니다.\n\nEIP-5218은 NFT에 표준 온체인 라이선스 기록을 제공합니다. 누가 보유하는지, 어떤 조건을 가리키는지, 누가 취소할 수 있는지, 라이선스가 서로 어떻게 파생되는지입니다. 법적 조건을 정의하지는 않고, 그것을 기록할 구조를 제공합니다.\n\n## 어떻게 동작하나요?\n\n라이선스는 NFT마다 **트리**를 이룹니다.\n\n- **루트 라이선스**는 NFT 소유자에게 부여되며 토큰에 묶여(tethered) 있습니다. NFT가 이전되면 루트 라이선스 보유자는 새 소유자로 바뀝니다.\n- 유효한 라이선스 보유자는 누구든 **하위 라이선스(sublicense)**를 만들 수 있고, 하위 라이선스도 자신의 하위 라이선스를 가질 수 있습니다.\n- 각 라이선스는 토큰 ID, 부모 라이선스 ID, 보유자, 조건을 가리키는 URI, 그리고 **취소자(revoker)** 주소(라이선서, 보유자, 또는 조건이 충족되면 취소하는 컨트랙트)를 저장합니다.\n\n`IERC5218`(`IERC721`을 확장)의 주요 함수:\n\n| 함수 | 역할 |\n| --- | --- |\n| `createLicense(tokenId, parentLicenseId, holder, uri, revoker)` | 루트 라이선스(NFT 소유자가) 또는 하위 라이선스(부모 보유자가) |\n| `revokeLicense(licenseId)` | revoker만 가능. 루트 라이선스가 취소되면 NFT는 생성자에게 돌아가야 함 |\n| `transferSublicense(licenseId, newHolder)` | 현재 보유자만 가능. 루트 라이선스는 대신 NFT와 함께 이동 |\n| `isLicenseActive`, `getLicenseHolder`, `getLicenseURI`, `getParentLicenseId`, `getLicenseIdByTokenId`... | 상태 읽기 |\n\n`CreateLicense`, `TransferLicense`, `RevokeLicense` 이벤트로 전체 이력을 추적할 수 있습니다. `supportsInterface`는 `0xac7b5ca9`에 대해 `true`를 반환해야 합니다.\n\n라이선스 URI는 Creative Commons에서 빌려온 세 계층의 JSON을 가리킬 수 있습니다. 법률 문구(legal code), 사람이 읽을 수 있는 요약(deed), 기계가 읽을 수 있는 형식입니다.\n\n## 샘플 코드\n\n라이선스 메타데이터 JSON(조용히 바뀌지 않도록 IPFS나 다른 콘텐츠 주소 지정 시스템에 저장하세요. 여기의 텍스트 값은 자리 표시자입니다):\n\n```json\n{\n  \"legal-code\": \"ipfs://\u003ccid\u003e/legal.txt\",\n  \"human-readable\": \"Holder may display the artwork and use it on merchandise up to a set revenue cap.\",\n  \"machine-readable\": \"ipfs://\u003ccid\u003e/license.rdf\"\n}\n```\n\nNFT 소유자의 루트 라이선스에서 하위 라이선스 부여하기:\n\n```solidity\nuint256 root = rights.getLicenseIdByTokenId(tokenId);\nuint256 subId = rights.createLicense(\n    tokenId,\n    root,                         // parent license\n    brandAddress,                 // new license holder\n    \"ipfs://\u003ccid\u003e/sublicense.json\",\n    msg.sender                    // revoker: the current owner\n);\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**.\n- 라이선스 URI를 갱신하는 함수가 없으므로 조건은 영구적이도록 의도되었습니다. 바꾸려면 취소하고 새 라이선스를 만드세요.\n- 레퍼런스 구현에서는 라이선스를 취소하면 그 하위 라이선스도 모두 암묵적으로 취소됩니다. `isLicenseActive`가 상위 라이선스를 지연 방식으로 확인하며, `RevokeLicense` 이벤트는 하나만 발생할 수 있습니다.\n- `revoker`에 주의하세요. 컨트랙트인 경우 라이선스가 이전에 따라 이동할 수 있으므로 라이선스 보유자의 주소를 하드코딩하지 마세요.\n- 온체인 기록이 강제력 있는 라이선스를 만드는지는 라이선스 문구와 적용 법률에 달려 있으니 법률 검토를 받으세요. 저작권 *소유권*의 이전은 범위 밖입니다. 명세는 서명된 법률 문서를 위해 [ERC-5289](/eip-5289/)와 함께 쓰기를 제안합니다.\n"},"zh":{"lang":"zh","tldr":"建议的 ERC-721 扩展：把版权许可以树的形式记录在链上并与每个 NFT 绑定，使根许可随代币一起转移，每一次再许可和撤销都可追溯。","tags":["nft","licensing","copyright","erc721","rights"],"related":[721,4907,5289,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5218/","markdown":"## 它解决什么问题？\n\n[ERC-721](/eip-721/) 记录谁拥有某个代币，而不记录所有者在法律上可以如何使用其背后的艺术品或音乐。NFT 项目通常在网站上公布许可，但代币本身并不说明适用哪种许可，再许可（比如所有者允许某个品牌使用图片）在链上也是不可见的。[ERC-4907](/eip-4907/) 这类租赁标准涵盖了简单的\"用户\"权限，但不涵盖一般性的许可。\n\nEIP-5218 为 NFT 提供了一种标准的链上许可记录：谁持有许可、它指向什么条款、谁可以撤销它，以及许可之间如何派生。它不定义法律条款，而是提供记录这些条款的结构。\n\n## 它如何运作\n\n每个 NFT 的许可构成一棵**树**：\n\n- **根许可**授予 NFT 的所有者，并与代币绑定（tethered）。当 NFT 被转移时，根许可的持有者会变为新所有者。\n- 任何有效许可的持有者都可以创建**再许可**，再许可也可以有自己的再许可。\n- 每个许可存储：代币 ID、父许可 ID、持有者、指向条款的 URI，以及一个**撤销者（revoker）**地址（许可人、持有者，或在条件满足时进行撤销的合约）。\n\n`IERC5218`（扩展 `IERC721`）的主要函数：\n\n| 函数 | 用途 |\n| --- | --- |\n| `createLicense(tokenId, parentLicenseId, holder, uri, revoker)` | 根许可（由 NFT 所有者创建）或再许可（由父许可持有者创建） |\n| `revokeLicense(licenseId)` | 仅限撤销者；如果根许可被撤销，NFT 应返回其创建者 |\n| `transferSublicense(licenseId, newHolder)` | 仅限当前持有者；根许可则随 NFT 一起转移 |\n| `isLicenseActive`、`getLicenseHolder`、`getLicenseURI`、`getParentLicenseId`、`getLicenseIdByTokenId`…… | 读取状态 |\n\n`CreateLicense`、`TransferLicense` 和 `RevokeLicense` 事件使完整历史可以追溯。`supportsInterface` 对 `0xac7b5ca9` 必须返回 `true`。\n\n许可 URI 可以指向一个借鉴自知识共享（Creative Commons）的三层 JSON：法律文本（legal code）、人类可读的摘要（deed）和机器可读的形式。\n\n## 示例代码\n\n许可元数据 JSON（请存放在 IPFS 或其他内容寻址系统中，以免被悄悄更改；这里的文本值只是占位符）：\n\n```json\n{\n  \"legal-code\": \"ipfs://\u003ccid\u003e/legal.txt\",\n  \"human-readable\": \"Holder may display the artwork and use it on merchandise up to a set revenue cap.\",\n  \"machine-readable\": \"ipfs://\u003ccid\u003e/license.rdf\"\n}\n```\n\n从 NFT 所有者的根许可授予再许可：\n\n```solidity\nuint256 root = rights.getLicenseIdByTokenId(tokenId);\nuint256 subId = rights.createLicense(\n    tokenId,\n    root,                         // parent license\n    brandAddress,                 // new license holder\n    \"ipfs://\u003ccid\u003e/sublicense.json\",\n    msg.sender                    // revoker: the current owner\n);\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。\n- 没有更新许可 URI 的函数，所以条款意在永久不变。要更改条款，请撤销并创建新的许可。\n- 在参考实现中，撤销一个许可会隐式撤销它的所有再许可：`isLicenseActive` 会惰性地检查祖先，而且可能只触发一个 `RevokeLicense` 事件。\n- 使用 `revoker` 时要小心：如果它是合约，不要硬编码许可持有者的地址，因为许可可能随转移而移动。\n- 链上记录是否构成可强制执行的许可，取决于许可文本和适用法律；请获取法律审查。转让版权的*所有权*不在范围内；规范建议与 [ERC-5289](/eip-5289/) 结合使用来处理签名的法律文件。\n"}},"requiredBy":[5554]}
