ETH Price: $1,865.54 (-1.87%)
Linea Mainnet API by Etherscan

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.

Trusted by teams at
Coinbase Coingecko Coingecko Metamask Metamask Binance
59144
Linea Mainnet Mainnet chain ID
59141
Linea Mainnet Testnet chain ID
60+ EVM Chains
with one API key
99.99%
uptime status

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.

API key Active
YourApiKeyToken
One key for Linea Mainnet + 60+ chains
Step 1

Get your API key

Create an Etherscan API key and use it for Linea Mainnet Mainnet, Testnet, and other supported chains.

Linea Mainnet Mainnet 59144
Linea Sepolia 59141
chainid=59144 V2
Step 2

Set the Linea Mainnet chain ID

Pass chainid=59144 for Linea Mainnet Mainnet or chainid=59141 for Linea Sepolia in Etherscan API requests.

Linea Mainnet query Ready
Balances & transfers
Contracts & logs
Tokens & receipts
Step 3

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.
View All Endpoints

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.

Linea Mainnet transaction reconciliation API visual Linea Mainnet transaction reconciliation API visual Linea Mainnet transaction reconciliation API visual

Transaction Reconciliation

Match Linea Mainnet normal and internal transactions, token transfers, fees, timestamps, and execution status with ledger entries and imported wallet records.

Build with: /txlist /txlistinternal /getstatus and more
Linea Mainnet tax and accounting API visual Linea Mainnet tax and accounting API visual Linea Mainnet tax and accounting API visual

Tax & Accounting

Turn Linea Mainnet activity into tax filings, accounting workflows, and audit reports with internal transactions, token transfers, historical balances, and address metadata.

Build with: /tokenbalance /txlist /tokennfttx and more
Linea Mainnet financial reporting API visual Linea Mainnet financial reporting API visual Linea Mainnet financial reporting API visual

Financial Reporting & Audit Evidence

Produce Linea Mainnet period-end balance checks, transaction schedules, exception reports, and traceable source records for financial review.

Build with: /addresstokenbalance /balancehistory /getlogs and more
Linea Mainnet NFT and digital asset reporting API visual Linea Mainnet NFT and digital asset reporting API visual Linea Mainnet NFT and digital asset reporting API visual

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.

Build with: /tokennfttx /token1155tx /getlogs and more

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.

Etherscan API supported chains