Skip to main content

← Back to Chain

Protocol records

EIP-7702: Set Code for EOAs

Intersection: AI agents need a programmable account for payments, spending limits, batching and permission recovery; EIP-7702 lets an EOA delegate to code within a transaction, giving agent execution an account-level entry point.
Scope: the official spec only defines the transaction format, authorization tuples and delegation indicator for an EOA setting code; it does not initialise storage for developers or guarantee that wallets display delegation correctly. Clients are advised to accept only one pending transaction for an EOA with a non-zero delegation indicator to reduce invalidation risk.
Open: delegation upgrades and revocation, session-key lifecycles, security audits of delegated contracts, and wallet display/risk policy for 7702 are still evolving.

Key specs

提出 / created
2024-05-07
核心对象 / object
authorization tuple + delegation indicator
作用 / effect
EOA 可在交易中委托代码执行
协议状态 / status
已部署(Final;随 Pectra 升级上线)
许可 / license
CC0(EIP 文本,以官方页为准)

What the source says

Add a new EIP-2718 transaction type that allows Externally Owned Accounts (EOAs) to set the code in their account.
1 https://eips.ethereum.org/EIPS/eip-7702
This EIP does not provide developers the opportunity to run initcode and set storage slots during delegation.
2 https://eips.ethereum.org/EIPS/eip-7702
clients do not accept more than one pending transaction for any EOA with a non-zero delegation indicator
3 https://eips.ethereum.org/EIPS/eip-7702

Source and licence

Source checked
2026-11-19
Licence / kind
official-specification
Licence evidence
https://eips.ethereum.org/EIPS/eip-7702
Category
Protocol records

More in this category

Next step

Open the official page →

← Back to Chain