This repository contains the relevant configuration to run your own node on the Unichain network.
If you encounter problems with your node, please open a GitHub issue
Network | Status |
---|---|
Testnet (Sepolia) | ✅ |
- Ensure you have an Ethereum L1 full node RPC available, and set
OP_NODE_L1_ETH_RPC
&OP_NODE_L1_BEACON
(in the.env.sepolia
file). If running your own L1 node, it needs to be synced before Unichain will be able to fully sync. - Run:
docker compose up -d
- You should now be able to
curl
your Unichain node:
curl -d '{"id":1,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false]}' \
-H "Content-Type: application/json" http://localhost:8545
- To stop your node, run:
docker compose down
By default, the data directory is stored in ${PROJECT_ROOT}/geth-data
. You can override this by modifying the value of
HOST_DATA_DIR
variable in the .env
file.