Mini-Blocks

MegaETH mini-blocks — what they are, how they differ from EVM blocks, and what they mean for your application.

MegaETH produces two types of blocks: Mini-blocks and EVM blocks.

  • Mini-blocks are produced every ~10 milliseconds. They are MegaETH-specific and designed for sub-second transaction confirmations.

  • EVM blocks are produced every ~1 second. They are identical to standard Ethereum blocks and compatible with all existing tools, wallets, and indexers.

Every transaction appears in exactly one mini-block and exactly one EVM block. Mini-blocks give you the result faster; EVM blocks give you the standard Ethereum data format.

Why Mini-Blocks Exist

Handling blocks at 10 millisecond intervals requires significant resources. Software optimizations and powerful hardware give the sequencer ample headroom to produce 100 blocks per second, but pushing the data to other nodes — especially ones with limited connectivity — quickly becomes a bottleneck.

The key issue is that standard EVM block headers take up quite some space — more than 500 bytes per block. At 100 blocks per second, this translates to 1.57 TB of data per year just for the headers, a significant burden for lightweight setups.

Beyond the resource overhead, the standard EVM block header is designed for chains whose block times are seconds or higher, as well as light clients who use block headers as the sole root of trust. Timestamps have one-second resolution, and the multiple Merkle roots optimize for succinctness of Merkle proofs rather than compactness of the headers.

Interacting with a chain in realtime — at tens of milliseconds of latency — calls for a different paradigm. Mini-blocks redesign the block format for compactness and low latency: compact headers, microsecond-resolution timestamps, and only the data needed for real-time streaming.

What This Means in Practice

For most users and developers, mini-blocks are invisible — your wallet, your toolchain, and your contracts all work with standard EVM blocks as they would on any other chain. No code changes are needed.

Where mini-blocks matter is latency. A transaction is confirmed in ~10 milliseconds, not 1 second. Wallets and applications that subscribe to mini-blocks via the Realtime API can show results almost instantly — useful for trading, gaming, real-time feeds, and anything where milliseconds count.

How Mini-Blocks Work

The sequencer executes transactions continuously. Every ~10ms, it seals the executed transactions into a mini-block and streams the results — receipts, state changes, event logs — to RPC nodes across the network. RPC nodes make these results available to applications immediately, before the EVM block is sealed.

Every ~1 second, the sequencer seals an EVM block containing all the mini-blocks produced during that interval. The EVM block includes a standard Ethereum block header with Merkle roots, bloom filters, and all the fields that Ethereum tooling expects.

Properties of Mini-Blocks

Mini-blocks share the core properties you would expect from any block:

  • Ordered. Mini-blocks are totally ordered by height, starting from 0 at genesis.

  • Complete. Every transaction processed by the sequencer appears in exactly one mini-block.

  • Preconfirmed. A transaction included in a mini-block carries the same preconfirmation guarantee as one included in an EVM block — the sequencer has committed to its ordering and result.

Where they differ from EVM blocks:

Property
EVM Block
Mini-Block

Production interval

~1 second

~10 milliseconds

Header size

~500+ bytes

Compact (no Merkle roots, no bloom filter)

Timestamp resolution

1 second

Microsecond (via High-Precision Timestamp)

Compatible with standard tools

Yes

Requires Realtime API

Contains state root

Yes

No

Relationship to EVM Blocks

Every mini-block belongs to exactly one EVM block — its transactions never span multiple EVM blocks. The ratio is roughly 1 EVM block to ~100 mini-blocks, but the exact count varies. To get the precise number, use the miniBlockCount field in the newHeads subscription response:

Subscribing to Mini-Blocks

To take advantage of mini-block latency, subscribe over WebSocket using the Realtime API:

Each notification delivers the mini-block's transactions, receipts, and state changes — everything your application needs to react immediately, without waiting for the next EVM block.

Last updated