# Account code delegation (EIP-7702 authorization)

> A signed authorization that points your regular account (EOA) at a contract’s code. Calls to your account then run that code with your account’s assets.

- Request: `Authorization tuple [chain_id, address, nonce] in a set code transaction`
- Standard: EIP-7702
- Track: Request types
- Checked against sources: 2026-11-04
- Review status: drafted with AI assistance, awaiting human review
- Canonical page: https://walletpermissions.com/learn/requests/eip-7702-authorization

Education only. This does not assess any real request, wallet or app, and is not advice to sign or not sign. Every app, token and address in the practice card is fictional.

## What to read in the prompt

- The `address` you are delegating to.
- The `chain_id`. EIP-7702 accepts “0 or the ID of the current chain”, so 0 means any chain.
- Which wallet is asking. The EIP expects wallets, not websites, to initiate this.

## What it lets the other party do

- Once processed, your account’s code is set to a delegation indicator, and calls to your account load “the code at `address`” and execute it “in the context of `authority`”, which is your account.
- EIP-7702: “The code specified by an authorization has unrestricted access to the account.” It also warns that a poorly built delegate can “allow a malicious actor to take near complete control over a signer’s EOA.”

## What it does not do

- There is no permission system at this level. EIP-7702: “It is also not possible to implement a system of permissions at this level to minimize the risk.”

## How long it lasts

- It persists until a new authorization replaces it. EIP-7702 also notes the delegation is “not rolled back” if the rest of the transaction fails.

## How to undo it

- Sign a new authorization through your wallet. Delegating to the zero address clears the account’s code, per the EIP. It does not undo anything the delegated code already did.
- To look at your real account, use an established external tool such as Revoke.cash.

## A pattern to recognise

- A website asking you to sign an “account upgrade”. EIP-7702: “Applications must not expect that they can suggest the user sign an authorization, and therefore it is the duty of the wallet to not provide an interface to do so.”

## Practice question (fictional)

A fictional site, Lanternfly Swap, asks you to sign an “upgrade” so swaps can be batched.

| Field | Value |
| --- | --- |
| Request type | EIP-7702 authorization |
| Delegate to | Lanternfly Batcher (fictional contract) |
| chain_id | 0 |
| Requested by | The website |

**Question:** Does `chain_id` 0 limit this authorization to one network?

**Answer:** No. EIP-7702 accepts a chain ID of 0 on any chain. It is also a website requesting an authorization, which the EIP says applications must not expect to do.

## Check your real account elsewhere

This site never connects to a wallet or asks for an address. Established tools (independent, not endorsements):

- [Revoke.cash](https://revoke.cash/): shows and removes token approvals across many networks
- [Etherscan token approval checker](https://etherscan.io/tokenapprovalchecker): shows and removes token approvals on Ethereum mainnet

## Sources

- [EIP-7702: Set Code for EOAs](https://eips.ethereum.org/EIPS/eip-7702). Ethereum EIPs. Final; created 2024-05-07. Checked 2026-11-04.
