> For the complete documentation index, see [llms.txt](https://docs.fast.poker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fast.poker/architecture/ephemeral-rollups.md).

# Ephemeral Rollups

Fast Poker uses MagicBlock Ephemeral Rollups for fast gameplay.

## Why ER

Poker needs fast actions. Waiting for L1 confirmation on every check, bet, call, raise, or fold would feel terrible.

The ER is the fast execution environment for live gameplay, and the TEE layer is part of that path. Player actions, table state transitions, and sealed deal/reveal calls happen in the fast ER/TEE environment while Solana L1 remains the settlement layer and source of truth.

## What stays on L1

* Table and vault authority.
* Deposits.
* Cashouts.
* Rake settlement.
* SNG prize distribution.
* Reward claims.
* Durable hand reports and commitments.

## What runs through ER

* Live table state.
* Player actions.
* Deal and reveal flow.
* Timeout handling.
* Pot settlement before final commit.
* Flat Bounty point accounting and scheduled duel state for 6-max/9-max.
* Per-game settlement-record finalization.

## TEE boundary

The TEE protects private card state during the hand. The dealer can submit transactions, but it cannot read hole cards.

## Commit model

At safe boundaries, state is committed back to L1 so custody and rewards remain verifiable.

Record-enabled SNG play delegates the per-game `SngSettlementRecord` with the table. A 6-max/9-max table also delegates its persistent `SngDuelState`. Completion commits the finalized record and sidecar back to L1 before prize credit and reusable-table reset.
