0

I have question regarding the Chain ID and Network ID for Ethereum Private networks as I have been unable to find a solution online. I am just confused as to how the network IDs and Chain IDs are allocated? Is it first come first served? And what would happen if I used the Network ID 1 and Chain ID 1 for my private network? How do I choose one and, if I were to choose a random one how would I prevent someone from using/connecting to it?

Just a quick side note. In terms of public networks, what is the point of specifying different chain IDs when we could just specify a different Network ID?

Cheers!

1 Answer 1

1

There's the repo https://github.com/ethereum-lists/chains that collects the existing chains. There's no central authority that controls chain ids, anyone can use any number.

For a private network using any number should be fine. As a suggestion avoid using the same ids than mainnet and principal testnets.

2
  • Hi Ismael, thank you a lot for your answer, So this list that is in github is it first come first serve? Do I just choose a random number and hope that no one has ever used it? Also what would be the point of using a different Network ID? Commented Feb 24, 2022 at 10:35
  • @AfonsoLopodeCarvalho There are some rules in their README file which chain will have precedence in case of a conflict. If you have another doubt it is better to create a separate question.
    – Ismael
    Commented Feb 24, 2022 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.