> For the complete documentation index, see [llms.txt](https://flowra.gitbook.io/flowra/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flowra.gitbook.io/flowra/solution/technical-architecture.md). Agents can also search and read this documentation through its [MCP server](https://flowra.gitbook.io/flowra/~gitbook/mcp).

# Technical Architecture

### System Components

| Component                   | Role                                                                            |
| --------------------------- | ------------------------------------------------------------------------------- |
| **Flowra Validator Client** | Jito-Solana fork, transaction observation and forwarding via Banking Stage Hook |
| **Tx Stream Sidecar**       | Deduplication, timestamp / CU / account metadata attachment                     |
| **Open Orderflow Gateway**  | gRPC streaming of filtered transactions broadcast to searchers                  |
| **Bundle Ingress API**      | Key-based searcher onboarding, bundle reception and validation                  |
| **Auctioneer**              | 50ms mini-auction cycle, selects highest-tip bundle                             |
| **Flowra Builder**          | Conflict detection, atomic bundle execution, block assembly                     |

***

### Transaction Flow

{% stepper %}
{% step %}

### Validator runs Flowra Client

The validator observes pending transactions through the Flowra client.
{% endstep %}

{% step %}

### Transactions move to Tx Stream Sidecar

Pending transactions are forwarded for deduplication and enrichment.
{% endstep %}

{% step %}

### Gateway streams orderflow to searchers

The Open Orderflow Gateway broadcasts filtered transactions over gRPC.
{% endstep %}

{% step %}

### Searcher submits a bundle

The searcher detects an MEV opportunity and submits a tipped bundle.
{% endstep %}

{% step %}

### Auctioneer selects the top bundle

The auctioneer picks the highest-tip bundle every 50ms.
{% endstep %}

{% step %}

### Flowra Builder guarantees atomic execution

The builder assembles the winning bundle for all-or-nothing execution.
{% endstep %}

{% step %}

### Winning bundle lands first

The selected bundle is inserted at the front of the block.
{% endstep %}
{% endstepper %}

***

### Core Technical Features

#### Mini-Auction (50ms cycle)

Splits each slot into micro-windows aligned with Solana's continuous block production. Maximizes the number of competitive cycles within the 400ms block time to maximize tip revenue.

#### Atomic Bundle Execution

All transactions in a bundle must succeed to be included in the block. Prevents partial execution, guaranteeing searchers' MEV strategies execute in full.

#### Conflict-Aware Selection

Automatically detects conflicting bundles that modify the same account state, then selects the optimal combination of non-conflicting bundles to maximize block revenue.

#### Leader Injection

Winning bundles are included first at the front of the block; remaining block space is filled using standard fee/priority rules. Validators capture both MEV revenue and standard transaction fees.

***

### Security & Anti-Spam

Flowra maintains the benefits of an open structure while implementing a multi-layer security system to prevent abuse.

| Security Feature                 | Description                                                      |
| -------------------------------- | ---------------------------------------------------------------- |
| **Minimum Tip Requirement**      | Economic deterrent against bundle submission spam                |
| **Rate Limiting**                | IP/ASN-based speed limits, concurrent stream cap                 |
| **Dual-Signature Deduplication** | Signature-based deduplication prevents amplification attacks     |
| **Forced Filter Subscription**   | Searchers must specify CU range, account, and Program ID filters |

***

### Programmable Block Policy (PBP)

#### True Block Sovereignty for Validators

Until now, Solana validators have had virtually no control over block composition — they were forced to accept blocks assembled by builders optimizing purely for maximum revenue, with no structural means to express their own preferences.

Flowra introduces **Programmable Block Policy (PBP)**, a policy metadata layer that validators pass to block builders. PBP is applied as a filter at the block assembly stage, pre-screening all incoming transactions and bundles from searchers and relayers against the validator's declared policy for that slot.

#### Configurable Policy Options

* **Aggressive MEV inclusion preference** (set front-running tolerance level)
* **Blacklisted wallet addresses** (sanctioned entities, known malicious bots)
* **Blacklisted / whitelisted Program IDs**
* **Priority transaction designation**

#### How PBP Differs from Other Block Engines

Most other alternative block engines apply the operator's policy as the only choice for all validators. PBP, by contrast, allows **each validator to define their own granular block policy independently** — giving them genuine Block Sovereignty.

This filtering can be enforced at either the block engine layer or the validator layer.

#### Compliance Blocks for Institutional Validators

Beyond revenue maximization, PBP unlocks a broader spectrum of strategic choices for every validator. Institutional validators such as exchanges and financial institutions can generate blocks that conform to their own compliance requirements, meaningfully lowering the barrier to institutional participation in the Solana ecosystem.

{% hint style="success" %}
**PBP is a key Flowra differentiator.** Beyond simply increasing tips, validators gain true sovereignty to compose blocks aligned with their own values and business requirements.
{% endhint %}
