Overview: Bridging Externally Owned Accounts and Programmable Smart Accounts

Since Ethereum's genesis in 2015, user-facing accounts have been split into two rigid primitives: Externally Owned Accounts (EOAs) controlled by a single secp256k1 private key with zero native code, and Contract Accounts capable of executing arbitrary EVM bytecode but unable to initiate transactions autonomously. While ERC-4337 introduced an out-of-protocol UserOperation mempool and smart account standard in 2023, adoption faced a persistent migration barrier: billions of dollars in assets, protocol permissions, ENS names, and historical reputations remained anchored to existing EOA addresses that could not execute batched calls, enforce session keys, or sponsor gas natively.

Authored by Vitalik Buterin, Sam Wilson, Ansgar Dietrichs, and Matt Garnett (lightclient), and activated on Ethereum mainnet via the Pectra upgrade on May 7, 2025, EIP-7702 (Set Code for EOAs) resolves this divide at the protocol layer. EIP-7702 introduces a new EIP-2718 transaction type (0x04, known as SET_CODE_TX_TYPE) that allows any existing EOA owner to sign an authorization pointing their address to a verified smart contract implementation. Without migrating assets to a new address or forfeiting native key control, the EOA temporarily or persistently delegates its execution behavior to smart contract logic.

Crucially, EIP-7702 does not deploy monolithic bytecode into an EOA's state permanently in the style of contract creation. Instead, it writes a compact 23-byte delegation designator into the EOA's code field, preserving backward compatibility with existing wallets, ERC-4337 bundlers, and ERC-7579 modular smart account standards while exposing subtle new security invariants for protocol developers.

Transaction Type 0x04 and the Authorization Tuple Mechanics

EIP-7702 extends Ethereum's typed transaction envelope under EIP-2718 with transaction type 0x04. Alongside standard EIP-1559 fee fields (chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, value, data, and access_list), a Type 4 transaction carries an explicit authorization_list array.

Each entry in authorization_list is a tuple formatted as [chain_id, address, nonce, y_parity, r, s], signed independently by the authorizing EOA (referred to in the specification as the authority):

Because authorization processing occurs in a loop before transaction execution begins, a single Type 4 transaction can configure delegations for multiple EOAs atomically, or delegate and immediately invoke the newly empowered EOA within the same atomic transaction.

The 0xef0100 Delegation Designator and EVM Opcode Semantics

When a tuple in authorization_list passes signature recovery (ecrecover), chain ID verification, nonce matching, and code-emptiness or existing-delegation checks, the EVM sets the authority account's code to a deterministic 23-byte pointer called the delegation designator:

0xef0100 || address

This design deliberately leverages EIP-3541, activated in the 2021 London upgrade, which banned normal contract deployments (CREATE and CREATE2) from beginning with the byte 0xef. Because no standard smart contract can ever start with 0xef, the three-byte header 0xef0100 serves as an unambiguous protocol-level sentinel: 0xef01 marks a special account extension and 0x00 denotes version zero of the delegation format, followed directly by the 20-byte target contract address.

EVM Operation or Context Legacy EOA Behavior EIP-7702 Delegated EOA Behavior
Stored Account Code Field Empty (0 bytes) 23-byte designator: 0xef0100 || address
CALL / DELEGATECALL / STATICCALL / CALLCODE No bytecode executed; value transfer succeeds Resolves pointer and executes target contract bytecode in the EOA's storage and balance context
EXTCODESIZE Returns 0 Returns 23 (the length of the delegation designator)
EXTCODECOPY Copies 0 bytes Copies the 23-byte designator 0xef0100 || address, not the target contract's code
EXTCODEHASH Empty hash (0xc5d246...) or 0 Returns keccak256(0xef0100 || address)
Execution Storage & address(this) N/A Reads and mutates the EOA's own state trie storage slots; address(this) equals the EOA
Delegation Chaining N/A Prohibited: if target address itself has a 0xef0100 designator, resolution stops after one hop

Importantly, EIP-7702 restricts delegation depth to a single hop. If Contract A delegates to Contract B via a designator, calls targeting the EOA resolve the designator once and stop rather than recursively traversing nested pointers, preventing unbounded pointer-chasing loops and infinite gas griefing.

ERC-4337 Interoperability and Modular Smart Accounts (ERC-7579)

EIP-7702 was explicitly designed to complement rather than replace ERC-4337. While EIP-7702 grants an EOA the ability to borrow contract code, it does not standardize validation interfaces, alternative mempools, or paymaster fee settlement. Instead, delegating an EOA to an ERC-4337-compatible account implementation unlocks the entire Account Abstraction stack for existing addresses:

Token Economics: Gas Accounting, EIP-1559 Burn, and Paymaster Markets

Although EIP-7702 introduces no new protocol token, it directly reshapes Ethereum's gas economics, ETH fee burn under EIP-1559, and ERC-20 gas abstraction markets:

Economic Parameter Verified EIP-7702 Specification Network & Cost Impact
Transaction Base Intrinsic Cost TX_BASE_COST = 21,000 gas Standard EIP-2718 base transaction overhead paid in ETH (base fee burned via EIP-1559)
Empty Account Authorization Cost PER_EMPTY_ACCOUNT_COST = 25,000 gas Charged upfront per tuple in authorization_list to price potential new state-trie creation
Existing Account Base Cost PER_AUTH_BASE_COST = 12,500 gas Effective net cost for pre-existing EOAs after refunding 12,500 gas when authority exists in state
Calldata & Verification Cost Standard EIP-2028 / EIP-7623 calldata + ecrecover Replaces 40,000 to 200,000+ gas proxy CREATE2 deployment cost with a 12,500 gas pointer write
Gas Sponsorship Settlement Relayer / Paymaster pays L1 ETH gas; settles user in ERC-20 or off-chain fee Expands ETH base-fee demand via complex smart-account batching while abstracting ETH UX away from end users

From a tokenomic perspective, EIP-7702 lowers the marginal capital barrier to smart account adoption by an order of magnitude. Deploying a traditional smart contract wallet proxy via CREATE2 consumes roughly 100,000 to 250,000 gas in initialization bytecode and state allocation, whereas setting a 23-byte EIP-7702 delegation designator on an existing EOA costs a net 12,500 gas (plus calldata for the 101-byte tuple). Because the base fee component of every Type 4 transaction is burned under EIP-1559 while priority tips accrue to validators and MEV builders, higher smart-account batching density increases fee-burn efficiency per unit of user intent. Simultaneously, ERC-4337 Paymasters create competitive fee markets in which solvers and paymaster operators absorb ETH gas volatility and collect spreads in stablecoins such as USDC or protocol-subsidized budgets.

Security Architecture, Breaking Assumptions, and Objective Risks

Granting legacy EOAs programmable execution while preserving their original secp256k1 private key introduces nontrivial security risks that both wallet engineers and DeFi protocol auditors must mitigate:

Primary Specifications and Technical References

Conclusion

EIP-7702 represents the most pragmatic account abstraction upgrade in Ethereum's history. By introducing Type 4 transactions, the 0xef0100 delegation designator, and gas-efficient 12,500-gas authorization tuples in the Pectra upgrade, Ethereum unlocked batching, sponsored transactions, session keys, and ERC-4337 interoperability for hundreds of millions of existing EOA addresses without forcing address migration. While developers must enforce ERC-7201 namespaced storage, retire fragile tx.origin guards, and respect the root private key's ultimate authority, EIP-7702 permanently bridges legacy wallets and modular smart accounts at the protocol layer.