Category |
Requirements |
CPU |
8+ cores |
RAM |
16+ GB |
Storage |
1 TB NVME SSD |
Bandwidth |
100 MBps for Download / Upload |
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
git clone https://github.com/0glabs/0g-da-node.git
sudo apt install libssl-dev
sudo apt install pkg-config
sudo apt-get install protobuf-compiler
sudo cp -R /root/0g-da-node/dev_support/params /root/0g-da-node/target/release
mv /root/0g-da-node/config_example.toml /root/0g-da-node/config.toml
sudo nano /root/0g-da-node/config.toml
grpc_listen_address = "0.0.0.0:34000"
eth_rpc_endpoint = "http://Validator rpc ip:8545"
socket_address = "your node ip:34000"
da_entrance_address = "0xDFC8B84e3C98e8b550c7FEF00BCB2d8742d80a69"
start_block_number = 802
signer_bls_private_key = "Bls key gen paste"
signer_eth_private_key = "validator eth private key"
sudo tee /etc/systemd/system/da.service > /dev/null <<EOF
[Unit]
Description=DA Node
After=network.target
[Service]
User=root
WorkingDirectory=$HOME/0g-da-node/target/release
ExecStart=$HOME/0g-da-node/target/release/server --config $HOME/0g-da-node/config.toml
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload && \
sudo systemctl enable da && \
sudo systemctl start da
sudo journalctl -u da -f -o cat