{"eip":5187,"title":"Extend EIP-1155 with rentable usage rights","description":"Separate ownership and usage rights of EIP-1155 to allow users to use NFTs for an allotted time and return them to owners after expiration.","authors":["DerivStudio (@DerivStudio)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-04-17","requires":[165,1155],"discussionsTo":"https://ethereum-magicians.org/t/eip-draft-extending-erc1155-with-rentable-usage-rights/9553/4","repo":"ERCs","label":"ERC-5187","officialUrl":"https://eips.ethereum.org/EIPS/eip-5187","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5187.md","url":"https://eips.huatuo.xyz/eip-5187/","tldr":{"en":"An ERC-1155 extension that separates ownership from time-limited usage rights, so one owner can rent an NFT to several users at once, with sublets, renewals and take-back after expiry.","ja":"所有権と期限付きの利用権を分離する ERC-1155 拡張。1 人の所有者が 1 つの NFT を同時に複数のユーザーへ貸し出せ、転貸、更新、期限後の回収にも対応する。","ko":"소유권과 기한이 있는 사용권을 분리하는 ERC-1155 확장. 한 소유자가 하나의 NFT를 여러 사용자에게 동시에 대여할 수 있으며, 재대여, 갱신, 만료 후 회수를 지원한다.","zh":"一种 ERC-1155 扩展，将所有权与有时限的使用权分离，使同一所有者可以同时把一个 NFT 租给多个用户，并支持转租、续租和到期后收回。"},"tags":["nft","rental","erc-1155","usage-rights"],"explainers":{"en":{"lang":"en","tldr":"An ERC-1155 extension that separates ownership from time-limited usage rights, so one owner can rent an NFT to several users at once, with sublets, renewals and take-back after expiry.","tags":["nft","rental","erc-1155","usage-rights"],"related":[1155,165,4907,5006],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5187/","markdown":"## What problem does it solve?\n\nNFT rental has typically relied on over-collateralization, a custodian or trust. A game guild lending items to new players, or an artist leasing a work to a media outlet for a period, needs a way to hand over **use** without handing over **ownership**, and to get it back automatically when the term ends.\n\nERC-5187 extends [ERC-1155](/eip-1155/) so that usage rights become separate, transferable, expiring units. The owner keeps the property right and can even sell it during a lease without affecting tenants.\n\n## How it works\n\nThe `IRental` interface (ERC-165 ID `0x6938e358`) adds:\n\n| Function | Purpose |\n| --- | --- |\n| `safeRent(from, to, id, amount, expire)` | Rent `amount` usage rights of token `id` to `to` until `expire` |\n| `takeBack(user, tokenId)` | Owner reclaims usage rights after the lease ends |\n| `renew(user, id, expire)` | Extend a user's lease |\n| `sublet(to, id)` | A user passes their usage right to another user |\n| `propertyRightOf(id)` | The owner of the property right |\n| `expireAt(id, user)` | When a user's lease ends |\n| `totalSupply(id)` | Total supply of a token ID |\n\nEvents `Rented`, `Renew`, `Sublet` and `TakeBack` track the lifecycle.\n\nKey ideas from the rationale:\n\n- One owner can rent usage rights to **many users at the same time** with different terms.\n- Users can **sublet** freely; subletting back to the owner is how early return works.\n- Renewal is requested from the owner, who calls `renew`.\n\n## Sample code\n\nChecking whether a player may use an item right now:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IRental {\n    function expireAt(uint256 id, address user) external view returns (uint256);\n    function propertyRightOf(uint256 id) external view returns (address);\n}\n\ncontract Game {\n    IRental public immutable items;\n\n    constructor(IRental _items) {\n        items = _items;\n    }\n\n    function canUse(address player, uint256 itemId) public view returns (bool) {\n        if (items.propertyRightOf(itemId) == player) return true;   // owner\n        return items.expireAt(itemId, player) \u003e block.timestamp;    // active tenant\n    }\n}\n```\n\nThe spec does not state whether `expire` is a timestamp or a duration; this example assumes a Unix timestamp.\n\n## Things to know\n\n- Status is **Stagnant**, and the spec's security considerations say only \"Needs discussion\".\n- Several details are underspecified (units of `expire`, who may call `takeBack` and `renew`, how usage rights relate to ERC-1155 balances). Read the implementation you depend on.\n- For ERC-721, the Final [ERC-4907](/eip-4907/) adds a single time-limited `user` role, and [ERC-5006](/eip-5006/) adds user records for ERC-1155; both are more widely referenced.\n"},"ja":{"lang":"ja","tldr":"所有権と期限付きの利用権を分離する ERC-1155 拡張。1 人の所有者が 1 つの NFT を同時に複数のユーザーへ貸し出せ、転貸、更新、期限後の回収にも対応する。","tags":["nft","rental","erc-1155","usage-rights"],"related":[1155,165,4907,5006],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5187/","markdown":"## 何を解決するのか\n\nNFT のレンタルは、これまで過剰担保、カストディアン、あるいは信頼に頼ってきました。ゲームギルドが新規プレイヤーにアイテムを貸す場合や、アーティストが一定期間メディアに作品を貸し出す場合には、**所有権**を渡さずに**利用**だけを渡し、期間が終わったら自動的に取り戻す方法が必要です。\n\nERC-5187 は [ERC-1155](/eip-1155/) を拡張し、利用権を独立した、譲渡可能で、期限のある単位にします。所有者は財産権を保持し、貸し出し中であっても借り手に影響を与えずにそれを売却できます。\n\n## 仕組み\n\n`IRental` インターフェース（ERC-165 ID `0x6938e358`）が次を追加します。\n\n| 関数 | 役割 |\n| --- | --- |\n| `safeRent(from, to, id, amount, expire)` | トークン `id` の利用権 `amount` を `expire` まで `to` に貸し出す |\n| `takeBack(user, tokenId)` | 貸し出し終了後に所有者が利用権を取り戻す |\n| `renew(user, id, expire)` | ユーザーの貸し出しを延長する |\n| `sublet(to, id)` | ユーザーが自分の利用権を別のユーザーに渡す |\n| `propertyRightOf(id)` | 財産権の所有者 |\n| `expireAt(id, user)` | ユーザーの貸し出しが終了する時刻 |\n| `totalSupply(id)` | トークン ID の総供給量 |\n\n`Rented`、`Renew`、`Sublet`、`TakeBack` のイベントがライフサイクルを追跡します。\n\n設計の根拠からの主なアイデア:\n\n- 1 人の所有者が、異なる条件で**同時に多数のユーザー**へ利用権を貸し出せる。\n- ユーザーは自由に**転貸**できる。所有者に転貸し返すことが早期返却になる。\n- 更新は所有者に依頼し、所有者が `renew` を呼ぶ。\n\n## サンプルコード\n\nプレイヤーが今そのアイテムを使えるかを確認する:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IRental {\n    function expireAt(uint256 id, address user) external view returns (uint256);\n    function propertyRightOf(uint256 id) external view returns (address);\n}\n\ncontract Game {\n    IRental public immutable items;\n\n    constructor(IRental _items) {\n        items = _items;\n    }\n\n    function canUse(address player, uint256 itemId) public view returns (bool) {\n        if (items.propertyRightOf(itemId) == player) return true;   // owner\n        return items.expireAt(itemId, player) \u003e block.timestamp;    // active tenant\n    }\n}\n```\n\n仕様は `expire` がタイムスタンプなのか期間なのかを明示していません。この例は Unix タイムスタンプを想定しています。\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** で、仕様のセキュリティ上の考慮事項には「Needs discussion」とだけあります。\n- いくつかの詳細は仕様が不十分です（`expire` の単位、誰が `takeBack` や `renew` を呼べるか、利用権と ERC-1155 の残高の関係）。依存する実装を読んでください。\n- ERC-721 では、Final の [ERC-4907](/eip-4907/) が期限付きの単一の `user` ロールを追加し、[ERC-5006](/eip-5006/) が ERC-1155 向けのユーザーレコードを追加します。どちらもより広く参照されています。\n"},"ko":{"lang":"ko","tldr":"소유권과 기한이 있는 사용권을 분리하는 ERC-1155 확장. 한 소유자가 하나의 NFT를 여러 사용자에게 동시에 대여할 수 있으며, 재대여, 갱신, 만료 후 회수를 지원한다.","tags":["nft","rental","erc-1155","usage-rights"],"related":[1155,165,4907,5006],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5187/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT 대여는 보통 과담보, 수탁자, 또는 신뢰에 의존해 왔습니다. 게임 길드가 신규 플레이어에게 아이템을 빌려주거나, 아티스트가 일정 기간 언론사에 작품을 대여하려면, **소유권**은 넘기지 않고 **사용권**만 넘기고 기간이 끝나면 자동으로 되돌려 받을 방법이 필요합니다.\n\nERC-5187은 [ERC-1155](/eip-1155/)를 확장해 사용권을 독립적이고 양도 가능하며 만료되는 단위로 만듭니다. 소유자는 재산권을 유지하며, 대여 중에도 임차인에게 영향을 주지 않고 이를 팔 수도 있습니다.\n\n## 어떻게 동작하나요?\n\n`IRental` 인터페이스(ERC-165 ID `0x6938e358`)는 다음을 추가합니다.\n\n| 함수 | 역할 |\n| --- | --- |\n| `safeRent(from, to, id, amount, expire)` | 토큰 `id`의 사용권 `amount`를 `expire`까지 `to`에게 대여 |\n| `takeBack(user, tokenId)` | 대여 종료 후 소유자가 사용권을 회수 |\n| `renew(user, id, expire)` | 사용자의 대여 기간 연장 |\n| `sublet(to, id)` | 사용자가 자신의 사용권을 다른 사용자에게 넘김 |\n| `propertyRightOf(id)` | 재산권의 소유자 |\n| `expireAt(id, user)` | 사용자의 대여가 끝나는 시점 |\n| `totalSupply(id)` | 토큰 ID의 총 공급량 |\n\n`Rented`, `Renew`, `Sublet`, `TakeBack` 이벤트가 수명 주기를 추적합니다.\n\n설계 근거의 핵심 아이디어:\n\n- 한 소유자가 서로 다른 조건으로 **여러 사용자에게 동시에** 사용권을 대여할 수 있습니다.\n- 사용자는 자유롭게 **재대여**할 수 있으며, 소유자에게 재대여하는 것이 조기 반환 방법입니다.\n- 갱신은 소유자에게 요청하고, 소유자가 `renew`를 호출합니다.\n\n## 샘플 코드\n\n플레이어가 지금 아이템을 사용할 수 있는지 확인하기:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IRental {\n    function expireAt(uint256 id, address user) external view returns (uint256);\n    function propertyRightOf(uint256 id) external view returns (address);\n}\n\ncontract Game {\n    IRental public immutable items;\n\n    constructor(IRental _items) {\n        items = _items;\n    }\n\n    function canUse(address player, uint256 itemId) public view returns (bool) {\n        if (items.propertyRightOf(itemId) == player) return true;   // owner\n        return items.expireAt(itemId, player) \u003e block.timestamp;    // active tenant\n    }\n}\n```\n\n명세는 `expire`가 타임스탬프인지 기간인지 명시하지 않습니다. 이 예시는 Unix 타임스탬프를 가정합니다.\n\n## 알아둘 점\n\n- 상태는 **Stagnant**이며, 명세의 보안 고려 사항에는 \"Needs discussion\"이라고만 적혀 있습니다.\n- 몇몇 세부 사항은 명세가 불충분합니다(`expire`의 단위, 누가 `takeBack`과 `renew`를 호출할 수 있는지, 사용권과 ERC-1155 잔액의 관계). 의존하는 구현을 직접 읽어 보세요.\n- ERC-721에서는 Final인 [ERC-4907](/eip-4907/)이 기한이 있는 단일 `user` 역할을 추가하고, [ERC-5006](/eip-5006/)이 ERC-1155용 사용자 레코드를 추가합니다. 둘 다 더 널리 참조됩니다.\n"},"zh":{"lang":"zh","tldr":"一种 ERC-1155 扩展，将所有权与有时限的使用权分离，使同一所有者可以同时把一个 NFT 租给多个用户，并支持转租、续租和到期后收回。","tags":["nft","rental","erc-1155","usage-rights"],"related":[1155,165,4907,5006],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5187/","markdown":"## 它解决什么问题？\n\nNFT 租赁通常依赖超额抵押、托管方或信任。游戏公会把道具借给新玩家，或艺术家在一段时间内把作品租给媒体，都需要一种方式：交出**使用权**而不交出**所有权**，并在期限结束时自动收回。\n\nERC-5187 扩展了 [ERC-1155](/eip-1155/)，让使用权成为独立、可转让、会过期的单元。所有者保留产权，甚至可以在租期内出售它而不影响租户。\n\n## 它如何运作\n\n`IRental` 接口（ERC-165 ID `0x6938e358`）增加了：\n\n| 函数 | 用途 |\n| --- | --- |\n| `safeRent(from, to, id, amount, expire)` | 把代币 `id` 的 `amount` 份使用权租给 `to`，直到 `expire` |\n| `takeBack(user, tokenId)` | 租期结束后，所有者收回使用权 |\n| `renew(user, id, expire)` | 延长用户的租期 |\n| `sublet(to, id)` | 用户把自己的使用权转给另一个用户 |\n| `propertyRightOf(id)` | 产权的所有者 |\n| `expireAt(id, user)` | 用户的租期何时结束 |\n| `totalSupply(id)` | 某个代币 ID 的总供应量 |\n\n`Rented`、`Renew`、`Sublet` 和 `TakeBack` 事件用于跟踪生命周期。\n\n设计理由中的关键想法：\n\n- 一个所有者可以按不同条款**同时**向**多个用户**出租使用权。\n- 用户可以自由**转租**；转租回所有者就是提前归还的方式。\n- 续租需向所有者申请，由所有者调用 `renew`。\n\n## 示例代码\n\n检查玩家当前是否可以使用某件道具：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IRental {\n    function expireAt(uint256 id, address user) external view returns (uint256);\n    function propertyRightOf(uint256 id) external view returns (address);\n}\n\ncontract Game {\n    IRental public immutable items;\n\n    constructor(IRental _items) {\n        items = _items;\n    }\n\n    function canUse(address player, uint256 itemId) public view returns (bool) {\n        if (items.propertyRightOf(itemId) == player) return true;   // owner\n        return items.expireAt(itemId, player) \u003e block.timestamp;    // active tenant\n    }\n}\n```\n\n规范没有说明 `expire` 是时间戳还是时长；这个示例假定为 Unix 时间戳。\n\n## 需要注意\n\n- 状态为 **Stagnant**，规范的安全考虑部分只写了“Needs discussion”。\n- 有几处细节规定得不够明确（`expire` 的单位、谁可以调用 `takeBack` 和 `renew`、使用权与 ERC-1155 余额的关系）。请阅读你所依赖的实现。\n- 对于 ERC-721，已 Final 的 [ERC-4907](/eip-4907/) 增加了单个有时限的 `user` 角色，[ERC-5006](/eip-5006/) 则为 ERC-1155 增加了用户记录；两者被引用得更广泛。\n"}}}
