> ## Documentation Index
> Fetch the complete documentation index at: https://docs.frenflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Zero-Block Execution

> FrenFlow's zero-block technology lets you enter trades at the same price as the leader you copy. No slippage, no delay.

<Frame>
  <img src="https://mintcdn.com/frenflow/yitYImfdH5WVXd-R/images/zero-block.webp?fit=max&auto=format&n=yitYImfdH5WVXd-R&q=85&s=79923141bbb32dc63506e3de78fa5c3a" alt="Zero-Block Execution" width="828" height="552" data-path="images/zero-block.webp" />
</Frame>

## <span style={{color: "#baf820"}}>What is Zero-Block?</span>

Zero-block means your copy trade executes in the **same blockchain block** as the leader's trade — giving you the same (or very close) entry price. No delay, no <Tooltip tip="The difference between the expected price and the actual execution price of a trade">slippage</Tooltip> from waiting.

## <span style={{color: "#baf820"}}>How It Works</span>

Traditional copy trading detects a trade after it's confirmed on-chain, then places your copy. By then, the price may have moved.

FrenFlow uses **<Tooltip tip="A waiting area for blockchain transactions that have been submitted but not yet confirmed in a block">mempool</Tooltip> detection** — monitoring pending transactions *before* they're included in a block:

<Steps>
  <Step title="Leader submits trade">
    The leader's transaction enters the Polygon mempool (pending, not yet confirmed).
  </Step>

  <Step title="FrenFlow detects it">
    The mempool monitor catches the transaction 0–5 seconds before blockchain confirmation.
  </Step>

  <Step title="Your copy executes">
    FrenFlow immediately places your copy trade, targeting the same block window.
  </Step>

  <Step title="Both settle together">
    Both the leader's trade and your copy settle in the same or next block (\~12 seconds).
  </Step>
</Steps>

## <span style={{color: "#baf820"}}>Speed Breakdown</span>

| Stage                         | Time                    |
| ----------------------------- | ----------------------- |
| Leader trade → Detection      | \~0–5 seconds (mempool) |
| Detection → Copy order placed | \~1–3 seconds           |
| **Total end-to-end**          | **\~3 seconds**         |

For comparison, systems that wait for on-chain confirmation typically take 15–30 seconds — by which time the price has already moved.

## <span style={{color: "#baf820"}}>Multiple Detection Layers</span>

FrenFlow runs three detection methods simultaneously — Mempool Monitor, CLOB Stream, and On-chain Logs. The fastest one wins, and duplicates are automatically prevented with distributed locks. See [The Pipeline](/copy-trading/how-it-works#the-pipeline) for a full breakdown.

## <span style={{color: "#baf820"}}>When Zero-Block Isn't Possible</span>

In some cases, your copy may execute in a later block:

* **High network congestion** — More transactions competing for block space
* **Thin orderbook** — Not enough liquidity at the leader's price level
* **High slippage** — If the price moved too much, FrenFlow may use a limit order instead (if you have limit fallback enabled)
* **Balance checks** — The brief time needed to verify your USDC balance can add a few hundred milliseconds

<Note>
  Zero-block execution is a goal, not a guarantee. FrenFlow optimizes for the fastest possible execution, but blockchain conditions vary. Most copies execute within 3 seconds of the leader's trade.
</Note>
