Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example genesis.json for an Ethereum blockchain
{
"config": {
"chainId": 33,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"nonce": "0x0000000000000033",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x8000000",
"difficulty": "0x100",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {}
}
@devender-yadav

This comment has been minimized.

Copy link

@devender-yadav devender-yadav commented Nov 13, 2017

Thanks for sharing!

@Chandubabuankam

This comment has been minimized.

Copy link

@Chandubabuankam Chandubabuankam commented Nov 13, 2017

how to download this file?

@manpreet1125singh

This comment has been minimized.

Copy link

@manpreet1125singh manpreet1125singh commented Feb 17, 2018

What is the meanng of all theses terms

@jhamPac

This comment has been minimized.

Copy link

@jhamPac jhamPac commented Apr 22, 2018

Does anyone know where I can find the docs for the definitions of each property. Is there a genesis.json API doc?

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented May 2, 2018

Dear colleagues, terribly sorry to ask if I can use the same as above values in sample file?

@vivektamilarasan

This comment has been minimized.

Copy link

@vivektamilarasan vivektamilarasan commented May 30, 2018

Hi Guys, this link clearly explains about the genesis.json file.
https://gist.github.com/0mkara/b953cc2585b18ee098cd

@jeichel-miovision

This comment has been minimized.

Copy link

@jeichel-miovision jeichel-miovision commented Jun 11, 2018

You may also want to consider using byzantiumBlock in the config definition for some of the newer compilers.
see - ethereum/go-ethereum#16931

@Yaohong9257

This comment has been minimized.

Copy link

@Yaohong9257 Yaohong9257 commented Jul 27, 2018

Thanks for sharing!

@GrassShrimp

This comment has been minimized.

Copy link

@GrassShrimp GrassShrimp commented Sep 1, 2018

Thanks for sharing

@Soowin

This comment has been minimized.

Copy link

@Soowin Soowin commented Jan 25, 2021

Sorry to bother but I got a message when using this json file:
Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0
Could you please update this gist?

@wasif28

This comment has been minimized.

Copy link

@wasif28 wasif28 commented Jun 10, 2021

Sorry to bother but I got a message when using this json file:
Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0
Could you please update this gist?

Simply remove these 3 lines
Line 4,5,6

"homesteadBlock": 0,
"eip155Block": 0, 

"eip158Block": 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment