August 8, 2024

0g DA Retriever Setup Guide

This guide is designed to help you seamlessly configure and get started with the 0g DA Retriever. Whether you're setting up the system for the first time or fine-tuning it for optimal performance, this step-by-step guide will provide you with all the necessary instructions and tips to ensure a smooth and efficient setup process. Let's dive in and get your 0g DA Retriever up and running!


Install Dependencies

sudo apt-get update
sudo apt-get install cmake build-essential protobuf-compiler

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Clone the Source Code

git clone https://github.com/0glabs/0g-da-retriever.git

Configuration

  • log_level — Set the log level
  • grpc_listen_address — Server listening address
  • eth_rpc_endpoint — JSON RPC node endpoind

Build

cargo build --release

Run

./target/release/retriever --config ./run/config.toml