EIP-7702 – Mangrove

GlossaryWallets and custody

EIP-7702

Definition: EIP-7702 is an Ethereum Improvement Proposal that lets an ordinary account run code stored at another address, by signing a delegation.

An ordinary Ethereum account, called an externally owned account (EOA), is controlled by a private key, a separate entry. EIP-7702 adds a transaction type that lets an EOA “set the code in their account”. The owner signs an authorization that names three things: a delegate address; a chain ID, which ties the authorization to one network or, if set to 0, to all of them; and the account’s nonce, a counter of its transactions. Once the authorization is processed, a pointer to the delegate is written to the account, and calls to the account “load and execute the code pointed to by the delegation” (EIP-7702). The proposal names three uses: batching several operations into one transaction; sponsorship, in which another account pays for the transaction; and sub-keys with narrower permissions, such as a daily spending limit. The delegation stays in place until the owner signs another authorization that replaces or revokes it (ethereum.org).

A delegation to harmful code can take over the account. The authors write that “The code specified by an authorization has unrestricted access to the account”. They add that wallets should not give applications a way to request authorizations, because “There is no safe way to provide this interface”. ethereum.org warns that “If a user unknowingly delegates their account to a malicious contract, an attacker could easily gain control and steal funds”. It also notes that the private key “retains full control over the account after the delegation”. For example, an agent asked to sign what is presented as a routine request may, if the request is an EIP-7702 authorization for an attacker’s contract, hand that contract control of everything in the account. Token approval, a separate entry, grants a narrower permission that covers one token up to a set amount.

The open-source Mangrove Agent refuses to sign wallet-delegation (EIP-7702) transactions (Mangrove Agent specification).

Vitalik Buterin, Sam Wilson, Ansgar Dietrichs and a developer who goes by lightclient wrote EIP-7702, which is dated 7 May 2024. It went live on Ethereum mainnet in the Pectra network upgrade, which ethereum.org says “was successfully activated on Ethereum mainnet” on 7 May 2025 (ethereum.org). The Ethereum Foundation’s announcement called EIP-7702 “a major step toward widespread account abstraction” and said it lets users enhance their EOAs “with smart contract functionality”.