Installation

Install dependencies
sudo apt-get updatesudo apt-get install cmake build-essential protobuf-compilerInstall Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shDownload the source code
git clone https://github.com/0glabs/0g-da-retriever.gitcd 0g-da-retrievercargo build --releaseConfiguration
nano $HOME/0g-da-retriever/run/config.tomlSample:
log_level = "info"grpc_listen_address = "0.0.0.0:34005"
#YOUR_RPC_ENDPOINT:eth_rpc_endpoint = "https://evmrpc-testnet.0g.ai"Create service file
sudo tee /etc/systemd/system/0gdar.service > /dev/null <<EOF[Unit]Description=0G-DA RetrieverAfter=network.target
[Service]User=rootWorkingDirectory=/root/0g-da-retrieverExecStart=/root/0g-da-retriever/target/release/retriever --config /root/0g-da-retriever/run/config.tomlRestart=alwaysRestartSec=10LimitNOFILE=65535StandardOutput=journalStandardError=journal
[Install]WantedBy=multi-user.targetEOFStart service
sudo systemctl daemon-reload && \sudo systemctl enable 0gdar && \sudo systemctl start 0gdar && \sudo systemctl status 0gdar && sudo journalctl -u 0gdar -f -o cat