A chain ID is a number that identifies an EVM network: 1 for Ethereum, 56 for BNB Chain, 137 for Polygon, 8453 for Base, 42161 for Arbitrum One. Your wallet writes the chain ID into every transaction it signs, so a transaction meant for one network cannot be replayed on another. This protection comes from EIP-155 (2016). You need the chain ID when you add a network to a wallet manually.
Key Takeaways
- Unique number per EVM network, included in every signed transaction.
- Replay protection: a signature for chain 56 is invalid on chain 1.
- Wallet check: MetaMask verifies the RPC returns the chain ID you entered.
- Same address, different chains: the 0x address is the same; the chain ID tells which network.
Chain IDs of Popular Networks
| Network | Chain ID | Hex | Gas token |
|---|---|---|---|
| Ethereum | 1 | 0x1 | ETH |
| Optimism | 10 | 0xa | ETH |
| BNB Chain | 56 | 0x38 | BNB |
| Gnosis | 100 | 0x64 | xDAI |
| Polygon PoS | 137 | 0x89 | POL |
| zkSync Era | 324 | 0x144 | ETH |
| Base | 8453 | 0x2105 | ETH |
| Arbitrum One | 42161 | 0xa4b1 | ETH |
| Avalanche C-Chain | 43114 | 0xa86a | AVAX |
| Linea | 59144 | 0xe708 | ETH |
| Scroll | 534352 | 0x82750 | ETH |
Sepolia testnet uses 11155111. Testnet tokens have no value; never buy them.
Chain ID vs Network ID
Ethereum nodes also have a network ID used for peer-to-peer connections. On most networks it equals the chain ID, but only the chain ID matters for wallets and signatures.
Where You Meet Chain IDs
- Adding a network: wallets ask for name, RPC URL, chain ID, currency symbol and explorer. See how to add a network to MetaMask.
- Wrong network prompts: a dApp asks you to “switch to chain 42161” when your wallet is on another network.
- Bridges and aggregators: routes are defined by source and destination chain IDs; LI.FI-based widgets use them to show quotes.
Fake Networks
A malicious RPC can pretend to be a known network. Take RPC URLs and chain IDs from official docs or chainlist.org, and check that the explorer link is the network’s official one.
Related: gas tokens by chain, what is a layer 2.
