# Sequencer

In Gameplan, **sequencer is** responsible for ordering transactions before they are included in blocks. This process is vital for ensuring that transactions are processed fairly and in a timely manner, without conflicts or double spending. Sequencers play a key role in optimizing the transaction throughput and efficiency of the zkEVM.

* **Transaction Ordering**: Sequencers receive transactions from users or decentralized applications (dApps) and place them in a queue, determining the order in which they will be included in blocks.
* **zk-Proof-Enabled Sequencing**: To ensure that the transaction ordering is trustless and verifiable, sequencers generate cryptographic proofs (using zk-STARKs) that can be used to verify the integrity of the ordering. This prevents any malicious actors from manipulating transaction sequences for personal gain.
* **Decentralized Sequencers (Future Integration)**: In the future, Gameplan aims to introduce decentralized sequencers, allowing multiple independent parties to participate in the transaction ordering process, further enhancing security and decentralization.
* **Block Production**: Once transactions are ordered by the sequencers, **block producers** (also called validators) collect these transactions, execute them, and package them into blocks. Every block is accompanied by cryptographic proofs generated by zk-STARKs, ensuring the correctness of the transactions without needing re-execution by every node.<br>

Sequencers manage **transaction ordering**, while block producers ensure the secure and scalable inclusion of those transactions on-chain. Together, these roles, reinforced by zk-STARK proofs, enable Gameplan's zkEVM to achieve high-performance, trustless operation, with both scalability and verifiable security at its core.


---

# 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.gameplan.io/tech-specs/execution-environment/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.
