Hi everyone, today we are going to talk about how to put 0g storage KV on your devices. You can just do the steps in this guide and you will definitely succeed! If you like the guide, be sure to subscribe to me on other social networks).
Memory: 16 GB RAM
CPU: 4 cores
Disk: 500GB / 1T NVME SSD
Bandwidth: 500 MBps for Download / Upload
git clone -b v1.1.0-testnet https://github.com/0glabs/0g-storage-kv.git
cd 0g-storage-kv
git submodule update --init
# Build in release mode
cargo build --release
Copy the config_example.toml
to config.toml
and update the parameters
# rpc endpoint
rpc_listen_address
# ips of storage service, separated by ","
zgs_node_urls = "http://ip1:port1,http://ip2:port2,..."
# layer one blockchain rpc endpoint
blockchain_rpc_endpoint
# flow contract address
log_contract_address
# block number to start the sync, better to align with the config in storage service
log_sync_start_block_number
# storage nodes to download data from, separated by ","
# the provided nodes should cover full data in the storage network
zgs_node_urls
Run the kv service
cd run
# consider using tmux in order to run in background
../target/release/zgs_kv --config config.toml
If you found this guide helpful or just liked it, you can learn more about me and subscribe to my social media. Do it, don't be lazy!