Moralis helps leading cryptocurrency and blockchain companies to grow and innovate faster with high-quality and insightful data tools on Cronos and other major EVM chains. By using Moralis, you 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 data, token data, wallet data, raw blockchain data, as well as market insights and discovery data.
Getting Started
In order to use any of the Moralis APIs, you need to register for a free Moralis account 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 API can be used to quickly build NFT functionality in your wallet, portfolio application or to spin up an NFT marketplace. You can use it to fetch NFTs owned by particular wallets, or 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.
{"page":1,"page_size":100,"cursor":null,"result": [ {"token_address":"0xbd3531da5cf5857e7cfaa92426877b022e612cf8","token_id":"8165","owner_of":"0x3e18e3987b3b73f4e7cb80e2b25776df7a30bb8b","block_number":"18333219","block_number_minted":"12878275","token_hash":"f7d53f87dc31367e148b2ec957cb585b","amount":"1","possible_spam":false,"contract_type":"ERC721","name":"PudgyPenguins","symbol":"PPG","token_uri":"https://ipfs.moralis.io:2053/ipfs/bafybeibc5sgo2plmjkq2tzmhrn54bk3crhnc23zd2msg4ea7a4pxrkgfna/8165", "metadata": "{\"attributes\":[{\"trait_type\":\"Background\",\"value\":\"Tangerine\"},{\"trait_type\":\"Skin\",\"value\":\"Normal\"},{\"trait_type\":\"Body\",\"value\":\"Kimono Orange\"},{\"trait_type\":\"Face\",\"value\":\"Squad\"},{\"trait_type\":\"Head\",\"value\":\"Cowboy Hat\"}],\"description\":\"A collection 8888 Cute Chubby Pudgy Penquins sliding around on the freezing ETH blockchain.\",\"image\":\"ipfs://QmNf1UsmdGaMbpatQ6toXSkzDpizaGmC9zfunCyoz1enD5/penguin/8165.png\",\"name\":\"Pudgy Penguin #8165\"}",
"last_token_uri_sync":"2023-09-26T22:39:34.136Z","last_metadata_sync":"2023-10-13T10:22:08.029Z","minter_address":"0xbff79922fcbf93f9c30abb22322b271460c6bebb","normalized_metadata": {"name":"Pudgy Penguin #8165","description":"A collection 8888 Cute Chubby Pudgy Penquins sliding around on the freezing ETH blockchain.","animation_url":null,"external_link":null,"image":"ipfs://QmNf1UsmdGaMbpatQ6toXSkzDpizaGmC9zfunCyoz1enD5/penguin/8165.png","attributes": [ {"trait_type":"Background","value":"Tangerine","display_type":null,"max_value":null,"trait_count":0,"order":null }, {"trait_type":"Skin","value":"Normal","display_type":null,"max_value":null,"trait_count":0,"order":null }, {"trait_type":"Body","value":"Kimono Orange","display_type":null,"max_value":null,"trait_count":0,"order":null }, {"trait_type":"Face","value":"Squad","display_type":null,"max_value":null,"trait_count":0,"order":null }, {"trait_type":"Head","value":"Cowboy Hat","display_type":null,"max_value":null,"trait_count":0,"order":null } ] },"media": {"mimetype":"image/png","parent_hash":"0x9b326b3d983984f6cfc60a88d16ed3ed5774cc12f230c753509cf2e34485685d","status":"success","updatedAt":"2023-10-13T10:22:07.684Z","media_collection": {"low": {"height":100,"width":100,"url":"https://nft-preview-media.s3.us-east-1.amazonaws.com/evm/0x1/0xbd3531da5cf5857e7cfaa92426877b022e612cf8/0x96a9919f09d1df24d87658f4a8962c297587e2d4aab98e551081023b86c9d463/low.png" },"medium": {"height":250,"width":250,"url":"https://nft-preview-media.s3.us-east-1.amazonaws.com/evm/0x1/0xbd3531da5cf5857e7cfaa92426877b022e612cf8/0x96a9919f09d1df24d87658f4a8962c297587e2d4aab98e551081023b86c9d463/medium.png" },"high": {"height":500,"width":500,"url":"https://nft-preview-media.s3.us-east-1.amazonaws.com/evm/0x1/0xbd3531da5cf5857e7cfaa92426877b022e612cf8/0x96a9919f09d1df24d87658f4a8962c297587e2d4aab98e551081023b86c9d463/high.png" } },"original_media_url":"ipfs://QmNf1UsmdGaMbpatQ6toXSkzDpizaGmC9zfunCyoz1enD5/penguin/8165.png" },"verified_collection":true } ],"status":"SYNCED"}
Token API
The Moralis Token API has all the information you need about ERC20 tokens, including ownership, transfers and token prices. Use it to add ERC20 support in your wallet or enrich your token pages with in-depth token metadata.
The Token API includes token logos and spam detection.
The Moralis Market Data API helps you retrieve top coins and NFT collection based on market cap and trading volume. You can use it to build market discovery pages, coin listing pages or displaying winners and losers.
Using the Moralis Blockchain API you can fetch basic data about blocks, transactions, logs and events. The Blockchain API also supports transaction decoding, which automtically decodes the transaction logs for you, without submitting any ABIs.
Moralis Streams is an API for real-time blockchain data, sent over webhooks. Using Streams you can avoid polling of 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, like transactions, transfers, mints, or any other custom event. Streams support custom events and customer filters.
Streams can be created either in the Streams User Interface once you're signed into the Moralis Admin Panel, or through the API.