Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (4.1k points)

I am trying to mine on a private network.

How does one go about creating a genesis block for a private network in frontier ethereum?

I have seen: https://blog.ethereum.org/2015/07/27/final-steps/ but this is to get the public Genesis block.

1 Answer

0 votes
by (14.4k points)

To generate a genesis block for a private network in frontier ethereum, all you need to do is execute the following lines of code:

{

"nonce": "0x0000000000000042",

"difficulty": "0x000000100",

"alloc": {

},

"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",

"coinbase": "0x0000000000000000000000000000000000000000",

"timestamp": "0x00",

"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",

"gasLimit": "0x16388"

}

Related questions

Browse Categories

...