The complete API for Linea Mainnet data
Query Linea Mainnet balances, transactions, tokens, contracts, and logs using the same Etherscan API that powers LineaScan, with one API key and chainid=59144.
Why teams choose Etherscan API for Linea Mainnet data
Explorer-grade blockchain data for teams that need accuracy, coverage, scale, and a clear path to multichain data from day one.
The first-choice API for Linea Mainnet data
When teams need blockchain data they can defend in front of users, finance, or compliance, they start with the Etherscan API.
The reference layer for onchain data
Built with LineaScan data, the API is used as a reference point to verify balances, transfers, internal transactions, and contract activity on Linea Mainnet.
Accuracy that holds up under scrutiny
Capture edge cases many providers miss and reduce time spent reconciling mismatched records across tools.
One integration, 60+ chains
Same endpoints, same structure, one API key across Linea Mainnet and other chains. Just set chainid=59144 for Mainnet or chainid=59141 for Testnet.
Linea Mainnet data through a familiar API
Use the same request parameters, response formats, and API conventions that power LineaScan and other Etherscan-supported explorers.
The default for mission-critical data
If blockchain data is mission-critical, Etherscan API is the default choice for teams that need accuracy and reliability.
How to start querying Linea Mainnet with Etherscan API
Get an API key, set the Linea Mainnet chain ID, and call the same endpoint structure used across 60+ EVM chains.
Get your API key
Create an Etherscan API key and use it for Linea Mainnet Mainnet, Testnet, and other supported chains.
Set the Linea Mainnet chain ID
Pass chainid=59144 for Linea Mainnet Mainnet or chainid=59141 for Linea Sepolia in Etherscan API requests.
Call Linea Mainnet endpoints
Use familiar account, token, contract, transaction, and log endpoints to pull LineaScan-grade indexed data into your app.
Single API to access all Endpoints & Metadata
Use Etherscan API with chainid=59144 to query indexed Linea Mainnet data through a familiar endpoint structure.
All Etherscan API Endpoints
View all our available endpoints on Etherscan API documentation.What you can build with the Linea Mainnet API
Build Linea Mainnet wallets, accounting tools, security products, and analytics without operating a separate blockchain indexer.
Transaction Reconciliation
Match Linea Mainnet normal and internal transactions, token transfers, fees, timestamps, and execution status with ledger entries and imported wallet records.
Tax & Accounting
Turn Linea Mainnet activity into tax filings, accounting workflows, and audit reports with internal transactions, token transfers, historical balances, and address metadata.
Financial Reporting & Audit Evidence
Produce Linea Mainnet period-end balance checks, transaction schedules, exception reports, and traceable source records for financial review.
NFT & Digital Asset Reporting
Track Linea Mainnet ERC-721 and ERC-1155 transfers, token IDs, counterparties, timestamps, and related transactions for ownership and disposal records.
Multichain by Default
Turn your app to multichain with our API that supports over 60+ supported chains.
Start building on Linea Mainnet today
Choose an Etherscan API plan and start querying Linea Mainnet Mainnet data with chain ID 59144.