How To Connect A Node To An Ethereum Private Network


To connect to your *Ethereum private node* and start the Genesis block only takes a few steps.

Step 1: Select a node

From the list of nodes in your dashboard at

Step 2: Create your genesis block file

If you do not already have your genesis block saved as a json file, copy it from the Settings tab and save it as a file named, “genesis.json”.  Below is an example of a default genesis block:


    "config": {
       "chainId": 1994,
"homesteadBlock": 0,
"eip155Block": 0,
 "eip158Block": 0,
  "byzantiumBlock": 0
"difficulty": "400",
"gasLimit": "2000000",
"alloc": {}


Step 3: Create your static nodes file

Enode URL: Get this from the Dashboard overview, connect menu 


Be sure to add ?discport=0 to the end of each enode URL.


Copy your enode URL and save as a json file named “static-nodes.json”, as in the example below:





If your network has multiple nodes you would like to connect to, add the additional enode URLs to the static-nodes.json file. Example below:









Step 4: Run scripts


Run the initnode script:



geth --datadir ./eth init ./genesis.json


Run the startnode script:



geth --datadir=./eth --nodiscover --syncmode "full" --networkid< your network id


Your Network ID for the startnode script is the same as your chainid in your genesis block.

Add parameters as needed for the start node script.



Attach to your network with geth:


 Additional resources


For additional articles, see our knowledge base

Additional things you can do with an Ethereum private node

 What is Geth?

Packages to install Geth

0 out of 0 found this helpful



Please sign in to leave a comment.