The ZKVerifier node is distributed as a prebuilt Docker image. Pull the image with the following command:
docker pull zkverifier/node:latest
Create a Configuration Directory:
This directory will store configuration files and data.
Example:
mkdir -p ~/zkverifier/config
Prepare the Configuration File:
Download or generate a config.yaml
file and place it in the ~/zkverifier/config
directory.
Example content of config.yaml
:
network:
id: mainnet
rpc:
enabled: true
host: 0.0.0.0
port: 8545
node:
data_path: /data
Adjust the file based on your network preferences (e.g., mainnet
, testnet
).
Use the following command to start the node:
docker run -d \\
--name zkverifier-node \\
-v ~/zkverifier/config:/config \\
-v ~/zkverifier/data:/data \\
-p 8545:8545 \\
zkverifier/node:latest
d
: Runs the container in detached mode.-name zkverifier-node
: Assigns a name to the container.