# Sequencer

####

The sequencer serves as a critical component of the rollup architecture, batching and ordering transactions before submitting them to the Ethereum mainnet. Singularity Finance’s sequencer design prioritises fairness, decentralisation and performance.

Key **Features**:

1. Transaction Ordering: Prevents front-running and MEV (Miner Extractable Value) by implementing fair ordering algorithms.
2. Low Latency: Reduces the time it takes for transactions to be confirmed by processing them offchain in near real-time.
3. Decentralised Sequencing (Future Upgrade): Initially run by trusted operators, the sequencer role will transition to a decentralised network of participants to enhance security and censorship resistance.

<br>

Operational Flow:

1. User Transactions: Submitted to the L2 through wallets or dApps.
2. Batch Formation: The sequencer aggregates multiple transactions into a batch.
3. State Commitment: Generates cryptographic proofs and submits them to Ethereum.
4. Fraud Challenges: Validators can challenge incorrect proofs, ensuring trustless dispute resolution.


---

# 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://docs.singularityfinance.ai/sfi-l2/l2-architecture/sequencer.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.
