11# Running a Reth Node
22
3- This is a unified implementation of the Reth node setup that supports running both OP Reth and Base Reth with Flashblocks support .
3+ This is an implementation of the Reth node setup that supports Flashblocks mode based on configuration .
44
55## Setup
66
77- See hardware requirements mentioned in the master README
8- - For Base Reth mode: Access to a Flashblocks websocket endpoint (for ` RETH_FB_WEBSOCKET_URL ` )
8+ - For Flashblocks mode: Access to a Flashblocks websocket endpoint (for ` RETH_FB_WEBSOCKET_URL ` )
99 - We provide public websocket endpoints for mainnet and devnet, included in ` .env.mainnet ` and ` .env.sepolia `
1010
1111## Node Type Selection
1212
13- Use the ` NODE_TYPE ` environment variable to select the implementation :
13+ The node determines its mode based on the presence of the ` RETH_FB_WEBSOCKET_URL ` environment variable :
1414
15- - ` NODE_TYPE=vanilla ` - OP Reth implementation (default)
16- - ` NODE_TYPE=base ` - Base L2 Reth implementation with Flashblocks support
15+ - ** Vanilla Mode ** (default): When no ` RETH_FB_WEBSOCKET_URL ` is provided.
16+ - ** Flashblocks Mode ** : When ` RETH_FB_WEBSOCKET_URL ` is provided.
1717
1818## Running the Node
1919
2020The node follows the standard ` docker-compose ` workflow in the master README.
2121
2222``` bash
23- # Run OP Reth node
23+ # To run Reth node with Flashblocks support, set RETH_FB_WEBSOCKET_URL in your .env file
2424CLIENT=reth docker-compose up
25-
26- # Run Base L2 Reth node with Flashblocks support
27- NODE_TYPE=base CLIENT=reth docker-compose up
2825```
2926
3027## Testing Flashblocks RPC Methods
3128
32- When running in Base mode (` NODE_TYPE=base ` ), you can query a pending block using the Flashblocks RPC:
29+ When running in Flashblocks mode (with ` RETH_FB_WEBSOCKET_URL ` configured ), you can query a pending block using the Flashblocks RPC:
3330
3431``` bash
3532curl -X POST \
@@ -42,4 +39,4 @@ curl -X POST \
4239For a complete list of supported RPC methods, refer to:
4340
4441- [ Standard Ethereum JSON-RPC] ( https://ethereum.org/en/developers/docs/apis/json-rpc/ )
45- - [ Flashblocks RPC Methods] ( https://docs.base.org/chain/flashblocks#rpc-api ) (Base mode only)
42+ - [ Flashblocks RPC Methods] ( https://docs.base.org/chain/flashblocks#rpc-api ) (Flashblocks mode only)
0 commit comments