Nodes
System Requirements and Prerequisites
Before starting, ensure you have the following (recommended):
Hyperledger Besu installed on your machine. Installation Guide.
Java 17 or higher.
RAM: 8GB
Storage: 750GB
Install Besu
Get Started
Copy the Genesis File
The new node needs to be initialized with the same genesis file as the rest of the network. Copy the genesis.json file.
cd network/node1Download the Testnet genesis.json file.
Download the Mainnet genesis.json file.
Create config.toml Configuration Files
config.toml Configuration Files cd network/node1
nano config.toml # Valid TOML config file
data-path="data" # Path
#static-nodes-file="data/static-nodes.json"
# Network
bootnodes=["enode://23b6a539306cc1f3a61230e3253cebf9b6cad37fa045954fe27cef265ab232329456c786d16d6c132eaf957b75f5e87629ec7e6a7aa271e9c346b2cde2e0a4d0@95.111.219.167:30301"]
#p2p-host="0.0.0.0"
p2p-port=30305
max-peers=42
host-allowlist=["*"]
[sync]
#sync-mode="X_SNAP" # Enables Snap sync
logging="DEBUG"
min-gas-price=0
revert-reason-enabled=true
rpc-http-enabled=true
#rpc-http-host="0.0.0.0"
rpc-http-port=22005
rpc-http-cors-origins=["*"]
rpc-http-api=["ADMIN", "ETH", "NET", "WEB3", "QBFT"]
#rpc-ws-host="0.0.0.0"
rpc-ws-enabled=true
rpc-ws-port=32005
rpc-ws-api=["ADMIN", "ETH", "NET", "WEB3", "QBFT"]
# Chain
genesis-file="genesis.json" # Path to the custom genesis file# Valid TOML config file
data-path="data" # Path
#static-nodes-file="data/static-nodes.json"
bootnodes=["enode://39f394a6c9bec694d2c7dc5b1c5b20611fbfb9212a5f75c28febdff92eb290ea7ec1c5a3873d7e14a32ec3bc7072f52ef4dfbf9c7387c8315b9d3a5b48e981df@94.237.66.224:30301"]
#p2p-host="0.0.0.0"
p2p-port=30306
max-peers=42
host-allowlist=["*"]
logging="ALL"
min-gas-price=0
revert-reason-enabled=true
rpc-http-enabled=true
rpc-http-host="0.0.0.0"
rpc-http-port=22006
rpc-http-cors-origins=["*"]
rpc-http-api=["ETH", "NET", "WEB3", "QBFT", "DEBUG", "TRACE", "TXPOOL"]
rpc-ws-host="0.0.0.0"
rpc-ws-enabled=true
rpc-ws-port=32006
rpc-ws-api=["ETH", "NET", "WEB3", "QBFT", "DEBUG", "TRACE", "TXPOOL"]
# Chain
genesis-file="genesis.json" # Path to the custom genesis file
Start Node
besu --config-file=config.tomlRun as a Service
Last updated