What is Chain ID?
A chain ID is a unique numeric identifier for a blockchain network — preventing replay attacks by ensuring transactions signed for one chain can't be executed on another.
WHY IT MATTERS
Chain IDs are essential for multi-chain security. Without them, a transaction signed for Ethereum could be replayed on Polygon (same address format, same key). Chain ID is included in the transaction signature, binding it to a specific network.
Common chain IDs: Ethereum Mainnet (1), Goerli (5), Sepolia (11155111), Polygon (137), Arbitrum (42161), Optimism (10), Base (8453). Wallets use chain IDs to ensure you're connected to the intended network.
EIP-155 formalized chain ID inclusion in transaction signatures, making replay protection mandatory for all modern Ethereum transactions.