blast-io / deployment

81 stars 34 forks source link

Deploying a Blast Node

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.

Prereqs

  1. Install docker

  2. Copy the .env.example file to .env and set the values accordingly:

Running the node

# pull the latest images to stay up to date
docker compose pull --policy=always

# run the node
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.

Advanced usage

If you have custom deployment requirements, you may need to build the node software yourself. See here for additional instructions.