---
title: "Block Building"
description: "How Base orders transactions inside blocks, including Flashblocks 200ms preconfirmations and the per-transaction gas cap enforced by the mempool."
source: https://basehub.org/network/block-building/
---
import { Aside } from '@astrojs/starlight/components';

Base block ordering is independent of the user-facing experience: the sequencer can build sub-block updates without exposing them, and the underlying ordering rules continue to apply.

## Current configuration

| Network      | Active configuration                                                                  | Upcoming |
|--------------|---------------------------------------------------------------------------------------|----------|
| Base Mainnet | [Flashblocks](#flashblocks) and [per-transaction gas maximum](#per-transaction-gas-maximum) |          |
| Base Sepolia | [Flashblocks](#flashblocks) and [per-transaction gas maximum](#per-transaction-gas-maximum) |          |

The [configuration changelog](/network/configuration-changelog/) records every change to block building parameters and other network-level settings.

## Flashblocks

Blocks are produced by [base-builder](https://github.com/base/base/tree/main/crates/builder), with a fresh priority fee auction running every **200ms**. The auction shortens effective block times from 2 seconds to 200 milliseconds via preconfirmations.

<Aside type="note">
For a deeper architectural walkthrough, see the [Flashblocks overview](/flashblocks/overview/).
</Aside>

Three properties distinguish Flashblocks from vanilla ordering:

1. **Timing** — The builder emits one Flashblock every 200ms, sealing a slice of the eventual block. Once a Flashblock is broadcast, its ordering is final; later transactions with higher priority fees cannot displace transactions already committed to an earlier Flashblock.

2. **Gas allocation** — Each Flashblock has a progressively larger gas budget. Flashblock 1 may consume up to one tenth of the block gas limit, Flashblock 2 up to two tenths, and so on through Flashblock 10, which may use the full limit.

   | Flashblock | Available gas |
   |------------|---------------|
   | 1 | ~40M gas (1/10) |
   | 2 | ~80M gas (2/10) |
   | 3 | ~120M gas (3/10) |
   | ... | ... |
   | 10 | ~400M gas (full) |

   <Aside type="note">
   In practice, transaction size rarely decides which Flashblock you land in. The [per-transaction gas maximum](#per-transaction-gas-maximum) of 16,777,216 gas (~16.7M) sits below Flashblock 1's ~40M budget, so any valid transaction is already eligible for the first Flashblock. Inclusion timing is driven mainly by priority fee relative to others competing in the same 200ms window.
   </Aside>

3. **Dynamic mempool** — The builder keeps accepting new transactions while a Flashblock is being assembled. This minimizes inclusion latency, but transactions are ordered by fee *at the moment of selection*, not against every transaction that arrived during the 200ms window. A high-fee transaction that arrives late may appear after a lower-fee transaction that was already committed.

   <Aside type="note">
   This is an intentional trade-off — faster inclusion at the cost of occasionally violating strict priority gas auction (PGA) ordering inside a Flashblock. The [Flashblocks FAQ](/flashblocks/faq/) covers the implications in more detail.
   </Aside>

## Per-transaction gas maximum

Since the [Azul hardfork](/specifications/azul-overview/), Base applies a protocol-level ceiling of **16,777,216 gas (2^24)** to any single transaction, as specified by [EIP-7825](https://eips.ethereum.org/EIPS/eip-7825). A transaction that declares a gas limit above this figure is **rejected during block validation**, and `eth_sendTransaction` or `eth_sendRawTransaction` returns a JSON-RPC error — for instance, `exceeds maximum per-transaction gas limit`.

<Aside type="note">
The cap does not apply to deposit transactions. Those are instead bounded by the largest amount of gas that fits in an L1 block, which is 20,000,000 gas.
</Aside>

Operators running bundlers for smart contract wallets need to size each bundle so that it stays within this limit.

## Vanilla ordering

Under the legacy configuration, [op-geth](https://github.com/ethereum-optimism/op-geth) builds a block every 2 seconds and orders transactions inside the block by priority fee. See the [reference implementation](https://github.com/ethereum-optimism/op-geth/blob/optimism/miner/worker.go#L627).

## Source code

The software that applies these ordering rules is public, from base-builder to the transaction pool. [Reliability and Liveness](/security/reliability-and-liveness/#open-source-sequencer-components) lists each component and links to its repository.
