Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Linea API

Introduction

Linea is a new Layer 2 network built to scale Ethereum by offering faster and more cost-efficient transactions while maintaining Ethereum’s security and decentralization. Linea is compatible with Ethereum's EVM, which allows developers to easily migrate or extend their decentralized applications (dApps) to the Linea network. It supports ERC-20 swaps and other DeFi-related actions, making it a viable option for various decentralized applications.

Supported Networks

The Web3 Data API is available for the following Linea networks:

  1. Linea Mainnet
  2. Linea Sepolia Testnet

Network Details

NetworkChain IDEVM Chain
Linea Mainnet0xe708 (59144)EvmChain.LINEA
Linea Sepolia Testnet0xe705 (59141)EvmChain.LINEA_SEPOLIA

Supported APIs

The following APIs are supported for Linea:

Wallet API

The Wallet API enables you to interact with wallet data on the Linea blockchain.

NFT API

The NFT API allows you to interact with NFT-related data on Linea. You can:

Token API

The Token API provides methods for interacting with ERC-20 tokens on Linea. Choose from the following actions:

DeFi API

The DeFi API enables interaction with decentralized finance positions and data on Linea:

Entity API

The Entity API allows you to interact with various entities on Linea, such as exchanges or other organizations:

Price API

Retrieve price data for tokens and NFTs on Linea using the Price API:

Blockchain API

The Blockchain API gives access to blockchain-level data such as blocks, transactions, and logs:


Unlock the Power of Linea with Moralis

Curious about how you can leverage the full potential of Linea? Check out our Linea page to see how Moralis can help you build faster and smarter. With features like easy access to on-chain data, token balances, and NFT management, Moralis simplifies Linea development for all kinds of dapps.

Discover more about what you can build on Linea with Moralis:
Learn more on our Linea page