Linea logo

Linea Mainnet

RPC Endpoints

Chain ID: 0xe708 · ETH

Other Linea networks:Sepolia Testnet
How to add Linea to MetaMask or other wallets

Linea Mainnet uses ETH as its native currency. Chain ID: 59144 (0xe708). Below are 3 public RPC endpoints you can use to connect wallets, dApps, and developer tools to Linea Mainnet.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://linea.drpc.org
0xe708ETHExplorer
Checking
https://rpc.linea.build
0xe708ETHExplorer
Checking
https://rpc.swiftnodes.io/rpc/linea?key=demo
0xe708ETHExplorer

Connect to Linea Mainnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://linea.drpc.org");

const network = await provider.getNetwork();
console.log(network.chainId); // 59144n

Linea Mainnet — common questions

What is the RPC URL for Linea Mainnet?
There are 3 public RPC endpoints for Linea Mainnet, including https://linea.drpc.org. See the full list in the table above.
What is the Chain ID for Linea Mainnet?
The Chain ID for Linea Mainnet is 59144 (0xe708 in hexadecimal).
What is the native currency of Linea Mainnet?
The native currency of Linea Mainnet is ETH.
How do I add Linea Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add Linea Mainnet to MetaMask automatically, or follow our step-by-step guide for Linea.