L2 Node Setup
This guide will show you how to set up an L2 execution node (op-geth
) and a rollup node (op-node
) for your OP Stack chain.
Instructions
- Clone ops-anton and follow the instructions in the README to set up your rollup.
- Go to op-node.sh and set the
L2_RPC
to your rollup RPC. Modify thel1
andl1.beacon
to your L1 and L1 Beacon RPCs. Note: Your L1 node should be an archive node. - If you are starting a node for a different chain, you will need to modify
op-network
inop-geth.sh
here andnetwork
inop-node.sh
here. - In
/L2/op-mainnet
(or the directory you chose):- Generate a JWT secret
./generate_jwt.sh
docker network create anton-net
(Creates a Docker network for the nodes to communicate on).just up
(Starts all the services).
- Generate a JWT secret
Your op-geth
endpoint will be available at the RPC port chosen here, which in this case is 8547
(e.g. http://localhost:8547
).
Your op-node
endpoint (rollup node) will be available at the RPC port chosen here, which in this case is 5058
(e.g. http://localhost:5058
).
Check Sync Status
After a few hours, your node should be fully synced and you can use it to begin generating ZKPs.
To check your node's sync status, you can run the following commands:
op-geth:
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' http://localhost:8547
op-node:
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"optimism_syncStatus","params":[],"id":1}' http://localhost:5058