reth/README.md
This is an implementation of the Reth node setup that supports Flashblocks mode based on configuration.
RETH_FB_WEBSOCKET_URL)
.env.mainnet and .env.sepoliaThe node determines its mode based on the presence of the RETH_FB_WEBSOCKET_URL environment variable:
RETH_FB_WEBSOCKET_URL is provided.RETH_FB_WEBSOCKET_URL is provided.The node follows the standard docker-compose workflow in the master README.
# To run Reth node with Flashblocks support, set RETH_FB_WEBSOCKET_URL in your .env file
CLIENT=reth docker-compose up
When running in Flashblocks mode (with RETH_FB_WEBSOCKET_URL configured), you can query a pending block using the Flashblocks RPC:
curl -X POST \
--data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["pending", false],"id":1}' \
http://localhost:8545
For a complete list of supported RPC methods, refer to: