How it Works
Monitoring the Transaction Pool (Mempool)
The 0xMEV bot continuously monitors the Ethereum transaction pool, also known as the mempool. This is where all the transactions that are waiting to be confirmed and included in a block are stored. Users can identify a particular token contract that they want the 0xMEV bot to monitor
Identifying Profitable Traansactions
The 0xMEV bot looks for large transactions that could affect the price of the token on a decentralized exchange (DEX)
Crafting Sandwich Transactions
Once the bot identifies a profitable transaction, it crafts two transactions of its own:
The first transaction is similar to the identified profitable transaction. For example, if the bot spots a large buy order for a token, it will place its own buy order for the same token
The second transaction is the opposite of the first transaction, designed to sell the token
Ordering Transactions
The bot then attempts to place its transactions in the block before and after the identified profitable transaction. The goal is to "sandwich" the user's transaction between its own. This is where the concept of MEV comes into play, as the bot might pay higher gas fees or collaborate with miners to ensure its transactions are placed correctly
Execution and Profit Realization:
If successful, the 0xMEV bot's first transaction (the buy order) will be executed right before the large user transaction, raising the price of the token. Then, the user's large transaction will be executed, further increasing the price. Finally, the bot's second transaction (the sell order) will be executed, selling the tokens at a higher price and realizing a profit. If not successful, transactions are automatically reverted and the 0xMEV bot user never had the ETH leave their wallet
Last updated