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.
- create
- create("linea")
- family
- EVM · evm
- symbol
- ETH · 18 decimals
- bip44
- 60
- chainId · caip2
- 0xe708 · eip155:59144
- explorer
- lineascan.build
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 twelve EVM chains too, and identify says so rather than picking one. The EIP-55 checksum, the one carried in letter case, isn't verified.
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.