You are reading Hyperledger Besu development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: June 23, 2020

# Creating the 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 definition is in Besu and used when specifying a public network using the --network command line option.

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

The genesis file specifies the network-wide settings, such as those for a free gas network, so all nodes in a network must use the same genesis file.

Example

Example for a 4 nodes IBFT2 network.

{
"config": {
"chainId": 2018,
"muirglacierblock": 0,
"ibft2": {
"blockperiodseconds": 2,
"epochlength": 30000,
"requesttimeoutseconds": 4
}
},
"nonce": "0x0",
"timestamp": "0x58ee40ba",