Skip to content

fengshanshan/private-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Deploy my own private blockchain using geth and deploy smart contracts on it

Here is my steps:

  1. Install geth && create question7 folder to do that

  2. Generate initial accounts

    geth account new 0xd2d6e015ac930d125ae18ad92a607b93bbae5eff

  3. Creating a single node private blockchain

    initialize Geth using gensis.json

    use following command to run a node

    geth --allow-insecure-unlock --identity "sannie-node" --datadir . --keystore ~/Library/ethereum/keystore --networkid 4568 --http --http.addr '0.0.0.0' --http.corsdomain "*" --http.port 8502 --http.api 'personal,eth,net,web3,txpool,miner' --mine --miner.etherbase=0xD2D6E015aC930D125AE18aD92a607B93bbae5EfF

  4. Mining Ethereum blocks && get some ether image

  5. Deploy a Smart Contract (demo contract Hello) image

6.configuration network to metamask and add account to it image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published