This repository is a collection of ExEx examples built on Reth that demonstrates common patterns and may serve as an inspiration for new developers.
Example | Description | Run |
---|---|---|
Backfill | Exposes an RPC to backfill (execute) a range of blocks | cargo run --bin backfill -- node --http to start Reth node with an RPC endpoint opened on HTTP port 8545ETH_RPC_URL=http://localhost:8545 TIP=$(cast bn); cast rpc backfill_start $(($TIP - 10)) $TIP to start the backfill of the last 10 blocks |
Discv5 | Runs discv5 discovery stack | cargo run --bin discv5 |
In Memory State | Tracks the plain state in memory | cargo run --bin in-memory-state -- node |
Minimal | Logs every chain commit, reorg and revert notification | cargo run --bin minimal -- node |
OP Bridge | Decodes Optimism deposit and withdrawal receipts from L1 | cargo run --bin op-bridge -- node |
Oracle | Oracle protocol that observes off-chain data and attests to it on-chain | cargo run --bin oracle -- node |
Remote | Emits notifications using a gRPC server, and a consumer that receives them | cargo run --bin remote-exex -- node to start Reth node with the ExEx and a gRPC servercargo run --bin remote-consumer to start a gRPC client |
Rollup | Rollup that derives the state from L1 | cargo run --bin rollup -- node |
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.