UNSWEEP › Guides
Sweeper bot vs malicious EIP-7702 delegation
UNSWEEP never writes to you first and never asks for your seed phrase. The only key a rescue uses is the one of the already-compromised wallet, typed by you on unsweep.com and used only inside your browser. This page is informational; nothing on it is a guarantee of success.
Both can drain a compromised wallet, but they work differently.
Sweeper bot (off-chain)
A script run by an attacker who holds the private key. It watches the address and signs transfers when funds arrive. The account itself is unchanged on-chain: it still has no code.
Malicious EIP-7702 delegation (on-chain)
With EIP-7702 an EOA can delegate to contract code; the account code becomes the delegation indicator 0xef0100 followed by the target address. If an attacker obtained a signed authorization, that code can run on the wallet, for example to forward incoming funds.
How to tell them apart
- Read the account code (
eth_getCode).0xmeans no delegation; a value starting with0xef0100means the wallet is delegated, and the next 20 bytes are the target. - Outgoing transfers signed by your address right after deposits suggest a bot holding the key.
- Both can be present at the same time.
Why it matters
An EIP-7702 rescue sets a new delegation inside the same atomic transaction, replacing the previous one. The attacker still holds the key and could re-delegate later, so a rescued wallet should not be reused. See malicious EIP-7702 delegation.
Scope: Base: 16 verified tokens. Arbitrum: 12 verified tokens. Other ERC-20 tokens may be detected, without guarantee. Ethereum: read-only diagnostic only (no rescue). Funds already taken cannot be recovered and NFTs are not rescued.
FAQ
What is the difference between a sweeper bot and a malicious delegation?
A sweeper bot is an off-chain script that uses the stolen key; a malicious EIP-7702 delegation is on-chain code set on the account itself.
How do I know if my wallet is delegated?
Read the account code with eth_getCode: 0x means no delegation; code starting with 0xef0100 is an EIP-7702 delegation indicator followed by the target address.
Can both happen at once?
Yes. An attacker with the key can run a bot and also set a delegation.
Can I keep using the wallet after a rescue?
It is not recommended: the attacker still holds the key. Move to a new wallet.
Check your wallet with the free diagnostic → · Step-by-step rescue guide
Related guides: Why ETH sent for gas gets stolen immediately · Rescue USDC and WETH from a hacked wallet on Base · Rescue tokens from a hacked wallet on Arbitrum · How to check if a wallet has a sweeper bot · What to do in the first 5 minutes after a wallet hack · Sweeper bot on a hacked wallet · Malicious EIP-7702 delegation · Step-by-step rescue · What can and cannot be rescued
MetaMask is a trademark of its owner, referenced descriptively; UNSWEEP is not affiliated with MetaMask or Consensys.
Before you start: trust facts
Sounds familiar? “My funds disappear as soon as they arrive” · “I can’t pay for gas because the ETH is taken instantly” · “My wallet was hacked and I can’t get my tokens out”.
- Open source: github.com/unsweep/unsweep. Rescue contract
0x38bcF425bC4d13624734e09376F2fafc799fA8c8, source verified on Sourcify (exact match): Base · Arbitrum · Basescan. - Which key, and where it goes: a rescue uses only the private key of the wallet that is already compromised, the one the attacker already has. Never your seed phrase and never the key of your new safe wallet. The key signs 100% inside your browser and is never sent to UNSWEEP or any server; only signatures are sent (see the exact signing code on GitHub). Check it yourself: open DevTools → Network before signing, and see the verified contract on Basescan. UNSWEEP never writes to you first.
- We never DM you: UNSWEEP never contacts anyone by DM, Telegram or Discord. Anyone who does is a scammer.
- Cost: free diagnostic, no upfront payment. Success fee only if the rescue executes, taken from the rescued tokens in the same transaction: 15% (<1,000 USD), 10% (1,000–10,000 USD), 5% (>10,000 USD); hard 15% maximum in the contract; shown in a simulation before you sign.
- Cannot rescue: funds already taken, NFTs, anything on Ethereum mainnet (read-only). Tokens outside the verified lists may be detected without guarantee. Nothing is guaranteed.