Links

Run a node

In this section, we will guide you through the process of running a Specular node, which consists of the consensus and execution layer clients.

Prerequisites


Install the following dependencies
To build, run the following:
# Fetch the repository and its submodules.
git clone https://github.com/specularl2/specular
cd specular
git submodule update --init --recursive
# Install dependencies and build binaries
pnpm install && make
Configure network
To configure a Specular node, you can just use an existing example from config as-is.
mkdir workspace
cp -a config/local_devnet/. workspace/ # copy all config files
Start an L2 node
../sbin/start_sp_geth.sh # Terminal #1
../sbin/start_sp_magi.sh # Terminal #2
At this point, you'll have the node started with the following parameters:
  • L2: chain ID 13527, with a sequencer exposed on ports 4011 (http) and 4012 (ws).
To re-run the network from a clean state, run ../sbin/start_sp_geth.sh -c.