ojasuno / deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

The following instructions are specific to the Blast Sepolia Testnet and will be updated to support the Blast Mainnet when it's live.

Prereqs

  1. Install docker

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

  • GETH_DATA_DIR: Relative path to the directory that will store chain data
  • L1_RPC_URL: Your Sepolia 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

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