☑️0G DA Client

Recommended Hardware: 2 Cores, 8GB RAM, 100Gb of storage (NVME)

System updates, installation of required dependencies

sudo apt-get update
sudo apt-get install cmake
sudo apt-get install screen

Install Go

wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

Installation

cd $HOME
git clone -b v1.0.0-testnet https://github.com/0glabs/0g-da-client.git
cd $HOME/0g-da-client
make build

Configuration

nano $HOME/0g-da-client/disperser/Makefile

Replace run_combined: build_combined

--chain.rpc

--chain.private-key

--combined-server.storage.flow-contract

Creat service

sudo tee /etc/systemd/system/0gdacli.service > /dev/null <<EOF
[Unit]
Description=0G-DA-ClI Node
After=network.target

[Service]
User=root
WorkingDirectory=$HOME/0g-da-client/disperser
ExecStart=/usr/bin/make run_combined
Restart=always
RestartSec=10
LimitNOFILE=65535
Environment="PATH=/usr/local/go/bin:/usr/bin:/bin"

[Install]
WantedBy=multi-user.target
EOF

Start service

sudo systemctl daemon-reload && \
sudo systemctl enable 0gdacli && \
sudo systemctl start 0gdacli

Check log:

sudo journalctl -u 0gdacli -f -o cat

Last updated