Run your own 0xL3 blockchain node using Docker Compose. This setup includes OP-Reth (Execution Layer) and OP-Node (Consensus Layer) for a complete blockchain infrastructure.
Before starting, you need to generate a JWT secret for authentication between OP-Node and OP-Reth:
Check the configuration files in the config/ directory:
Environment variables for L1 connection and peer nodes
Genesis block configuration for L2 chain
Rollup configuration and system parameters
curl -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' \
http://localhost:9545curl -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
http://localhost:9545.
├── config/
│ ├── .env # Environment variables
│ ├── genesis.json # Genesis block configuration
│ ├── rollup.json # Rollup configuration
│ └── jwt.txt # JWT secret (generated)
└── node/
├── docker-compose.yml # Docker Compose configuration
├── op-node-entrypoint # OP-Node startup script
├── op-reth-entrypoint # OP-Reth startup script
└── data/ # Blockchain data directoryGenerate JWT secret with: openssl rand -hex 32 > config/jwt.txt
Stop the service using port 9545 or change the port in docker-compose.yml
Check L1_RPC_URL in config/.env file