Skip to content

Instantly share code, notes, and snippets.

@dickolsson
Last active April 17, 2024 08:46
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save dickolsson/e652b3d0e7bee55aa0a582d8a03900bf to your computer and use it in GitHub Desktop.
Save dickolsson/e652b3d0e7bee55aa0a582d8a03900bf to your computer and use it in GitHub Desktop.
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": {}
}
@Chandubabuankam
Copy link

how to download this file?

@manpreet1125singh
Copy link

What is the meanng of all theses terms

@technoY2K
Copy link

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

Copy link

ghost commented May 2, 2018

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

@vivektamilarasan
Copy link

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

@jeichel-miovision
Copy link

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

@Yaohong9257
Copy link

Thanks for sharing!

@GrassShrimp
Copy link

Thanks for sharing

@pingmoogle
Copy link

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
Copy link

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

@abdur-rehman-dev
Copy link

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

just search them on internet and you are good to go.

@alfaqi
Copy link

alfaqi commented Jul 16, 2022

Thanks for sharing

@techHiveMinds
Copy link

how to download this file?

It is Possible to Copy and Paste the Code in a File Named genesis-block.json and then Place it in the Folder where you will Initialise, Probably Geth, to Start

@aney9
Copy link

aney9 commented Apr 17, 2024

пасыба брат

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