Skip to content

goattechlabs/blast-deployment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • 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

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published