|
| 1 | +# `op-rbuilder` |
| 2 | + |
| 3 | +<a href="https://github.com/base/node-reth/actions/workflows/ci.yml"><img src="https://github.com/base/node-reth/actions/workflows/ci.yml/badge.svg?label=ci" alt="CI"></a> |
| 4 | +<a href="https://github.com/base/node-reth/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-d1d1f6.svg?label=license&labelColor=2a2f35" alt="MIT License"></a> |
| 5 | + |
| 6 | +Optimism block builder for Base. Provides payload building infrastructure with support for standard block production and flashblocks, which progressively builds block chunks at sub-second intervals. |
| 7 | + |
| 8 | +## Overview |
| 9 | + |
| 10 | +- **`FlashblocksBuilder`**: Progressive block builder that produces block chunks at short intervals, publishing them via WebSocket before merging into full blocks. |
| 11 | +- **`StandardBuilder`**: Traditional block builder that produces complete blocks at each chain block time. |
| 12 | +- **`BuilderMode`**: Configuration enum to select between `Standard` and `Flashblocks` modes. |
| 13 | +- **`GasLimiter`**: Dynamic gas limit management based on configurable policies. |
| 14 | +- **`RevertProtection`**: RPC extension for protecting transactions from reverts. |
| 15 | +- **`TxDataStore`**: Transaction data storage and retrieval service. |
| 16 | +- **`Signer`**: Transaction signing utilities for builder operations. |
| 17 | + |
| 18 | +## Binaries |
| 19 | + |
| 20 | +- **`op-rbuilder`**: Main builder binary with full node capabilities. |
| 21 | +- **`tester`**: Testing utility binary (requires `testing` feature). |
| 22 | + |
| 23 | +## Features |
| 24 | + |
| 25 | +- `jemalloc`: Use jemalloc allocator (default). |
| 26 | +- `testing`: Enable testing utilities and framework. |
| 27 | +- `telemetry`: Enable OpenTelemetry integration. |
| 28 | +- `interop`: Enable interoperability features. |
| 29 | +- `custom-engine-api`: Enable custom engine API extensions. |
| 30 | + |
| 31 | +## Usage |
| 32 | + |
| 33 | +Add the dependency to your `Cargo.toml`: |
| 34 | + |
| 35 | +```toml |
| 36 | +[dependencies] |
| 37 | +op-rbuilder = { git = "https://github.com/base/node-reth" } |
| 38 | +``` |
| 39 | + |
| 40 | +Run the builder: |
| 41 | + |
| 42 | +```bash |
| 43 | +# Standard mode |
| 44 | +op-rbuilder node --builder.mode standard |
| 45 | + |
| 46 | +# Flashblocks mode |
| 47 | +op-rbuilder node --builder.mode flashblocks |
| 48 | +``` |
| 49 | + |
| 50 | +## License |
| 51 | + |
| 52 | +Licensed under the [MIT License](https://github.com/base/node-reth/blob/main/LICENSE). |
0 commit comments