Arbitrum One
Arbitrum One
eth_chainId
eth_chainId returns the EIP-155 chain ID of the network the endpoint is serving. It's the canonical "which chain am I on?" check — wallets, signers, and bridge contracts all rely on it to prevent replay attacks across chains.
Why it matters
EIP-155 mixes the chain ID into transaction signatures. Two chains with the same nonce + same sender address are forced to produce different signatures, so a transaction signed for Ethereum mainnet (chain ID 1) is invalid on Polygon (chain ID 137). Treat eth_chainId as a precondition for any write path:
Parameters
None.
Response shape
A hex-encoded integer:
0x1 = Ethereum mainnet · 0x38 = BSC · 0x89 = Polygon · 0xa4b1 = Arbitrum One · 0x2105 = Base.
See also
- net_version — older, less-reliable alternative. Some chains return the chain ID; others return a network ID. Prefer
eth_chainId. - eth_blockNumber — combine the two for a full "alive + on the right chain" probe.