Chains

Linea

Linea, chain 59144. The chain that once shipped a testnet id against a mainnet CAIP-2, which is why a test now checks the two against each other.
IDlinea10 / 36evm · ETH
Chain / EVM

Linea

"linea""Linea""Linea"

Symbol
ETH · 18 decimals
Coin type
60
Chain ID
0xe708
Checks
address · txid
fields set 7 / 9

Network

CAIP-2eip155:59144
Magicnone
PoWnone
RPClinea-rpc.publicnode.com
Explorerlineascan.build

Access

Createcreate("linea")
ResolvegetChain("Linea")
CLIchains info Linea
Tryplayground with a sample address

Chain 59144. Linea once carried a testnet chainId next to a mainnet caip2 in this package, so now a test compares the two fields on every EVM chain.

Address format

The EVM format, shared by every EVM chain here: 0x and 40 hex digits, any case. An address that fits Linea fits the other thirteen EVM chains too, and identify says so rather than picking one. The EIP-55 checksum, the one carried in letter case, is verified where there is one: mixed case has to match the hash, and an address in one case throughout passes, since it carries no checksum.

ts
import { getChain } from "@agntn/chains";

const chain = getChain("linea");
chain.assertAddress("0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"); // returned unchanged
chain.chainId; // "0xe708"
chain.caip2; // "eip155:59144"

Spellings

linea, Linea. The key is linea, the rest resolve through getChain.