Storage Storage KV Storage KV support

Second step is to launch the kv service install For Linux(Ubuntu)

Contract Addresses

Testnet

Flow Contract: 0xb8F03061969da6Ad38f0a4a9f8a86bE71dA3c8E7

Mine Contract: 0x96D90AAcb2D5Ab5C69c1c351B0a0F105aae490bE

Market Contract: 0xaD1436779E9267abd51AD7c17c8233E4c563cFbB

Reward Contract: 0x82F9E4D0892169ac342FA9ad5618aD407B27669B

Deployed Block Number: 334797

blockchain_rpc_endpoint = "https://storage.0gnode.xyz/"

Download the source code

git clone https://github.com/0glabs/0g-storage-kv.git

Build the source code

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 ="https://storage.0gnode.xyz/"
# flow contract address
log_contract_address = "0xb8F03061969da6Ad38f0a4a9f8a86bE71dA3c8E7"
# block number to start the sync, better to align with the config in storage service
log_sync_start_block_number = 334797

Run the kv service

cd run # consider using tmux in order to run in background
../target/release/zgs_kv --config config.toml

Note: The recommended system configuration is the same as the storage node.

Note: https://docs.0g.ai/0g-doc/run-a-node/storage-node-and-da-services