0G Storage Node

Resources

Prerequisite

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

This step is performed after your validatorarrow-up-right has been installed and created.

For official deployed contract addresses, visit this pagearrow-up-right

Hardware requirements

CPU

4 cores

RAM

16 GB

Storage

1 TB NVME

Network

500 MBps

OS

Linux (Ubuntu 20.04 x64)

Installation πŸ’Ύ

Install dependencies

Install Rust

Install GO 1.22.2

Build binary from source

check zgs version

Set vars. you found more from official docs

Set Ethereum private key. Your private key (64 chars, no '0x' prefix, include leading zeros): Your private key (without the 0x prefix) if you want to participate in PoRA mining and earn rewards.

After entering the next command, a field will appear in which you should enter the key you received in the previous step. Note that the text you enter will not be displayed.

Set the miner_key in the config.toml file

Set var the Storage Node IP address

Edit the storage node config

Update boot nodes addresses

Set blockchain_rpc_endpoint from your validator's (json-rpc endpoint). To connect your storage node to the validator.

circle-info

You can use the json-rpc of your validator (which you can see in the $HOME/.0gchain/config/app.toml file) or use any available from the community.

You should also have the indexer enabled in the validator config: sed -i -e "s/^indexer *=.*/indexer = \"kv"/" $HOME/.0gchain/config/config.toml

Official 0g rpc endpoint:

Create a service file

Start the node

Useful commands βš™οΈ

Stop the storage node

Check list of logs

Check logs on a specific date. For example:

Check the latest logs file

Check sync status

Check version

Delete node πŸ—‘οΈ

Last updated