Skip to main content
Version: 2.0.2

MEV Agent

MEV agents are a special agent type because they only get asked to perform a step after all the other agents have already done theirs.

The use case for this is to allow these agents to look for MEV opportunities and capitalize on them by ordering transactions for the block that will be mined. They can do this mainly by using priority fees to order the transactions in the block.

Each agent has access to a function inside the EnvironmentHelper called get_tx_pool which allows the agent to retrieve information about the transaction pool for that block. This information can then be used to look for MEV opportunities.