Skip to content

simple private blockchain genesis with ethereum and geth

License

Notifications You must be signed in to change notification settings

marcosrachid/blockchain-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchain-template

Blockchain template with Ethereum

Prerequisite

Genesis.json

{
  "config": {
        "chainId": 15,
        "homesteadBlock": 0,
        "eip155Block": 0,
        "eip158Block": 0
    },
  "alloc"      : {}, // add ether to preallocated accounts
  "coinbase"   : "0x0000000000000000000000000000000000000000", // not required, defines where mining goes to when you have this account
  "difficulty" : "0x20000", // how difficult it is to mine a block
  "extraData"  : "",
  "gasLimit"   : "0x2fefd8", // upper limit to pay gas to miners on transactions
  "nonce"      : "0x0000000000000042", // initializing parameter for the blockchain
  "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000", // initializing parameter for the blockchain
  "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", // initializing parameter for the blockchain
  "timestamp"  : "0x00" // timestamp the block was generetad (Starting at 1970-01-01)
}

Build

geth --datadir=./chaindata/ init ./genesis.json

Execute

geth --datadir=./chaindata/

About

simple private blockchain genesis with ethereum and geth

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published