Guides
July 18
0g DA Node User Guide
Hello everyone Today we will figure out how to install a DA node on your device! Please note that this article is a continuation of the previous article, which you can find at this link.
Hardware Requirement
Installation
git clone https://github.com/0glabs/0g-da-node.git cargo build --release ./dev_support/download_params.sh
Configuration
Create a config.toml
file and set the following field
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"
cargo run --bin key-gen
Run
./target/release/server --config cargo.toml