Linea is ConsenSys' ZK-EVM Layer 2 network built on Ethereum, offering low fees, fast finality, and full EVM compatibility. Developers access on-chain data through three complementary API surfaces: a public JSON-RPC endpoint (rpc.linea.build) supporting all standard Ethereum methods plus Linea-specific extensions (linea_estimateGas, linea_getProof), a REST Token API (token-api.linea.build) for ERC-20 token metadata and price history, and the Lineascan block explorer API (Etherscan V2-compatible) for transactions, blocks, addresses, token transfers, event logs, and contract verification across Linea Mainnet (chainId 59144) and Sepolia testnet (chainId 59141).
Linea publishes 2 APIs on the APIs.io network: Prices API and Tokens API. Tagged areas include Blockchain, Ethereum, Layer 2, ZK-EVM, and Web3.
The Linea catalog on APIs.io includes 1 JSON-LD context and 1 Spectral governance ruleset.
Linea’s developer surface includes developer portal, documentation, API reference, getting-started guide, pricing, and 13 more developer resources.
Standard Ethereum JSON-RPC API plus Linea-specific extensions available at the public endpoint rpc.linea.build. Supports all eth_* methods (eth_blockNumber, eth_getBlockByNumber...
Blockchain data APIs for Linea Mainnet backed by two explorer surfaces. The Lineascan (lineascan.build) explorer uses the Etherscan API V2 interface (chain ID 59144) with module...
The Linea GraphQL API is provided by the Blockscout-based block explorer at `explorer.linea.build`. It exposes blockchain data for Linea Mainnet (chain ID 59144) through a Graph...
Full Ethereum JSON-RPC compatibility means existing Hardhat, Foundry, Truffle, ethers.js, viem, and web3.py tooling works unchanged on Linea.
Linea-specific gas estimation
linea_estimateGas returns baseFeePerGas, priorityFeePerGas, and gasLimit including L1 finalization costs, enabling accurate fee budgeting on the ZK rollup.
ERC-4337 bundler endpoint
Built-in account abstraction bundler methods (eth_sendUserOperation, eth_estimateUserOperationGas, Pimlico extensions) available on the public RPC.
Token REST API
Dedicated REST service at token-api.linea.build for ERC-20 token listings, metadata, security scoring, and 24-hour price history without requiring an API key.
Etherscan-compatible explorer API
Lineascan implements the Etherscan API V2 interface, giving access to all standard explorer modules (accounts, transactions, contracts, tokens, logs, stats) via chain ID 59144.
Dual explorer surfaces
Both Lineascan (Etherscan-style) and a Blockscout instance provide redundant explorer APIs with REST and GraphQL options.
aid: linea
name: Linea
url: https://raw.githubusercontent.com/api-evangelist/linea/refs/heads/main/apis.yml
accessModel:
pricing: freemium
onboarding: unknown
trial: false
try_now: false
public: false
label: Freemium
confidence: medium
source:
- plans
generated: '2026-07-22'
method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/linea.png
description: 'Linea is ConsenSys'' ZK-EVM Layer 2 network built on Ethereum, offering low fees, fast finality, and full EVM
compatibility. Developers access on-chain data through three complementary API surfaces: a public JSON-RPC endpoint (rpc.linea.build)
supporting all standard Ethereum methods plus Linea-specific extensions (linea_estimateGas, linea_getProof), a REST Token
API (token-api.linea.build) for ERC-20 token metadata and price history, and the Lineascan block explorer API (Etherscan
V2-compatible) for transactions, blocks, addresses, token transfers, event logs, and contract verification across Linea
Mainnet (chainId 59144) and Sepolia testnet (chainId 59141).'
specificationVersion: '0.19'
created: '2026-06-13'
modified: '2026-06-13'
x-source: public-research
x-category: Blockchain
x-type: company
x-tier: 2
x-tier-reason: pipeline-enriched
tags:
- Blockchain
- Ethereum
- Layer 2
- ZK-EVM
- Web3
- DeFi
- Smart Contracts
- JSON-RPC
- Tokens
- ConsenSys
apis:
- aid: linea:json-rpc-api
name: Linea JSON-RPC API
description: Standard Ethereum JSON-RPC API plus Linea-specific extensions available at the public endpoint rpc.linea.build.
Supports all eth_* methods (eth_blockNumber, eth_getBlockByNumber, eth_sendRawTransaction, eth_call, eth_getLogs, etc.)
as well as ERC-4337 account abstraction bundler methods and Linea-specific methods including linea_estimateGas (returns
baseFeePerGas, priorityFeePerGas, and gasLimit accounting for L1 verification costs) and linea_getProof. The public endpoint
is free but rate-limited; production workloads should use a private node provider such as Infura or Alchemy.
humanURL: https://docs.linea.build/api/reference
baseURL: https://rpc.linea.build
tags:
- JSON-RPC
- Ethereum
- Blockchain
- ERC-4337
- Account Abstraction
properties:
- type: Documentation
url: https://docs.linea.build/api/reference
- type: APIReference
url: https://docs.linea.build/api/reference
- type: GettingStarted
url: https://docs.linea.build/get-started/build/quickstart/deploy
- aid: linea:explorer-api
name: Linea Explorer API (Lineascan / Blockscout)
description: Blockchain data APIs for Linea Mainnet backed by two explorer surfaces. The Lineascan (lineascan.build) explorer
uses the Etherscan API V2 interface (chain ID 59144) with modules covering accounts (native and ERC-20/721/1155 balances
and transfer histories), transactions (normal, internal, deposit, withdrawal), blocks (rewards, countdowns, block number
by timestamp), smart contracts (source code, ABI, creator, verification), token information (supply, holder list, holder
count), event logs (by address and topics), and network statistics (daily transaction counts, gas usage, new address counts,
Ether price and supply). The Blockscout-based explorer (explorer.linea.build) provides a complementary REST and GraphQL
API surface. An API key from lineascan.build is required; subscriptions are managed via the Etherscan API V2 portal.
humanURL: https://lineascan.build/apis
baseURL: https://api.lineascan.build/api
tags:
- Explorer
- Transactions
- Blocks
- Accounts
- Tokens
- Contracts
- Event Logs
- Statistics
properties:
- type: Documentation
url: https://docs.etherscan.io
- type: APIReference
url: https://docs.etherscan.io
- type: Authentication
url: https://lineascan.build/myapikey
- type: Explorer
url: https://lineascan.build
- type: BlockscoutExplorer
url: https://explorer.linea.build
- type: BlockscoutAPIReference
url: https://explorer.linea.build/api-docs
- url: graphql/linea-graphql.md
type: GraphQL
- aid: linea:linea-prices-api
name: Linea Prices API
description: Token price history
humanURL: https://docs.linea.build/api/reference
baseURL: https://rpc.linea.build
tags:
- Prices
properties:
- type: OpenAPI
url: openapi/linea-prices-api-openapi.yml
- type: Documentation
url: https://docs.linea.build/api/token-api/overview
- type: APIReference
url: https://docs.linea.build/api/token-api/reference
- aid: linea:linea-tokens-api
name: Linea Tokens API
description: ERC-20 token metadata and information
humanURL: https://docs.linea.build/api/reference
baseURL: https://rpc.linea.build
tags:
- Tokens
properties:
- type: OpenAPI
url: openapi/linea-tokens-api-openapi.yml
- type: Documentation
url: https://docs.linea.build/api/token-api/overview
- type: APIReference
url: https://docs.linea.build/api/token-api/reference
common:
- type: AgenticAccess
url: agentic-access/linea-agentic-access.yml
- type: VulnerabilityDisclosure
url: security/linea-vulnerability-disclosure.yml
- type: DomainSecurity
url: security/linea-domain-security.yml
- type: Portal
url: https://linea.build
- type: Documentation
url: https://docs.linea.build
- type: APIReference
url: https://docs.linea.build/api/reference
- type: GettingStarted
url: https://docs.linea.build/get-started/build/quickstart/deploy
- type: Explorer
url: https://lineascan.build
- type: Testnet
url: https://sepolia.lineascan.build
- type: Bridge
url: https://bridge.linea.build
- type: Pricing
url: https://etherscan.io/apis?id=59144
- type: GitHubOrganization
url: https://github.com/ConsenSys
- type: GitHubOrganization
url: https://github.com/Consensys
- type: XTwitter
url: https://x.com/lineabuild
- type: Discord
url: https://discord.gg/linea
- type: Plans
url: plans/linea-plans.yml
- type: RateLimits
url: rate-limits/linea-rate-limits.yml
- type: FinOps
url: finops/linea-finops.yml
- type: Features
data:
- name: EVM-compatible JSON-RPC
description: Full Ethereum JSON-RPC compatibility means existing Hardhat, Foundry, Truffle, ethers.js, viem, and web3.py
tooling works unchanged on Linea.
- name: Linea-specific gas estimation
description: linea_estimateGas returns baseFeePerGas, priorityFeePerGas, and gasLimit including L1 finalization costs,
enabling accurate fee budgeting on the ZK rollup.
- name: ERC-4337 bundler endpoint
description: Built-in account abstraction bundler methods (eth_sendUserOperation, eth_estimateUserOperationGas, Pimlico
extensions) available on the public RPC.
- name: Token REST API
description: Dedicated REST service at token-api.linea.build for ERC-20 token listings, metadata, security scoring, and
24-hour price history without requiring an API key.
- name: Etherscan-compatible explorer API
description: Lineascan implements the Etherscan API V2 interface, giving access to all standard explorer modules (accounts,
transactions, contracts, tokens, logs, stats) via chain ID 59144.
- name: Dual explorer surfaces
description: Both Lineascan (Etherscan-style) and a Blockscout instance provide redundant explorer APIs with REST and
GraphQL options.
- type: UseCases
data:
- name: DeFi application development
description: Query token balances, prices, and swap activity to power DEX front-ends, yield dashboards, and portfolio
trackers on Linea.
- name: Smart contract deployment and verification
description: Deploy EVM contracts using standard tooling and verify source code via the Lineascan API for public transparency.
- name: Transaction monitoring
description: Track address activity, internal transactions, and ERC-20 transfers in real time for wallets, compliance,
and analytics.
- name: Gas cost optimization
description: Use linea_estimateGas to accurately budget L1+L2 costs before submitting transactions, avoiding under-gas
failures.
- name: Token analytics
description: Pull token holder lists, supply data, price history, and security scores to build on-chain analytics and
due-diligence tools.
- name: Cross-chain bridge monitoring
description: Track deposit and withdrawal transactions across the Linea canonical bridge to Ethereum mainnet.
- type: Integrations
data:
- name: Infura
description: Managed Linea RPC nodes with private endpoints and higher rate limits via MetaMask developer services.
- name: Alchemy
description: Alchemy provides Linea RPC nodes with enhanced APIs, webhooks, and developer tooling.
- name: The Graph
description: Subgraphs can index Linea events for custom GraphQL queries over protocol data.
- name: Dune Analytics
description: Linea on-chain data is queryable via Dune for SQL-based analytics and dashboards.
- name: Hardhat and Foundry
description: Standard EVM development frameworks connect to Linea RPC without modification.
- name: Chainlink and Pyth
description: Price oracles deployed on Linea provide on-chain price feeds for DeFi protocols.
maintainers:
- FN: Kin Lane
email: kin@apievangelist.com