What Is a Chain ID? EVM Network IDs Explained With a Table

What Is a Chain ID? EVM Network IDs Explained With a Table

A chain ID (written chainId in code and chain_id in config files) is the 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, configure a dApp or check that an RPC endpoint is genuine.

Key Takeaways

  • One number per EVM network, included in every signed transaction.
  • Replay protection: a signature for chain 56 is invalid on chain 1.
  • Hex and decimal are the same ID: 8453 = 0x2105. RPC calls and MetaMask’s API use hex.
  • Same address, different chains: your 0x address is identical everywhere; the chain ID decides the network.
  • Collisions exist: check the name and RPC, not only the number.
NetworkChain IDHexGas token
Ethereum10x1ETH
OP Mainnet (Optimism)100xaETH
Cronos250x19CRO
BNB Smart Chain560x38BNB
Gnosis1000x64xDAI
Unichain1300x82ETH
Polygon PoS1370x89POL
Monad1430x8fMON
Sonic1460x92S
ZKsync Era3240x144ETH
World Chain4800x1e0ETH
HyperEVM9990x3e7HYPE
Metis10880x440METIS
Sei13290x531SEI
Soneium18680x74cETH
Ronin20200x7e4RON
Abstract27410xab5ETH
MegaETH43260x10e6ETH
Mantle50000x1388MNT
Arc50420x13b2USDC
Base84530x2105ETH
Plasma97450x2611XPL
ApeChain331390x8173APE
Arbitrum One421610xa4b1ETH
Celo422200xa4ecCELO
Avalanche C-Chain431140xa86aAVAX
Ink570730xdef1ETH
Linea591440xe708ETH
Berachain800940x138deBERA
Scroll5343520x82750ETH

Checked on November 6, 2026 against the LI.FI chain list and the chainlist.org registry (chainid.network); 29 of 30 matched in both, and the exception, 999, is explained in collisions below. Tested RPC URLs and MetaMask fields for most of these networks are in our networks section, for example Base, Arbitrum, Polygon, BNB Smart Chain and HyperEVM.

Testnets

TestnetChain IDHex
Ethereum Sepolia111551110xaa36a7
Ethereum Hoodi5600480x88bb0
Base Sepolia845320x14a34
Arbitrum Sepolia4216140x66eee
OP Sepolia111554200xaa37dc

Testnet tokens have no value; never buy them, and never send mainnet funds to a testnet.

How to Check a Chain ID Yourself

Every EVM RPC endpoint answers the eth_chainId method. On November 6, 2026 we asked three public endpoints:

RPC endpointeth_chainIdDecimal
mainnet.base.org0x21058453
arb1.arbitrum.io/rpc0xa4b142161
api.mainnet.abs.xyz0xab52741
curl -s -X POST https://mainnet.base.org \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

If the number does not match the network’s official docs, the endpoint belongs to another network. Hex to decimal: any calculator in programmer mode, or python3 -c "print(0x2105)".

Chain ID vs Network ID

The chain ID and the network ID are two different numbers that usually look the same:

Chain IDNetwork ID
Used bywallets, signatures (EIP-155), dAppsnodes finding peers on the p2p network
RPC methodeth_chainId (hex)net_version (decimal string)
Matters to youyes, every transactionalmost never

On Base, net_version returned “8453” and eth_chainId 0x2105: the same number. The well-known exception is Ethereum Classic: chain ID 61, network ID 1 (chainlist.org data), because it kept Ethereum’s original network ID after the 2016 split. When a guide says “network ID” in wallet settings, it almost always means the chain ID.

Where to Find the Chain ID in Your Wallet

  • MetaMask: open the network list, choose Edit on a network; the Chain ID field shows the decimal value. See how to add a network to MetaMask.
  • Any EVM wallet: network or RPC settings show the chain ID next to the RPC URL and currency symbol.
  • Block explorers (Etherscan, Basescan, Arbiscan) show the network name; the chain ID is on the network’s docs page.
  • dApps read it from your wallet and show “wrong network” or “switch network” when it differs from what they support.

Wrong Chain ID Errors and Fixes

SymptomWhat it meansFix
Wallet refuses to save a network: the RPC returned a different chain IDthe RPC URL belongs to another networktake RPC and chain ID from one official source
dApp asks to “switch to chain 42161”your wallet is on another networkapprove the switch, or switch manually
MetaMask error 4902the dApp requested a network your wallet has not addedadd the network first (MetaMask docs: wallet_addEthereumChain)
Transaction rejected with a chain ID mismatchit was signed for one chain and sent to anotherresend with the wallet on the right network
Network added, but tokens do not showright chain ID, token not importedadd the token by its contract address

MetaMask’s network docs describe code 4902 and require the chain ID as a hex string, for example 0x1.

Collisions and Fake Networks

Chain IDs are not enforced by anyone: a project picks a number and registers it. 999 is HyperEVM’s chain ID (its RPC returned 0x3e7 on November 6, 2026), but the chainlist.org registry lists 999 as Wanchain Testnet. 1337 is the default for local development chains, and LI.FI also uses 1337 as its internal ID for Hyperliquid. So a number alone proves nothing. A malicious RPC can also report a real chain ID while serving fake data, which is why the name, the RPC URL and the explorer must all come from official docs.

Non-EVM Chains

Solana, Bitcoin and Sui have no EVM chain ID. Bridge and swap APIs give them internal IDs so routes can be defined with numbers:

ChainLI.FI internal IDNotes
Solana1151111081099710not an on-chain value
Bitcoin20000000000001not an on-chain value
Sui9270000000000000not an on-chain value
Tron728126428equals Tron’s eth_chainId answer 0x2b6653dc

Never type these IDs into a wallet’s “add network” form; they only exist inside routing APIs.

Related: gas tokens by chain, what is a layer 2, sent crypto to the wrong network.

Swap on Step Exchange

Swap or bridge in one step

Best routes across DEXs and bridges on 60+ chains. Non-custodial: you sign every transaction in your own wallet.

0.7% service fee plus network gas, shown before you confirm.

FAQ

What is a chain ID?

A chain ID (written chainId in code and chain_id in config files) is a unique number that identifies an EVM network, for example 1 for Ethereum, 56 for BNB Chain and 8453 for Base. Wallets include it in every signed transaction, so a signature for one network is invalid on another.

What is the difference between chain ID and network ID?

The chain ID goes into transaction signatures (EIP-155) and wallets check it; the network ID is used by nodes to find peers. They are equal on most networks. Ethereum Classic is the classic exception: chain ID 61, network ID 1.

How do I check the chain ID of a network?

Ask the RPC endpoint with the eth_chainId method; it returns the ID in hex, for example 0x2105 for Base (8453). In a wallet, open the network's settings, where the chain ID is shown. Compare it with the network's official docs or chainlist.org.

Where can I find a chain ID list?

The table on this page lists 30 mainnets checked on November 6, 2026 against the LI.FI chain list and the chainlist.org registry. chainlist.org has the full registry, and our networks section has RPC and MetaMask settings per network.

What does a wrong chain ID error mean?

Your wallet, RPC URL or dApp disagree about which network you are on. Usually the RPC belongs to a different network than the chain ID you typed, or the dApp asks for a network your wallet has not added (MetaMask error code 4902).

Do Solana and Tron have chain IDs?

Solana has no EVM chain ID. Tron's JSON-RPC answers eth_chainId with 0x2b6653dc (728126428). Bridge APIs give non-EVM chains their own internal IDs, for example LI.FI uses 1151111081099710 for Solana.