# Hercules

Hercules accepts blocks of ordered transactions from Solana. It executes the block payload on the rollup, thus advancing the rollup state.

Rollup users get fast confirmation directly from Solana without having to wait for Hercules, which can take more time while Solana finalizes the transactions.

This provides deterministic finality for the transaction ordering. This transaction ordering along with the Merkle root of transactions is submitted to Ethereum.

<figure><img src="/files/lOSK92lqtmL7ZrgN7xdd" alt=""><figcaption></figcaption></figure>

Transaction flow diagram for Hercules

<figure><img src="/files/jSIoysfUBgUqOHERFgQC" alt=""><figcaption></figcaption></figure>


---

# 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.rome.builders/legacy/shared-sequencer/hercules.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.
