Linea RPC Endpoints
Mainnet
HTTPS
https://api-linea-mainnet-archive.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>
WSS
wss://api-linea-mainnet-archive.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>
Quick Start
BASH
curl -sS -X POST https://api-linea-mainnet-archive.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots> \-H 'Content-Type: application/json' \-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
JAVASCRIPT
import { JsonRpcProvider } from 'ethers';const provider = new JsonRpcProvider('https://api-linea-mainnet-archive.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>');const latest = await provider.getBlockNumber();console.log('block', latest);
PYTHON
import requestsurl = 'https://api-linea-mainnet-archive.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>'payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': [] }resp = requests.post(url, json=payload)print(resp.json())
GO
package mainimport ("bytes""fmt""net/http""io/ioutil")func main() {url := "https://api-linea-mainnet-archive.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>"payload := []byte("{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_blockNumber\",\"params\":[]}")resp, err := http.Post(url, "application/json", bytes.NewBuffer(payload))if err != nil { panic(err) }defer resp.Body.Close()body, _ := ioutil.ReadAll(resp.Body)fmt.Println(string(body))}
Linea is a zkEVM L2 network designed to optimize Ethereum's execution capabilities while participating in its security mechanisms. It offers a high-performance environment for transactions, smart contract deployment, and NFT minting. Linea uses advanced zero-knowledge cryptography to efficiently validate activities without overwhelming Ethereum's network, ensuring fast and cost-effective operations. The network includes key components like Sequencer, Prover, and Bridge Relayer, working together to enhance Ethereum's scalability and efficiency.
Pricing
How many calls do you make per month?
/ month
Growth
$299
/month
- 500 Responses /sec
- Dedicated Account Manager
150,000,000 responses ≈ 150.0M • Base $299 + Overages $0
Linea Dedicated Node
$1740/month
- Unlimited RPS & Responses
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Dedicated Account Manager
- Pay in Crypto
- Tailored load balancing
- Access to Engineering teams
- Global data centers
Developer Resources
FAQs
What is the Dwellir Linea RPC URL?
Do you support WebSockets on Linea?
Do you support archive data on Linea?
How do I migrate from public Linea RPC endpoints?
What are the Linea Chain IDs and network details?
What SDKs can I use with Dwellir's Linea endpoints?
What's the difference between soft finality and hard finality on Linea?
How does Linea's zkEVM differ from optimistic rollups like Base or Arbitrum?
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure