Updated 2019-10-01

# Creating Hyperledger Besu Genesis File

The genesis file defines the first block in the chain and the first block defines which chain you want to join.

For Ethereum MainNet and public testnets (for example, Rinkeby), the genesis configuration is defined in Besu and used when a public network is specified using the --network command line option.

For private networks, create a JSON genesis file and specify the genesis file using the --genesis-file command line option.

Network wide settings are specified in the genesis file so all nodes in a network must use the same genesis file.

Example

{
"config": {
"chainId": 2018,
"constantinoplefixblock": 0,
"ibft2": {
"blockperiodseconds": 5,
"epochlength": 30000,
"requesttimeoutseconds": 10
}
},
"nonce": "0x0",
"timestamp": "0x58ee40ba",