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-7765 proposes a way to exercise privileges and redemption rights attached to NFTs on a blockchain.

This article summarizes and explains the proposal below.

I also write about other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC-7765 defines a common interface for handling rights and benefits, called privileges, attached to NFTs that represent real-world assets (RWAs). A privilege is a right or benefit that someone holding the NFT can exercise in the real world.

Suppose a pair of sneakers is sold as an NFT. The holder can redeem the token for the physical pair. The NFT serves as proof of the right to receive the item and can use the same interface as other NFTs carrying real-world entitlements.

The holder signals the intent to exercise a privilege in a transaction, and the contract records the change in state. Fulfillment takes place off-chain through processes such as shipping, identity verification, or redemption.

Motivation

An NFT representing a real-world asset often carries a right to receive a product, use a service, or make an exchange. Projects have historically implemented these rights differently, making it hard to integrate them with wallets, marketplaces, and other services.

ERC-7765 envisages the following flow.

  1. A merchant sells a real-world product or service on-chain as an NFT.
  2. The holder calls the contract function that exercises a specific privilege.
  3. An off-chain system reacts to the on-chain action by shipping the item or providing the service.

This creates a direct correspondence between on-chain state and an off-chain step. For example, a holder declares their intent to redeem a shoe NFT on-chain. A warehouse and shipping provider can then work together to send the physical shoes. Interoperability depends on a shared way to identify a token's privileges and determine which action consumes each one.

Feature What the interface enables
Interoperability across services Wallets, marketplaces, and backends handle privileges through the same interface.
Consistent UI A generic interface can offer actions such as Redeem or Use.
Contract integration Other smart contracts can query privilege status and check whether a privilege has been exercised.

ERC-7765 connects a formal on-chain operation to the off-chain steps that fulfill the underlying right.

Specification

Relationship to ERC-721

ERC-7765 uses ERC-721 as its NFT foundation.

See the article below for an introduction to ERC-721.

[ERC-721] An introduction to ERC-721

Area Behavior
Ownership Transfer logic such as transferFrom and safeTransferFrom follows ERC-721.
Approvals approve and setApprovalForAll follow ERC-721.
Metadata name, symbol, and tokenURI come from the ERC-721 Metadata extension.

ERC-7765 adds an interface for exercising privileges on top of ERC-721.

The IERC7765 interface

IERC7765.sol
pragma solidity >=0.7.0 <0.9.0;

/// @title ERC-7765 Privileged Non-Fungible Tokens Tied To Real World Assets
/// @dev See https://eips.ethereum.org/EIPS/eip-7765
interface IERC7765 /* is IERC721, IERC165 */ {

    /// @notice This event emitted when a specific privilege of a token is successfully exercised.
    /// @param _operator  the address who exercised the privilege.
    /// @param _to  the address to benefit from the privilege.
    /// @param _tokenId  the NFT tokenID.
    /// @param _privilegeId  the ID of the privileges.
    event PrivilegeExercised(
        address indexed _operator,
        address indexed _to,
        uint256 indexed _tokenId,
        uint256 _privilegeId
    );

    /// @notice This function exercise a specific privilege of a token.
    /// @dev Throws if `_privilegeId` is not a valid privilegeId.
    /// @param _to  the address to benefit from the privilege.
    /// @param _tokenId  the NFT tokenID.
    /// @param _privilegeId  the ID of the privileges.
    /// @param _data  extra data passed in for extra message or future extension.
    function exercisePrivilege(
        address _to,
        uint256 _tokenId,
        uint256 _privilegeId,
        bytes calldata _data
    ) external;

    /// @notice This function is to check whether a specific privilege of a token can be exercised.
    /// @dev Throws if `_privilegeId` is not a valid privilegeId.
    /// @param _to  the address to benefit from the privilege.
    /// @param _tokenId  the NFT tokenID.
    /// @param _privilegeId  the ID of the privileges.
    function isExercisable(
        address _to,
        uint256 _tokenId,
        uint256 _privilegeId
    ) external view returns (bool _exercisable);

    /// @notice This function is to check whether a specific privilege of a token has been exercised.
    /// @dev Throws if `_privilegeId` is not a valid privilegeId.
    /// @param _to  the address to benefit from the privilege.
    /// @param _tokenId  the NFT tokenID.
    /// @param _privilegeId  the ID of the privileges.
    function isExercised(
        address _to,
        uint256 _tokenId,
        uint256 _privilegeId
    ) external view returns (bool _exercised);

    /// @notice This function is to list all privilegeIds of a token.
    /// @param _tokenId  the NFT tokenID.
    function getPrivilegeIds(
        uint256 _tokenId
    ) external view returns (uint256[] memory privilegeIds);

}

A compliant contract must implement this interface. It builds on ERC-721 and ERC-165, the standard for detecting supported interfaces.

See the article below for an introduction to ERC-165.

[ERC-165] How to check whether a contract supports an interface

Events

PrivilegeExercised
javascript
event PrivilegeExercised(
    address indexed _operator,
    address indexed _to,
    uint256 indexed _tokenId,
    uint256 _privilegeId
);

This event signals that a privilege attached to a specific NFT was successfully exercised on-chain. Logistics or identity verification systems can listen for the event and start the corresponding real-world process.

Parameters

Name Meaning
_operator The address that exercised the privilege.
_to The beneficiary, which can be a different address.
_tokenId The ID of the NFT.
_privilegeId The identifier of the privilege exercised.

Functions

exercisePrivilege
javascript
function exercisePrivilege(
    address _to,
    uint256 _tokenId,
    uint256 _privilegeId,
    bytes calldata _data
) external;

This function exercises a specific privilege associated with an NFT. The owner or an address authorized under the implementation's rules calls it. A successful call is expected to emit PrivilegeExercised, which off-chain systems can use as a trigger. An invalid _privilegeId causes the call to revert.

Arguments

Name Meaning
_to The address that benefits from the privilege.
_tokenId The ID of the NFT whose privilege is being exercised.
_privilegeId The ID of the privilege being exercised.
_data Optional data for process messages or future extensions.
isExercisable
javascript
function isExercisable(
    address _to,
    uint256 _tokenId,
    uint256 _privilegeId
) external view returns (bool _exercisable);

Checks whether a particular privilege can be exercised now. The implementation returns true or false based on its own conditions, such as whether the privilege has expired or been used, or whether identity verification is still pending.

Return value

Name Meaning
_exercisable true when the privilege can currently be exercised.
isExercised
javascript
function isExercised(
    address _to,
    uint256 _tokenId,
    uint256 _privilegeId
) external view returns (bool _exercised);

Checks whether a particular privilege has already been exercised. This can help prevent reuse of one-time redemption rights.

getPrivilegeIds
javascript
function getPrivilegeIds(
    uint256 _tokenId
) external view returns (uint256[] memory privilegeIds);

Returns all privilege IDs associated with a particular NFT. A UI or backend can use this list to show what the NFT entitles its holder to do.

Optional privilege metadata extension (IERC7765Metadata)

IERC7765Metadata.sol
pragma solidity >=0.7.0 <0.9.0;

/// @title ERC-7765 Privileged Non-Fungible Tokens Tied To Real World Assets, optional metadata extension
/// @dev See https://eips.ethereum.org/EIPS/eip-7765
interface IERC7765Metadata /* is IERC7765 */ {

    /// @notice A distinct Uniform Resource Identifier (URI) for a given privilegeId.
    /// @dev Throws if `_privilegeId` is not a valid privilegeId. URIs are defined in RFC
    ///  3986. The URI may point to a JSON file that conforms to the "ERC-7765
    ///  Metadata JSON Schema".
    function privilegeURI(uint256 _privilegeId) external view returns (string memory);

}

ERC-7765 provides an optional extension for assigning a metadata URI to each privilege. Contracts that implement it also implement the core IERC7765 interface.

Privilege metadata JSON schema

javascript
{
    "title": "Privilege Metadata",
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Identifies the specific privilege."
        },
        "description": {
            "type": "string",
            "description": "Describes the specific privilege."
        },
        "resource": {
            "type": "string",
            "description": "A URI pointing to a resource representing the specific privilege."
        }
    }
}

This JSON plays the same role as ERC-721's tokenURI metadata, but for an individual privilege.

Field Meaning
name The privilege's name, such as Physical Shoe Redemption.
description A description, such as the right to redeem a pair of physical sneakers.
resource A URI for terms of use, a redemption page, or another resource.

How the components fit together

flowchart LR
    NFT[ERC721 NFT]
    Privilege[Privilege ID]
    Metadata[Privilege Metadata JSON]
    Offchain[Real World Process]

    NFT --> Privilege
    Privilege -->|exercisePrivilege| Offchain
    Privilege --> Metadata
    Offchain -->|emit| Event[PrivilegeExercised]

The diagram shows the link between the event and the real-world workflow. The contract emits the event on-chain, and the off-chain process can react to it.

Additional notes

Why use an event to record exercise?

ERC-7765 defines PrivilegeExercised as the on-chain signal that an NFT holder or another permitted operator has acted to exercise a privilege.

A service monitoring the log can determine:

  • When the privilege was exercised.
  • Which NFT was involved and who owned it, by looking up ownership at the relevant point in the chain.
  • Which privilege was exercised.
  • Who the beneficiary was.

A warehouse can then ship a product, a service can verify a person's identity and grant access, or a provider can issue a license. The event can be used as a signal to start the relevant real-world process.

Why include the _to parameter?

exercisePrivilege, isExercisable, and isExercised all include _to, the beneficiary address. This allows the owner or operator and the beneficiary to be different parties.

Case Example
Gift An NFT owner arranges for a physical product to be shipped to a friend.
Company use A company assigns the benefit of a privilege attached to its NFT to an individual employee.
Delegated exercise A wallet service exercises a privilege on a user's behalf.

The standard leaves the authorization rules for operators and beneficiaries to the contract developer, who can design them for the particular use case.

Why include the _data field?

exercisePrivilege takes _data, a byte array for additional context or future extensions.

It can support:

  • Extra information such as order identifiers, shipping instructions, or KYC tokens.
  • Entirely on-chain fulfillment, such as token distributions or airdrops.
  • Backward-compatible extensions to the interface.

For example, if exercising a privilege pays stablecoins on-chain, the caller can use _data to pass processing conditions or a memo.

What isExercisable and isExercised report

These read-only functions let UIs and external services check the state of a privilege in advance.

Function What it reports
isExercisable Whether the privilege can be exercised now.
isExercised Whether the privilege has already been exercised.

A smart contract can check the conditions below so the frontend can display states such as Available to redeem or Redeemed.

  • The privilege has expired.
  • The privilege has already been used once.
  • Identity verification is still pending.

Compatibility

ERC-721 compatibility

ERC-7765 extends ERC-721 and preserves compatibility with the existing NFT ecosystem. It can also coexist with these extensions.

Extension What it provides
IERC721Metadata Metadata management through name, symbol, and tokenURI.
IERC721Enumerable Enumeration functions such as totalSupply and tokenOfOwnerByIndex.

Existing NFT marketplaces, wallets, indexers, and visualization tools can continue to handle ERC-7765 NFTs as ERC-721 tokens. ERC-7765 adds the privilege interface while retaining standard NFT behavior.

Design goals

The extension keeps ERC-721 compatible while introducing a way to exercise real-world rights.

  • Projects can integrate real-world assets with existing NFT infrastructure.
  • The privilege interface is shared, while each project defines its own business logic.
  • The approach can extend to DeFi, identity, logistics, ticketing, and licensing.

Reference implementation

https://eips.ethereum.org/assets/eip-7765/contracts/ERC7765Example.sol

Citation

frank (@frankmint2024) frank@mintchain.io, "ERC-7765: Privileged Non-Fungible Tokens Tied To RWA [DRAFT]," Ethereum Improvement Proposals, no. 7765, August 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7765.

Conclusion

ERC-7765 proposes a shared interface for exercising NFT privileges and redemption rights. A contract tracks the exercise on-chain, and the resulting event lets a service start the corresponding off-chain work.

If you have questions, feel free to send me a direct message.

Twitter @cardene777

Find my other writing and resources here.