Skip to content

Configuration Reference

The Base Reth Node inherits Reth’s comprehensive CLI. View all options:

Terminal window
./target/release/base-reth-node --help

Key option categories:

  • Network — Chain selection, bootnodes, P2P port
  • RPC — HTTP/WS endpoints, CORS, API namespaces
  • Database — Data directory, state pruning
  • Metrics — Prometheus endpoint
  • Engine API — JWT secret, engine API endpoint
  • Logging — Log level, log format

Configuration can also be set via environment variables. The devnet uses etc/docker/devnet-env for its environment.

The workspace defines several Cargo build profiles:

ProfileUse CaseKey Settings
devDevelopmentdebug = "line-tables-only", incremental = false
releaseProductionopt-level = 3, lto = "thin", strip = "symbols"
maxperfMaximum performancelto = "fat", codegen-units = 1
profilingPerformance analysisdebug = "line-tables-only", frame-pointers = true
ciCI buildsdebug = false, minimal disk usage

The basectl utility provides configuration management for different network targets:

Terminal window
# Mainnet configuration
cargo run -p basectl --release -- -c mainnet
# Sepolia testnet
cargo run -p basectl --release -- -c sepolia
# Local devnet
cargo run -p basectl --release -- -c devnet