Ethereum- How to setup own private blockchain

Ethereum- How to setup own private blockchain

How To setup private blockchain

In this blog post, we show you how to setup private blockchain using geth.

Geth is ethereum client that help us to connect to different blockchain but it also help us to run our own blockchain node that can act as full private blockchain.

Let's see how to setup one.

First of all, Geth need to be installed, in case it is not installed, you can watch this video and install Geth on your system.

Now very first things that will do is create genesis block that is very first block in blockchain. For that create one .json file and add below code to that.



"chainId": 987,

"homesteadBlock": 0,

"eip155Block": 0,

"eip158Block": 0


"difficulty": "0x400",

"gasLimit": "0x8000000",

"alloc": {}


Now run below init command.

geth --datadir E:\\privateBlockchain init E:\\CustomGenesis.json

Now run below command to start blockchain.

geth --identity "localB" --rpc --rpcport "8280" --rpccorsdomain "*" --rpcapi "db,eth,net,web3" --datadir "E:\privateBlockchain" --port "30303" --nodiscover --networkid 1999 console

This way you can setup private blockchain, You can see more details in video.

No Comments

Give a comment

Inquire Now
close slider