Skip to content
BaseHub by wbnns Updated

builder

The builder crate group produces blocks and flashblocks. It assembles flashblocks at 200ms intervals and publishes them to streaming clients.

CratePackage NamePurpose
corebase-builder-coreCore block building logic and flashblock production
meteringbase-builder-meteringResource metering for block building
publishbase-builder-publishBlock/flashblock publishing and distribution

The builder sits between the execution layer and the consensus layer. It:

  1. Receives transactions from the transaction pool
  2. Builds execution payloads using the EVM
  3. Produces flashblocks at ~200ms intervals during the 2-second block time
  4. Publishes flashblocks via WebSocket for real-time streaming
  5. Finalizes the canonical block at the end of each slot

The base-builder-core crate contains the main building logic, base-builder-metering handles gas and resource accounting, and base-builder-publish handles distribution of produced blocks.

crates/builder/