BTC…ETH…ETH gas…Fear & Greed…Market data · not advice

Crypto Lexicon

Revoking an EIP-7702 Delegation

How to revoke an EIP-7702 delegation: check your address for the 0xef0100 marker, spot a sweeper, clear it on each chain, and what revoking cannot undo.

Keys, a network and incentives form three connected parts of a cryptocurrency system.
Keys, a network and incentives form three connected parts of a cryptocurrency system.

Our 30 October issue explained what EIP-7702 is through the Binance hot wallet drain. This entry is the practical half: how to check your address, spot a hostile delegate, and revoke an EIP-7702 delegation, plus what revoking cannot repair.

How to Check an Address for a Delegation

A delegation lives in the account's code field, empty in a plain account. The EIP-7702 specification, final and live on mainnet since the Pectra upgrade of 7 May 2025, fills that field with exactly 23 bytes: 0xef0100 plus the 20 byte address of the delegate contract.

On Etherscan, a delegated address carries an "Authority" badge, a "Delegated to" line naming the contract, and an "Authorizations (EIP-7702)" tab. For a raw answer, ask any Ethereum node with eth_getCode. 0x means no code; a reply beginning 0xef0100 means a delegation, and the next 40 hex characters are the delegate. The Binance 14 hot wallet returned 0x when we checked on 7 November 2026: its delegation is gone.

Check every network you use: a clean result on Ethereum says nothing about a layer two network.

What a Malicious Delegation Looks Like

The delegate has unrestricted access to the account, which is why the specification says applications "must not expect that they can suggest the user sign an authorization" and makes it the wallet's duty not to offer one. So the request itself is the warning sign: a website, email or "support agent" asking you to sign an upgrade or authorization. MetaMask's help page says it will never email you about upgrading and that switching happens only inside the wallet, to MetaMask's own contract.

The second sign is a delegate you do not recognise, often unverified. The commonest hostile kind is the sweeper. The Block, reporting Wintermute's analysis in June 2025, said over 80 percent of delegations then pointed at copies of the same basic code, which sweeps the contents of accounts whose keys had already leaked to the attacker.

How to Revoke an EIP-7702 Delegation

The protocol has one switch. Under the specification, an authorization naming the zero address writes no marker and resets the account's code to empty. It must carry the account's current nonce (its transaction counter), which is counted separately on each chain, and one signed with chain ID 0 is valid on any chain where that nonce matches. Revoking is therefore per chain, like delegating. Any transaction from the account raises the nonce, which also voids an authorization signed for the old value but not yet used on that chain.

Wallets build this for you. MetaMask's guide to switching back to a standard account toggles each network off under account details, and each switch is a transaction that costs gas.

What Revoking Does Not Undo

  • Past transfers. Anything the delegate moved stays moved.
  • Token approvals. Allowances live in token contracts, not in your account's code, and need revoking separately.
  • Storage. Data the delegate wrote into your account remains, and the specification notes the protocol offers no native way to wipe it.
  • A leaked key. A sweeper usually means the attacker holds your key and can sign a fresh delegation. Treat the account as compromised and move what remains to a new wallet, as the 30 October issue advised.

Knowledge check

Three quick questions on this entry. Pick an answer to see whether it is right.

Question 1 of 3Which description matches Revoking an EIP-7702 Delegation?

Question 2 of 3What does eth_getCode return for an address with an EIP-7702 delegation?

Question 3 of 3Which of these also belongs to Wallets & Security?

The Letter

One clear letter, every week.

Plain analysis of crypto infrastructure, markets and security. No price calls, no referral links, no hype.

Unsubscribe at any time. Read the privacy notice.