# Moralis

## What is Moralis?

[Moralis](https://moralis.io/) is a leading crypto data provider that helps companies build great user experiences, drive engagement, growth and revenue in their applications.

## What this means for you

[Moralis has integrated Chiliz Chain](https://moralis.io/chains/chiliz/) to its roster of APIs, so that developers can enjoy Chiliz Chain features combined with the swift and efficient capabilities of Moralis.

Through Moralis, you can easily use several Chiliz-specific APIs: Token API, NFT API, Wallet API, Blockchain API, and Streams API.

{% embed url="<https://www.youtube.com/watch?v=ZTvX6WNdJUQ>" %}

## Moralis APIs[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#moralis-apis) <a href="#moralis-apis" id="moralis-apis"></a>

All Moralis APIs are supported on Chiliz Chain and across all other major EVM blockchains. All endpoints support powerful filtering capabilities.

### Wallet API[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#wallet-api) <a href="#wallet-api" id="wallet-api"></a>

With Moralis [Wallet API](https://moralis.io/api/wallet/?utm_source=gnosis-docs\&utm_medium=link) you can get Wallet balances for tokens, NFTs and native assets, get full wallet history, net worth and a lot more.

### NFT API[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#nft-api) <a href="#nft-api" id="nft-api"></a>

With Moralis [NFT API](https://moralis.io/api/nft/?utm_source=gnosis-docs\&utm_medium=link) you can get NFT data like collections, owners, prices, images and metadata.

### Token API[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#token-api) <a href="#token-api" id="token-api"></a>

With Moralis [Token API](https://moralis.io/api/token/?utm_source=gnosis-docs\&utm_medium=link) you can get ERC20 token data like prices, ownership, metadata, transfers, approvals, liquidity, mints and burns.

### Blockchain API[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#blockchain-api) <a href="#blockchain-api" id="blockchain-api"></a>

With Moralis [Blockchain API](http://moralis.io/api/blockchain) you can get core blockchain data like blocks, transactions and logs.

## Moralis Streams[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#moralis-streams) <a href="#moralis-streams" id="moralis-streams"></a>

Moralis [Streams](https://moralis.io/streams/?utm_source=gnosis-docs\&utm_medium=link) allow you to stream blockchain data in real-time via webhooks. Subscribe to any on-chain event, like NFT or token mints, transfers or swaps, add powerful filters and then watch the data flow to your destination in real time.

Use it to build things like wallet notifications, Telegram alerts or just to keep your user balances up to date in real-time by streaming data to your database.

## Getting started with Moralis APIs[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#getting-started-with-moralis-apis) <a href="#getting-started-with-moralis-apis" id="getting-started-with-moralis-apis"></a>

In order to use the Moralis APIs you need a Moralis account and a Moralis API key.

1. Go to [admin.moralis.io](https://admin.moralis.io/?utm_source=gnosis-docs\&utm_medium=link) and create a Moralis account
2. Login to access the admin interface
3. Go to settings and find your API key
4. Find all endpoints and SDKs in the [Moralis documentation](https://docs.moralis.io/)

You can now call any Moralis endpoint, see below for an example.

Explore Moralis further with this documentation:

{% content-ref url="../../../develop/basics/how-tos/how-to-get-the-balance-of-a-wallet" %}
[how-to-get-the-balance-of-a-wallet](https://docs.chiliz.com/develop/basics/how-tos/how-to-get-the-balance-of-a-wallet)
{% endcontent-ref %}

{% content-ref url="../../../develop/basics/how-tos/how-to-get-the-history-of-a-wallet" %}
[how-to-get-the-history-of-a-wallet](https://docs.chiliz.com/develop/basics/how-tos/how-to-get-the-history-of-a-wallet)
{% endcontent-ref %}

{% content-ref url="../../../develop/basics/how-tos/how-to-get-the-metadata-of-a-specific-nft" %}
[how-to-get-the-metadata-of-a-specific-nft](https://docs.chiliz.com/develop/basics/how-tos/how-to-get-the-metadata-of-a-specific-nft)
{% endcontent-ref %}

{% hint style="info" %}
Note the IDs for Chiliz Chain:

* Chiliz Mainnet: `0x15b38`
* Spicy Testnet: `0x15b32`
  {% endhint %}

## Getting started with Moralis Streams[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#getting-started-with-moralis-streams) <a href="#getting-started-with-moralis-streams" id="getting-started-with-moralis-streams"></a>

1. Go to [admin.moralis.io](https://admin.moralis.io/?utm_source=gnosis-docs\&utm_medium=link) and create a Moralis account
2. Login to access the admin interface
3. Go to the Streams page
4. From there you can configure your Moralis Stream from the UI
5. Configure the trigger, what events or what addresses to watch
6. Configure the filters you want
7. Configure which chains you want the Stream to be active on.
8. Set up your destination webhook (where the data should be sent)

You can also set up Streams programmatically, check out the [Moralis Streams documentation](https://docs.moralis.io/streams-api/evm) for a guide on how to do that.

## Tutorials & Guides[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#tutorials--guides) <a href="#tutorials--guides" id="tutorials--guides"></a>

### Tutorials[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#tutorials) <a href="#tutorials" id="tutorials"></a>

* [How to get all NFTs owned by a wallet address](https://docs.moralis.io/web3-data-api/evm/how-to-get-all-nfts-owned-by-an-address/?utm_source=gnosis-docs\&utm_medium=link)
* [How to get the metadata of an NFT](https://docs.moralis.io/web3-data-api/evm/how-to-get-the-metadata-of-an-nft/?utm_source=gnosis-docs\&utm_medium=link)
* [How to get all tokens owned by a wallet address](https://docs.moralis.io/web3-data-api/evm/how-to-get-all-erc20-tokens-owned-by-an-address/?utm_source=gnosis-docs\&utm_medium=link)
* [How to get the price of any ERC20 token](https://docs.moralis.io/web3-data-api/evm/how-to-get-the-price-of-an-erc20-token/?utm_source=gnosis-docs\&utm_medium=link)
* [How to get all token transfers of a wallet address](https://docs.moralis.io/web3-data-api/evm/how-to-get-all-erc20-transfers-by-wallet/?utm_source=gnosis-docs\&utm_medium=link)

### Guides[​](https://docs.gnosischain.com/tools/Data%20Indexing/moralis#guides) <a href="#guides" id="guides"></a>

* [How to build an automated Telegram bot](https://docs.moralis.io/guides/automated-blockchain-telegram-bot/?utm_source=gnosis-docs\&utm_medium=link)
* [How to build an NFT gates website with NextJS](https://docs.moralis.io/guides/token-gating-website-nextjs/?utm_source=gnosis-docs\&utm_medium=link)
* [How to build a ZapperFi clone](https://docs.moralis.io/guides/zapper-clone/?utm_source=gnosis-docs\&utm_medium=link)
* [How to get Token Prices](https://www.youtube.com/watch?v=laDsODyofVU)
* [How to build a Blur NFT Marketplace clone](https://www.youtube.com/watch?v=WVEqX8DL4KE)
* [How to build a Metamask portfolio clone](https://www.youtube.com/watch?v=1UD0WqvsKZ8)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.chiliz.com/community/chiliz-chain-ecosystem/developer-tools/moralis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
