How to run and manage a Sophon full node
A Sophon Full Node is a complete node that stores a full copy of the blockchain and can serve as either a sequencer or a validator.
At present, you can only run a read-only version of the Full Node. The full size of the database at the time of writing is ~1.3TB.
At a high level, the Full Node consists of the following modules:
With the Full Node, you can:
However, the Full Node cannot:
The process of running a Full Node on Sophon is identical to running one on ZKsync Era, with the addition of the Avail Data Availability layer. You can find more about hardware requirements here.
Clone and follow our configuration repository to set up your own full node. It can be initialized in two modes:
In order to be able to configure your node with your own Avail DA, you first need to create an Avail DA account. Please check the instructions from the Avail DA user guide.
To start your Sophon node from database dumps, you need to enable recovery from snapshots and specify the snapshot location:
To start your Sophon node from genesis, you need to disable recovery from snapshots:
This is not recommended unless necessary for your use case, as it takes multiple days to sync.
Following our configuration repository you can opt to start a local node via Docker Compose. For this, we provide you a start script that cleans up all Docker artifacts once you exit the process in the terminal (with ctrl+C).
For an even simpler local testing experience, we recommend setting up an in-memory node and forking mainnet using the ZKsync CLI.
For detailed info on how to run, configure, and maintain a Full Node, see ZKsync’s docs. However, for most of the cases, following our configuration repository should be enough.
How to run and manage a Sophon full node
A Sophon Full Node is a complete node that stores a full copy of the blockchain and can serve as either a sequencer or a validator.
At present, you can only run a read-only version of the Full Node. The full size of the database at the time of writing is ~1.3TB.
At a high level, the Full Node consists of the following modules:
With the Full Node, you can:
However, the Full Node cannot:
The process of running a Full Node on Sophon is identical to running one on ZKsync Era, with the addition of the Avail Data Availability layer. You can find more about hardware requirements here.
Clone and follow our configuration repository to set up your own full node. It can be initialized in two modes:
In order to be able to configure your node with your own Avail DA, you first need to create an Avail DA account. Please check the instructions from the Avail DA user guide.
To start your Sophon node from database dumps, you need to enable recovery from snapshots and specify the snapshot location:
To start your Sophon node from genesis, you need to disable recovery from snapshots:
This is not recommended unless necessary for your use case, as it takes multiple days to sync.
Following our configuration repository you can opt to start a local node via Docker Compose. For this, we provide you a start script that cleans up all Docker artifacts once you exit the process in the terminal (with ctrl+C).
For an even simpler local testing experience, we recommend setting up an in-memory node and forking mainnet using the ZKsync CLI.
For detailed info on how to run, configure, and maintain a Full Node, see ZKsync’s docs. However, for most of the cases, following our configuration repository should be enough.