This guide will help you to put Da Node project 0G labs. You just need to follow the simple steps that are listed here, and then you will definitely be able to realize what you have planned. If you liked the guide or me), please visit my social networks and subscribe to them).
Memory: 16 GB
CPU: 8 cores
Disk: 1 TB NVME SSD
Bandwidth: 100 MBps for Download / Upload
git clone https://github.com/0glabs/0g-da-node.git
git checkout tags/v1.0.1 -b v1.0.1
cargo build --release
./dev_support/download_params.sh
Create a `config.toml` file:
log_level = "info"
data_path = "./db/"
# path to downloaded params folder
encoder_params_dir = "params/"
# grpc server listen address
grpc_listen_address = "0.0.0.0:34000"
# chain eth rpc endpoint
eth_rpc_endpoint = "https://rpc-testnet.0g.ai"
# public grpc service socket address to register in DA contract
# ip:34000 (keep same port as the grpc listen address)
# or if you have dns, fill your dns
socket_address = "<public_ip/dns>:34000"
# data availability contract to interact with
da_entrance_address = ""
# deployed block number of da entrance contract
start_block_number = 0
# signer BLS private key
signer_bls_private_key = ""
# signer eth account private key
signer_eth_private_key = ""
# whether to enable data availability sampling
enable_das = "false"
Generate a BLS private key:
cargo run --bin key-gen
./target/release/server --config cargo.toml
If you found this guide helpful or just liked it, you can learn more about me and subscribe to my social media. Do it, don't be lazy!