Today, I’ll be discussing the importance of mempool watching, a powerful technique for understanding people’s intentions through pending transactions in the mempool. Harnessing this capability is invaluable for everyone.
In this blog post, I’ll share a real problem I encountered while building my sandwich bot and demonstrate how I successfully tackled it using EVM tools like EVM tracing.
By employing EVM tracing tools as presented in this blog post, you can proactively learn how a pending transaction will impact the blockchain states once it’s added to a new block.
The techniques learned here will enable you to easily:
- predict price impact of a swap action,
- know if you’re dealing with a tax/toxic token beforehand,
- catch Salmonella attacks and avoid being rekt, (https://github.com/Defi-Cartel/salmonella)
- simulate bundles just like Tenderly on your local machine. (https://tenderly.co/transaction-simulator)
I’ll call this task: Transaction Prediction.
Let’s get started right away.
As an aspiring MEV searcher, I’ve spent a long time bird watching.