EIP-7702 Delegation: How to Check, Revoke and Avoid Delegation Drainers
WRITTEN & REVIEWED BY Chris Shepley
UPDATED: JULY 2026
EIP-7702 lets an ordinary Ethereum wallet address delegate its behaviour to a smart contract, so the same address can batch transactions, have its gas paid by someone else or use spending rules, while keeping its existing private key. It went live with Ethereum’s Pectra upgrade on 7 May 2025. The catch is that a delegation stays in place until you change it, and a malicious delegate contract can take near-complete control of your account. Within weeks of launch, research by trading firm Wintermute found that more than 97 per cent of all EIP-7702 delegations pointed to copies of the same sweeper contract, used to drain wallets automatically. This guide explains how delegation works, how to check whether your address is delegated, how to revoke a delegation, and how to avoid being tricked into signing one.
What EIP-7702 Changes
Ethereum has two kinds of accounts. Externally owned accounts (EOAs), the addresses most people use in wallets such as MetaMask, are controlled by a private key and can only do one thing per transaction. Contract accounts are controlled by code, which lets them do much more, but they have no private key of their own. For years, developers have tried to give everyday users the benefits of contract wallets, an effort known as account abstraction.
The EIP-7702 specification takes a direct route. It adds a new transaction type that lets an EOA “set its code” by pointing to an existing smart contract. The owner signs an authorisation containing three things: a chain ID, the address of the delegate contract, and the account’s current nonce. Once that authorisation is included in a transaction, the network writes a short delegation indicator into the account’s code: the bytes 0xef0100 followed by the delegate’s address. From then on, whenever anyone calls the account, Ethereum runs the delegate contract’s code in the context of your account, with access to your balance and tokens.
The upgrade went live on mainnet as part of Pectra, activated at epoch 364032 on 7 May 2025, alongside other changes to staking and data capacity.
What it is useful for
Batching: An approval and a swap, or several transfers, can happen in one transaction instead of several.
Gas sponsorship: An app or wallet can pay the gas fees for you, or let you pay in a token other than ETH.
Spending rules and session keys: The delegate can enforce limits, such as letting a game spend small amounts for an hour without asking you every time.
Major wallets use these features through their own audited delegate contracts. MetaMask, for example, can upgrade an account to a “smart account” using its own delegator contract, according to its developer documentation.
How it differs from earlier smart accounts
Before EIP-7702, the main route to smart accounts was ERC-4337, a standard introduced in 2023 that runs alongside the protocol rather than changing it. ERC-4337 wallets are separate contract accounts with new addresses, so users had to move their funds to benefit. EIP-7702 instead upgrades the address you already have, keeping its history, balances, token standards support and existing contacts. The two approaches work together: many wallets now use EIP-7702 to point an existing address at a contract that is compatible with ERC-4337 infrastructure.
Because EIP-7702 is part of the core protocol, it arrived through a hard fork, the latest step in a long history of Ethereum upgrades. It does not change how keys are created, so it is different from approaches such as MPC wallets, which split a key between several parties. An ordinary software wallet that never delegates works exactly as it did before Pectra.
Why Delegation Is Risky
The specification itself warns that a poorly implemented delegate can let a malicious actor take near-complete control of the account. Three properties make that risk real.
It persists: A delegation is not a one-off permission. It stays in place until the owner signs a new authorisation that changes or clears it. A delegation signed months ago on a website you have forgotten about can still be active today.
It reaches everything: Unlike a token approval, which lets one contract move one token up to a limit, a delegation lets the delegate’s code act for your whole account. A malicious delegate can move ETH, tokens and NFTs as they arrive.
It can apply on every chain: An authorisation signed with a chain ID of 0 is valid on every EVM chain that supports EIP-7702. A single malicious signature can therefore expose the same address on Ethereum and on several layer 2 networks at once.
The private key still works after delegation. That means delegation does not protect a leaked key; if anyone else has your seed phrase, they can sign their own delegation, which is exactly what most sweeper attacks do.
How Delegation Drainers Work
“Delegation drainers” fall into two groups.
Sweepers on compromised keys: When attackers already have a private key, for example from a leaked seed phrase or malware, they delegate the account to a sweeper contract that forwards every incoming deposit of ETH to them automatically. Wintermute analysed this pattern in mid-2025 and found that more than 97 per cent of delegations at that time authorised contracts with the same code, a sweeper it nicknamed “CrimeEnjoyor”. Later readings put the share a little lower, but sweepers remained the most common use of delegation for months. If your wallet behaves like this, with funds vanishing seconds after they arrive, assume the key is compromised.
Phishing for authorisations: The second group targets people whose keys are safe. A fake website, often posing as an airdrop, a mint or a wallet “upgrade”, asks you to sign something that is actually an EIP-7702 authorisation for the attacker’s contract. Once signed and submitted, the attacker’s code controls the account. This is a newer form of the wallet drainer scams that already relied on malicious approvals and malicious contracts, and fake airdrops are a favourite lure.
Most major wallets reduce the second risk by only allowing delegation to their own vetted contract and refusing to let websites request arbitrary authorisations. That protection only works if you use a wallet that enforces it, keep it updated, and never import your seed phrase into an unknown app.
How to Check Whether Your Address Is Delegated
Use a block explorer: Search your address on Etherscan or the explorer for the relevant chain. Explorers show when an EOA has delegated code and which contract it points to. An ordinary EOA has no code at all.
Check the code directly: If you are comfortable with developer tools, query the account’s code through any RPC endpoint. An undelegated EOA returns empty code; a delegated one returns 23 bytes starting with 0xef0100, followed by the delegate address.
Check each chain: Because delegations can be chain-specific or apply everywhere, check every network where you hold funds.
Check your wallet’s settings: Wallets that support smart accounts usually show whether the account has been upgraded and let you switch back.
If the delegate is your own wallet provider’s known contract, that is expected. If it is an unknown contract, treat the account as at risk until you have revoked the delegation and checked for other problems.
How to Revoke a Delegation
If your key is safe: Under the specification, an authorisation that points to the zero address clears the account’s code and returns it to an ordinary EOA. In practice, most wallets that support smart accounts offer a “switch back” or “revert to standard account” option that signs this for you. It costs a normal transaction fee. After revoking, check the explorer again to confirm the account shows no code.
If your key may be compromised: Revoking will not help, because whoever has your key can simply delegate again. Move any remaining assets to a brand-new wallet with a new seed phrase generated on a clean device, ideally a hardware wallet. Be aware that a sweeper may race you for any ETH you send to the old address to pay gas. The steps to check if a wallet is compromised and to recover a hacked wallet apply, and the old address should never be used again.
Approvals still matter: Revoking a delegation does not cancel token approvals you have given to other contracts. Review and revoke contract approvals separately, paying particular attention to unlimited approvals.
How to Avoid Delegation Drainers
Treat any signature as a payment: Read every signing request. If your wallet shows an authorisation, an “account upgrade” or a delegation you did not start from within the wallet itself, reject it.
Upgrade only through your wallet: Legitimate smart account upgrades are offered inside the wallet app, not by a website, a social media message or a support agent who contacts you.
Use a hardware wallet: A hardware device shows what you are signing on its own screen and keeps the key offline, which defeats malware that steals keys. Pairing one with a browser wallet, a common hardware wallet DeFi setup, adds a physical confirmation step. Devices such as Ledger display the details of each request so you can confirm it before signing.
Separate your wallets: Keep long-term holdings in an address that never connects to new apps, and use a separate hot wallet with small balances for experiments, mints and airdrops.
Use wallets with transaction simulation: Some wallets, such as Rabby, simulate a transaction before you sign and flag risky contracts. Simulation is not perfect but catches many attacks.
Learn the phishing patterns: Most drainers start with a fake site or message. Knowing how to spot phishing websites, using basic phishing protection and following browser extension security habits prevents most losses. Protect your seed phrase above all: no legitimate service will ever ask for it.
Consider stronger setups for large balances: Multi-signature wallets such as Safe require several approvals for every transaction, and newer approaches like passkeys change how keys are protected. These carry their own trade-offs but remove the single point of failure of one key.
What It Means for Australian Users
If you lose crypto to a delegation drainer, the funds move on-chain without a bank or exchange in between, so consumer protections designed for bank payments, including the new Scams Prevention Framework, usually cannot help directly. Act quickly: move remaining assets, then report the scam to ReportCyber and Scamwatch. If the stolen funds reach an exchange, that exchange may be able to freeze them if it is alerted early. For tax, the treatment of stolen crypto depends on your evidence and circumstances, so keep records of the addresses, transactions and reports.
EIP-7702 is likely to become a normal part of using Ethereum, in the same way that approvals did. Used through a reputable wallet’s own contract, it makes accounts more capable. Used carelessly, it turns one bad signature into a total loss. Good DeFi wallet security means understanding what you sign, and that now includes delegations. Connection tools such as WalletConnect deserve the same caution, because they are how many phishing sites reach your wallet.
Key Takeaways
EIP-7702, live on Ethereum since the Pectra upgrade on 7 May 2025, lets an ordinary wallet address delegate its code to a smart contract for batching, gas sponsorship and spending rules while keeping its private key. Delegations persist until changed, give the delegate broad control over the account, and can apply across every supporting chain if signed with a chain ID of 0. Early on, the vast majority of delegations pointed to sweeper contracts used on already-compromised keys, and phishing sites now try to trick users into signing malicious delegations.
You can check delegation on a block explorer or by reading the account’s code, and revoke it by delegating to the zero address, usually through your wallet’s “switch back” option. If your key may be compromised, revoking is not enough: move funds to a new wallet with a new seed phrase. The best protection is to upgrade only inside your wallet, reject any unexpected authorisation request, use a hardware wallet, keep long-term holdings separate and review token approvals regularly.
Frequently Asked Questions
What is EIP-7702?
EIP-7702 is an Ethereum upgrade, live since the Pectra hard fork on 7 May 2025, that lets an ordinary wallet address (an externally owned account) delegate its behaviour to a smart contract. The account keeps its private key but gains features such as batched transactions, gas sponsorship and spending rules while the delegation is active.
How long does an EIP-7702 delegation last?
A delegation is persistent. It stays in place until the account owner signs a new authorisation that points to a different contract or clears the delegation by pointing to the zero address. A delegation signed long ago can therefore still control how your account behaves today.
How do I check if my wallet is delegated?
Search your address on a block explorer such as Etherscan, which shows when an account has delegated code and which contract it points to. Technically, a delegated account's code is 23 bytes starting with 0xef0100 followed by the delegate address, while an ordinary account has no code. Check every chain where you hold funds.
How do I revoke an EIP-7702 delegation?
Sign an authorisation that delegates to the zero address, which clears the account's code. Most wallets that support smart accounts offer a switch back or revert option that does this for you for a normal transaction fee. Afterwards, confirm on a block explorer that the account shows no code, and review token approvals separately.
What is a delegation drainer?
A delegation drainer is a malicious contract that an account is delegated to, either by an attacker who already has the private key or by tricking the owner into signing an authorisation on a phishing site. Once active it can move the account's ETH, tokens and NFTs, often sweeping new deposits within seconds of arrival.
What should I do if my delegated wallet is being drained?
Assume the private key or seed phrase is compromised. Revoking the delegation will not help because the attacker can delegate again. Move any remaining assets to a new wallet created with a new seed phrase on a clean device, ideally a hardware wallet, stop using the old address, and report the theft to ReportCyber and Scamwatch.
Why is a chain ID of 0 dangerous in EIP-7702?
An authorisation signed with a chain ID of 0 is valid on every EVM chain that supports EIP-7702, not just one network. A single malicious signature with chain ID 0 can therefore expose the same address on Ethereum and several layer 2 networks at the same time.
Is it safe to upgrade to a smart account?
Upgrading through your wallet's own built-in option, which delegates to the wallet provider's audited contract, is the intended use of EIP-7702. The risk comes from delegating to unknown contracts. Only upgrade from inside the wallet app, never because a website, message or support agent asks you to, and reject any unexpected authorisation request.












