☑️0G DA Client

Recommended Hardware: 2 Cores, 8GB RAM, Bandwidth: 100 MBps for Download / Upload

Install Dependencies

sudo apt-get update
sudo apt-get install git cargo clang cmake build-essential pkg-config openssl libssl-dev protobuf-compiler

Install Go

cd $HOME && \
ver="1.22.0" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \
source ~/.bash_profile && \
go version

Download the source code

git clone -b v1.0.0-testnet https://github.com/0glabs/0g-da-client.git

Run

cd ~/0g-da-client
make build

Run combined server

Config run_combined

cd ~/0g-da-client/disperser
nano Makefile

Find run_combined then follow edit below --chain.rpc https://rpc-testnet.0g.ai \ --chain.private-key <Your_private_key> \ --combined-server.storage.node-url http://0..0.0.0:5678 \ #if you have url storage node --combined-server.storage.flow-contract 0x8873cc79c5b3b5666535C825205C9a128B1D75F1 \

Run Note: Make sure you are running the service on a screen or tmux. because when you logout the session it will stop.

tmux
make run_combined

Log ex

Last updated