A Reth Execution Extension (ExEx) based template for developing your own ExEx.
Resources:
This template includes:
- Reth node binaries to launch node with exex(-es) on mainnet or op-stack chains (optimism, base, etc.). They are served in the same way as in Reth crate for mainnet and optimism (under the eponymous feature).
/.env.example
- Environment, regarded to run on base mainnet . For more details see recomendations here/docker-compose.yml
- Example docker configuration for base mainnet with pg image
may not be well covered, it's just a sample
- place your mainnet rpc and beacon nodes in the environment at regarded var keys:
OP_NODE_L1_ETH_RPC=
OP_NODE_L1_BEACON=
- configure ports (on .env and docker's YAML),then configure their mapping (on
ports
section in the/docker-compose.yml
). - carefully observe pg containers and other .env vars.
- create a jwt file and place path (
/path/to/jwt
) to--authrpc.jwtsecret
arg.
See minimal ExEx for example implementation. You can also (re)place your own ExEx into exex_implementation module. See this readme file "Resources" section on the top for more examples and key principes of execution extension.
See Makefile at reth-src/exex/Makefile
for more specific test commands
cd reth-src/exex/
make test
# mainnet
cd reth-src/exex/
make build
make install
# optimism
cd reth-src/exex/
make build-op
make install-op