⚙️ 0G Da Node

🛠️ Hardware Requirements

Node Type
CPU
RAM
Storage

Full (Requirements)

8v CPU +

16 GB +

1 TB NVME SSD

📝 Manual installation

Installation packeges and dependencies

# Install dependencies for building from source
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
sudo apt install libssl-dev
sudo apt install pkg-config

Install node

# Clone project repository
git clone https://github.com/0glabs/0g-da-node.git
cd 0g-da-node
cargo build --release


# Download AMT
cd dev_support
./download_params.sh
sudo cp -R /root/0g-da-node/dev_support/params /root/0g-da-node/target/release


# Generation BLS KEY
cd && cd 0g-da-node
cargo run --bin key-gen


# Set config.toml
mv /root/0g-da-node/config_example.toml /root/0g-da-node/config.toml
sudo nano /root/0g-da-node/config.toml

## Value config.toml
## grpc_listen_address = "0.0.0.0:34000"
## eth_rpc_endpoint = "https://evm-rpc.0gchain-testnet.unitynodes.com"
## socket_address = "your-server-ip:34000"
## da_entrance_address = "0xDFC8B84e3C98e8b550c7FEF00BCB2d8742d80a69"
## start_block_number = 802
## signer_bls_private_key = "YOUR BLS KEY"
## signer_eth_private_key = "YOUR PRIVAT KEY VALIDATOR"

# Download genesis and addrbook files
wget https://snapshots-testnet.unitynodes.com/0gchain-testnet/addrbook.json -O $HOME/.0gchain/config/addrbook.json
wget https://snapshots-testnet.unitynodes.com/0gchain-testnet/genesis.json -O $HOME/.0gchain/config/genesis.json


### Create service
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 systemctl status da

Check Logs

sudo journalctl -u da -f -o cat

Last updated