This repo explains how to run a node for the Blast L2 network. Blast is a fork of Optimism, so the deployment process is the same as that of a typical OP stack chain.
-
Install docker
-
Copy the
.env.example
file to.env
and set the values accordingly:
- NETWORK:
Blast network, value should be mainnet or sepolia
- GETH_DATA_DIR:
Relative path to the directory that will store chain data
- L1_RPC_URL:
Your L1 RPC endpoint
- L1_RPC_KIND:
The type of RPC provider; valid options are: alchemy, quicknode, infura, parity, nethermind, debug_geth, erigon, basic, any
docker compose up
# if you want to run it in the background, use
# docker compose up -d
To test your node, you can run the following command to query the latest L2 block. Note that you will need to wait for your node to fully sync before this command will return the actual latest block.
curl -d '{"id":0,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false]}' -H "Content-Type: application/json" http://localhost:9545
To fully participate in p2p, please ensure TCP/UDP is allowed on port 9003, and add the argument --p2p.advertise.ip=<host-machine-public-ip>
to the op-node
service in the docker-compose.yml
file.
If you have custom deployment requirements, you may need to build the node software yourself. See here for additional instructions.