> For the complete documentation index, see [llms.txt](https://spire-docs.gitbook.io/spire/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spire-docs.gitbook.io/spire/based-stack/sequencing-revenue-mev-retention.md).

# Sequencing revenue (MEV) retention

<figure><img src="/files/ebGJr25G55NXZl864nCC" alt="Banner image"><figcaption></figcaption></figure>

Spire introduces a sequencer election model that prioritizes sequencers that are willing to pay to sequence a block, thereby returning some value to the application.

> Today, applications leak millions of dollars to their sequencers.

We expect that the total amount of sequencing value returned to the application through this mechanism will be on the order of the expected value of sequencing that appchain. In practice, this could be millions of dollars for some types of applications and may end up being very little for others. Because of this disparity, MEV retention is something we want to be flexible with and allow applications to parameterize.

Priority fees and other gas fees that users pay to be included in a block are detectable within the execution environment. This means that implementation here can be done in the execution environment, not on the sequencing layer.&#x20;

These types of fees can be trivially parametrized to be more flexible for different apps. We are continuing to do research into the numbers that make the most sense for most applications.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://spire-docs.gitbook.io/spire/based-stack/sequencing-revenue-mev-retention.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
