Decentralizing MEV and Building a Decentralized Block Builder Network. Yo-Ho-Ho-Ho !
MEV-Pirate is an Ethereum infrastructure initiative targeting Maximal Extractable Value (MEV) for Decentralized Exchanges (DEXs). I will deploy multiple Reth nodes—high-performance Ethereum nodes written in Rust—to collect real-time blockchain data, with a focus on DEX transactions. This data will feed into a centralized column-based database, aggregating details like blocks, transactions, and DEX-specific events (e.g., swaps). From there, we can build a custom relayer and builder system to enable private order flows, allowing DEX users to submit transactions shielded from the public mempool, reducing exposure to MEV practices like front-running and sandwich attacks. A key feature is a real-time MEV tracing dashboard, which will visualize MEV activity pulled from the database. The dashboard will display metrics such as potential MEV transactions that take advantage of arbitrage opportunities, including but not limited to front-running, backrrunning and sandwich attacks, per transaction on DEXs, and transaction-level traces to pinpoint impacted trades. Built with a frontend framework like React and powered by a backend API, it will offer interactive charts and filters, making MEV’s impact transparent to traders, developers, and researchers. This tool not only highlights the problem but also informs strategies to counter it. For the hackathon, I aim to deliver a proof-of-concept: Reth nodes syncing DEX data, a populated database, a basic relayer/builder processing mock private orders, and a functional dashboard displaying sample MEV traces. By mitigating MEV for DEXs and providing actionable insights, this project empowers users in DeFi, leveraging Ethereum’s cutting-edge tech to address a pressing challenge in decentralized markets.
This project leverages a mix of Ethereum infrastructure and web technologies to target MEV for DEXs. I deployed multiple Reth nodes—a Rust-based Ethereum client—for efficient blockchain syncing, alongside Lighthouse, an Ethereum consensus client, to ensure reliable network connectivity. I integrated the project with 1inch, uniswap and worldcoin. There were numerous hacky things that were made used of during the hackathon. First, we made use of an iterative approach to find the correct fees of the uniswap pool. We also directly use the 1inch aggregator component parameters that directly produces the desired amountOut. Next we make use of uniswap V3 to get a quote and compare for MEV opportunities. Finally, we use Worldcoin to verify unique personhood. Preparing to decentralize and prioritise human transactions!