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-5187, which separates ownership and usage rights in ERC-1155 to support a variety of rental use cases.
This article translates, summarizes, and supplements the material linked below.
I have also covered other EIPs.
Overview
ERC-5187 extends ERC-1155 with separate usage rights.
An owner (owner) retains ownership of an NFT while renting its usage rights to multiple users for different periods.
When a rental expires, the contract can enforce expiration and allow the rights to be reclaimed. Ownership can also be transferred while the NFT is rented.
Renters may sublet usage rights to other users, extend rental periods where authorized, or return usage rights to the lender early.
Motivation
ERC-721 and ERC-1155 traditionally focus on ownership. This is appropriate when NFTs represent private property such as art or collectibles.
However, NFT use cases increasingly involve active use, including game items, metaverse assets, and financial applications.
For example, an artist might want to lend a work to a media organization for a limited period, or a gaming guild might lend items to beginners to reduce barriers to participation.
Conventional NFT lending approaches often rely on collateral, trust, or centralized management. These dependencies can make it difficult to develop an open and autonomous rental market.
The proposal introduces expirable NFTs, or usage rights with defined expiration times.
By managing expiration in a smart contract, rental and recovery can be performed without relying on a renter voluntarily returning an asset. This enables collateral-free, on-chain rental models where supported by the application, expanding the ways in which NFTs can circulate and be used.
Separating Ownership and Usage Rights
The central idea of ERC-5187 is to separate NFT ownership from usage rights so that they can be traded independently.
Consider a rental property analogy: if an owner sells a house during a lease, the renter's usage rights can remain in effect while ownership changes. The arrangement might also allow subletting through multiple levels or extensions of the rental period, subject to the relevant rules.
Blockchain-based rights management can implement comparable digital arrangements without requiring the same centralized coordination.
If ownership and usage rights develop independent markets, their values can also be determined separately. Ownership may reflect expectations about future project growth, whereas usage rights may reflect the immediate practical value of using the asset.
The proposal envisages this separation supporting a more sustainable NFT market.
Specification
ERC-5187 proposes an interface that separates NFT ownership from usage rights, allowing usage rights to be rented, returned, and sublet independently.
It is designed around compatibility with ERC-1155, with rental periods, returns, and subletting managed through smart contracts.
pragma solidity ^0.8.0;
/// Note: the ERC-165 identifier for this interface is 0x6938e358.
interface IRental /* is IERC165,IERC1155 */ {
/**
* @notice This emits when user rent NFT
* - `id` The id of the current token
* - `user` The address to rent the NFT usage rights
* - `amount` The amount of usage rights
* - `expire` The specified period of time to rent
**/
event Rented(uint256 indexed id,address indexed user,uint256 amount,uint256 expire);
/**
* MUST trigger on any successful call to `renew(address user,uint256 id)`
* - `id` The id of the current token
* - `user` The user of the NFT
* - `expire` The new specified period of time to rent
**/
event Renew(uint256 indexed id,address indexed user,uint256 expire);
/**
* MUST trigger on any successful call to `renew(address user,uint256 id,uint256 expire)`
* - `id` The id of the current token
* - `from` The current user of the NFT
* - `to` The new user
**/
event Sublet(uint256 indexed id,address indexed from,address to);
/**
* @notice This emits when the NFT owner takes back the usage rights from the tenant (the `user`)
* - id The id of the current token
* - user The address to rent the NFT's usage rights
* - amount Amount of usage rights
**/
event TakeBack(uint256 indexed id, address indexed user, uint256 amount);
/**
* @notice Function to rent out usage rights
* - from The address to approve
* - to The address to rent the NFT usage rights
* - id The id of the current token
* - amount The amount of usage rights
* - expire The specified period of time to rent
**/
function safeRent(address from,address to,uint256 id,uint256 amount,uint256 expire) external;
/**
* @notice Function to take back usage rights after the end of the tenancy
* - user The address to rent the NFT's usage rights
* - tokenId The id of the current token
**/
function takeBack(address user,uint256 tokenId) external;
/**
* @notice Return the NFT to the address of the NFT property right owner.
**/
function propertyRightOf(uint256 id) external view returns (address);
/**
* @notice Return the total supply amount of the current token
**/
function totalSupply(uint256 id) external view returns (uint256);
/**
* @notice Return expire The specified period of time to rent
**/
function expireAt(uint256 id,address user) external view returns(uint256);
/**
* extended rental period
* - `id` The id of the current token
* - `user` The user of the NFT
* - `expire` The new specified period of time to rent
**/
function renew(address user,uint256 id,uint256 expire) external;
/**
* transfer of usage right
* - `id` The id of the current token
* - `user` The user of the NFT
* - `expire` The new specified period of time to rent
**/
function sublet(address to,uint256 id) external;
}Events
Rented
Emitted when NFT usage rights are rented to a user.
id- Token ID.
user- Address receiving usage rights.
amount- Number of usage rights rented.
expire- Expiration timestamp.
Renew
Emitted when the expiration of existing rented usage rights is extended.
id- Token ID.
user- User whose usage rights are extended.
expire- Updated expiration timestamp.
Sublet
Emitted when rented usage rights are transferred to another user.
id- Token ID.
from- Current user.
to- Recipient of the usage rights.
TakeBack
Emitted when the NFT owner reclaims usage rights after their expiration.
id- Token ID.
user- User whose rights are reclaimed.
amount- Number of usage rights reclaimed.
Functions
safeRent
Rents NFT usage rights to another user.
from- Owner address.
to- Renter address.
id- Token ID.
amount- Number of usage rights rented.
expire- Expiration timestamp.
takeBack
Allows the NFT owner to reclaim expired usage rights.
user- User address.
tokenId- Token ID.
propertyRightOf
Returns the owner address of a particular NFT.
id- Token ID.
- Return value
- Owner address.
totalSupply
Returns the total supply associated with a token ID.
id- Token ID.
- Return value
- Total issued quantity.
expireAt
Returns the expiration time of a particular user's usage rights.
id- Token ID.
user- Relevant user address.
- Return value
- Usage expiration timestamp.
renew
Extends the expiration time of a specified user's NFT usage rights.
user- Relevant user address.
id- Token ID.
expire- New expiration timestamp.
sublet
Transfers usage rights held by the caller to another address.
to- Recipient address.
id- Token ID.
Additional Notes
Renting to Multiple Users Simultaneously
ERC-5187 allows NFT usage rights to be divided and handled independently. Owners can therefore use safeRent to rent rights to several users simultaneously.
After a rental period ends, the rights can be reclaimed through takeBack.
Expiration can be enforced according to the contract's rules, but reclaiming state through a function call requires a transaction; a contract does not initiate transactions merely because time has passed.
This enables rentals to multiple users to be managed without relying on voluntary returns or centralized manual bookkeeping.
Flexible Handling of Usage Rights
Another advantage is the flexibility of rented usage rights.
During the rental period, a user who holds usage rights can sublet them to another user through sublet, where permitted.
The owner can also extend the rental period through renew.
A user may return rights early by transferring them back to the original owner through sublet, where the implementation supports that operation.
Thus, renting, returning, and transferring usage rights can be managed on-chain while ownership remains separate.
Compatibility
The proposal is designed to be compatible with ERC-1155.
Citation
DerivStudio (@DerivStudio), "ERC-5187: Extend EIP-1155 with rentable usage rights [DRAFT]," Ethereum Improvement Proposals, no. 5187, April 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5187.
Conclusion
ERC-5187 separates ERC-1155 ownership and usage rights to support rental and related use cases.
If you have questions, feel free to contact me on Twitter.
I also publish articles on the following platforms.



