Genesis Block

The genesis block information of the mainnet and testnet is hard-coded in the underlying code, and the genesis block file is as follows.

*In order to maintain the consistency of system contracts, the code of the system contract address is hard-coded and not presented in the genesis block file.

Definition

  • Blockchain Identification: chainId

  • Hard folk configuration: homesteadBlock, eip150Block, eip150Hash, eip155Block, eip158Block, byzantiumBlock, constantinopleBlock, petersburgBlock, istanbulBlock, muirGlacierBlock

  • Consensus parameter configuration: dpos

    • period : block interval

    • epoch Total blocks in an epoch

  • Genesis Block Basic Information: number, gasUsed, parentHash, nonce , timestamp , gasLimit, difficulty

  • extraData : Setup the initial validator node

  • alloc Setup the initial account information

Mainnet

{
    "config": {
        "chainId": 36,
        "homesteadBlock": 0,
        "eip150Block": 0,
        "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "eip155Block": 0,
        "eip158Block": 0,
        "byzantiumBlock": 0,
        "constantinopleBlock": 0,
        "petersburgBlock": 0,
        "istanbulBlock": 0,
        "muirGlacierBlock": 0,
        "dpos": {
            "period": 6,
            "epoch": 14400
        }
    },
    "nonce": "0x0",
    "timestamp": "0x6303a7c2",
    "extraData": "0x000000000000000000000000000000000000000000000000000000000000000063937F2Ff3c2CEAebD99d210d6368fDe8CfDBC490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "gasLimit": "0x280de80",
    "difficulty": "0x1",
    "alloc": {
      "0xF28e4120bFF3b046D7CA5fB4f9415c1e0994b996": {
        "balance": "0xba4c9abddef64d2556200000"
      },
      "0x63937F2Ff3c2CEAebD99d210d6368fDe8CfDBC49": {
        "balance": "0x2116546630bbd4cf640000"
      }
    },
    "number": "0x0",
    "gasUsed": "0x0",
    "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}

Testnet

Last updated

Was this helpful?