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

API entry from apis.yml

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