0G Storage Node Setup Guide

Prerequisite

Please complete your Validator node before proceeding this setup

Make sure that your [json-rpc] is working properly

0G Storage and DA services interact with on-chain contracts for blob root confirmation and PoRA mining.

For official deployed contract addresses, visit this page.

Storage Node

βš™οΈ Hardware Requirement

- Memory: 16 GB RAM
- CPU: 4 cores
- Disk: 500GB / 1T NVME SSD
- Bandwidth: 500 MBps for Download / Upload

System updates, installation of required dependencies

sudo apt-get update
sudo apt-get install clang cmake build-essential

Install rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version

When prompted choice of 1,2 and 3 just hit enter to continue

Build zgs_node binary from source with rust

Setup your variable settings

Set parameters in config.toml

Set blockchain_rpc_endpoint to your validator's (json-rpc endpoint)

Create zgs service (storage node) for your node to run in the background

Start Storage node

Stop Storage node - (if you wish to stop the service)

Check Storage node log

You will need to change the date if you wish to see log(s) on a specific date.

for an example

Congrats! Your storage node is done ~~

Test Storage Node with Storage CLI to check its purfection moving along

Last updated