{"eip":5380,"title":"ERC-721 Entitlement Extension","description":"Allows token owners to grant the ability for others to use specific properties of those tokens","authors":["Gavin John (@Pandapip1)","Tim Daubenschütz (@TimDaub)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2022-03-11","requires":[165,721,1046],"discussionsTo":"https://ethereum-magicians.org/t/pr-5380-eip-4907-alternative-design/10190","repo":"ERCs","label":"ERC-5380","officialUrl":"https://eips.ethereum.org/EIPS/eip-5380","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5380.md","url":"https://eips.huatuo.xyz/eip-5380/","tldr":{"en":"Lets an ERC-721 owner grant other addresses the right to use a specific property of their token, such as playing a card in a game, without transferring ownership.","ja":"ERC-721 のオーナーが、所有権を移さずに、トークンの特定のプロパティ（ゲームでカードをプレイするなど）を使う権利を他のアドレスに付与できるようにする。","ko":"ERC-721 소유자가 소유권을 넘기지 않고도 다른 주소에 토큰의 특정 속성을 사용할 권리(예: 게임에서 카드를 내는 것)를 부여할 수 있게 한다.","zh":"允许 ERC-721 所有者在不转移所有权的情况下，授予其他地址使用其代币特定属性的权利，例如在游戏中打出一张卡牌。"},"tags":["nft","erc-721","rental","delegation","permissions"],"explainers":{"en":{"lang":"en","tldr":"Lets an ERC-721 owner grant other addresses the right to use a specific property of their token, such as playing a card in a game, without transferring ownership.","tags":["nft","erc-721","rental","delegation","permissions"],"related":[721,4907,1046,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5380/","markdown":"## What problem does it solve?\n\nOwning an NFT and using it are often separate needs. Someone may want to play a trading card in an on-chain game without buying it, or license the media an NFT points to. Transferring the token to them hands over full ownership, which is far more than intended.\n\nSome rights are scarce (only one player should hold a card at a time, or one owner could \"rent\" it to everybody), while others need not be (usage rights to media could be granted to many). ERC-5380 models both as **entitlements**: named properties of a token that the owner can assign, with a per-property cap on how many users can hold them.\n\n## How it works\n\nAn entitlement contract is a separate contract that represents one \"property\". Its key functions take the NFT contract address and token ID:\n\n| Function | Purpose |\n| --- | --- |\n| `entitle(user, contract, tokenId)` | The token's owner assigns this entitlement to `user` |\n| `maxEntitlements(contract, tokenId)` | How many users may hold it at once |\n| `entitlementOf(user, contract, tokenId)` | How much entitlement `user` has; by default the full amount belongs to the current owner |\n\n`EntitlementChanged(user, contract, tokenId)` is emitted on changes. `entitle` should not revert when the caller is not the owner (it just does nothing). Games or apps check `entitlementOf` before letting someone use the token.\n\nTwo optional, recommended extensions exist: an **enumerable** one (list tokens a user is entitled to) and a **metadata** one with `tokenURI()` following [ERC-1046](/eip-1046/), whose `interop` block sets `erc5380: true`.\n\nERC-20 and ERC-1155 are deliberately unsupported, because partial ownership is much harder to track than \"owns / does not own\".\n\n## Sample code\n\nThe spec names a parameter `contract`, which is a reserved word in Solidity, so real code has to rename it. A compiling version of the base interface and a game-side check:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC5380Entitlement {\n    event EntitlementChanged(address indexed user, address indexed tokenContract, uint256 indexed tokenId);\n    function entitle(address user, address tokenContract, uint256 tokenId) external;\n    function maxEntitlements(address tokenContract, uint256 tokenId) external view returns (uint256);\n    function entitlementOf(address user, address tokenContract, uint256 tokenId) external view returns (uint256);\n}\n\ncontract CardGame {\n    IERC5380Entitlement public immutable playRight;\n    address public immutable cards;\n\n    constructor(IERC5380Entitlement _playRight, address _cards) {\n        playRight = _playRight;\n        cards = _cards;\n    }\n\n    function play(uint256 cardId) external {\n        require(playRight.entitlementOf(msg.sender, cards, cardId) \u003e 0, \"not entitled\");\n        // ... game logic\n    }\n}\n```\n\n## Things to know\n\n- Status: **Final**.\n- The spec's Solidity has small errors (the reserved name `contract`, a missing `returns` on `maxEntitlements`), so implementations rename parameters; this affects source code, not the ABI types.\n- It was proposed as an alternative design to [ERC-4907](/eip-4907/), which adds a single time-limited `user` role directly to the NFT.\n- Entitlements are only meaningful if the consuming app checks them; holding an entitlement does not change `ownerOf`.\n"},"ja":{"lang":"ja","tldr":"ERC-721 のオーナーが、所有権を移さずに、トークンの特定のプロパティ（ゲームでカードをプレイするなど）を使う権利を他のアドレスに付与できるようにする。","tags":["nft","erc-721","rental","delegation","permissions"],"related":[721,4907,1046,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5380/","markdown":"## 何を解決するのか\n\nNFT を所有することと使うことは、しばしば別のニーズです。購入せずにオンチェーンゲームでトレーディングカードをプレイしたい人や、NFT が指すメディアのライセンスを得たい人がいます。トークンを渡すと完全な所有権を渡すことになり、意図よりはるかに大きなものを手放すことになります。\n\n権利の中には希少なもの（カードを同時に持てるプレイヤーは 1 人だけであるべきで、そうでなければオーナーが全員に「貸し出せて」しまう）もあれば、そうでないもの（メディアの利用権は多くの人に与えられる）もあります。ERC-5380 は、この両方を**エンタイトルメント**としてモデル化します。これはオーナーが割り当てられるトークンの名前付きプロパティで、プロパティごとに保有できるユーザー数の上限があります。\n\n## 仕組み\n\nエンタイトルメントコントラクトは、1 つの「プロパティ」を表す独立したコントラクトです。主な関数は、NFT コントラクトのアドレスとトークン ID を引数に取ります。\n\n| 関数 | 役割 |\n| --- | --- |\n| `entitle(user, contract, tokenId)` | トークンのオーナーが、このエンタイトルメントを `user` に割り当てる |\n| `maxEntitlements(contract, tokenId)` | 同時に保有できるユーザー数 |\n| `entitlementOf(user, contract, tokenId)` | `user` が持つエンタイトルメントの量。デフォルトでは全量が現在のオーナーに属する |\n\n変更があると `EntitlementChanged(user, contract, tokenId)` が emit されます。`entitle` は、呼び出し元がオーナーでない場合でも revert すべきではありません（何もしないだけです）。ゲームやアプリは、誰かにトークンの利用を許可する前に `entitlementOf` を確認します。\n\n推奨されるオプションの拡張が 2 つあります。**enumerable**（ユーザーがエンタイトルされているトークンの一覧）と、[ERC-1046](/eip-1046/) に従う `tokenURI()` を持つ**メタデータ**拡張です。後者の `interop` ブロックでは `erc5380: true` を設定します。\n\nERC-20 と ERC-1155 は意図的にサポートされていません。部分的な所有権は、「所有している / していない」よりもはるかに追跡が難しいためです。\n\n## サンプルコード\n\n仕様ではパラメータに `contract` という名前が使われていますが、これは Solidity の予約語なので、実際のコードでは名前を変える必要があります。コンパイルできる基本インターフェースと、ゲーム側のチェックです。\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC5380Entitlement {\n    event EntitlementChanged(address indexed user, address indexed tokenContract, uint256 indexed tokenId);\n    function entitle(address user, address tokenContract, uint256 tokenId) external;\n    function maxEntitlements(address tokenContract, uint256 tokenId) external view returns (uint256);\n    function entitlementOf(address user, address tokenContract, uint256 tokenId) external view returns (uint256);\n}\n\ncontract CardGame {\n    IERC5380Entitlement public immutable playRight;\n    address public immutable cards;\n\n    constructor(IERC5380Entitlement _playRight, address _cards) {\n        playRight = _playRight;\n        cards = _cards;\n    }\n\n    function play(uint256 cardId) external {\n        require(playRight.entitlementOf(msg.sender, cards, cardId) \u003e 0, \"not entitled\");\n        // ... game logic\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータス: **Final**。\n- 仕様の Solidity には小さな誤りがあります（予約語 `contract` の使用、`maxEntitlements` の `returns` の欠落）。そのため実装ではパラメータ名を変更します。これはソースコードに影響しますが、ABI の型には影響しません。\n- NFT に直接、期限付きの単一の `user` ロールを追加する [ERC-4907](/eip-4907/) への代替設計として提案されました。\n- エンタイトルメントが意味を持つのは、利用側のアプリがそれを確認する場合だけです。エンタイトルメントを保有しても `ownerOf` は変わりません。\n"},"ko":{"lang":"ko","tldr":"ERC-721 소유자가 소유권을 넘기지 않고도 다른 주소에 토큰의 특정 속성을 사용할 권리(예: 게임에서 카드를 내는 것)를 부여할 수 있게 한다.","tags":["nft","erc-721","rental","delegation","permissions"],"related":[721,4907,1046,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5380/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT를 소유하는 것과 사용하는 것은 종종 별개의 필요입니다. 어떤 사람은 카드를 사지 않고 온체인 게임에서 트레이딩 카드를 쓰고 싶어 하거나, NFT가 가리키는 미디어의 사용권을 얻고 싶어 할 수 있습니다. 토큰을 넘기면 완전한 소유권을 넘기게 되어 의도한 것보다 훨씬 많은 것을 내주게 됩니다.\n\n어떤 권리는 희소합니다(한 번에 한 플레이어만 카드를 가져야 하며, 그렇지 않으면 소유자가 모두에게 \"빌려줄\" 수 있습니다). 반면 그렇지 않은 권리도 있습니다(미디어 사용권은 많은 사람에게 부여할 수 있습니다). ERC-5380은 두 경우를 모두 **엔타이틀먼트(entitlement)**로 모델링합니다. 소유자가 할당할 수 있는 토큰의 이름 붙은 속성이며, 속성별로 보유할 수 있는 사용자 수에 상한이 있습니다.\n\n## 어떻게 동작하나요?\n\n엔타이틀먼트 컨트랙트는 하나의 \"속성\"을 나타내는 별도의 컨트랙트입니다. 주요 함수는 NFT 컨트랙트 주소와 토큰 ID를 받습니다.\n\n| 함수 | 역할 |\n| --- | --- |\n| `entitle(user, contract, tokenId)` | 토큰 소유자가 이 엔타이틀먼트를 `user`에게 할당 |\n| `maxEntitlements(contract, tokenId)` | 동시에 보유할 수 있는 사용자 수 |\n| `entitlementOf(user, contract, tokenId)` | `user`가 가진 엔타이틀먼트의 양. 기본적으로 전체 양은 현재 소유자에게 속함 |\n\n변경이 있을 때 `EntitlementChanged(user, contract, tokenId)`가 emit됩니다. 호출자가 소유자가 아니더라도 `entitle`은 revert하면 안 됩니다(아무 일도 하지 않을 뿐입니다). 게임이나 앱은 누군가에게 토큰 사용을 허용하기 전에 `entitlementOf`를 확인합니다.\n\n선택적으로 권장되는 확장이 두 가지 있습니다. **열거 가능** 확장(사용자가 엔타이틀먼트를 가진 토큰 목록)과, [ERC-1046](/eip-1046/)을 따르는 `tokenURI()`가 있는 **메타데이터** 확장입니다. 후자의 `interop` 블록은 `erc5380: true`를 설정합니다.\n\nERC-20과 ERC-1155는 의도적으로 지원하지 않습니다. 부분 소유권은 \"소유함 / 소유하지 않음\"보다 추적하기가 훨씬 어렵기 때문입니다.\n\n## 샘플 코드\n\n사양은 파라미터 이름으로 `contract`를 쓰는데 이는 Solidity의 예약어이므로 실제 코드에서는 이름을 바꿔야 합니다. 컴파일되는 기본 인터페이스 버전과 게임 쪽 확인 코드입니다.\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC5380Entitlement {\n    event EntitlementChanged(address indexed user, address indexed tokenContract, uint256 indexed tokenId);\n    function entitle(address user, address tokenContract, uint256 tokenId) external;\n    function maxEntitlements(address tokenContract, uint256 tokenId) external view returns (uint256);\n    function entitlementOf(address user, address tokenContract, uint256 tokenId) external view returns (uint256);\n}\n\ncontract CardGame {\n    IERC5380Entitlement public immutable playRight;\n    address public immutable cards;\n\n    constructor(IERC5380Entitlement _playRight, address _cards) {\n        playRight = _playRight;\n        cards = _cards;\n    }\n\n    function play(uint256 cardId) external {\n        require(playRight.entitlementOf(msg.sender, cards, cardId) \u003e 0, \"not entitled\");\n        // ... game logic\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태: **Final**.\n- 사양의 Solidity에는 작은 오류가 있습니다(예약어 `contract`, `maxEntitlements`에 빠진 `returns`). 그래서 구현에서는 파라미터 이름을 바꿉니다. 이는 소스 코드에만 영향을 주며 ABI 타입에는 영향이 없습니다.\n- NFT에 시간 제한이 있는 단일 `user` 역할을 직접 추가하는 [ERC-4907](/eip-4907/)의 대안 설계로 제안되었습니다.\n- 엔타이틀먼트는 이를 사용하는 앱이 확인할 때만 의미가 있습니다. 엔타이틀먼트를 보유해도 `ownerOf`는 바뀌지 않습니다.\n"},"zh":{"lang":"zh","tldr":"允许 ERC-721 所有者在不转移所有权的情况下，授予其他地址使用其代币特定属性的权利，例如在游戏中打出一张卡牌。","tags":["nft","erc-721","rental","delegation","permissions"],"related":[721,4907,1046,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5380/","markdown":"## 它解决什么问题？\n\n拥有 NFT 和使用 NFT 往往是两种不同的需求。有人可能想在链上游戏中使用一张交易卡牌而不购买它，或者想获得 NFT 所指向媒体的使用许可。把代币转给对方意味着交出完整所有权，远超所需。\n\n有些权利是稀缺的（同一时间只应有一位玩家持有一张卡牌，否则所有者就能把它\"租\"给所有人），有些则不然（媒体的使用权可以授予很多人）。ERC-5380 把这两种情形都建模为**权益（entitlement）**：代币的具名属性，所有者可以分配，并且每个属性都有可持有用户数量的上限。\n\n## 它如何运作\n\n权益合约是一个独立的合约，代表一个\"属性\"。它的关键函数接收 NFT 合约地址和代币 ID：\n\n| 函数 | 用途 |\n| --- | --- |\n| `entitle(user, contract, tokenId)` | 代币所有者把此权益分配给 `user` |\n| `maxEntitlements(contract, tokenId)` | 同一时间最多可有多少用户持有 |\n| `entitlementOf(user, contract, tokenId)` | `user` 拥有多少权益；默认情况下全部归当前所有者 |\n\n发生变化时会触发 `EntitlementChanged(user, contract, tokenId)`。当调用者不是所有者时，`entitle` 不应 revert（只是什么都不做）。游戏或应用在允许某人使用代币之前，会检查 `entitlementOf`。\n\n另有两个可选的推荐扩展：**可枚举**扩展（列出某用户拥有权益的代币），以及**元数据**扩展，其 `tokenURI()` 遵循 [ERC-1046](/eip-1046/)，其中 `interop` 块设置 `erc5380: true`。\n\nERC-20 和 ERC-1155 被有意排除在外，因为部分所有权比\"拥有 / 不拥有\"难追踪得多。\n\n## 示例代码\n\n规范中把一个参数命名为 `contract`，而它是 Solidity 的保留字，所以实际代码必须改名。下面是可编译的基础接口版本，以及游戏侧的检查：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC5380Entitlement {\n    event EntitlementChanged(address indexed user, address indexed tokenContract, uint256 indexed tokenId);\n    function entitle(address user, address tokenContract, uint256 tokenId) external;\n    function maxEntitlements(address tokenContract, uint256 tokenId) external view returns (uint256);\n    function entitlementOf(address user, address tokenContract, uint256 tokenId) external view returns (uint256);\n}\n\ncontract CardGame {\n    IERC5380Entitlement public immutable playRight;\n    address public immutable cards;\n\n    constructor(IERC5380Entitlement _playRight, address _cards) {\n        playRight = _playRight;\n        cards = _cards;\n    }\n\n    function play(uint256 cardId) external {\n        require(playRight.entitlementOf(msg.sender, cards, cardId) \u003e 0, \"not entitled\");\n        // ... game logic\n    }\n}\n```\n\n## 需要注意\n\n- 状态：**Final**。\n- 规范中的 Solidity 有一些小错误（保留字 `contract`，`maxEntitlements` 缺少 `returns`），因此实现时要重命名参数；这影响的是源代码，而不是 ABI 类型。\n- 它是作为 [ERC-4907](/eip-4907/) 的替代设计被提出的，后者直接给 NFT 增加一个有时间限制的 `user` 角色。\n- 只有当使用方应用去检查权益时，权益才有意义；持有权益不会改变 `ownerOf`。\n"}}}
