Linea API Integration
Overview
Linea is supported by Pocket Network's enterprise-grade infrastructure with guaranteed uptime, global edge network, and developer-first tooling.
Network Information
| Property | Value |
|---|---|
| Network Name | Linea |
| Native Token | ETH |
| EVM Chain ID | 59144 |
| Pocket Service ID | linea |
| Block Explorer | LineaScan |
Integration Examples
Quick Setup
// Using ethers.js (for EVM-compatible chains)
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('YOUR_ENDPOINT');
// Get latest block
const blockNumber = await provider.getBlockNumber();
console.log('Latest block:', blockNumber);
// Get account balance
const balance = await provider.getBalance('WALLET_ADDRESS');
console.log('Balance:', balance.toString());
Developer Resources
📚 Essential Links
🛠️ Tools & SDKs
💬 Community & Support
Public Endpoint
Free public RPC endpoint available with fair use limits. No API key required.