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:
- Optimism Mainnet
Network Details
Network | Chain ID | EVM Chain |
---|---|---|
Optimism Mainnet | 0xa (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.
- Get Wallet History on Optimism
- Get Wallet Token Balances on Optimism
- Get Wallet Token Approvals on Optimism
- Get Wallet NFT Balances on Optimism
- Get Wallet DeFi Positions on Optimism
- Get Wallet Net-worth on Optimism
- Get Wallet PnL on Optimism
- Get Wallet Details on Optimism
- Get Wallet Domains on Optimism
NFT API
The NFT API allows you to interact with NFT-related data on Optimism. You can:
- Get NFTs on Optimism
- Get NFT Metadata on Optimism
- Get NFT Transfers on Optimism
- Get NFT Collections on Optimism
- Get NFT Owners on Optimism
- Get NFT Prices on Optimism
- Get NFT Trades on Optimism
- Get NFT Stats on Optimism
- Get NFT Traits and Rarity on Optimism
Token API
The Token API provides methods for interacting with ERC-20 tokens on Optimism. Choose from the following actions:
- Get Token Metadata on Optimism
- Get Token Price on Optimism
- Get Token Balances on Optimism
- Get Token Approvals on Optimism
- Get Token Transfers on Optimism
- Get Token Top Traders on Optimism
- Get Token Pairs & Liquidity on Optimism
- Get Token Stats on Optimism
- Get Token Owners on Optimism
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:
- Get Blocks on Optimism
- Get Transactions on Optimism
- Get Logs on Optimism
- Get Stats on Optimism
- Get Latest Block Number on Optimism
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