0G DA Client node

This document outlines the steps to setup your own DA client.

⚙️ Hardware Requirement

- Memory: 8 GB
- CPU: 2 cores
- Bandwidth: 100 MBps for Download / Upload

Installation dependencies

sudo apt-get update
sudo apt-get install cmake 

Install 0G DA Client

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

Start DA client in screen mode

sudo apt-get install screen
# enter new screen
screen -S DAClient

Set 0G DA client variables

# pull variables
JSON_PORT=$(sed -n '/\[json-rpc\]/,/^address/ s/address = "0.0.0.0:\([0-9]*\)".*/\1/p' $HOME/.0gchain/config/app.toml)
ETH_RPC_ENDPOINT=http://$(wget -qO- eth0.me):$JSON_PORT
SOCKET_ADDRESS=http://$(wget -qO- eth0.me):34000

# print variables
echo JSON PORT:$JSON_PORT
echo ETH_RPC_ENDPOINT:$ETH_RPC_ENDPOINT
echo SOCKET_ADDRESS:$SOCKET_ADDRESS

Export private key temporary

Start 0G DA client node

Check DAClient screen

Log examples

Last updated