forked from blockchaintraining90/batch6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genesis.json.txt
59 lines (39 loc) · 1.74 KB
/
genesis.json.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Create genesis file: (Proof of Work)
-------------------------------------
{
"nonce": "0x0000000000000042",
"timestamp": "0x00",
"parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x00",
"gasLimit": "0x8000000",
"difficulty": "0x0400",
"mixhash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {
},
"config": {
"chainId": 786,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0
}
}
nonce --> 64 bit hash value specified in hexadecimal for genesis block to start with (nonce should start with 98980980987097098798)
timestamp --> indicates when the network started/deployed
march 19 2023, 8:55 PM IST ----> 12365468768 ----> 0xx897907987
ParentHash ---> hexadecimal value which says previous block hash
extraData ---> unique hexadecimal value while starting the network (unique data thru which u can identify the network)
gaslimit ---> max gaslimit that can be consumed
difficulty ---> random value for each and every block in hexadecimal
mixhash ---> combination if nonce and difficulty
coinbase ---> specify the miner address as part of network (10 node address for miner process)
chainid ---> unique id for each and every blockchain (1--> Maninet, 5--> Goerli, 7545 -- Ganache)
eipblocks ---> we start the network with latest EIP blocks
https://www.asynclabs.co/blog/blockchain-development/params-in-ethereum-genesis-block-explained/
process of publishing the changes to protocol is EIP (Ethererum improvement proposals)
2017 ---> ERC20
2019 ---> ERC721
2021 ---> ERC1155
2023 ---> ERC4337
https://eips.ethereum.org/