Node Operation Overview
Learn how to run a node on Swellchain
Swell Network operates as an Optimistic Rollup chain based on the OP Stack. This guide explains the process of setting up and running a Swell Network node using Docker.
Prerequisites
The following components must be available on your system:
- Docker Engine 24.0.0+
- Docker Compose v2.20.0+
- 16GB RAM minimum (32GB recommended)
- 4 CPU cores minimum
- 1TB SSD storage (NVME recommended)
- Linux operating system
- Access to Ethereum L1 RPC and Beacon endpoints
Node Setup Process
1. Environment Configuration
- Create a new directory for your node and clone the repository:
- Generate JWT file:
- Create
.env
file from the example and update the required values:
Update the following values in your .env
file:
L1_RPC
: Your Ethereum L1 RPC endpointL1_BEACON
: Your Ethereum L1 Beacon endpoint
The other values are pre-configured for Swell Network:
- Chain ID: 1923
- Bootnodes and P2P configuration
- Genesis and rollup configuration URLs
- Docker images and versions
Here is an example of the .env
file:
Operating the Node
Starting the Node
Start the node using Docker Compose:
This will start both the execution client (op-geth) and consensus client (op-node).
Monitoring Logs
View op-node logs:
View op-geth logs:
Verifying Sync Status
Check the sync status:
If the node is syncing, you'll see a response with sync progress details. When syncing is complete, it will return {"jsonrpc":"2.0","id":2,"result":false}
.
Check the current block number after syncing:
Stopping the Node
To stop the node:
Configuration Options
The node can be configured through the .env
file with the following key options:
SYNC_MODE
: Choose betweenfull
orsnap
syncGC_MODE
: Choose betweenarchive
orfull
for garbage collectionPLASMA_ENABLED
: Enable/disable plasma features
Network Information
Parameter | Value |
---|---|
Chain Name | Swellchain |
Chain ID | 1923 |
RPC URL | https://swell-mainnet.alt.technology |
Block Explorer | https://explorer.swellnetwork.io |
For more detailed information about the network configuration, refer to the rollup configuration and genesis file.