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.

ERC-6464 proposes a mechanism for granting approval over an individual ERC-721 NFT to multiple addresses.

This article translates, summarizes, and expands on the following proposal.

More EIP explainers:

Overview

ERC-721 does not provide a standard mechanism for approving multiple operators for a single NFT.

Applications have consequently relied on setApprovalForAll() when they need persistent authorization across multiple operators. However, this grants an operator broad transfer authority over all NFTs owned by the account within the same token contract. Excessive permissions can increase the impact of phishing attacks and compromised operators.

ERC-6464 proposes allowing multiple operators to be approved independently for individual NFTs. It also provides mechanisms for revoking explicit approvals in bulk.

The extension supports the principle of least privilege by allowing approvals to be restricted to particular tokens.

Motivation

ERC-721 defines two mechanisms for granting another address authority over NFTs:

  • approve(address,uint256)
    • Approves one address for a particular token ID. Setting another approved address replaces the previous token-specific approval.
  • setApprovalForAll(address,bool)
    • Grants or revokes an operator's authorization over all NFTs owned by the caller within that ERC-721 contract.

With multiple NFT marketplaces, owners may want to authorize several marketplaces to transfer the same particular NFT without granting access to every other NFT in the collection.

Standard ERC-721 approvals cannot express this combination directly. A collection-wide approval is broader than the intended authority and conflicts with the principle of least privilege.

ERC-6464 addresses this limitation by introducing multiple independent approvals per token.

Goals

The proposal aims to:

  • Simplify marketplace adoption without requiring major changes to existing workflows.
  • Enable off-chain services and indexers to track approvals.
  • Provide convenient bulk revocation rather than requiring every explicit approval to be revoked individually.

Non-goals

The proposal does not attempt to:

  • Introduce unrelated NFT security mechanisms. Its focus is more granular operator authorization.
  • Standardize the equivalent functionality for ERC-1155. Although a similar approach could be applied to that standard, ERC-6464 targets ERC-721.

Specification

ERC-6464 defines the IERC6464 interface for approving multiple operators for a particular token ID. It is designed as an ERC-721-compatible extension, with ERC-165 interface detection also considered.

The historical interface excerpt reproduced below identifies its ERC-165 identifier as TBD. Implementers should consult the applicable specification and calculate or verify the interface identifier rather than assuming that the placeholder is a usable identifier.

Off-chain approval indexers should account for the coexistence of different approval mechanisms:

  • An operator remains approved through the ordinary ERC-721 approval mechanisms if the relevant Approval or ApprovalForAll authorization has not been revoked or cleared.
  • An ExplicitApprovalFor event with a false value does not necessarily mean that the operator has lost every form of authorization.

A token transfer must also be considered when tracking token-specific approvals, because the applicable approvals are cleared on a change of ownership.

js
/**
 * @notice Extends ERC-721 to include per-token approval for multiple operators.
 * @dev Off-chain indexers of approvals SHOULD assume that an operator is approved if either of `ERC721.Approval(…)` or
 * `ERC721.ApprovalForAll(…, true)` events are witnessed without the corresponding revocation(s), even if an
 * `ExplicitApprovalFor(…, false)` is emitted.
 * @dev TODO: the ERC-165 identifier for this interface is TBD.
 */
interface IERC6464 is ERC721 {
    /**
     * @notice Emitted when approval is explicitly granted or revoked for a token.
     */
    event ExplicitApprovalFor(
        address indexed operator,
        uint256 indexed tokenId,
        bool approved
    );

    /**
     * @notice Emitted when all explicit approvals, as granted by either `setExplicitApprovalFor()` function, are
     * revoked for all tokens.
     * @dev MUST be emitted upon calls to `revokeAllExplicitApprovals()`.
     */
    event AllExplicitApprovalsRevoked(address indexed owner);

    /**
     * @notice Emitted when all explicit approvals, as granted by either `setExplicitApprovalFor()` function, are
     * revoked for the specific token.
     * @param owner MUST be `ownerOf(tokenId)` as per ERC721; in the case of revocation due to transfer, this MUST be
     * the `from` address expected to be emitted in the respective `ERC721.Transfer()` event.
     */
    event AllExplicitApprovalsRevoked(
        address indexed owner,
        uint256 indexed tokenId
    );

    /**
     * @notice Approves the operator to manage the asset on behalf of its owner.
     * @dev Throws if `msg.sender` is not the current NFT owner, or an authorised operator of the current owner.
     * @dev Approvals set via this method MUST be revoked upon transfer of the token to a new owner; equivalent to
     * calling `revokeAllExplicitApprovals(tokenId)`, including associated events.
     * @dev MUST emit `ApprovalFor(operator, tokenId, approved)`.
     * @dev MUST NOT have an effect on any standard ERC721 approval setters / getters.
     */
    function setExplicitApproval(
        address operator,
        uint256 tokenId,
        bool approved
    ) external;

    /**
     * @notice Approves the operator to manage the token(s) on behalf of their owner.
     * @dev MUST be equivalent to calling `setExplicitApprovalFor(operator, tokenId, approved)` for each `tokenId` in
     * the array.
     */
    function setExplicitApproval(
        address operator,
        uint256[] memory tokenIds,
        bool approved
    ) external;

    /**
     * @notice Revokes all explicit approvals granted by `msg.sender`.
     * @dev MUST emit `AllExplicitApprovalsRevoked(msg.sender)`.
     */
    function revokeAllExplicitApprovals() external;

    /**
     * @notice Revokes all excplicit approvals granted for the specified token.
     * @dev Throws if `msg.sender` is not the current NFT owner, or an authorised operator of the current owner.
     * @dev MUST emit `AllExplicitApprovalsRevoked(msg.sender, tokenId)`.
     */
    function revokeAllExplicitApprovals(uint256 tokenId) external;

    /**
     * @notice Query whether an address is an approved operator for a token.
     */
    function isExplicitlyApprovedFor(address operator, uint256 tokenId)
        external
        view
        returns (bool);
}

interface IERC6464AnyApproval is ERC721 {
    /**
     * @notice Returns true if any of the following criteria are met:
     * 1. `isExplicitlyApprovedFor(operator, tokenId) == true`; OR
     * 2. `isApprovedForAll(ownerOf(tokenId), operator) == true`; OR
     * 3. `getApproved(tokenId) == operator`.
     * @dev The criteria MUST be extended if other mechanism(s) for approving operators are introduced. The criteria
     * MUST include all approval approaches.
     */
    function isApprovedFor(address operator, uint256 tokenId)
        external
        view
        returns (bool);
}

The interface excerpt is preserved from the original article. Some NatSpec comments refer to setExplicitApprovalFor or ApprovalFor, whereas the declarations use setExplicitApproval and ExplicitApprovalFor. Integrators should resolve such naming inconsistencies against the applicable specification and actual contract ABI.

IERC6464 interface

Events

  • ExplicitApprovalFor

    Emitted when explicit approval for a particular operator and token is granted or revoked.

  • AllExplicitApprovalsRevoked(address)

    Emitted when the owner invokes the bulk revocation function to revoke explicit approvals associated with all of the owner's tokens.

  • AllExplicitApprovalsRevoked(address,uint256)

    Records revocation of all explicit approvals for an individual NFT. The event identifies the owner of the token; when revocation occurs because of a transfer, the owner field identifies the sender of that transfer.

Functions

  • setExplicitApproval(address operator, uint256 tokenId, bool approved)

    Grants or revokes the operator's explicit approval for the specified token. The caller must be its owner or an appropriately authorized operator.

    Explicit approvals must be revoked when the NFT is transferred to a new owner. The extension does not modify the ordinary ERC-721 approval setters or getters.

  • setExplicitApproval(address operator, uint256[] memory tokenIds, bool approved)

    Applies the equivalent explicit approval operation to every token ID in the supplied array.

  • revokeAllExplicitApprovals()

    Revokes explicit approvals associated with all NFTs owned by the caller.

  • revokeAllExplicitApprovals(uint256 tokenId)

    Revokes all explicit approvals for the specified token. The caller must satisfy the authorization requirements for that token.

  • isExplicitlyApprovedFor(address operator, uint256 tokenId)

    Returns whether the operator has explicit approval for that token.

IERC6464AnyApproval interface

This interface provides a common way to determine whether an operator has authorization through any supported approval mechanism.

Functions

  • isApprovedFor(address operator, uint256 tokenId)

    Returns true when at least one of the following conditions is satisfied:

    • isExplicitlyApprovedFor(operator, tokenId) == true: the operator has explicit approval under ERC-6464.
    • isApprovedForAll(ownerOf(tokenId), operator) == true: the operator has collection-wide approval from the current owner under ERC-721.
    • getApproved(tokenId) == operator: the operator has the ordinary ERC-721 token-specific approval.

    If additional operator approval mechanisms are supported, the combined query must account for them as required by the interface.

    This function checks approval mechanisms. Callers should separately account for the token owner's inherent authority where necessary.

Rationale

What is an explicit approval?

ERC-6464 calls its additional approval mechanism explicit approval to distinguish it from ERC-721's existing approve() and setApprovalForAll() mechanisms.

All three mechanisms share the general purpose of authorizing an operator to act on behalf of an NFT owner, but they differ in their scope and management.

Why separate IERC6464AnyApproval?

The combined approval query is defined in a separate interface to support modularity.

  • IERC6464 can focus on implementing and managing explicit approvals.
  • IERC6464AnyApproval can provide a unified query across several approval mechanisms, including mechanisms introduced by future proposals.

Including the owner in AllExplicitApprovalsRevoked

The token-specific AllExplicitApprovalsRevoked event includes the owner's address so that off-chain indexers can identify both the token and the owner whose explicit approvals have been cleared.

This information is particularly relevant when approvals are revoked during a transfer of ownership.

Importance of IERC6464AnyApproval

As NFT marketplaces and approval mechanisms become more varied, marketplaces may need to evaluate multiple authorization sources before determining whether they can transfer an NFT.

A combined approval query allows a marketplace to check supported approval mechanisms through a single function call.

This can reduce duplicated approval-checking logic and accommodate additional mechanisms, provided implementations update the combined query accordingly.

Compatibility

Preserving ERC-721 compatibility

ERC-6464 is designed to extend ERC-721 with minimal disruption. It retains the existing ERC-721 approval mechanisms and adds independent explicit approvals.

Existing NFT platforms

Wallets and marketplaces can continue using ordinary ERC-721 operations with compatible contracts implementing ERC-6464.

However, applications that only query getApproved or isApprovedForAll may not recognize explicit approvals. Full support for the new authorization mechanism requires compatible marketplace, wallet, and indexing logic.

Security

More granular approvals can reduce excessive permissions, but combining several approval mechanisms introduces additional considerations.

Revoking explicit approvals does not necessarily revoke ordinary ERC-721 token-specific or collection-wide approvals. Applications should make the scope of a revocation clear and evaluate all applicable approval sources.

Implementations must also enforce authorization when granting or revoking approvals, clear explicit approvals upon transfers to new owners, and ensure that transfer authorization checks recognize the intended approval mechanisms.

A token-specific approval still grants meaningful authority over the NFT. Users should verify the operator they authorize even when the approval is limited to one token.

The code excerpt is preserved from the original article and has not been independently compiled or audited as part of this translation.

Citation

Cristian Espinoza (@crisgarner), Simon Fremaux (@dievardump), David Huber (@cxkoda), and Arran Schlosberg (@aschlosberg), "ERC-6464: Multi-operator, per-token ERC-721 approvals. [DRAFT]," Ethereum Improvement Proposals, no. 6464, February 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-6464.

Conclusion

ERC-6464 proposes per-token approval for multiple operators, bulk revocation of explicit approvals, and a combined approval query. It enables finer-grained authorization without replacing the standard ERC-721 approval mechanisms.

Questions are welcome via Twitter @cardene777.

Other publications:

https://chaldene.net/