# MEV process

To understand how Maximal Extractable Value works, we need to understand [the transaction flow on the blockchain](/hackless-docs/general/mempool/transaction-flow.md):

Whenever you initiate a transaction, there is a small waiting period when your transaction is pending and awaits to be added to the blockchain. It is during this period, that your transaction is stored in a mempool, which simply put is: a list of all unconfirmed transactions.

Miners or validators, who are responsible for adding unconfirmed transactions into the following blocks, have the power to access transactions listed in the mempool.

This is where MEV comes in, as it allows miners to extract profits by reordering these transactions in the processing order. With this ability, they include their own transactions and prioritize them over other unconfirmed transactions in the mempool in order to earn extra profits.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hackless.gitbook.io/hackless-docs/general/mev/mev-process.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
