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

Optimism API

Introduction

Optimism is a Layer 2 scaling solution for Ethereum that leverages optimistic rollups to improve transaction speeds and reduce costs. By processing transactions off-chain and verifying them on-chain, Optimism offers the same security guarantees as Ethereum while enabling developers to create scalable and efficient decentralized applications (dApps). Optimism is compatible with the Ethereum Virtual Machine (EVM), making it easy for Ethereum developers to transition and scale their dApps.

Supported Networks

The Web3 Data API is available for the following Optimism network:

  1. Optimism Mainnet

Network Details

NetworkChain IDEVM Chain
Optimism Mainnet0xa (10)EvmChain.OPTIMISM

Supported APIs

The following APIs are supported for Optimism:

Wallet API

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

NFT API

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

Token API

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

DeFi API

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

Entity API

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

Price API

Retrieve price data for tokens and NFTs on Optimism 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 Optimism with Moralis

Curious about how you can leverage the full potential of Optimism? Check out our Optimism 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 Optimism development for all kinds of dapps.

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