Network ID and chain ID | Besu documentation (2024)

Ethereum networks have two identifiers, a network ID and a chain ID. Although they often have the same value, they have different uses.

Peer-to-peer communication between nodes uses the network ID, while the transaction signature process uses the chain ID.

note

EIP-155 introduced using the chain ID as part of the transaction signing process to protect against transaction replay attacks.

For most networks, including Mainnet and the public testnets, the network ID and the chain ID are the same, with the network ID defaulting to the chain ID, as specified in the genesis file.

Chain ID in the genesis file

{
"config": {
"ethash": {
},
"chainID": 1981
},
...
}

Besu sets the chain ID (and by default the network ID) automatically, using either the --genesis-file option or when specifying a network using the --network option. The following table lists the available networks and their chain and network IDs.

NetworkChainChain IDNetwork IDType
mainnetETH11Production
goerliETH55Test
sepoliaETH1115511111155111Test
devETH20182018Development
classicETC611Production
mordorETC637Test
kottiETC66Test
astorETC212212Test

info

The Ropsten, Rinkeby, and Kiln testnets are deprecated.

Specify a different network ID

Usually the network ID is the same as the chain ID, but if you want to separate specific nodes from the rest of the network so they can't connect or synchronize with other nodes, you can override the default network ID for those nodes using the --network-id option.

Start a new chain with a new chain ID

If you update the chain ID (or network ID) of existing nodes, they can no longer peer with other nodes in the network. Nodes need to have a matching genesis file, including the chain ID, in order to peer. In this case, you're effectively running two chains that can't communicate with each other.

To change a chain ID and start a new chain:

  1. Stop all your nodes using ctrl+c in each terminal window.
  2. Update the genesis file with the new chain ID.
  3. Make sure all nodes have the same genesis file.
  4. Delete the old data directory or point to a new location for each node.
  5. Restart the nodes.

Warning

Starting a new chain is starting from block zero.

This means when you start a new chain with a new chain ID, you lose all previous data.

Network ID and chain ID | Besu documentation (2024)
Top Articles
Advanced Standing & Transfer Students
12 Common Challenges of New Managers
Antisis City/Antisis City Gym
Stretchmark Camouflage Highland Park
Paris 2024: Kellie Harrington has 'no more mountains' as double Olympic champion retires
Vaya Timeclock
Comcast Xfinity Outage in Kipton, Ohio
Nwi Police Blotter
King Fields Mortuary
Osrs But Damage
Imbigswoo
Maxpreps Field Hockey
Readyset Ochsner.org
Echo & the Bunnymen - Lips Like Sugar Lyrics
Rhinotimes
Justified Official Series Trailer
Music Go Round Music Store
Bible Gateway passage: Revelation 3 - New Living Translation
Kcwi Tv Schedule
Vegito Clothes Xenoverse 2
Minnick Funeral Home West Point Nebraska
The best brunch spots in Berlin
Hannaford Weekly Flyer Manchester Nh
Essence Healthcare Otc 2023 Catalog
Walmart Pharmacy Near Me Open
Discord Nuker Bot Invite
Chicago Based Pizza Chain Familiarly
Wku Lpn To Rn
Mami No 1 Ott
Hoofdletters voor God in de NBV21 - Bijbelblog
140000 Kilometers To Miles
Strange World Showtimes Near Regal Edwards West Covina
Everything You Need to Know About NLE Choppa
Panchitos Harlingen Tx
Vip Lounge Odu
Orangetheory Northville Michigan
T&J Agnes Theaters
4083519708
Facebook Marketplace Marrero La
ATM Near Me | Find The Nearest ATM Location | ATM Locator NL
Mckinley rugzak - Mode accessoires kopen? Ruime keuze
Www Craigslist Com Brooklyn
About My Father Showtimes Near Amc Rockford 16
Beaufort SC Mugshots
Lamont Mortuary Globe Az
Alba Baptista Bikini, Ethnicity, Marriage, Wedding, Father, Shower, Nazi
Gabrielle Abbate Obituary
What is a lifetime maximum benefit? | healthinsurance.org
Tìm x , y , z :a, \(\frac{x+z+1}{x}=\frac{z+x+2}{y}=\frac{x+y-3}{z}=\)\(\frac{1}{x+y+z}\)b, 10x = 6y và \(2x^2\)\(-\) \(...
Tyrone Unblocked Games Bitlife
Where and How to Watch Sound of Freedom | Angel Studios
Primary Care in Nashville & Southern KY | Tristar Medical Group
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6413

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.