Moralis

Introduction

Moralis helps leading cryptocurrency and blockchain companies grow and innovate faster with high-quality, insightful data tools on Opera and other EVM chains. By using Moralis, your team can focus on growing your product and your business while minimizing the time and money you spend on data infrastructure.

Moralis offers APIs and real-time data streams for NFT, token, wallet, and raw blockchain data, and market insights and discovery data.

Getting Started

To use any of the Moralis APIs, you need to register for a free Moralis accountarrow-up-right and get your API key. You will find your API key under your account settings.

Moralis APIs

Below you'll find details about the different APIs that Moralis offers and some examples of the endpoints available.

NFT API

The Moralis NFT APIarrow-up-right can be used to quickly build NFT functionality into your wallet or portfolio application or to spin up an NFT marketplace. You can use it to fetch NFTs owned by particular wallets, get NFT transfers and sales, or track prices of recent NFT sales.

The NFT API automatically indexes all NFTs and metadata across all available chains.

chevron-rightEndpointshashtag
chevron-rightExample callhashtag

Below is an example where we call the Get NFTs by Wallet endpoint ( `{wallet_address}/nft`) with the Moralis JS SDK.

Request:

Response:

Token API

The Moralis Token APIarrow-up-right has all the information you need about ERC20 tokens, including ownership, transfers, and token prices. Use it to add ERC20 support to your wallet or enrich your token pages with in-depth token metadata.

The Token API includes token logos and spam detection.

chevron-rightEndpointshashtag
chevron-rightExample callhashtag

Request:

Response:

Market Data API

The Moralis Market Data APIarrow-up-right helps you retrieve top coins and NFT collections based on market cap and trading volume. You can use it to build market discovery pages, coin listing pages, or display winners and losers.

chevron-rightEndpointshashtag
chevron-rightExample callhashtag

Request:

Response:

Blockchain API

Using the Moralis Blockchain APIarrow-up-right you can fetch basic data about blocks, transactions, logs, and events. The Blockchain API also supports transaction decoding, which automatically decodes the transaction logs for you, without submitting any ABIs.

chevron-rightEndpointshashtag
chevron-rightExample callhashtag

Request:

Response:

Moralis Streams

Moralis Streamsarrow-up-right is an API for real-time blockchain data, sent over webhooks. Using Streams, you can avoid polling other APIs and instead only be notified when something has actually happened. You can configure the Stream to notify you only when specific things happen on-chain, such as transactions, transfers, mints, or any other custom event. Streams support custom events and customer filters.

Streams can be created either in the Streams User Interfacearrow-up-right once you're signed into the Moralis Admin Panel, or through the APIarrow-up-right.

chevron-rightGuideshashtag

Other Resources