Ethereum Smart Contract Development
上QQ阅读APP看书,第一时间看更新

Writing the genesis block

The first step for creating a private blockchain is to create a genesis block. It is basically submitting a JavaScript Object Notation (JSON) file with the following details. In this chapter, we just lay down the structure, rather than going deep into what the block contents mean. One point to remember is to use a random integer other than 1 for the chainId parameter, as shown in Figure 3.27:

Figure 3.27: genesis.json