sudo apt-get updatesudo apt-get install cmake build-essential protobuf-compiler
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/0glabs/0g-da-retriever.gitcd 0g-da-retriever
cargo build --release
nano $HOME/0g-da-retriever/run/config.toml
Sample:
log_level = "info"grpc_listen_address = "0.0.0.0:34005" #YOUR_RPC_ENDPOINT:eth_rpc_endpoint = "https://evmrpc-testnet.0g.ai"
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.targetEOF
sudo systemctl daemon-reload && \sudo systemctl enable 0gdar && \sudo systemctl start 0gdar && \sudo systemctl status 0gdar && sudo journalctl -u 0gdar -f -o cat