Skip to content
 
 

Repository files navigation

Unichain Node

image

This repository contains the relevant configuration to run your own node on the Unichain network.

Troubleshooting

If you encounter problems with your node, please open a GitHub issue

Supported Networks

Network Status
Mainnet
Testnet (Sepolia)

Usage

  1. Ensure you have an Ethereum L1 full node RPC available, and set OP_NODE_L1_ETH_RPC & OP_NODE_L1_BEACON (in the .env.mainnet file).

    If running your own L1 node:

    • It needs to be synced before Unichain will be able to fully sync.

    • Use Docker host gateway IP as containers cannot access host services via localhost or 127.0.0.1.

      OP_NODE_L1_ETH_RPC=http://172.17.0.1:8545
      OP_NODE_L1_BEACON=http://172.17.0.1:3500
      
    • Your L1 node needs to allow connections from Docker containers.

  2. Select your network in the docker compose file by uncommenting .env.sepolia or .env.mainnet in both op-node and the execution client.

  3. Run:

docker compose up -d
  1. 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
  1. To stop your node, run:
docker compose down

Persisting Data

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.

Monitoring

The node includes built-in monitoring with Prometheus and Grafana.

Accessing Grafana

  1. Open http://localhost:3000 in your browser
  2. Login with default credentials:
    • Username: admin
    • Password: admin
  3. Navigate to Dashboards to view:
    • op-geth Overview - Execution client metrics
    • op-node Overview - L2 rollup consensus metrics

Available Metrics

op-geth Dashboard:

  • Chain head progress (block, header, receipt)
  • Block import rate
  • Transaction pool (pending, queued, local)
  • P2P network (peers, bandwidth)
  • System resources (CPU, memory, disk I/O)
  • RPC request rates and latency

op-node Dashboard:

  • Node Status - Up/down, derivation idle, sequencer active
  • Block Derivation - L1/L2 block refs (unsafe, safe, finalized), derivation rate
  • Unsafe Payloads - Buffer length, memory size, channel bank events
  • Sequencer - Building/sealing jobs rate, latency histograms, transactions sequenced
  • Errors & Resets - Pipeline/sequencer resets, derivation/sequencing/publishing errors, L1 reorg depth
  • P2P Network - Peers, streams, bandwidth, gossip events, dial/accept, unbans, quarantine
  • L1 RPC - Request latency by method
  • Go Runtime - Memory, goroutines, GC duration

Prometheus

Raw metrics are available at:

About

Everything required to run your own Unichain node

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages