0g labs: Storage KV guide
August 2nd, 2024

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).

Storage KV

Hardware Requirement

  • Memory: 16 GB RAM

  • CPU: 4 cores

  • Disk: 500GB / 1T NVME SSD

  • Bandwidth: 500 MBps for Download / Upload

Download the source code

git clone -b v1.1.0-testnet https://github.com/0glabs/0g-storage-kv.git

Build

cd 0g-storage-kv
git submodule update --init

# Build in release mode
cargo build --release

Configure

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!

Subscribe to Gax1nnt
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.
More from Gax1nnt

Skeleton

Skeleton

Skeleton