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-7710 proposes a way to delegate a smart contract's execution authority to other contracts or EOAs securely and flexibly.

This article explains the proposal, with additional context and examples.

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

Overview

ERC-7710 is a standard for delegating the permissions and execution capabilities of a smart contract to other smart contracts or externally owned accounts (EOAs).

An EOA is a user account controlled through a private key. Unlike a conventional contract account, an EOA historically had no executable code of its own and could sign and submit transactions. EIP-7702 also allows EOAs to delegate code.

In ERC-7710, the smart contract granting authority is known as the delegator. Rather than giving another party unrestricted access to act on its behalf, the delegator explicitly authorizes a dedicated contract called the DelegationManager.

The DelegationManager can call the delegator to carry out specific actions, but only within the authority granted by the delegator. This makes it possible to control at the contract level who can execute an action, what they can execute, and the scope of that authority.

A delegator can grant another party authority over some or all of the actions that the delegator itself is authorized to perform. This enables more flexible and extensible designs for cooperation and separation of responsibilities between smart contracts.

ERC-7710 specifies only the minimum interface required for delegation. It avoids imposing unnecessary implementation requirements, leaving applications free to choose their own designs.

The standard is also compatible with ERC-4337 (account abstraction). However, ERC-4337 is not a prerequisite for implementing ERC-7710. The interface can also be used in conventional EOA-based environments.

Motivation

Limitations of current smart contract interoperability

One of Ethereum's strengths is smart contract composability: dApps and contracts can call each other and combine their functionality to build new services.

In practice, however, sharing permissions or execution capabilities introduces several problems.

Common approaches require developers to:

  • Hardcode permissions for specific addresses
  • Implement bespoke intermediary contracts

Although these approaches appear straightforward, they have several drawbacks:

  • Implementations can become complex.
  • Development and testing take time.
  • Deployment and execution gas costs can increase.
  • Backward compatibility with existing contracts may be limited.

Once implemented, such mechanisms can be difficult to change in response to new requirements. Fine-grained restrictions, such as authorizing just one action or granting authority only temporarily, are also harder to express.

Repeated signatures and user experience

Another major problem is the number of signatures required.

Many dApps ask users to sign each individual interaction. This creates particular difficulties when actions are frequent or need to be automated:

  • Users repeatedly have to interact with their wallets.
  • A poor user experience can discourage use of the application.
  • Automated and background operations are difficult to implement.

This reflects the limitations of workflows designed around direct human interaction.

The solution proposed by ERC-7710

ERC-7710 aims to address these problems by supporting long-lived delegations authorized with a single signature.

A user or contract can use a single authorization to specify which actions may be delegated, within what limits, and to whom. The exact signature and policy mechanisms depend on the implementation.

Use case Description
Persistent dApp sessions Permit actions under defined conditions without requiring a signature every time.
Permissions for AI agents Authorize automated execution within specific limits.
Shareable invitation links Issue a link that allows only particular actions.
Third-party execution Delegate execution within clearly defined policy constraints.

The key is to grant authority constrained by policy, rather than unrestricted authority. This can substantially reduce user interactions while maintaining the intended security boundaries.

Benefits of standardization

By standardizing delegation, ERC-7710 aims to improve development efficiency across Ethereum.

A shared framework can offer several benefits compared with bespoke implementations:

  • Reduced implementation complexity.
  • Potentially lower gas costs.
  • Greater flexibility in contract design.
  • Easier interoperability between dApps.

Individual dApps can concentrate on their core functionality while benefiting from interoperability across the Ethereum ecosystem.

ERC-7710 provides a foundation for moving contract authorization away from ad hoc implementations toward reusable delegation mechanisms.

Specification

Terminology

ERC-7710 defines the roles involved in delegation.

Delegator

A delegator is a smart contract capable of creating a delegation. It is the holder of the authority that permits another party to perform an action the contract could otherwise perform itself.

Delegation Manager

A delegation manager is a smart contract that validates delegation authority and calls the delegator to execute an action.

It must implement the ERC7710Manager interface.

Its main responsibilities are to:

  • Verify that the delegation is valid and remains effective.
  • Call the delegator's privileged function if the delegation is valid.

There can be multiple delegation managers with different implementations for different use cases. A contract account may also serve as its own delegation manager.

Delegation

A delegation is the authority to perform a specific action. It conveys who can act, what action is permitted, and the conditions that apply.

Delegate

A delegate is a party authorized to redeem a delegation. It can be a smart contract, a smart contract account, or an EOA.

Redeemer

A redeemer is a delegate that is actively exercising a delegation. The term distinguishes the party that holds authority from the party currently using it.

Obtaining delegations

ERC-7710 does not specify how a delegation is obtained.

Its scope is limited to two aspects:

  • The interface for redeeming a delegation.
  • Validation of delegation authority.

The mechanism for granting a delegation can vary substantially by use case. For example, an implementation may use ERC-7715 or a custom protocol.

This separation of concerns offers two advantages:

  • Applications are free to choose how delegations are created.
  • Consumers use a consistent interface for redemption.

Overall flow

Redeeming a delegation

A delegate redeems a delegation by calling the delegation manager's redeemDelegations function.

The caller supplies:

  • The action to be performed.
  • Proof of authority to perform that action (the delegation).

The delegation manager validates the supplied information and, if valid, calls the delegator's privileged function. The action is executed under the delegator's authority.

Execution flow diagram

The following diagram shows what happens when redeemDelegations is called.

sequenceDiagram
    participant Delegate
    participant DelegationManager
    participant Delegator

    Delegate->>DelegationManager: redeemDelegations(...)
    DelegationManager->>DelegationManager: 権限を検証
    DelegationManager->>Delegator: 特権関数を呼び出す
    Delegator-->>DelegationManager: 実行結果
    DelegationManager-->>Delegate: 完了

Interface specification

ERC7710Manager.sol
pragma solidity 0.8.23;

/**
 * @title ERC7710Manager
 * @notice Interface for Delegation Manager that exposes the redeemDelegations function.
 */
interface ERC7710Manager {
    /**
     * @notice This method validates the provided permission contexts and executes the execution if the caller has authority to do so.
     * @dev the structure of the _permissionContexts bytes[] is determined by the specific Delegation Manager implementation
     * @param _permissionContexts the data used to validate the authority given to execute the corresponding execution.
     * @param _action the action to be executed
     * @param _modes the array of modes to execute the related executioncallData
     * @param _executionCallDatas the array of encoded executions to be executed
     */
  function redeemDelegations(
    bytes[] calldata _permissionContexts,
    bytes32[] calldata _modes,
    bytes[] calldata _executionCallData
  ) external;
}

A delegation manager must implement redeemDelegations. This function is responsible for both validating delegations and triggering execution.

The role of redeemDelegations

redeemDelegations:

  • Validates the supplied permission data.
  • Executes the corresponding action if the permission is valid.

Parameters

permissionContexts

_permissionContexts contains data proving that the requested actions are authorized. Each delegation manager implementation can define the structure of this data.

modes and executionCallDatas

_modes and _executionCallDatas follow the execution format defined by ERC-7579.

  • mode describes how an action is executed, for example:
    • Single execution.
    • Batch execution.
  • executionCallData describes what is executed, typically including:
    • The target address.
    • The amount of ETH to send.
    • Function call data.
Array correspondence and constraints

Elements at the same index in the three arrays describe a single operation.

Element Contents
permissionContexts[i] Permission context
modes[i] Execution mode
executionCallDatas[i] Execution data

The function must revert if the arrays have different lengths. When multiple redemptions are batched, the implementation must enforce atomicity of the batch.

Permission verification

ERC-7710 deliberately does not define a dedicated function for checking permissions in advance.

Instead, dApps should verify permissions as follows:

  1. Simulate redeemDelegations with the intended parameters.
  2. Use the simulation result to determine whether the delegation can be redeemed.
  3. If the simulation fails, request new or updated permissions from the user.

This approach validates the entire execution context, including the following aspects, rather than relying solely on the delegation manager's claims:

  • Execution conditions.
  • The requested calls.
  • State changes.

Rationale

ERC-7710 is designed to standardize delegation on Ethereum so that it can be handled securely and efficiently. As dApps and smart accounts become more widespread, there is growing demand for shared permissions and third-party execution. Inconsistent implementations can create security and compatibility problems.

Flexibility and extensibility

The interface defined by ERC-7710 is intentionally minimal, while supporting a broad range of capabilities. It standardizes the redemption mechanism without imposing a heavy implementation burden on every product. This balances the need for flexible delegation with the goal of widespread adoption.

Interoperability

ERC-7710 is designed to work alongside existing standards, including ERC-1271 for contract signature verification and ERC-4337 for account abstraction.

For more on ERC-1271, see the following article.

[ERC1271] How Contracts Verify Signatures

For more on ERC-4337, see the following articles.

[ERC4337] Account Abstraction Without Protocol Changes

ERC-1271 defines how a contract can validate signatures. A contract, which cannot sign with a private key in the same way as an EOA, can therefore recognize signature-based authorization. ERC-4337 introduces user operations (UserOperations) that support smart accounts without relying on conventional EOA transaction authorization.

By remaining compatible with these standards, ERC-7710 can leverage existing security practices and infrastructure.

Usability

ERC-7710 makes it easier to delegate only specific actions to another party. A dApp can therefore carry out multiple actions on a user's behalf, reducing the frequency with which users must interact with their wallets and provide signatures. This directly addresses user experience friction.

Overall, ERC-7710 is a step toward a more flexible and interconnected Ethereum ecosystem, in which contracts can cooperate and permission models can be adapted to user requirements.

Execution interface

Previous specification

An earlier version of the proposal defined Action as a simple (target, value, data) tuple. The delegator would implement the following dedicated function, which the delegation manager would call:

  • executeDelegatedAction(Action _action)

Here, target is the destination address, value is the amount of ETH to transfer, and data is the function calldata.

Limitations of the earlier approach

This approach had clear drawbacks.

Problem Practical consequence
Limited compatibility with existing smart accounts Accounts already in use would be incompatible unless they implemented the dedicated function.
Execution limited to a single call Action could encode only one call, preventing more complex execution such as batching, delegatecall, and CREATE2.

delegatecall executes another contract's code in the storage context of the calling contract. It is commonly used in proxies and modular architectures. CREATE2 is a contract creation opcode that allows the deployment address to be calculated in advance, making it useful when predictable addresses are required.

Solution 1: Do not require a specific delegator interface

To address compatibility, ERC-7710 no longer requires the delegator to implement a specific execution interface.

Instead, the design relies on the following assumptions:

  • The delegation manager knows how to call the delegator correctly.
  • The delegator issues _permissionContexts only for a delegation manager that knows how to call it.

In other words, the delegator establishes trust in a manager's ability to invoke it correctly when creating the permission contexts.

Solution 2: Adopt the ERC-7579 execution interface

To support richer execution behavior, ERC-7710 adopts the execution interface from ERC-7579.

For more on ERC-7579, see the following article.

[ERC7579] Minimal Modular Smart Accounts

ERC-7579 needed a standardized way to represent different execution patterns for modular smart accounts. Its interface supports multiple types of execution, including single calls and batches. ERC-7710 addresses a similar problem by reusing that solution.

Reference implementations

Minimal reference implementation: Example7710Manager

Example7710Manager is a minimal implementation focused on delegation redemption. It illustrates the basic structure of receiving a redeemDelegations call, validating the delegation, and triggering execution.

Complete reference implementation: MetaMask Delegation Framework

The MetaMask Delegation Framework is cited as a more practical and robust example of a delegation manager. It satisfies the ERC-7710 interface requirements and includes features often needed in production.

Feature Purpose
EIP-712 signature validation Sign structured data that describes the delegation, and validate the resulting signature.
EOA and contract signatures (ERC-1271) Support authorization from both EOAs and contracts.
Caveat enforcement Apply fine-grained conditions and constraints to a delegation.
Batch processing Process multiple delegations together.
Delegation revocation Invalidate previously granted delegations.

A Caveat is a condition attached to a delegation. For example, a caveat could restrict execution to a particular dApp or function, impose a limit on the number of executions, or cap the permitted amount.

MetaMask's framework is one example of meeting the requirements of ERC-7710 while adding features needed by real products. The standard itself does not mandate these features, but the implementation offers a useful reference for building a robust system.

Security

ERC-7710 allows customizable authorization conditions. Implementations can define the contents of _permissionContexts, but that flexibility can also introduce vulnerabilities if the design is flawed.

The proposal identifies two main risks:

  • Misinterpretation of authorization conditions.
  • Unauthorized execution due to incorrect implementation of the interface.

For example, flaws in the parsing or validation of a permission context may allow actions that were never authorized. An incorrect call from the delegation manager to the delegator could also invoke an unintended function or breach an authorization boundary.

Applications implementing the interface should undergo thorough security audits. Particular attention should be paid to the structure of permissionContext, validation boundaries, and the handling of expiry and revocation.

Permission verification

A dApp must not assume that receiving a delegation in the past guarantees future execution rights. Delegations can be revoked, expire, or become invalid because of state changes.

Reliable operation requires the following measures.

Operational requirements
Requirement Purpose
Always simulate before submitting onchain Check whether the delegation can be redeemed at the time of simulation.
Handle simulation failures appropriately Recover gracefully, for example by asking the user for new permissions.
Consider retries Provide recovery paths, such as progressively requesting additional permissions when necessary.
Allow for invalidation between simulation and execution Account for front-running, expiry, revocation, and other state changes.

Simulation means trying the same call through a mechanism such as eth_call before submitting the actual transaction. It evaluates the entire execution context at the simulated state, including the delegation, delegator state, and manager validation logic. A successful simulation is not a guarantee of future execution.

Relationship between simulation and execution

The following diagram summarizes the relationship between simulation and onchain execution.

flowchart TD
  A[dAppが委譲を受け取る] --> B[redeemDelegations をシミュレーション]
  B -->|成功| C[オンチェーンで redeemDelegations を送信]
  B -->|失敗| D[新しい/更新された権限をユーザーに要求]
  C --> E{実行時にまだ有効か}
  E -->|有効| F[デリゲーターの権限で実行成功]
  E -->|無効| G[リバート/失敗を処理し再要求やリトライへ]

References

Ryan McPeck (@McOso), Dan Finlay (@DanFinlay), Rob Dawson (@rojotek), Derek Chiang (@derekchiang), "ERC-7710: Smart Contract Delegation [DRAFT]," Ethereum Improvement Proposals, no. 7710, May 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7710.

Conclusion

This article covered ERC-7710, a proposal for securely and flexibly delegating a smart contract's execution authority to other contracts or EOAs. I hope it helped clarify how the mechanism works.

If you have questions, feel free to reach out by direct message on Twitter.

Twitter @cardene777

I also publish content on other platforms.