mirror of https://github.com/hyperledger/besu
An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.1 KiB
23 lines
1.1 KiB
description: Pantheon network ID and chain ID implementation
|
|
<!--- END of page meta data -->
|
|
|
|
# Network ID and Chain ID
|
|
|
|
Ethereum networks have a **network ID** and a **chain ID**. The network ID can be specified using the
|
|
[`--network-id`](../Reference/Pantheon-CLI-Syntax.md#network-id) option and the chain ID is specified
|
|
in the genesis file.
|
|
|
|
For most networks including MainNet and the public testnets, the network ID and the chain ID are the
|
|
same and Pantheon network id default values are defined according to the genesis chain id value.
|
|
|
|
The network ID is automatically set by Pantheon to the chain ID when connecting to the Ethereum networks:
|
|
|
|
- **MainNet:** chain-id ==1==, network-id ==1==
|
|
- **Rinkeby:** chain-id ==4==, network-id ==4==
|
|
- **Ropsten:** chain-id ==3==, network-id ==3==
|
|
- **Dev:** chain-id ==2018==, network-id ==2018==
|
|
|
|
When using the [`--network=dev`](../Reference/Pantheon-CLI-Syntax.md#network) or
|
|
[`--genesis-file`](../Reference/Pantheon-CLI-Syntax.md#genesis-file) options, you can override the
|
|
network ID using the [`--network-id`](../Reference/Pantheon-CLI-Syntax.md#network-id) option.
|
|
|
|
|