This document outlines the steps to setup your own DA retriever.
The following hardware specifications are recommended for running a DA retriever:
- RAM: 8 GB
- CPU: 2 cores
- Bandwidth: 100 MBps for Download / Upload
- Install dependencies
-
For Linux
sudo apt-get update sudo apt-get install cmake build-essential protobuf-compiler
-
For Mac
brew install cmake
-
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Download the source code
git clone https://github.com/0glabs/0g-da-retriever.git
Field | Description |
---|---|
log_level |
Set log level. |
grpc_listen_address |
Server listening address. |
eth_rpc_endpoint |
JSON RPC node endpoint for the blockchain network. |
-
Build in release mode
cargo build --release
-
Run retriever
Update configuration file run/config.toml as required by referencing the Configuration. Run:
./target/release/retriever --config ./run/config.toml
Adjust commands and parameters as required for your setup:
Build the Docker image
docker build -t 0g-da-retriever .
Run the Docker container
docker run -v ./run:/run -p 34005:34005 0g-da-retriever:latest retriever --config /run/config.toml