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 validator has been installed and created.
For official deployed contract addresses, visit this page
Hardware requirements
4 cores
16 GB
1 TB NVME
500 MBps
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.
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