Linea JSON RPC API
Introduction
Linea is a high-performance Layer 2 solution for Ethereum, designed to provide low-cost and fast transactions while maintaining Ethereum’s security through zk-rollups. Linea’s architecture allows for greater scalability, enabling decentralized applications (dApps) to process more transactions at lower costs, making it ideal for decentralized finance (DeFi), gaming, and NFT ecosystems.
Supported Networks
The Linea RPC API is available for the following networks:
- Linea Mainnet
- Linea Sepolia Testnet
Network Details
Network | Chain ID | EVM Chain | RPC URLs |
---|---|---|---|
Linea Mainnet | 0xe708 (59144) | EvmChain.LINEA | https://site1.moralis-nodes.com/linea/ |
https://site2.moralis-nodes.com/linea/ | |||
Linea Sepolia | 0xe705 (59141) | EvmChain.LINEA_SEPOLIA | https://site1.moralis-nodes.com/linea-sepolia/ |
https://site2.moralis-nodes.com/linea-sepolia/ |
Supported RPC Methods
- eth_blockNumber
- eth_call
- eth_chainId
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getBlockReceipts
- eth_getCode
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByHash
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction