Skip to main content

Prerequisites

Before building reth-private-transaction, ensure you have the following installed:
  • Rust toolchain (1.70 or later)
  • Cargo package manager
  • Git for cloning the repository
This project is built as an extension to reth, the modular Ethereum execution client. All reth dependencies will be automatically fetched during the build process.

Building from source

The project uses Cargo for building and dependency management. Follow these steps to build the binary:
1

Clone the repository

First, clone the reth-private-transaction repository:
git clone https://github.com/Quertyy/reth-private-transaction.git
cd reth-private-transaction
2

Build the release binary

Build the project in release mode for optimal performance:
cargo build --release
The build process may take several minutes as it compiles reth and all dependencies. The release build is optimized for production use and includes all necessary optimizations.
The compiled binary will be located at ./target/release/reth-private-transaction.
3

Verify the installation

Verify that the binary was built successfully:
./target/release/reth-private-transaction --version

Dependencies

The project relies on the following key dependencies:

Core reth dependencies

  • reth - Core reth functionality
  • reth-node-ethereum - Ethereum node implementation
  • reth-transaction-pool - Transaction pool management
  • reth-cli - Command-line interface
  • reth-rpc-eth-types - Ethereum RPC types
  • reth-primitives - Core primitives
All reth dependencies are pinned to revision v1.1.3 to ensure compatibility. This is automatically handled by Cargo during the build process.

Additional dependencies

  • alloy-primitives - Ethereum primitives library
  • jsonrpsee - JSON-RPC server and client
  • reqwest - HTTP client for builder communication
  • serde & serde_json - Serialization/deserialization
  • futures - Asynchronous programming utilities

Build configuration

The project is configured with the following settings in Cargo.toml:
[package]
name = "reth-private-transaction"
version = "0.1.0"
edition = "2021"

Next steps

Once you’ve successfully built the binary, proceed to the node setup guide to learn how to configure and run your reth node with private transaction support.

Build docs developers (and LLMs) love