<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MEV DAO Notes]]></title><description><![CDATA[MEV DAO Notes]]></description><link>https://mevdao.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sun, 01 Nov 2026 11:55:08 GMT</lastBuildDate><atom:link href="https://mevdao.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Ethereum MEV Bot Engineering: Atomic DEX Arbitrage, Aave V3 Liquidations & Scam Bot Detection]]></title><description><![CDATA[Real Ethereum MEV bots—whether atomic DEX arbitrage contracts, JIT liquidity engines, or Aave V3 / Morpho Blue liquidation searchers—are built as custom…]]></description><link>https://mevdao.hashnode.dev/ethereum-mev-bot-engineering-atomic-dex-arbitrage-aave-v3-liquidations-scam-bot-detection</link><guid isPermaLink="true">https://mevdao.hashnode.dev/ethereum-mev-bot-engineering-atomic-dex-arbitrage-aave-v3-liquidations-scam-bot-detection</guid><dc:creator><![CDATA[Merunas Grincalaitis]]></dc:creator><pubDate>Sun, 25 Oct 2026 14:02:28 GMT</pubDate><content:encoded><![CDATA[<p>Real Ethereum MEV bots—whether atomic DEX arbitrage contracts, JIT liquidity engines, or Aave V3 / Morpho Blue liquidation searchers—are built as custom Rust/Go mempool engines paired with gas-optimized Solidity/Yul executor contracts that pay 85%–98% of gross profit to block builders via <code>block.coinbase.transfer</code>. Meanwhile, thousands of developers lose ETH every month to fake YouTube "Remix IDE ChatGPT Solidity MEV bot" scams that hide obfuscated attacker payout addresses.</p>
<p>This technical reference from <a href="https://mevdao.org">MEV DAO</a> documents real searcher economics, custom MEV bot architecture, and open-source scam bytecode detection.</p>
<h2>Architecture &amp; Execution Checklist</h2>
<pre><code>[Local Node / Mempool Stream] ---&gt; [Foundry Anvil eth_call Simulation]
                                          |
                                          v
[X-Flashbots-Signature Auth]  ---&gt; [eth_sendBundle -&gt; Block Builders]
</code></pre>
<p>Key technical invariants to verify before broadcasting:</p>
<ol>
<li><strong>Simulate state transitions at <code>block.number + 1</code></strong> using <code>eth_callBundle</code> or a pinned Foundry <code>anvil --fork-url</code> environment before signing live bundles.</li>
<li><strong>Compute effective bundle gas price (<code>effectiveGasPrice</code>)</strong> across all transactions in the bundle, including <code>0</code>-gas sponsored victim transactions, and ensure it exceeds the target block's tail gas price.</li>
<li><strong>Multi-builder fan-out:</strong> Submit time-sensitive bundles simultaneously to <code>relay.flashbots.net</code>, Titan Builder, Beaverbuild, and Rsync Builder so you don't miss slots built by non-Flashbots relays.</li>
</ol>
<h2>Complete Technical Guides &amp; Deep-Dive Runbooks in This Series</h2>
<p>Below is the complete index of technical deep-dives, runnable Solidity/TypeScript templates, and step-by-step troubleshooting guides in this cluster:</p>
<ul>
<li><strong><a href="https://mevdao.org/blog/how-mev-bots-make-money-on-ethereum-and-who-keeps-the-profit">How MEV Bots Make Money on Ethereum (and Who Keeps the Profit)</a></strong> — Deep-dive guide covering <code>how do mev bots make money</code>: Arbitrage, liquidations, backruns, sandwiches and the long tail: where MEV bot profit comes from, and why most of it ends up with block builders.</li>
<li><strong><a href="https://mevdao.org/blog/how-liquidation-bots-work-on-aave-and-why-they-re-hard-to-win">How Liquidation Bots Work on Aave (and Why They're Hard to Win)</a></strong> — Deep-dive guide covering <code>aave liquidation bot</code>: How Aave liquidation bots find positions below health factor 1, fund the repayment with flash loans, and compete on oracle updates, gas and builder bids.</li>
<li><strong><a href="https://mevdao.org/blog/custom-mev-bot-development-what-to-know-before-you-hire">Custom MEV Bot Development: What to Know Before You Hire</a></strong> — Deep-dive guide covering <code>custom mev bot development</code>: Planning custom MEV bot development? Learn what architecture specs to bring a developer, realistic costs and timelines, and how to spot scammer red flags.</li>
<li><strong><a href="https://mevdao.org/blog/custom-mev-bot-development-hire-an-ethereum-mev-bot-developer">Custom MEV Bot Development: Hire an Ethereum MEV Bot Developer</a></strong> — Deep-dive guide covering <code>hire mev bot developer</code>: How to hire an MEV bot developer: what custom work covers, what to bring to the brief, how projects are structured, pricing drivers and red flags.</li>
<li><strong><a href="https://mevdao.org/blog/mev-bot-for-sale-what-s-real-what-s-a-scam-and-what-it-should-cost">MEV Bot for Sale? What's Real, What's a Scam, and What It Should Cost</a></strong> — Deep-dive guide covering <code>mev bot for sale</code>: Thinking of buying an MEV bot for sale? Learn which offers are Remix scams, real operating costs, and a 7-step checklist before you pay anyone.</li>
<li><strong><a href="https://mevdao.org/blog/mev-bot-development-cost-custom-pricing-in-2026">MEV Bot Development Cost: Custom Pricing in 2026</a></strong> — Deep-dive guide covering <code>mev bot development cost</code>: Real MEV bot development cost ranges in 2026: what custom Ethereum arbitrage, liquidation, and sniper bots cost to build, run, and maintain.</li>
<li><strong><a href="https://mevdao.org/blog/mev-bot-ethereum-github-best-open-source-repos-2026">MEV Bot Ethereum GitHub: Best Open-Source Repos (2026)</a></strong> — Deep-dive guide covering <code>mev bot ethereum github</code>: Best open-source MEV bot Ethereum GitHub repos in 2026: Paradigm Artemis, Flashbots simple-arbitrage, mevdao-org reference code, and gaps.</li>
<li><strong><a href="https://mevdao.org/blog/rust-mev-bot-in-2026-the-alloy-reth-artemis-stack">Rust MEV Bot in 2026: The Alloy, Reth &amp; Artemis Stack</a></strong> — Deep-dive guide covering <code>rust mev bot</code>: How to build a Rust MEV bot on Ethereum in 2026: migrating from ethers-rs to Alloy, embedded revm simulation, Reth execution extensions (ExEx), and Artemis.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-hire-an-mev-bot-developer-scope-red-flags">How to Hire an MEV Bot Developer: Scope &amp; Red Flags</a></strong> — Deep-dive guide covering <code>flashbots searcher developer</code>: Hiring a Flashbots searcher developer or MEV engineer? Scope custom Ethereum bots, spot Fiverr scams, and use our 7 technical interview questions.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-build-a-polymarket-arbitrage-bot-step-by-step">How to Build a Polymarket Arbitrage Bot (Step by Step)</a></strong> — Deep-dive guide covering <code>polymarket arbitrage bot</code>: Step-by-step guide to building a Polymarket arbitrage bot in 2026: CTF Conditional Tokens, CLOB WebSockets, YES+NO&lt;1 rebalancing, and execution.</li>
<li><strong><a href="https://mevdao.org/blog/liquidation-bot-development-compound-morpho-spark">Liquidation Bot Development: Compound, Morpho &amp; Spark</a></strong> — Deep-dive guide covering <code>liquidation bot development</code>: Guide to Ethereum liquidation bot development in 2026: why Aave V3 is hyper-crowded and how searchers win liquidations on Morpho Blue, Compound V3, and Spark.</li>
<li><strong><a href="https://mevdao.org/blog/is-mev-bot-arbitrage-still-profitable-in-2026">Is MEV Bot Arbitrage Still Profitable in 2026?</a></strong> — Deep-dive guide covering <code>is mev bot profitable</code>: Is an MEV bot still profitable in 2026? Real Ethereum MEV arbitrage profit margins, builder tip competition, and which niches actually make money today.</li>
<li><strong><a href="https://mevdao.org/blog/mev-bot-meaning-60-terms-every-searcher-should-know">MEV Bot Meaning: 60 Terms Every Searcher Should Know</a></strong> — Deep-dive guide covering <code>mev bot meaning</code>: What is the meaning of an MEV bot? A complete 60-term Ethereum MEV searcher glossary covering Flashbots, PBS, Block 0 sniping, EIP-7702, and MEV protection.</li>
<li><strong><a href="https://mevdao.org/blog/are-mev-bots-legal-legit-real-profits-vs-scams-2026">Are MEV Bots Legal &amp; Legit? Real Profits vs Scams (2026)</a></strong> — Deep-dive guide covering <code>are mev bots legal</code>: Are MEV bots legal and legit in 2026? We separate legal DEX arbitrage and liquidations from exploits, fake bot scams, and how to beat MEV bots.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-create-a-mev-bot-from-mempool-to-first-bundle">How to Create a MEV Bot: From Mempool to First Bundle</a></strong> — Deep-dive guide covering <code>how to create a mev bot</code>: How to create a MEV bot on Ethereum in 2026: node setup, Solidity flash-swap executor, eth_callBundle simulation, and real arbitrage margins.</li>
</ul>
<h2>Open-Source Reference Repositories</h2>
<ul>
<li><a href="https://github.com/mevdao-org/eip-7702-delegation-checker-revoker">eip-7702-delegation-checker-revoker</a> — CLI to inspect <code>0xef0100</code> delegation designators and clear malicious EIP-7702 delegates.</li>
<li><a href="https://github.com/mevdao-org/compromised-wallet-sweeper-rescue">compromised-wallet-sweeper-rescue</a> — Atomic <code>eth_sendBundle</code> sponsor + asset transfer rescue template.</li>
<li><a href="https://github.com/mevdao-org/flashbots-bundle-simulator-anvil">flashbots-bundle-simulator-anvil</a> — Reproducible Foundry Anvil harness for bundle debugging.</li>
<li><a href="https://github.com/mevdao-org/solidity-mev-bot-scam-detector">solidity-mev-bot-scam-detector</a> — Static analyzer to detect obfuscated YouTube/Remix MEV bot drainer contracts.</li>
<li><a href="https://github.com/mevdao-org/ethereum-sniper-bot-flashbots">ethereum-sniper-bot-flashbots</a> — Same-block Uniswap V2/V3 bundle execution and pre-trade honeypot simulation reference.</li>
<li><a href="https://github.com/mevdao-org/mev-arbitrage-and-liquidation-reference">mev-arbitrage-and-liquidation-reference</a> — Atomic two-pool arbitrage &amp; Aave V3 <code>liquidationCall</code> executor with builder coinbase bribe math.</li>
</ul>
<p>For production Ethereum sniping, compromised-wallet rescues, or custom MEV engineering, visit <a href="https://mevdao.org">MEV DAO</a> or start a <a href="https://mevdao.org/subscribe">3-day trial</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Flashbots Bundles & Private RPC Engineering Guide: eth_sendBundle, mev_sendBundle & Anvil Fork Testing]]></title><description><![CDATA[Whether you are building an atomic rescue script, a backrun searcher, or a private swap router, understanding the difference between user-facing private…]]></description><link>https://mevdao.hashnode.dev/flashbots-bundles-private-rpc-engineering-guide-eth-sendbundle-mev-sendbundle-anvil-fork-testing</link><guid isPermaLink="true">https://mevdao.hashnode.dev/flashbots-bundles-private-rpc-engineering-guide-eth-sendbundle-mev-sendbundle-anvil-fork-testing</guid><dc:creator><![CDATA[Merunas Grincalaitis]]></dc:creator><pubDate>Sun, 25 Oct 2026 14:02:12 GMT</pubDate><content:encoded><![CDATA[<p>Whether you are building an atomic rescue script, a backrun searcher, or a private swap router, understanding the difference between user-facing private RPCs (<code>rpc.flashbots.net</code>, <code>rpc.mevblocker.io</code>) and searcher bundle relays (<code>relay.flashbots.net</code> via <code>eth_sendBundle</code> / <code>mev_sendBundle</code>) is essential.</p>
<p>This engineering guide synthesizes our <a href="https://mevdao.org">MEV DAO</a> benchmarks, troubleshooting checklists, and Foundry <code>anvil --fork-url</code> simulation workflows across every part of the Ethereum PBS (Proposer-Builder Separation) pipeline.</p>
<h2>Architecture &amp; Execution Checklist</h2>
<pre><code>[Local Node / Mempool Stream] ---&gt; [Foundry Anvil eth_call Simulation]
                                          |
                                          v
[X-Flashbots-Signature Auth]  ---&gt; [eth_sendBundle -&gt; Block Builders]
</code></pre>
<p>Key technical invariants to verify before broadcasting:</p>
<ol>
<li><strong>Simulate state transitions at <code>block.number + 1</code></strong> using <code>eth_callBundle</code> or a pinned Foundry <code>anvil --fork-url</code> environment before signing live bundles.</li>
<li><strong>Compute effective bundle gas price (<code>effectiveGasPrice</code>)</strong> across all transactions in the bundle, including <code>0</code>-gas sponsored victim transactions, and ensure it exceeds the target block's tail gas price.</li>
<li><strong>Multi-builder fan-out:</strong> Submit time-sensitive bundles simultaneously to <code>relay.flashbots.net</code>, Titan Builder, Beaverbuild, and Rsync Builder so you don't miss slots built by non-Flashbots relays.</li>
</ol>
<h2>Complete Technical Guides &amp; Deep-Dive Runbooks in This Series</h2>
<p>Below is the complete index of technical deep-dives, runnable Solidity/TypeScript templates, and step-by-step troubleshooting guides in this cluster:</p>
<ul>
<li><strong><a href="https://mevdao.org/blog/flashbots-bundles-explained-how-to-send-eth-sendbundle-and-why-yours-isn-t-landi">Flashbots Bundles Explained: How to Send eth_sendBundle and Why Yours Isn't Landing</a></strong> — Deep-dive guide covering <code>flashbots bundle</code>: How Flashbots bundles work, how to send one with eth_sendBundle, and a checklist for the 5 reasons a bundle doesn't get included on Ethereum.</li>
<li><strong><a href="https://mevdao.org/blog/what-is-a-sandwich-attack-how-to-avoid-getting-sandwiched">What Is a Sandwich Attack? How to Avoid Getting Sandwiched</a></strong> — Deep-dive guide covering <code>how to avoid sandwich attacks</code>: A worked example of a sandwich attack on a Uniswap swap, why your slippage setting is the attacker's budget, and five ways to stop getting sandwiched.</li>
<li><strong><a href="https://mevdao.org/blog/flashbots-protect-vs-mev-blocker-which-private-rpc-should-you-use">Flashbots Protect vs MEV Blocker: Which Private RPC Should You Use?</a></strong> — Deep-dive guide covering <code>flashbots protect vs mev blocker</code>: Flashbots Protect and MEV Blocker both hide your swaps from sandwich bots. How their endpoints, refunds, revert protection and privacy settings differ.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-test-an-mev-bot-on-a-mainnet-fork-with-anvil">How to Test an MEV Bot on a Mainnet Fork With Anvil</a></strong> — Deep-dive guide covering <code>anvil fork mainnet</code>: Fork mainnet at a past block with Anvil, impersonate whales, control mining and replay real MEV opportunities to test your bot before risking real ETH.</li>
<li><strong><a href="https://mevdao.org/blog/simulate-a-flashbots-bundle-with-eth-callbundle-2026">Simulate a Flashbots Bundle With eth_callBundle (2026)</a></strong> — Deep-dive guide covering <code>simulate flashbots bundle</code>: How to simulate a Flashbots bundle with eth_callBundle on Ethereum: JSON-RPC payload format, coinbaseDiff profit checks, revert debugging, and Go/TS examples.</li>
<li><strong><a href="https://mevdao.org/blog/front-running-bot-crypto-mempool-gas-wars-defenses">Front-Running Bot Crypto: Mempool, Gas Wars &amp; Defenses</a></strong> — Deep-dive guide covering <code>front running bot crypto</code>: How a front running bot crypto searcher works on Ethereum: mempool monitoring, generalized front-runners, sandwich attacks, scams, and defenses.</li>
<li><strong><a href="https://mevdao.org/blog/backrunning-bot-on-ethereum-first-mev-share-strategy">Backrunning Bot on Ethereum: First MEV-Share Strategy</a></strong> — Deep-dive guide covering <code>backrunning bot</code>: Build a profitable backrunning bot on Ethereum in 2026: how atomic DEX backruns and mev-share backrun orderflow auctions work without front-running users.</li>
<li><strong><a href="https://mevdao.org/blog/what-is-mev-protection-on-ethereum-should-you-use-it">What Is MEV Protection on Ethereum &amp; Should You Use It?</a></strong> — Deep-dive guide covering <code>what is mev protection</code>: What is MEV protection on Ethereum, how does it stop sandwich attacks, does Uniswap have MEV protection, and when should snipers turn it on?</li>
</ul>
<h2>Open-Source Reference Repositories</h2>
<ul>
<li><a href="https://github.com/mevdao-org/eip-7702-delegation-checker-revoker">eip-7702-delegation-checker-revoker</a> — CLI to inspect <code>0xef0100</code> delegation designators and clear malicious EIP-7702 delegates.</li>
<li><a href="https://github.com/mevdao-org/compromised-wallet-sweeper-rescue">compromised-wallet-sweeper-rescue</a> — Atomic <code>eth_sendBundle</code> sponsor + asset transfer rescue template.</li>
<li><a href="https://github.com/mevdao-org/flashbots-bundle-simulator-anvil">flashbots-bundle-simulator-anvil</a> — Reproducible Foundry Anvil harness for bundle debugging.</li>
<li><a href="https://github.com/mevdao-org/solidity-mev-bot-scam-detector">solidity-mev-bot-scam-detector</a> — Static analyzer to detect obfuscated YouTube/Remix MEV bot drainer contracts.</li>
<li><a href="https://github.com/mevdao-org/ethereum-sniper-bot-flashbots">ethereum-sniper-bot-flashbots</a> — Same-block Uniswap V2/V3 bundle execution and pre-trade honeypot simulation reference.</li>
<li><a href="https://github.com/mevdao-org/mev-arbitrage-and-liquidation-reference">mev-arbitrage-and-liquidation-reference</a> — Atomic two-pool arbitrage &amp; Aave V3 <code>liquidationCall</code> executor with builder coinbase bribe math.</li>
</ul>
<p>For production Ethereum sniping, compromised-wallet rescues, or custom MEV engineering, visit <a href="https://mevdao.org">MEV DAO</a> or start a <a href="https://mevdao.org/subscribe">3-day trial</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Ethereum Sniper Bot Architecture: Block-0 Flashbots Execution, Honeypot Simulation & Fee Math]]></title><description><![CDATA[Same-block (Block-0) token sniping on Ethereum requires monitoring pending liquidity additions (addLiquidityETH, enableTrading, or Uniswap V3/V4 pool…]]></description><link>https://mevdao.hashnode.dev/ethereum-sniper-bot-architecture-block-0-flashbots-execution-honeypot-simulation-fee-math</link><guid isPermaLink="true">https://mevdao.hashnode.dev/ethereum-sniper-bot-architecture-block-0-flashbots-execution-honeypot-simulation-fee-math</guid><dc:creator><![CDATA[Merunas Grincalaitis]]></dc:creator><pubDate>Sun, 25 Oct 2026 14:01:20 GMT</pubDate><content:encoded><![CDATA[<p>Same-block (<code>Block-0</code>) token sniping on Ethereum requires monitoring pending liquidity additions (<code>addLiquidityETH</code>, <code>enableTrading</code>, or Uniswap V3/V4 pool initialization), simulating buy-and-sell execution paths locally via <code>eth_call</code> / <code>debug_traceCall</code> to filter out honeypots and dynamic tax traps, and submitting an atomic <a href="https://mevdao.org/blog/flashbots-bundles-explained-how-to-send-eth-sendbundle-and-why-yours-isn-t-landi">Flashbots bundle</a> directly to block builders (<code>relay.flashbots.net</code>, Titan, Beaverbuild, Rsync).</p>
<p>This engineering handbook covers the full execution stack, anti-snipe contract defenses, and why <a href="https://mevdao.org">MEV DAO</a> uses flat-fee execution (<code>€200/month</code> with a <a href="https://mevdao.org/subscribe">3-day trial</a>) instead of charging a <code>1%</code> per-trade tax on every buy and sell.</p>
<h2>Architecture &amp; Execution Checklist</h2>
<pre><code>[Local Node / Mempool Stream] ---&gt; [Foundry Anvil eth_call Simulation]
                                          |
                                          v
[X-Flashbots-Signature Auth]  ---&gt; [eth_sendBundle -&gt; Block Builders]
</code></pre>
<p>Key technical invariants to verify before broadcasting:</p>
<ol>
<li><strong>Simulate state transitions at <code>block.number + 1</code></strong> using <code>eth_callBundle</code> or a pinned Foundry <code>anvil --fork-url</code> environment before signing live bundles.</li>
<li><strong>Compute effective bundle gas price (<code>effectiveGasPrice</code>)</strong> across all transactions in the bundle, including <code>0</code>-gas sponsored victim transactions, and ensure it exceeds the target block's tail gas price.</li>
<li><strong>Multi-builder fan-out:</strong> Submit time-sensitive bundles simultaneously to <code>relay.flashbots.net</code>, Titan Builder, Beaverbuild, and Rsync Builder so you don't miss slots built by non-Flashbots relays.</li>
</ol>
<h2>Complete Technical Guides &amp; Deep-Dive Runbooks in This Series</h2>
<p>Below is the complete index of technical deep-dives, runnable Solidity/TypeScript templates, and step-by-step troubleshooting guides in this cluster:</p>
<ul>
<li><strong><a href="https://mevdao.org/blog/how-ethereum-sniper-bots-work-same-block-buys-with-flashbots-and-the-real-risks">How Ethereum Sniper Bots Work: Same-Block Buys With Flashbots (and the Real Risks)</a></strong> — Deep-dive guide covering <code>ethereum sniper bot</code>: How crypto sniper bots buy new tokens in the same block liquidity is added: mempool watching, Flashbots bundles, bribes, and the honeypots that catch snipers.</li>
<li><strong><a href="https://mevdao.org/blog/honeypot-tokens-how-to-spot-one-before-you-buy">Honeypot Tokens: How to Spot One Before You Buy</a></strong> — Deep-dive guide covering <code>how to detect honeypot token</code>: How honeypot tokens block sells with blacklists, 100% taxes and hidden owner switches, and the checks I run before buying a new token on Ethereum.</li>
<li><strong><a href="https://mevdao.org/blog/anti-snipe-token-launches-taxes-blacklists-and-trading-delays">Anti-Snipe Token Launches: Taxes, Blacklists and Trading Delays</a></strong> — Deep-dive guide covering <code>anti sniper bot token launch</code>: Launch taxes, first-block blacklists, max wallet, cooldowns and Uniswap v4 hooks: how anti-snipe token launches work and how sniper bots deal with each.</li>
<li><strong><a href="https://mevdao.org/blog/ethereum-sniper-bot-flashbots-same-block-sniping-on-uniswap">Ethereum Sniper Bot: Flashbots Same-Block Sniping on Uniswap</a></strong> — Deep-dive guide covering <code>flashbots sniper bot</code>: How a Flashbots sniper bot buys a new Uniswap token in the same block: v2/v3/v4 launch patterns, Block-0 vs Block-1, bribes, settings and the risks.</li>
<li><strong><a href="https://mevdao.org/blog/crypto-sniping-group-on-telegram-mev-dao-premium-sniping-group">Crypto Sniping Group on Telegram: MEV DAO Premium Sniping Group</a></strong> — Deep-dive guide covering <code>crypto sniping group telegram</code>: How to judge a crypto sniping group on Telegram: free calls vs real sniping, pump-and-dumps, fake Safeguard bots, and a pre-trade checklist.</li>
<li><strong><a href="https://mevdao.org/blog/banana-gun-alternatives-for-ethereum-flat-fee-sniping-vs-1-per-trade">Banana Gun Alternatives for Ethereum: Flat-Fee Sniping vs 1% Per Trade</a></strong> — Deep-dive guide covering <code>banana gun alternatives for ethereum flat fee sniping vs 1 per trade</code>: Banana Gun alternatives on Ethereum compared: Maestro, Sigma, flat-fee and custom bots, by fees, key custody and how they land snipes.</li>
<li><strong><a href="https://mevdao.org/blog/best-eth-sniper-bot-in-2026-fees-speed-key-custody">Best ETH Sniper Bot in 2026: Fees, Speed &amp; Key Custody</a></strong> — Deep-dive guide covering <code>best eth sniper bot</code>: Compare the best ETH sniper bot options in 2026 across fees, speed, and key custody: Banana Gun, Maestro, open-source scripts, and MEV DAO.</li>
<li><strong><a href="https://mevdao.org/blog/banana-gun-vs-maestro-vs-mev-dao-eth-sniping-compared">Banana Gun vs Maestro vs MEV DAO: ETH Sniping Compared</a></strong> — Deep-dive guide covering <code>banana gun vs maestro</code>: Banana Gun vs Maestro vs MEV DAO compared on Ethereum mainnet: 1% per-trade fees vs flat-fee sniping, block-0 bundle speed, router safety, and key custody.</li>
<li><strong><a href="https://mevdao.org/blog/banana-gun-fees-vs-telegram-sniper-bot-fees-2026">Banana Gun Fees vs Telegram Sniper Bot Fees (2026)</a></strong> — Deep-dive guide covering <code>banana gun fees</code>: Banana Gun fees vs Maestro fees and other Telegram sniper bot fees compared: what 1% per trade really costs on Ethereum vs flat-fee Flashbots sniping.</li>
<li><strong><a href="https://mevdao.org/blog/are-telegram-trading-bots-safe-key-custody-hacks">Are Telegram Trading Bots Safe? Key Custody &amp; Hacks</a></strong> — Deep-dive guide covering <code>are telegram trading bots safe</code>: Are Telegram trading bots safe in 2026? How key custody works in Banana Gun, Maestro, and Unibot, past router exploits, and how to snipe without losing keys.</li>
<li><strong><a href="https://mevdao.org/blog/block-0-sniper-explained-same-block-token-launch-buys">Block 0 Sniper Explained: Same-Block Token Launch Buys</a></strong> — Deep-dive guide covering <code>block 0 sniper</code>: How a block 0 sniper works on Ethereum: bundling same-block buys behind addLiquidity or enableTrading via Flashbots, builder tips, and anti-snipe defenses.</li>
<li><strong><a href="https://mevdao.org/blog/meme-coin-sniper-bot-on-ethereum-setup-risks">Meme Coin Sniper Bot on Ethereum: Setup &amp; Risks</a></strong> — Deep-dive guide covering <code>meme coin sniper bot ethereum</code>: How to configure a meme coin sniper bot on Ethereum in 2026: Flashbots block-0 settings, max-wallet limits, honeypot simulation, and avoiding rug pulls.</li>
<li><strong><a href="https://mevdao.org/blog/is-a-sniper-bot-worth-it-are-sniper-bots-profitable">Is a Sniper Bot Worth It? Are Sniper Bots Profitable</a></strong> — Deep-dive guide covering <code>is a sniper bot worth it</code>: Is a sniper bot worth it on Ethereum in 2026? See on-chain profitability data, why 74% of blind snipes lose, and how winning searchers filter.</li>
<li><strong><a href="https://mevdao.org/blog/ethereum-sniper-bot-github-open-source-vs-paid-bots">Ethereum Sniper Bot GitHub: Open-Source vs Paid Bots</a></strong> — Deep-dive guide covering <code>ethereum sniper bot github</code>: Reviewing Ethereum sniper bot GitHub repos vs paid bots in 2026: Uniswap V2/V3 sniper code, what free scripts miss, and how to spot malicious GitHub drainers.</li>
<li><strong><a href="https://mevdao.org/blog/crypto-sniping-group-telegram-legit-vs-dump-groups">Crypto Sniping Group Telegram: Legit vs Dump Groups</a></strong> — Deep-dive guide covering <code>ethereum calls telegram group</code>: Joining an Ethereum calls Telegram group or crypto sniping group? Spot exit-liquidity pump rooms vs verified contract audits and Flashbots snipes.</li>
<li><strong><a href="https://mevdao.org/blog/mempool-sniper-bot-pending-tx-snipes-vs-private-bundles">Mempool Sniper Bot: Pending-Tx Snipes vs Private Bundles</a></strong> — Deep-dive guide covering <code>mempool sniper bot</code>: How an Ethereum mempool sniper bot works in 2026: watching pending liquidity transactions vs. private Flashbots bundles, and how to win Block 0 launches.</li>
<li><strong><a href="https://mevdao.org/blog/eth-copy-trading-bot-how-wallet-tracking-snipes-work">ETH Copy Trading Bot: How Wallet-Tracking Snipes Work</a></strong> — Deep-dive guide covering <code>eth copy trading bot</code>: How an ETH copy trading bot works on Ethereum in 2026: mempool vs. confirmed-block wallet tracking, avoiding copy-trade bait traps, and Flashbots execution.</li>
<li><strong><a href="https://mevdao.org/blog/uniswap-v4-sniper-hooks-what-changes-for-launch-bots">Uniswap V4 Sniper: Hooks &amp; What Changes for Launch Bots</a></strong> — Deep-dive guide covering <code>uniswap v4 sniper</code>: How a Uniswap V4 sniper bot works on Ethereum in 2026: PoolManager singleton architecture, flash accounting, beforeSwap hooks, and dynamic launch-tax evasion.</li>
<li><strong><a href="https://mevdao.org/blog/anti-snipe-token-tax-blacklist-detection-for-snipers">Anti-Snipe Token Tax &amp; Blacklist Detection for Snipers</a></strong> — Deep-dive guide covering <code>anti snipe token</code>: Run anti snipe token and token tax checker diagnostics in 60 seconds by inspecting Solidity modifiers, dynamic fee hooks, and blacklist mappings.</li>
<li><strong><a href="https://mevdao.org/blog/sniper-bot-gas-settings-priority-fees-builder-tips">Sniper Bot Gas Settings: Priority Fees &amp; Builder Tips</a></strong> — Deep-dive guide covering <code>sniper bot gas settings</code>: Master sniper bot gas settings and priority fee sniping on Ethereum: EIP-1559 maxPriorityFeePerGas, block.coinbase builder bribes, and bundles.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-use-banana-gun-on-ethereum-vs-flat-fee-sniping">How to Use Banana Gun on Ethereum vs Flat-Fee Sniping</a></strong> — Deep-dive guide covering <code>how to use banana gun</code>: How to use Banana Gun on Ethereum in 2026: how it works, 1% auto-snipe fee math, builder bribes, and when flat-fee Flashbots sniping costs less.</li>
</ul>
<h2>Open-Source Reference Repositories</h2>
<ul>
<li><a href="https://github.com/mevdao-org/eip-7702-delegation-checker-revoker">eip-7702-delegation-checker-revoker</a> — CLI to inspect <code>0xef0100</code> delegation designators and clear malicious EIP-7702 delegates.</li>
<li><a href="https://github.com/mevdao-org/compromised-wallet-sweeper-rescue">compromised-wallet-sweeper-rescue</a> — Atomic <code>eth_sendBundle</code> sponsor + asset transfer rescue template.</li>
<li><a href="https://github.com/mevdao-org/flashbots-bundle-simulator-anvil">flashbots-bundle-simulator-anvil</a> — Reproducible Foundry Anvil harness for bundle debugging.</li>
<li><a href="https://github.com/mevdao-org/solidity-mev-bot-scam-detector">solidity-mev-bot-scam-detector</a> — Static analyzer to detect obfuscated YouTube/Remix MEV bot drainer contracts.</li>
<li><a href="https://github.com/mevdao-org/ethereum-sniper-bot-flashbots">ethereum-sniper-bot-flashbots</a> — Same-block Uniswap V2/V3 bundle execution and pre-trade honeypot simulation reference.</li>
<li><a href="https://github.com/mevdao-org/mev-arbitrage-and-liquidation-reference">mev-arbitrage-and-liquidation-reference</a> — Atomic two-pool arbitrage &amp; Aave V3 <code>liquidationCall</code> executor with builder coinbase bribe math.</li>
</ul>
<p>For production Ethereum sniping, compromised-wallet rescues, or custom MEV engineering, visit <a href="https://mevdao.org">MEV DAO</a> or start a <a href="https://mevdao.org/subscribe">3-day trial</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Ethereum Compromised Wallet & EIP-7702 Sweeper Rescue Handbook (2026 Reference)]]></title><description><![CDATA[When an Ethereum private key or seed phrase leaks, automated sweeper bots monitor the address and drain any incoming ETH within milliseconds—long before…]]></description><link>https://mevdao.hashnode.dev/ethereum-compromised-wallet-eip-7702-sweeper-rescue-handbook-2026-reference</link><guid isPermaLink="true">https://mevdao.hashnode.dev/ethereum-compromised-wallet-eip-7702-sweeper-rescue-handbook-2026-reference</guid><category><![CDATA[Ethereum]]></category><dc:creator><![CDATA[Merunas Grincalaitis]]></dc:creator><pubDate>Sun, 25 Oct 2026 13:59:26 GMT</pubDate><content:encoded><![CDATA[<p>When an Ethereum private key or seed phrase leaks, automated sweeper bots monitor the address and drain any incoming ETH within milliseconds—long before you can broadcast a standard <code>transfer</code> or <code>revoke</code> transaction. Since the May 2025 Pectra upgrade (<code>EIP-7702</code>, transaction type <code>0x04</code>), attackers also attach persistent <code>0xef0100 || delegate_address</code> bytecode directly to externally owned accounts (EOAs), executing malicious <code>receive()</code> hooks inside the funding call itself.</p>
<p>This technical reference compiles the complete atomic Flashbots bundle (<code>eth_sendBundle</code>) rescue architecture, EIP-7702 delegation clearing workflow, and protocol-specific recovery runbooks maintained by <a href="https://mevdao.org">MEV DAO</a>.</p>
<h2>Architecture &amp; Execution Checklist</h2>
<pre><code>[Local Node / Mempool Stream] ---&gt; [Foundry Anvil eth_call Simulation]
                                          |
                                          v
[X-Flashbots-Signature Auth]  ---&gt; [eth_sendBundle -&gt; Block Builders]
</code></pre>
<p>Key technical invariants to verify before broadcasting:</p>
<ol>
<li><strong>Simulate state transitions at <code>block.number + 1</code></strong> using <code>eth_callBundle</code> or a pinned Foundry <code>anvil --fork-url</code> environment before signing live bundles.</li>
<li><strong>Compute effective bundle gas price (<code>effectiveGasPrice</code>)</strong> across all transactions in the bundle, including <code>0</code>-gas sponsored victim transactions, and ensure it exceeds the target block's tail gas price.</li>
<li><strong>Multi-builder fan-out:</strong> Submit time-sensitive bundles simultaneously to <code>relay.flashbots.net</code>, Titan Builder, Beaverbuild, and Rsync Builder so you don't miss slots built by non-Flashbots relays.</li>
</ol>
<h2>Complete Technical Guides &amp; Deep-Dive Runbooks in This Series</h2>
<p>Below is the complete index of technical deep-dives, runnable Solidity/TypeScript templates, and step-by-step troubleshooting guides in this cluster:</p>
<ul>
<li><strong><a href="https://mevdao.org/blog/how-to-rescue-tokens-from-a-compromised-wallet-with-a-sweeper-bot-flashbots-guid">How to Rescue Tokens From a Compromised Wallet With a Sweeper Bot (Flashbots Guide)</a></strong> — Deep-dive guide covering <code>rescue tokens compromised wallet</code>: A sweeper bot steals every bit of ETH you send for gas. Here's how Flashbots bundles let you rescue tokens and NFTs from a compromised wallet anyway.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-check-and-remove-a-malicious-eip-7702-delegation">How to Check and Remove a Malicious EIP-7702 Delegation</a></strong> — Deep-dive guide covering <code>remove eip-7702 delegation</code>: EIP-7702 sweeper on your wallet? How to see the delegation with eth_getCode, clear it to address zero, and rescue funds before the attacker re-delegates.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-revoke-token-approvals-and-permit2-signatures">How to Revoke Token Approvals and Permit2 Signatures</a></strong> — Deep-dive guide covering <code>revoke token approvals</code>: Unlimited approvals and signed Permit2 permits drain most wallets. How to find and revoke them, use Permit2 lockdown, and when revoking won't help.</li>
<li><strong><a href="https://mevdao.org/blog/rescue-tokens-from-a-compromised-wallet-sweeper-bot-rescue-service">Rescue Tokens From a Compromised Wallet: Sweeper Bot Rescue Service</a></strong> — Deep-dive guide covering <code>rescue tokens from compromised wallet</code>: Your options for a sweeper bot rescue: DIY Flashbots bundles, the Flashbots Whitehat Hotline, rescue tools, and how to spot fake recovery services.</li>
<li><strong><a href="https://mevdao.org/blog/how-to-claim-an-airdrop-from-a-compromised-wallet-before-the-sweeper-does">How to Claim an Airdrop From a Compromised Wallet (Before the Sweeper Does)</a></strong> — Deep-dive guide covering <code>how to claim an airdrop from a compromised wallet before the sweeper does</code>: How to claim an airdrop from a compromised wallet with a Flashbots bundle: fund gas, claim and transfer in one block before the sweeper bot.</li>
<li><strong><a href="https://mevdao.org/blog/the-youtube-mev-bot-scam-how-the-remix-contract-drains-your-eth">The YouTube MEV Bot Scam: How the "Remix Contract" Drains Your ETH</a></strong> — Deep-dive guide covering <code>youtube mev bot scam</code>: How the YouTube MEV bot scam works: how the fake Remix bot contract hides the attacker address, real on-chain losses, red flags, and recovery steps.</li>
<li><strong><a href="https://mevdao.org/blog/wallet-drained-what-to-do-in-the-first-hour-ethereum-checklist">Wallet Drained? What to Do in the First Hour (Ethereum Checklist)</a></strong> — Deep-dive guide covering <code>wallet drained</code>: Wallet drained? A first-hour Ethereum checklist: stop the bleeding, tell a key leak from an approval drain, move to a new seed, rescue leftovers, report it.</li>
<li><strong><a href="https://mevdao.org/blog/crypto-recovery-scams-how-to-spot-fake-wallet-recovery-services">Crypto Recovery Scams: How to Spot Fake "Wallet Recovery" Services</a></strong> — Deep-dive guide covering <code>crypto recovery scam</code>: Crypto recovery scams took $1.4B in 2025 per the FBI. How fake recovery services find drain victims, the red flags, and what can actually be recovered.</li>
<li><strong><a href="https://mevdao.org/blog/unstake-from-a-compromised-wallet-rescue-locked-tokens">Unstake From a Compromised Wallet: Rescue Locked Tokens</a></strong> — Deep-dive guide covering <code>unstake from compromised wallet</code>: How to unstake from a compromised wallet on Ethereum: rescue staked ETH, Lido/EigenLayer positions, and vesting tokens before a sweeper bot steals them.</li>
<li><strong><a href="https://mevdao.org/blog/eip-7702-rescue-vs-flashbots-bundles-saving-tokens">EIP 7702 Rescue vs Flashbots Bundles: Saving Tokens</a></strong> — Deep-dive guide covering <code>eip 7702 rescue</code>: EIP 7702 rescue vs classic Flashbots bundles on Ethereum: how sweep7702 atomic batching defeats aggressive sweeper bots and rescues compromised wallets.</li>
<li><strong><a href="https://mevdao.org/blog/recover-nft-from-a-hacked-wallet-sweeper-bot-guide">Recover NFT From a Hacked Wallet: Sweeper Bot Guide</a></strong> — Deep-dive guide covering <code>recover nft from hacked wallet</code>: How to recover an NFT from a hacked wallet on Ethereum when a sweeper bot is watching: atomic Flashbots ERC-721 and ERC-1155 rescue bundles explained.</li>
<li><strong><a href="https://mevdao.org/blog/private-key-leaked-on-ethereum-save-what-s-left">Private Key Leaked on Ethereum? Save What's Left</a></strong> — Deep-dive guide covering <code>private key leaked ethereum</code>: Private key leaked on Ethereum or GitHub? See how secret-scanner sweeper bots drain .env keys in seconds and how to rescue tokens via Flashbots.</li>
<li><strong><a href="https://mevdao.org/blog/sweeper-bot-on-trust-wallet-ledger-rabby-rescue-steps">Sweeper Bot on Trust Wallet, Ledger &amp; Rabby: Rescue Steps</a></strong> — Deep-dive guide covering <code>sweeper bot trust wallet</code>: Dealing with a sweeper bot on Trust Wallet, Ledger, or Rabby? How wallet-specific seed derivation works and how to export your key to run a Flashbots rescue.</li>
<li><strong><a href="https://mevdao.org/blog/compromised-wallet-checker-is-your-ethereum-key-leaked">Compromised Wallet Checker: Is Your Ethereum Key Leaked?</a></strong> — Deep-dive guide covering <code>compromised wallet checker</code>: Use this 5-step Ethereum compromised wallet checker to tell whether your private key is leaked, you have an EIP-7702 sweeper, or a token approval drained you.</li>
<li><strong><a href="https://mevdao.org/blog/rescue-ens-vesting-contracts-from-a-compromised-wallet">Rescue ENS &amp; Vesting Contracts From a Compromised Wallet</a></strong> — Deep-dive guide covering <code>rescue ens compromised wallet</code>: How to rescue ENS names (.eth) and token vesting contracts (Sablier, Team Finance, Unicrypt, custom cliffs) from a compromised Ethereum wallet via Flashbots.</li>
<li><strong><a href="https://mevdao.org/blog/wallet-drainer-approvals-permit-setapprovalforall-7702">Wallet Drainer Approvals: Permit, SetApprovalForAll &amp; 7702</a></strong> — Deep-dive guide covering <code>wallet drainer approvals</code>: How wallet drainer approvals steal ERC-20s, NFTs, and ETH via EIP-2612 Permit, Permit2, SetApprovalForAll, and EIP-7702—and how to revoke them.</li>
<li><strong><a href="https://mevdao.org/blog/sweeper-bot-rescue-service-live-token-rescue-case-study">Sweeper Bot Rescue Service: Live Token Rescue Case Study</a></strong> — Deep-dive guide covering <code>sweeper bot rescue service</code>: Case study: how our sweeper bot rescue service used a private Flashbots rescue bundle to save $42,800 in tokens from an active Ethereum sweeper.</li>
</ul>
<h2>Open-Source Reference Repositories</h2>
<ul>
<li><a href="https://github.com/mevdao-org/eip-7702-delegation-checker-revoker">eip-7702-delegation-checker-revoker</a> — CLI to inspect <code>0xef0100</code> delegation designators and clear malicious EIP-7702 delegates.</li>
<li><a href="https://github.com/mevdao-org/compromised-wallet-sweeper-rescue">compromised-wallet-sweeper-rescue</a> — Atomic <code>eth_sendBundle</code> sponsor + asset transfer rescue template.</li>
<li><a href="https://github.com/mevdao-org/flashbots-bundle-simulator-anvil">flashbots-bundle-simulator-anvil</a> — Reproducible Foundry Anvil harness for bundle debugging.</li>
<li><a href="https://github.com/mevdao-org/solidity-mev-bot-scam-detector">solidity-mev-bot-scam-detector</a> — Static analyzer to detect obfuscated YouTube/Remix MEV bot drainer contracts.</li>
<li><a href="https://github.com/mevdao-org/ethereum-sniper-bot-flashbots">ethereum-sniper-bot-flashbots</a> — Same-block Uniswap V2/V3 bundle execution and pre-trade honeypot simulation reference.</li>
<li><a href="https://github.com/mevdao-org/mev-arbitrage-and-liquidation-reference">mev-arbitrage-and-liquidation-reference</a> — Atomic two-pool arbitrage &amp; Aave V3 <code>liquidationCall</code> executor with builder coinbase bribe math.</li>
</ul>
<p>For production Ethereum sniping, compromised-wallet rescues, or custom MEV engineering, visit <a href="https://mevdao.org">MEV DAO</a> or start a <a href="https://mevdao.org/subscribe">3-day trial</a>.</p>
]]></content:encoded></item><item><title><![CDATA[How to Revoke Token Approvals and Permit2 Signatures]]></title><description><![CDATA[Most of the drained wallets I look at weren't hacked in the movie sense. Nobody broke any cryptography. The owner gave a contract permission to move their…]]></description><link>https://mevdao.hashnode.dev/how-to-revoke-token-approvals-and-permit2-signatures</link><guid isPermaLink="true">https://mevdao.hashnode.dev/how-to-revoke-token-approvals-and-permit2-signatures</guid><category><![CDATA[Ethereum]]></category><category><![CDATA[Web3]]></category><category><![CDATA[Security]]></category><category><![CDATA[defi]]></category><dc:creator><![CDATA[Merunas Grincalaitis]]></dc:creator><pubDate>Thu, 22 Oct 2026 21:55:07 GMT</pubDate><content:encoded><![CDATA[<p>Most of the drained wallets I look at weren't hacked in the movie sense. Nobody broke any cryptography. The owner gave a contract permission to move their tokens, sometimes years ago, and someone eventually used it.</p>
<p>That permission is a token approval. And over the last few years a second kind has become common, one that most people don't even know they've given: Permit2 allowances and signed permits. Both can be cleaned up, but the way you do it is different, and there's one case where cleaning them up does nothing at all.</p>
<p>Let me go through it the way I'd do it on my own wallets.</p>
<h2>The three kinds of permission you've probably granted</h2>
<p><strong>1. Classic ERC-20 approvals.</strong> When you swap a token for the first time, the dApp asks you to <code>approve(spender, amount)</code>. Lots of interfaces default to an unlimited amount (<code>2^256 - 1</code>) so you never have to approve again. That approval sits on the token contract forever, until you change it.</p>
<p><strong>2. NFT operator approvals.</strong> <code>setApprovalForAll(operator, true)</code> gives one address control over <em>every</em> NFT you hold in that collection, now and in the future. Marketplaces need it to list your stuff. Phishing sites love it for the same reason.</p>
<p><strong>3. Permit2.</strong> <a href="https://github.com/Uniswap/permit2">Permit2</a> is a contract Uniswap deployed that many apps now use as a shared approval layer. You approve Permit2 once per token with a normal ERC-20 approval, and then individual apps get access through Permit2, either as a stored allowance (the AllowanceTransfer part) or through a one-time signature (the SignatureTransfer part).</p>
<p>The Permit2 detail that matters for security: a lot of it happens through <strong>signatures you sign off-chain</strong>. No transaction, no gas, nothing in your wallet history. MetaMask's own <a href="https://support.metamask.io/privacy-and-security/staying-safe-in-web3/signature-phishing/">guide on signature phishing</a> points out that attackers can sit on a signed Permit2 permit and use it later, when you've already forgotten about it.</p>
<h2>Step 1: find what you've approved</h2>
<p>Use a dedicated tool. Don't try to work it out from your transaction history.</p>
<ul>
<li><a href="https://revoke.cash">revoke.cash</a> lists ERC-20 approvals, NFT approvals and Permit2 allowances per chain. It also explains each type well in its <a href="https://revoke.cash/learn/approvals/what-are-token-approvals">approvals guide</a>.</li>
<li>Etherscan has a Token Approval Checker under its tools menu that does the same for Ethereum.</li>
</ul>
<p>Connect in read-only mode or just paste your address. You don't need to connect a wallet just to <em>look</em>.</p>
<p>When you go through the list, sort by risk:</p>
<ol>
<li><strong>Unlimited approvals to anything you don't use anymore.</strong> Dead protocols, old bridges, random farms from 2021. If that contract has a bug or an upgradeable admin key gets compromised, your tokens are exposed.</li>
<li><strong><code>setApprovalForAll</code> on valuable collections</strong>, especially to marketplaces you don't use.</li>
<li><strong>Approvals to unverified contracts or EOAs.</strong> An approval to a plain wallet address is almost never legitimate. That's a red flag.</li>
<li><strong>Permit2 allowances</strong> with long expirations.</li>
</ol>
<h2>Step 2: revoke the classic approvals</h2>
<p>Revoking an ERC-20 approval is just another approval with amount zero:</p>
<pre><code class="language-solidity">IERC20(token).approve(spender, 0);
</code></pre>
<p>For NFTs:</p>
<pre><code class="language-solidity">IERC721(collection).setApprovalForAll(operator, false);
</code></pre>
<p>revoke.cash and Etherscan wrap these into a button, but under the hood that's all it is. Each revoke is a transaction and costs gas. On mainnet that adds up, which is why I'd rather revoke the dangerous ten than the harmless hundred.</p>
<h2>Step 3: deal with Permit2</h2>
<p>Permit2 needs a bit more thought, because there are three layers.</p>
<p><strong>Layer 1: the ERC-20 approval to Permit2 itself.</strong> Permit2 can only move a token if you approved Permit2 on that token. Revoke that approval and <em>every</em> Permit2 path for that token is cut off: stored allowances and signed permits alike. If you suspect you signed something bad and don't know what, this is the hammer.</p>
<p><strong>Layer 2: stored Permit2 allowances.</strong> These live inside the Permit2 contract, per token and per spender. Each has an amount and an expiration. You can set one to zero, or use <code>lockdown</code>, which takes a list of token/spender pairs and zeroes all of them in one transaction:</p>
<pre><code class="language-solidity">// AllowanceTransfer.sol
function lockdown(TokenSpenderPair[] calldata approvals) external;
</code></pre>
<p><strong>Layer 3: permits you signed but nobody used yet.</strong> This is the scary one, because there's nothing on-chain to see. For AllowanceTransfer permits, Permit2 has <code>invalidateNonces(token, spender, newNonce)</code>, which bumps your nonce so every older signature for that pair becomes invalid. The contract only lets you move the nonce forward a limited amount per call (up to 2^16), to stop griefing. For SignatureTransfer permits, there's <code>invalidateUnorderedNonces(wordPos, mask)</code>, which marks specific nonces as used.</p>
<p>In practice, if you don't know exactly which signature you gave, doing layer 1 for the tokens you care about is faster and safer than hunting down nonces.</p>
<h2>What about EIP-2612 permits?</h2>
<p>Some tokens, USDC for example, support <code>permit</code> natively (<a href="https://eips.ethereum.org/EIPS/eip-2612">EIP-2612</a>). You sign a message, someone submits it, and it becomes a normal approval. A signed-but-unused permit stays valid until its deadline, and only stops working once the token's nonce for your address moves past it.</p>
<p>Once it's been used it's just a regular approval, so you revoke it like one. If you think someone has an <em>unused</em> permit from you, the reliable defence is to move the tokens to another address before they use it. MetaMask gives the same advice for signatures you can't revoke.</p>
<h2>The case where revoking does nothing</h2>
<p>Here's what people get wrong. If your <strong>private key or seed phrase</strong> leaked, approvals are irrelevant. The attacker doesn't need your permission to move tokens. They <em>are</em> you. They'll just call <code>transfer</code> directly.</p>
<p>Worse, every revoke you send costs ETH, and if there's a sweeper bot on the wallet, that ETH disappears before you can use it. I've seen people top up gas five or six times trying to revoke approvals on a wallet the attacker fully controls. Every time, the ETH was gone in the same block.</p>
<p>How to tell which situation you're in:</p>
<ul>
<li><strong>Approval/permit exploit:</strong> tokens left your wallet through <code>transferFrom</code> called by some contract or address. Your ETH is untouched. New ETH you send stays put.</li>
<li><strong>Key compromise:</strong> ETH leaves the moment it arrives, tokens move with plain <code>transfer</code> calls <em>from your own address</em>, or your address suddenly has code on it. That last one is an EIP-7702 delegation, which I explain in my guide on <a href="https://mevdao.org/blog/how-to-check-and-remove-a-malicious-eip-7702-delegation">how to check and remove a malicious 7702 delegation</a>.</li>
</ul>
<p>If it's a key compromise, stop revoking. You need a rescue: move the remaining assets out in one atomic <a href="https://mevdao.org/blog/flashbots-bundles-explained-how-to-send-eth-sendbundle-and-why-yours-isn-t-landi">Flashbots bundle</a> where the gas money and the transfers land in the same block. I wrote the full process in <a href="https://mevdao.org/blog/how-to-rescue-tokens-from-a-compromised-wallet-with-a-sweeper-bot-flashbots-guid">how to rescue tokens from a compromised wallet with a sweeper bot</a>.</p>
<h2>Habits that keep you out of this mess</h2>
<ul>
<li><strong>Approve exact amounts</strong> for one-off interactions. It costs you one extra transaction next time. That's cheap insurance.</li>
<li><strong>Read what you sign.</strong> If a site asks for a signature and the wallet shows <code>PermitSingle</code>, <code>PermitBatch</code> or <code>PermitTransferFrom</code>, you're signing spending rights. A "login" or "claim" should never need that.</li>
<li><strong>Use a separate hot wallet</strong> for minting, airdrops and new protocols. Keep long-term holdings in a wallet that never connects to anything new.</li>
<li><strong>Do an approval audit every few months.</strong> Twenty minutes on revoke.cash is enough.</li>
<li><strong>Use a hardware wallet for the cold wallet.</strong> It doesn't stop you from signing a bad permit, but it does stop malware from signing one without you.</li>
</ul>
<h2>Quick reference</h2>
<ul>
<li>ERC-20 approval: <code>approve(spender, 0)</code></li>
<li>NFT operator: <code>setApprovalForAll(operator, false)</code></li>
<li>All Permit2 access for a token: revoke the ERC-20 approval to the Permit2 contract</li>
<li>Permit2 stored allowances: <code>lockdown([...pairs])</code></li>
<li>Unused Permit2 allowance signatures: <code>invalidateNonces(token, spender, newNonce)</code></li>
<li>Unused Permit2 transfer signatures: <code>invalidateUnorderedNonces(wordPos, mask)</code></li>
<li>Leaked key: don't revoke, rescue</li>
</ul>
<p>If you already lost the race and the wallet is being swept, the MEVDAO <a href="https://mevdao.org/#features">Token Rescue Bot</a> does the bundled rescue for you. It's part of the <a href="https://mevdao.org/#pricing">subscription</a> along with the sniping tools. For anything weird, message me on <a href="https://t.me/merunas">Telegram</a>.</p>
<p>I send tips like these every week on the MEV Secrets email list. You can join right below.</p>
<hr />
<p><em>Originally published on the <a href="https://mevdao.org/blog/how-to-revoke-token-approvals-and-permit2-signatures">MEV DAO blog</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[How to Check and Remove a Malicious EIP-7702 Delegation]]></title><description><![CDATA[Since the Pectra upgrade went live on Ethereum mainnet in May 2025, I've been getting a new kind of message from people with compromised wallets. It's not…]]></description><link>https://mevdao.hashnode.dev/how-to-check-and-remove-a-malicious-eip-7702-delegation</link><guid isPermaLink="true">https://mevdao.hashnode.dev/how-to-check-and-remove-a-malicious-eip-7702-delegation</guid><category><![CDATA[Ethereum]]></category><category><![CDATA[Web3]]></category><category><![CDATA[Security]]></category><category><![CDATA[Blockchain]]></category><dc:creator><![CDATA[Merunas Grincalaitis]]></dc:creator><pubDate>Thu, 22 Oct 2026 21:54:44 GMT</pubDate><content:encoded><![CDATA[<p>Since the Pectra upgrade went live on Ethereum mainnet in May 2025, I've been getting a new kind of message from people with compromised wallets. It's not the classic "a bot takes my ETH every time I send gas" anymore. Now it's "my wallet has code on it and I never deployed anything".</p>
<p>That's EIP-7702. It's a good upgrade. It lets a normal wallet (an EOA) point at a smart contract and behave like a smart account, which gives you batching, gas sponsorship and all that. But the same feature is a gift for anyone holding a leaked private key, because they can now attach their own sweeper contract to your address. And once that code is on your account, it runs every time someone sends you ETH.</p>
<p>In this guide I'll show you how to check whether your address has a delegation, how to tell a legit one from a malicious one, and how to clear it. I'll also explain why clearing it on its own usually isn't enough.</p>
<h2>What a 7702 delegation actually is</h2>
<p><a href="https://eips.ethereum.org/EIPS/eip-7702">EIP-7702</a> adds a new transaction type, <code>0x04</code>, called a set-code transaction. Inside it there's a list of authorizations. Each authorization is a tuple signed by the account owner:</p>
<pre><code>[chain_id, address, nonce, y_parity, r, s]
</code></pre>
<p>When that transaction is processed, the protocol writes a tiny piece of code to your account: the bytes <code>0xef0100</code> followed by the 20-byte <code>address</code> you delegated to. The spec calls this a delegation indicator. From then on, any call to your address executes the code that lives at that delegated address, in the context of your account. Your balance, your storage, your tokens.</p>
<p>Three details from the spec matter a lot when you're dealing with an attacker:</p>
<ul>
<li><strong>It's persistent.</strong> The delegation stays until another authorization replaces it. It doesn't expire.</li>
<li><strong>It survives reverts.</strong> The spec says the delegation is not rolled back if the rest of the transaction fails.</li>
<li><strong><code>chain_id</code> 0 means every chain.</strong> An authorization signed with chain ID 0 is valid on any EVM chain that supports 7702, as long as the nonce matches there.</li>
</ul>
<p>The spec authors were very aware of the risk. It literally warns that wallets shouldn't let apps prompt users for authorizations, and that a badly built delegate contract can hand an attacker near-complete control of the account.</p>
<h2>Why a 7702 sweeper is worse than a normal sweeper</h2>
<p>A classic sweeper bot watches the mempool and the chain. When ETH lands in your wallet, it signs a transaction to send it out. That's a race. A fast enough rescue, usually a <a href="https://mevdao.org/blog/how-to-rescue-tokens-from-a-compromised-wallet-with-a-sweeper-bot-flashbots-guid">Flashbots bundle</a>, can win it.</p>
<p>A 7702 sweeper doesn't need to race. If the delegate contract has a <code>receive()</code> function that forwards ETH, the transfer that funds your wallet is the same call that empties it. There's no window. The ETH arrives and leaves inside one execution.</p>
<p>This isn't theoretical. Right after Pectra, Wintermute's research team flagged a family of copy-paste sweeper delegates they nicknamed "CrimeEnjoyor", and <a href="https://www.coindesk.com/tech/2025/06/02/post-pectra-upgrade-malicious-ethereum-contracts-are-trying-to-drain-wallets-but-to-no-avail-wintermute">CoinDesk covered it</a>. The contracts are basically a <code>receive()</code> that pushes everything to a hardcoded attacker address. They're cheap to deploy and attackers reuse them across thousands of leaked keys.</p>
<h2>Step 1: check whether your address is delegated</h2>
<p>You don't need any special tool. Just ask a node for the code at your address. With Foundry's <code>cast</code>:</p>
<pre><code class="language-bash">cast code 0xYourAddress --rpc-url https://ethereum-rpc.publicnode.com
</code></pre>
<p>Or with raw JSON-RPC:</p>
<pre><code class="language-json">{"jsonrpc":"2.0","id":1,"method":"eth_getCode","params":["0xYourAddress","latest"]}
</code></pre>
<p>What the result means:</p>
<ul>
<li><code>0x</code> means no code, so no delegation. You're a plain EOA.</li>
<li><code>0xef0100</code> followed by 40 hex characters means you're delegated. Those 40 characters are the address of the contract that now controls how your account behaves.</li>
</ul>
<p>So a result like <code>0xef0100</code> + <code>1111222233334444555566667777888899990000</code> means calls to your wallet run the code at <code>0x1111…0000</code>. That address is made up just to show the format.</p>
<p>Block explorers increasingly label delegated EOAs on the address page, but the RPC answer is the source of truth. Do this on every chain you've used that has 7702 enabled, because of the chain ID 0 detail above.</p>
<h2>Step 2: is it a delegation you made, or one an attacker made?</h2>
<p>Not every delegation is bad. If you turned on a smart-account feature in your wallet, you'll have a delegation to your wallet provider's delegator contract, and that's fine.</p>
<p>Here's how I triage it:</p>
<ol>
<li><strong>Did you enable a smart account feature?</strong> If not, and there's code on your address, assume compromise.</li>
<li><strong>Open the delegate address on Etherscan.</strong> Is the source verified? Who deployed it? A legit wallet delegator is verified, widely used and documented by the wallet. A sweeper is usually a tiny unverified contract, or a verified one whose <code>receive()</code> and <code>fallback()</code> forward funds to a fixed address.</li>
<li><strong>Look at the transaction that set it.</strong> It's a type-4 transaction. Who sent it? If it was sent by a random address that also funded lots of other victims, you have your answer.</li>
<li><strong>Watch what happens to incoming ETH.</strong> If every incoming transfer leaves in the same transaction, you're dealing with an auto-forwarding delegate.</li>
</ol>
<p>There are two very different situations here, and the fix depends on which one you're in:</p>
<ul>
<li><strong>You signed a malicious authorization</strong>, for example on a phishing site, but your private key is still safe. This is the easier case.</li>
<li><strong>Your private key or seed phrase leaked.</strong> The attacker can sign new authorizations whenever they want. This is the hard case.</li>
</ul>
<h2>Step 3: clear the delegation</h2>
<p>The spec gives us a clean way out. If you sign an authorization that delegates to the zero address (<code>0x0000000000000000000000000000000000000000</code>), the protocol clears the code and resets your account to the empty code hash. You become a normal EOA again.</p>
<p>If your key is safe and you just signed something bad, this is usually all you need. Many wallets now have an option to switch a smart account back to a standard account, which does exactly this under the hood. Check your wallet's settings first. If yours doesn't, you can do it yourself. Recent versions of Foundry support signing authorizations, for example with <code>cast wallet sign-auth</code>, and sending them with <code>cast send --auth</code>. Check <code>cast --help</code> on your version, because these flags are new and still changing.</p>
<p>One nonce trap catches a lot of people. If the same account both sends the type-4 transaction and signs the authorization, the sender's nonce goes up <em>before</em> the authorizations are processed. So the authorization has to use <code>current nonce + 1</code>, not the current nonce. Get it wrong and the authorization is silently skipped. The transaction succeeds and nothing changes, which is very confusing at 3am.</p>
<p>The cleaner way is to have a <em>different</em> wallet send the transaction. With 7702, the sender (who pays gas) doesn't have to be the account being changed. Your safe wallet pays, and the compromised wallet only provides a signature. That means you don't need any ETH in the compromised wallet at all, which is great, because any ETH you send there gets swept.</p>
<h2>Step 4: if the key is leaked, clearing alone won't save you</h2>
<p>This is the part people don't want to hear. If the attacker has your key, clearing the delegation buys you nothing on its own. They'll just sign a new one and put the sweeper back, maybe in the very next block. They can also watch for your type-4 transaction and try to get theirs in first.</p>
<p>So with a leaked key, the delegation reset has to happen <em>atomically</em> with the rescue, in one bundle:</p>
<ol>
<li>A type-4 transaction sent from your safe wallet, carrying the compromised wallet's authorization to the zero address. This removes the sweeper code. Your safe wallet pays the gas.</li>
<li>A plain ETH transfer from your safe wallet to the compromised one, just enough for the gas of the next steps. Because the code was cleared one transaction earlier, nothing forwards it away.</li>
<li>The transfers that move your tokens, NFTs or positions out of the compromised wallet to the safe one.</li>
</ol>
<p>(The other way is to delegate to a rescue contract <em>you</em> control instead of to zero, and let your safe wallet execute a batch through it. It's more powerful, but you have to trust that contract completely, so I only do this with code I've written or audited.)</p>
<p>You send all of it as a <a href="https://mevdao.org/blog/flashbots-bundles-explained-how-to-send-eth-sendbundle-and-why-yours-isn-t-landi">Flashbots bundle</a> so it either lands in one block in exactly that order, or not at all. Nothing hits the public mempool, so the attacker's bot has nothing to react to.</p>
<p>There's an open-source example of this pattern, <a href="https://github.com/mpeyfuss/eth-rescue">eth-rescue by mpeyfuss</a>, which clears a 7702 delegation as part of a rescue flow. Read the code before you run anything with a private key in it. That's a general rule: don't paste a compromised key into random tools from a Telegram DM. Half the "rescue services" out there are the second scam.</p>
<p>After the rescue, treat the old address as burned. Don't send anything to it again. Airdrops and vesting unlocks that go to that address are a separate problem, and you'll need a bundle for each one when it happens.</p>
<h2>Common mistakes I see</h2>
<ul>
<li><strong>Sending ETH to "pay for gas" for the clean-up.</strong> With an auto-forwarding delegate, that ETH is gone instantly. Sponsor the gas from another wallet instead.</li>
<li><strong>Only checking mainnet.</strong> If the authorization used chain ID 0, the attacker may have delegated you on other chains too.</li>
<li><strong>Thinking revoking token approvals fixes it.</strong> Approvals and delegations are separate things. You should still revoke your token approvals and Permit2 allowances, but that won't remove code from your account.</li>
<li><strong>Using a public RPC to send the fix.</strong> Anything in the public mempool can be seen and countered. Use a private relay or a bundle.</li>
</ul>
<h2>Quick checklist</h2>
<ul>
<li><input disabled type="checkbox" /> Run <code>eth_getCode</code> on your address on every chain you use</li>
<li><input disabled type="checkbox" /> If it starts with <code>0xef0100</code>, look up the delegate contract</li>
<li><input disabled type="checkbox" /> Key safe: sign an authorization to <code>0x0</code> (or use your wallet's "switch back" option)</li>
<li><input disabled type="checkbox" /> Key leaked: bundle the delegation reset with the asset transfers, sponsored from a safe wallet</li>
<li><input disabled type="checkbox" /> Move everything to a brand-new seed, not just a new account in the same wallet</li>
<li><input disabled type="checkbox" /> Never fund the compromised address again</li>
</ul>
<p>If you're stuck with a sweeper draining everything you send, the MEVDAO <a href="https://mevdao.org/#features">Token Rescue Bot</a> is built for exactly that: it pulls your tokens out of the compromised wallet through Flashbots. It's included with the <a href="https://mevdao.org/#pricing">MEVDAO subscription</a> next to the sniping group and the sniper bot. If your wallet has a 7702 delegation on it, or you've got complicated stuff like staked positions, vesting contracts or airdrops that unlock later, send me a message on <a href="https://t.me/merunas">Telegram</a> first and we'll look at the delegation together.</p>
<p>And if you want more of this kind of thing every week, join the MEV Secrets email list right below.</p>
<hr />
<p><em>Originally published on the <a href="https://mevdao.org/blog/how-to-check-and-remove-a-malicious-eip-7702-delegation">MEV DAO blog</a>.</em></p>
]]></content:encoded></item></channel></rss>