Serve transaction lookups by hash
A public RPC endpoint should return any transaction by its hash. op-reth exposes the standardeth namespace, so transactions are retrievable by hash within the node’s retained history, and the celo-l2-node-docker-compose setup needs no extra configuration for this. (On the legacy op-geth setup this instead requires --history.transactions=0, which the compose setup sets for you.)
Forward transactions to the sequencer
op-reth forwards transactions submitted to your endpoint to the sequencer so they are executed, via the--rollup.sequencer flag. The sequencer endpoint is set for you by the compose setup (from OP_RETH__SEQUENCER_URL):
- Mainnet:
--rollup.sequencer=https://cel2-sequencer.celo.org - Celo Sepolia:
--rollup.sequencer=https://sequencer.celo-sepolia.celo-testnet.org
Exposing the endpoint
op-reth serves JSON-RPC over HTTP on port9993 and WebSocket on 9994 by default (configurable via PORT__OP_RETH_HTTP and PORT__OP_RETH_WS — see the Configuration reference). The compose setup enables the web3,debug,eth,txpool,net namespaces on these endpoints.
When exposing this publicly, put a reverse proxy or load balancer with rate limiting in front of it, and be deliberate about which RPC namespaces you expose to untrusted clients.
Earning rewards
If you want to earn protocol rewards for operating a public RPC endpoint, register it with the Community RPC program:- How it works
- Registering as an RPC node
- Operating a Community RPC Node (rewards and claiming)