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.
Background
ERC-7531 proposes an interface that makes it possible to recognize the rights holder of a staked ERC-721 token while the token is held by a staking contract.
This article explains the proposal linked below.
I also cover other proposals in the index.
Overview
Staking older NFTs that lack a locking mechanism can make it difficult to tell who should receive their benefits. Examples include CryptoPunks and Bored Ape Yacht Club (BAYC). ERC-7531 proposes an interface for identifying the rights holder separately from the address that holds the token.
Some early NFTs are transferable but cannot be locked under specific conditions. A locking mechanism can restrict when an NFT may move or how it may be used.
What goes wrong when the NFT cannot be locked
-
Ownership recorded on-chain.
- In a typical staking pool, the owner deposits the token into the staking contract.
- With a locking mechanism, a project can restrict movement while the holder's address remains the recorded owner.
- Without one, depositing the NFT changes its on-chain owner to the pool. Applications that rely on that owner address may stop recognizing the depositor's rights.
-
Access to benefits.
- Some NFT projects let holders attend events or access exclusive content.
- BAYC, for example, has offered benefits such as invitations to member events.
- An application that checks only the current owner may no longer recognize the depositor once the pool holds the token.
Examples
- CryptoPunks. The original collection launched in 2017 and has no built-in locking mechanism. It predates the ERC-721 standard. Its ownership changes through transactions on Ethereum.
- Bored Ape Yacht Club (BAYC). The collection launched in 2021 without built-in locking. Holder benefits include access to certain community events.
The problem applies to any NFT without a locking mechanism, regardless of when it was released.
For background on ERC-721, see the following article.
Background
An ERC-721 token has a distinct identity and an owner recorded on-chain. When the token is deposited into a pool, for example to earn rewards, the staking contract or the pool's operator may become the owner of record. Applications can then see a different owner from the person who staked the NFT.
The problem
For an older contract that cannot add support for locking or new access rights, it may be difficult for applications to identify the depositor during staking. The owner also gives up direct control of the token while the pool holds it.
The proposed solution
A staking contract can expose a separate interface for recognizing who holds rights over the staked NFT.
- Visibility. Applications can identify the depositor or another designated rights holder.
- Staking access. A pool can hold the NFT while participating applications continue to recognize the designated holder's entitlements.
- A common interface. Integrators can use the same method for both newer and older collections, provided the pool implements it.
Implementation considerations
- Extending the staking contract. Add logic that records who retains rights while the pool holds the token.
- Compatibility. Make the interface easy to integrate with existing ERC-721 collections.
- User interfaces. Wallets and apps can show that the token is staked and indicate the recognized rights holder.
The proposal aims to make staking easier to understand by letting users retain access to supported benefits while the NFT is in the pool.
Motivation
Early collections such as CryptoPunks, BAYC, and EtherRocks do not have a native locking mechanism. With a custody-based staking pool, the pool becomes the current holder of record. That can make it harder for the depositor to qualify for benefits. A BAYC holder might lose access to a member event. A CryptoPunks holder might miss an airdrop or exhibition that is restricted to verified owners. For EtherRocks and similar collections, losing visible ownership can also affect social recognition in the community.
Early collections such as EtherRocks can convey identity or status in addition to digital scarcity. Ownership might give someone access to limited events or recognition in an online community.
If an NFT is held by a staking pool, applications that check the current on-chain owner may no longer associate those benefits with the depositor. Collectors can temporarily lose access to benefits that matter to them beyond the token's investment or collectible value. A rights-holder interface gives applications a way to recognize that relationship while staking continues.
The interface addresses the problem in several ways.
Recording the original owner
The pool records the original owner or rights holder so services that consult the interface can keep recognizing benefits while the token is staked elsewhere.
Keeping existing token behavior
The extension lets older NFTs work with staking pools without changing their core functionality. Off-chain applications and contracts can continue to apply their own policies to the disclosed rights holder.
Compatibility and extensibility
The interface complements ERC-721 and is useful for older collections without native locking support.
Implementation details
The pool's contract must keep the rights-holder record aligned with deposits and withdrawals. The logic that updates those records also needs to preserve the appropriate rights and access while the pool holds the token.
If applications support this interface, collectors can stake older NFTs and still qualify for supported benefits or maintain visible links to the collection. The same approach can be applied to future NFT integrations.
Specification
The interface is defined as follows.
interface IERC7531 {
/**
* @dev Emitted when the token's technical owner (the contract holding the token) is different
* from its actual owner (the entity with rights over the token). This scenario is common
* in staking, where a staking contract is the technical owner. The event MUST be emitted
* in the same or any subsequent block as the Transfer event for the token.
* A later Transfer event involving the same token supersedes this RightsHolderChange event.
* To ensure authenticity, entities listening to this event MUST verify that the contract emitting
* the event matches the token's current owner as per the related Transfer event.
*
* @param tokenAddress The address of the token contract.
* @param tokenId The ID of the token.
* @param holder The address of the actual rights holder of the token.
*/
event RightsHolderChange(address indexed tokenAddress, uint256 indexed tokenId, address indexed holder);
/**
* @dev Returns the address of the entity with rights over the token, distinct from the current owner.
* The function MUST revert if the token does not exist or is not currently held.
*
* @param tokenAddress The address of the ERC-721 contract.
* @param tokenId The ID of the token.
* @return The address of the entity with rights over the token.
*/
function rightsHolderOf(
address tokenAddress,
uint256 tokenId
) external view returns (address);
}RightsHolderChange
event RightsHolderChange(address indexed tokenAddress, uint256 indexed tokenId, address indexed holder);Overview
This event identifies the rights holder when the address holding the token, such as a staking contract, differs from the address that retains rights over it.
Details
The event must be emitted in the same block as the relevant Transfer event or in a later block. A subsequent Transfer for the same token supersedes the earlier RightsHolderChange. Consumers must verify that the event emitter is the current token owner, as recorded by the associated transfer.
Arguments
tokenAddress- The NFT contract's address.
tokenId- The token ID.
holder- The address with rights over the token.
rightsHolderOf
function rightsHolderOf(address tokenAddress, uint256 tokenId) external view returns (address);Overview
Returns the address of the entity that has rights over the token, separate from the current owner of record.
Details
The method must revert if the token does not exist or is not currently held by the queried contract. It identifies the rights holder when that address differs from the current on-chain owner.
Arguments
tokenAddress- The ERC-721 contract's address.
tokenId- The token ID.
Return value
- An address identifying the entity with rights over the token.
The ERC-721 Transfer event records that the staking contract now holds the token. The RightsHolderChange event supplements that record by identifying the entity that should retain rights over it.
When to emit the event
The pool can emit RightsHolderChange in the same block as the relevant Transfer or in any subsequent block. An existing pool can adopt the interface by emitting events for previously staked tokens. It can also let users request recognition of their rights, with the event emitted during that process.
When an earlier RightsHolderChange expires
A later Transfer for the same token invalidates the previous RightsHolderChange. Consumers can treat the latest transfer as the starting point for determining ownership and rights. An unstake therefore does not require a separate rights-holder event just to clear the old record.
This lets applications follow ownership and rights through staking and unstaking, while preserving an NFT's practical utility where the application recognizes the interface.
Rationale
Handling NFTs that cannot be locked
The standard ERC-721 ownerOf method returns the address that currently owns the token. That is the staking pool while it holds a deposit. Even a temporary change can disrupt benefits tied to the token, such as governance participation, access to exclusive content, or features offered by another app.
The rightsHolderOf method
rightsHolderOf lets the pool report the original holder or another designated beneficiary. Applications can consult that record to recognize benefits while the pool holds the token.
Separating ownership from entitlements
Applications often use NFT ownership as a proxy for eligibility. The new method separates the pool's role as the current owner of record from the address eligible for benefits such as governance access or member content.
Preserving utility across applications
Projects that use the interface can continue recognizing benefits associated with ERC-721 tokens during a stake.
Supporting governance and participation
Governance and other forms of participation often depend on who holds an NFT. Recognizing the designated rights holder lets applications continue granting that access to the intended participant.
For a user whose NFT cannot be locked, this makes it possible to participate in staking without giving up the features that supporting applications associate with the token. It allows more uses for the NFT while it is held by a pool.
Technical advantages
The distinction between custody and rights lets users deploy NFTs in staking pools and other contracts while continuing to access benefits in applications that recognize the interface.
Keeping access to entitlements
An application can continue recognizing governance access, exclusive content, and community rights for the user, even when their token is held by a different contract.
Increasing flexibility
Users can participate in staking or other DeFi activities without necessarily giving up the benefits the NFT provides in participating applications.
Compatibility and interoperability
The proposal adds a separate method and leaves ownerOf unchanged. Existing ERC-721 contracts can therefore work with integrations that support the new interface, while their current integrations can continue using ERC-721.
Event-driven updates
RightsHolderChange gives indexers and other services a way to update their rights-holder records when a change is published. This helps services that need current information to grant benefits.
These properties give owners more ways to use NFT positions and give developers a standard integration point.
Potential misuse
Separate records for ownership and entitlements add complexity. A contract could assign rights incorrectly, and consumers need to be able to tell which rights-holder claims they should recognize. The Japanese article expands on these risks in the guidance below.
Security considerations
- Identify the rights holder correctly. Keep the record accurate and update it when ownership or entitlements change.
- Prevent unauthorized changes. Check permissions before assigning, transferring, or changing a recorded right.
- Audit and test the implementation. Review code and test changes to the record before putting the pool into use.
Recommended practices
- Make rights assignments visible. Publish enough information for interested parties to follow assignments and changes.
- Control who can change the record. Restrict state-changing methods to appropriate callers.
- Seek feedback from the parties using the interface. Include feedback from the community and integrators when designing the pool and the way it reports rights.
These practices help a pool avoid assignment errors and help consumers decide which claims to accept.
Compatibility
ERC-7531 is backwards-compatible with existing ERC-721 contracts. It extends the staking contract, so an upgradeable pool can choose to adopt it without changes to the NFT contract.
Why backwards compatibility matters
Keeping established behavior makes it possible to add recognition of staked rights without disrupting existing integrations. This is particularly useful for a widely adopted interface such as ERC-721.
Integrating with an ERC-721 contract
The extension adds a method such as rightsHolderOf in the pool. It does not alter the NFT contract's ownerOf method. The new method addresses rights over an NFT during staking.
Integrating with staking pools
An upgradeable pool can add support for the interface. Once it does, compatible applications can continue granting selected benefits to a token's rights holder while the pool holds that token.
This lets existing collections and pools build on their current deployments while offering a clearer experience to users of the new interface.
Security considerations
Any contract can emit an event with the RightsHolderChange signature. A consumer must verify that the emitter is the NFT's actual current holder, such as the staking pool, before treating the event as authoritative.
Incorrect rights-holder records
A pool that implements the interface incorrectly may expose the wrong rights holder. That risk already exists in custody-based staking arrangements. The interface lets applications distinguish current on-chain ownership from the rights the pool reports, but the pool still holds the deposited token.
Due diligence
When deciding whether to trust a provider's reported rights holder, applications and NFT holders should evaluate the provider and investigate warning signs of mismanagement or fraud. The interface discloses rights-holder information and does not grant the reported holder control of the token.
Developers, pool operators, and users each have a part in keeping those records accurate. Consumers should account for both forged events and incorrect records from an authentic pool.
Event authenticity
- Risk. Any contract can emit
RightsHolderChange, including a contract that does not hold the NFT. - Verification. Wallets, services, and other consumers should confirm that the emitter was the owner of record at the relevant point in the transfer history.
Limiting the impact of inaccurate records
- Risk. Incorrect implementation can result in incorrect rights-holder records, as with other custodial staking products.
- Mitigation. Separate the pool's on-chain custody from the specific entitlements it reports. The Japanese article discusses continued legal ownership as a possible staking arrangement. That depends on the arrangement and is outside what this technical interface establishes.
Evaluating staking providers
- What to check. Review the provider's history, reliability, and standing in the community. Investigate signs of abuse or poor operation.
- What the interface provides. It provides a way to look up a rights holder. It does not confer withdrawal rights or make an untrusted pool safe.
Consumers can use these distinctions to maintain accurate records and decide when reported rights should affect access to an NFT benefit.
Citation
Francesco Sullo (@sullof), “ERC-7531: Staked ERC-721 Ownership Recognition [DRAFT],” Ethereum Improvement Proposals, no. 7531, October 2023. Available at https://eips.ethereum.org/EIPS/eip-7531.
Conclusion
ERC-7531 gives staking pools a way to report who retains rights over an ERC-721 NFT that the pool holds. Applications can use that information to keep recognizing supported entitlements while staking continues.
Questions are welcome by direct message.
I also publish elsewhere.


