/Docs

How to Use Antidrain

Rescue tokens from compromised EVM and Solana wallets; a claim and its transfer run in one transaction the drainer cannot front-run

Questions answered20

/3 steps

Quick Start Guide

Generate Sponsor Wallet

  • Select EVM or Solana and click Generate
  • Fund the sponsor wallet (not your compromised wallet) with a small amount of ETH, SOL, or BNB. This wallet pays the gas fees for your rescue transaction
  • Save the backup so you can withdraw unused gas later

Rescue Your Assets

  • Choose the operation you need: Claim & Transfer, Transfer Tokens, Rescue NFTs or Contract Interaction on EVM chains; Claim & Transfer, Transfer Assets, Contract Interaction or Close Accounts on Solana
  • Paste the private key of your compromised wallet (never leaves your browser)
  • Set the safe wallet address where rescued assets will be sent
  • For a claim on EVM chains, add the contract address and the hex data from your wallet's confirmation popup; the info button beside each field shows where to find them in Rabby
  • On Solana, paste the claim, unstake or withdrawal transaction from the dapp (hex, base64 or base58) instead
  • Click Execute: a claim and its transfer run in one transaction the drainer cannot front-run

Withdraw Leftover Gas

  • Pick the network, enter your personal wallet, and pull out any remaining gas tokens

/Frequently Asked Questions

Antidrain is a tool that helps you rescue airdrop tokens, staked tokens and NFTs from hacked or compromised crypto wallets. It works on EVM chains and on Solana, and runs entirely client-side in your browser, so your private keys never leave your device. Assets are claimed and transferred in a single transaction before sweeper bots can react: an EIP-7702 atomic batch on EVM chains, a sponsor-paid transaction on Solana.

First, do NOT send any gas or tokens to the hacked wallet, as sweeper bots will steal them instantly. Instead: 1) Go to antidrain.dev, 2) Generate a sponsor wallet and fund it with a small amount of gas, 3) Use the sponsor wallet to rescue your remaining tokens, NFTs, or unclaimed airdrops from the compromised wallet. Antidrain claims and transfers in one transaction, so the drainer bot cannot get in between.

Generate a sponsor wallet on antidrain.dev and fund it with a small amount of gas (ETH, BNB and so on). Choose 'Claim & Transfer', then enter your hacked wallet's private key, the airdrop contract address, the claim hex data, and a safe receiver address. Antidrain claims the airdrop and transfers the tokens to your safe wallet in a single atomic EIP-7702 transaction, so the sweeper bot on the hacked wallet has no time to take them. On Solana, choose 'Claim & Transfer' and paste the claim transaction from the dapp instead; the claimed tokens go to your safe wallet in the same transaction.

Antidrain uses a sponsor wallet to pay gas fees on behalf of your hacked wallet. On EVM chains it bundles your operations (claim, transfer, sweep) into one EIP-7702 transaction. On Solana the sponsor wallet pays every fee, and a claim goes in the same transaction as the transfer of what it pays out. Either way, sweeper bots and drainer scripts cannot front-run you. The hacked wallet never needs to hold any native tokens for gas.

A sweeper bot (also called a drainer bot) monitors a hacked wallet and automatically steals any incoming funds, including gas tokens. Antidrain beats sweeper bots by never sending gas to the compromised wallet. Instead, a separate sponsor wallet pays the gas, and the claim and the transfer happen in one transaction that the bot cannot get between.

If your seed phrase or private key was stolen or leaked, the wallet is compromised and is likely watched by a drainer bot. Antidrain can rescue the ERC-20 tokens, NFTs and unclaimed airdrops that are still in the wallet, using a separate sponsor wallet for gas so you never send funds to the compromised wallet. Tokens the attacker has already moved out cannot be recovered by any tool, so act quickly.

Antidrain can rescue tokens that are still in your wallet after a phishing attack. If a drainer bot is monitoring your wallet, Antidrain bypasses it using atomic transactions. However, tokens that have already been transferred out of your wallet by the attacker cannot be recovered by any tool.

Antidrain supports Ethereum, Base, Arbitrum, BSC, Optimism, Polygon, Monad, Plume, MegaETH, Sei, Ink, Unichain, Berachain, Plasma and Somnia, plus Solana. Any other EVM chain that supports EIP-7702 can be used through the Custom Chain option with its RPC URL.

Any wallet, because you import its private key. For EVM wallets (MetaMask, Trust Wallet, Rabby, Coinbase Wallet), export the private key and use the EVM rescue operations. For Solana wallets (Phantom, Solflare), export the secret key and use the Solana operations: Transfer Assets or Claim & Transfer.

Yes. Antidrain can transfer undrained NFTs from your hacked wallet to a safe address. It can also mint new NFTs and send them directly to your safe wallet in a single transaction, bypassing any drainer bot on the compromised wallet. NFTs are transferred in full, with no fee.

Use 'Contract Interaction'. It sends any transaction to a smart contract (like an unstake call) without needing native tokens in the hacked wallet; the sponsor wallet pays the gas. After the cooldown period ends, use 'Claim & Transfer' or 'Transfer Tokens' to move the unstaked tokens to your safe wallet.

Use 'Transfer Assets' to move all SPL tokens, NFTs and SOL from your hacked Solana wallet to a safe address. Or use 'Claim & Transfer': paste the claim, unstake or withdrawal transaction from any dapp, and what it pays out goes to your safe wallet in the same transaction. The sponsor wallet pays the transaction fees.

EIP-7702 enables atomic batch operations where multiple blockchain transactions are bundled into one. For hacked wallets, this means claiming an airdrop and transferring tokens happens simultaneously in a single transaction, giving sweeper bots and drainer scripts zero time to intercept the assets.

On EVM chains the tool uses EIP-7702 to delegate your compromised wallet to a batch contract. This delegation is cryptographically signed, and it stays on the wallet after the rescue.

Antidrain has no upfront cost. A 20% service fee is deducted automatically from the tokens and native coins it recovers, so you receive 80% directly; NFTs are transferred in full. You also pay the standard blockchain gas fees for your rescue transactions.

No. This tool runs entirely in your browser (client-side). Your private keys never leave your device, and all transaction signing happens locally, which you can verify in your browser's network inspector.

No. Your private keys are used only in your browser, to sign, and are never sent anywhere. The one server Antidrain runs is its Solana RPC proxy, which relays the dashboard's Solana requests and transactions that are already signed; it never receives a key.

All wallet configurations are stored locally in your browser's localStorage. This data never leaves your device.

The rescue dashboard talks only to blockchain RPC endpoints, to read data and submit transactions. On Solana those requests go through Antidrain's own RPC proxy (api.antidrain.dev), which relays them to an RPC provider; transactions are signed in your browser before they are sent. The public pages (home, docs, reviews, refer) also load Google Analytics. The docs page loads YouTube when you play the video. The Advanced page contacts WalletConnect only once you choose to connect your own wallet.

Yes. There is a demo airdrop you can practise the full flow on. Use the demo token contract 0x06b02A2c88782631847A598D5ab96a7f8d78CaA4. airdrop-demo-zun.vercel.app