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
Prerequisites
There are multiple methods for installing Hyperledger Besu ( from source binary or Docker image).
Install java JDK 17+ (If not installed, check: `java -version`).
apt install openjdk-17-jre-headlessapt install libjemalloc-dev unzipDownload Besu
You can download the latest version of Hyperledger Besu from the official releases page : packaged binaries.
wget https://hyperledger.jfrog.io/artifactory/besu-binaries/besu/24.1.1/besu-24.1.1.zipOnce downloaded, extract the archive to a directory.
unzip besu-24.1.1.zipChange into the besu- directory.
cd besu-24.1.1/To confirm installation:
bin/besu --helpbin/besu --versionTo run besu as a command go to .bashrc.
nano .bashrcAdd this line:
export PATH=$PATH:/pathTO/besu-24.1.1/binsource .bashrcVerify:
besu --helpbesu --versionGet 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.
Download the Testnet genesis.json file.
Download the Mainnet genesis.json file.
Create config.toml Configuration Files
config.toml Configuration Files Configuration with static-nodes.json
Sync your node using static-nodes
Uncomment in the configuration file the following line :
Create a static-nodes.json file with the following content :
Start Node
Run as a Service
Simple service
Create a service file for each node in /etc/systemd/system/.
Reload the systemd daemon:
Start and enable the service:
Verify the status service:
If the ports are already used on the local machine.
Check:
Stop them if you can:
And restart the service:
Confirm the node is running
We can call the JSON-RPC API methods to confirm the node is running. eth_syncing return the synchronization status : returns the starting, current, and highest block, or false if not synchronizing (or if the head of the chain has been reached).
Last updated