Linea website screenshot

Linea

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.

52.6/100 developing ▬ flat Agent 22/100 agent aware Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFreemium
4 APIs 6 Features 6 Use Cases
BlockchainEthereumLayer 2ZK-EVMWeb3DeFiSmart ContractsJSON-RPCTokensConsenSys

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 52.6/100 · developing
Contract Quality 16.4 / 25
Developer Ergonomics 7.0 / 20
Commercial Clarity 10.0 / 20
Operational Transparency 4.8 / 13
Governance 7.0 / 12
Discoverability 7.4 / 10
Agent readiness — 22/100 · agent aware
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/linea: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 4

Individual APIs this provider publishes, each with its own machine-readable definition.

Linea JSON-RPC API

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...

Linea Explorer API (Lineascan / Blockscout)

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...

Linea Prices API

Token price history

Linea Tokens API

ERC-20 token metadata and information

GraphQL 1

GraphQL schemas published by this provider.

Linea GraphQL API

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...

GRAPHQL

Pricing Plans 1

Published pricing tiers and plan structures.

Linea Plans

8 plans

PLANS

Rate Limits 1

Documented rate limits and quota policies.

Linea Rate Limits

10 limits

RATE LIMITS

FinOps 1

Cost, billing, and metering signals for API financial operations.

Linea Finops

FINOPS

Features 6

Notable capabilities this provider offers.

EVM-compatible JSON-RPC

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.

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Linea Context

5 classes · 18 properties

JSON-LD

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs.

Linea API Rules

5 rules · 3 warnings 2 info

SPECTRAL

JSON Schema 3

Standalone JSON Schema definitions for this provider's data models.

PriceResponse

2 properties

JSON SCHEMA

TokenPage

2 properties

JSON SCHEMA

TokenResponse

10 properties

JSON SCHEMA

Examples 3

Example request and response payloads for these APIs.

Get Token By Address

3 fields

EXAMPLE

Get Token Prices

3 fields

EXAMPLE

Get Tokens

3 fields

EXAMPLE

Security Posture 2

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Linea Domain Security

TLSv1.3 · HSTS · DNSSEC · DMARC

SECURITY

Linea Vulnerability Disclosure

security.txt · contact published

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Linea Agentic Access

4 operations

4 operations · 0 acting

AGENTIC

Use Cases 6

What developers build with this provider.

DeFi application development

Query token balances, prices, and swap activity to power DEX front-ends, yield dashboards, and portfolio trackers on Linea.

Smart contract deployment and verification

Deploy EVM contracts using standard tooling and verify source code via the Lineascan API for public transparency.

Transaction monitoring

Track address activity, internal transactions, and ERC-20 transfers in real time for wallets, compliance, and analytics.

Gas cost optimization

Use linea_estimateGas to accurately budget L1+L2 costs before submitting transactions, avoiding under-gas failures.

Token analytics

Pull token holder lists, supply data, price history, and security scores to build on-chain analytics and due-diligence tools.

Cross-chain bridge monitoring

Track deposit and withdrawal transactions across the Linea canonical bridge to Ethereum mainnet.

Integrations 6

Pre-built integrations with other platforms and tools.

Infura

Managed Linea RPC nodes with private endpoints and higher rate limits via MetaMask developer services.

Alchemy

Alchemy provides Linea RPC nodes with enhanced APIs, webhooks, and developer tooling.

The Graph

Subgraphs can index Linea events for custom GraphQL queries over protocol data.

Dune Analytics

Linea on-chain data is queryable via Dune for SQL-based analytics and dashboards.

Hardhat and Foundry

Standard EVM development frameworks connect to Linea RPC without modification.

Chainlink and Pyth

Price oracles deployed on Linea provide on-chain price feeds for DeFi protocols.

Resources

Get Started 2

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 1

MCP servers, agent skills, and machine-readable catalogs

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 2

Authentication, authorization, and security posture

Operate 2

Status, limits, changes, and where to get help

Commercial 3

Pricing, plans, and the legal terms of use

Company 1

The organization behind the API

Other 3

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
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