In this article, we will delve into the advantages of Chiliz and discuss why you may want to develop on this platform. Additionally, we will introduce Moralis, the leading provider of Web3 data in the industry. With our APIs compatible with Chiliz, you can effortlessly retrieve and integrate on-chain data into your decentralized applications (dapps). If you’re keen to understand how this functions, here’s an example that demonstrates how to obtain the complete history of a wallet using just one API call:
import fetch from 'node-fetch'; const options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' }, }; fetch('https://deep-index.moralis.io/api/v2.2/wallets/0xf977814e90da44bfa03b6295a0616a897441acec/history?chain=0x15b38', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
By executing the above script, you’ll receive the complete transaction history of the wallet, enriched with easy-to-understand transaction summaries, category tags, and an array of additional information. Here’s a sample response:
{ //... "result": [ { "hash": "0x0ea1e72d074cc7835d7f76014102bdd230257657d1cc9e57ad1701ce37d37c58", "nonce": "73645", "transaction_index": "0", "from_address_entity": null, "from_address_entity_logo": null, "from_address": "0x87917d879ba83ce3ada6e02d49a10c1ec1988062", "from_address_label": null, "to_address_entity": null, "to_address_entity_logo": null, "to_address": "0xa6610b3361c4c0d206aa3364cd985016c2d89386", "to_address_label": null, "value": "0", "gas": "47867", "gas_price": "5000000000000", "receipt_cumulative_gas_used": "47615", "receipt_gas_used": "47615", "receipt_contract_address": null, "receipt_status": "1", "block_timestamp": "2024-09-09T07:01:17.000Z", "block_number": "16386933", "block_hash": "0xb7d25de19e5eb2ddefec0bfce6d637dd49a8ab18a564e77f7434e0c691e2ab27", "transaction_fee": "0.238075", "method_label": "transfer", "nft_transfers": [], "erc20_transfers": [ { "token_name": "AS Roma", "token_symbol": "ASR", "token_logo": null, "token_decimals": "0", "from_address_entity": null, "from_address_entity_logo": null, "from_address": "0x87917d879ba83ce3ada6e02d49a10c1ec1988062", "from_address_label": null, "to_address_entity": null, "to_address_entity_logo": null, "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec", "to_address_label": null, "address": "0xa6610b3361c4c0d206aa3364cd985016c2d89386", "log_index": 0, "value": "77303", "possible_spam": false, "verified_contract": true, "security_score": null, "direction": "receive", "value_formatted": "77303" } ], "native_transfers": [], "summary": "Received 77,303 ASR from 0x87...8062", "possible_spam": false, "category": "token receive" }, //... ] }
That’s all; retrieving on-chain data from Chiliz becomes quite straightforward when utilizing Moralis. To explore further details on this process, follow us in this guide as we discuss everything step-by-step.
Furthermore, if you wish to utilize our Chiliz-compatible Web3 APIs, this is a great opportunity to register for free with Moralis!
Overview
Ethereum currently stands as the premier blockchain for decentralized application (dapp) development. However, since Ethereum’s inception, various layer-1 and layer-2 networks have emerged, each designed for specific applications. One such case is Chiliz – a prominent blockchain for significant entertainment and sports brands. But what exactly is Chiliz? How does it function? And why consider building on Chiliz Chain? If you’re seeking answers, let’s dive into this article. Here we go!
What is Chiliz Chain? And Why Develop on Chiliz?
The latest version of Chiliz was launched in 2023 and serves as an EVM-compatible layer-1 (L1) blockchain focused on the sports and entertainment sectors!

The mission behind Chiliz Chain is to create a formidable foundation for a premier Web3 sports and entertainment ecosystem, prioritizing fan experiences and tools for both business-to-consumer (B2C) and business-to-business (B2B) interactions. Consequently, Chiliz aspires to establish itself as the industry’s foremost platform for leading entertainment brands and enterprise-level sports.
Chiliz operates under a proof-of-staked authority (PoSA) consensus model and is supported by eleven validators. This PoSA approach enables Chiliz to offer quicker block finality and minimal fees.
Additionally, the Chiliz Chain has a native token known as CHZ ($CHZ), which functions similarly to ETH on Ethereum. Therefore, the CHZ token can be utilized for gas fees, participation in staking, and more.
Now that we’ve gotten familiar with Chiliz, let’s examine some compelling reasons to consider building on this chain!
Why Develop on Chiliz?
There are numerous reasons to build on Chiliz. Here are five notable ones:
- Hassle-Free Developer Experience: Chiliz Chain is EVM-compatible, allowing you to use familiar tools to develop on the network. This compatibility also facilitates the easy migration of existing projects from Ethereum to Chiliz with minimal adjustments.
- Rapid Transaction Processing: The PoSA consensus mechanism incorporates the advantages of both proof-of-authority (PoA) and proof-of-stake (PoS), enabling quicker block times and transaction processing.
- Affordable Fees: The low transaction fees on Chiliz Chain make it a practical choice for developers and end-users alike.
- Dedicated Fanbase: Engage with millions of fans from over 70 leading entertainment and sports brands eager to use your dapps.
- Vibrant Developer Community: Connect with other developers in a dynamic environment supported by development grants and ongoing gas fee contributions.
The Chiliz Ecosystem
What does the current Chiliz ecosystem look like numerically?
- 2+ million users within the ecosystem.
- A market cap that surpasses $1 billion.
- More than 82 fan tokens.
- Over 150 global sports partners, including Manchester City, FC Barcelona, and numerous others.
Examining Socios
Socios is a prominent service that offers sports organizations innovative methods to foster relationships with their supporters via fan tokens. Fan tokens are digital assets that grant users access to experiences, the ability to vote in polls, and inclusion in a vast, global community of like-minded fans!

Socios operates on the Chiliz Chain, utilizing the network’s native token as its official currency. In addition, Socios provides multiple features, including a marketplace for token swaps and Token Hunt – a trendy augmented reality experience allowing users to collect free tokens hidden throughout their cities.
Socios has established partnerships with over 170 recognized sports organizations, spanning soccer teams, Formula One teams, as well as major franchises from the MLS, NBA, and NFL.
In essence, Socios is a fan engagement platform that provides sports organizations with a space to establish and maintain relationships with their fans and supporters!
With a solid understanding of the ecosystem now, you might be interested in creating dapps on the Chiliz Chain yourself. If so, let’s move on to the next section where we introduce Moralis – the leading Web3 data provider in the industry!
Introducing Moralis – The Premier Chiliz API Provider
The simplest way to build dapps on Chiliz Chain is to leverage Moralis – the industry’s leading Web3 data provider. Within our suite of top-tier APIs, you will find Chiliz-compatible interfaces, including the Token API, Streams API, Wallet API, NFT API, Price API, and many more. By utilizing Moralis, you can access all crypto data from a single platform!

Why Develop on Chiliz with Moralis?
Moralis’ Web3 APIs stand out in the industry for several reasons. Here are three key advantages outlining why you should build on Chiliz using Moralis:
- Thorough: Moralis’ Web3 APIs offer the most extensive responses in the industry, providing you with more data through fewer calls. Retrieve any wallet’s transaction history, token prices, updated NFT metadata, and much more using simple lines of code.
- Trustworthy & Secure: We guarantee high reliability and enterprise-level security, reinforced by our SOC 2 Type 2 certification.
- Cross-Chain Compatibility: With full cross-chain support, you can create dapps spanning all major chains, including Chiliz, Ethereum, Optimism, Polygon, Base, and more.
Next, let’s explore Moralis’ Web3 APIs further to underscore the advantages of using our tools to build on Chiliz!
Exploring Moralis’ Web3 APIs
Our suite of Web3 APIs compatible with Chiliz contains several use-case-specific APIs. In the upcoming sections, we will examine three of them:
- Wallet API
- Token API
- Blockchain API
Let’s start with the Wallet API!
Wallet API
Moralis’ Wallet API is the industry’s leading solution for anyone looking to create wallets or integrate wallet functionalities into dapps. The Wallet API supports over 500 million addresses across all major chains, including Chiliz, Ethereum, Optimism, Base, and beyond.

Using the Wallet API, you can effortlessly retrieve a wallet’s comprehensive transaction history, token balances, NFT balances, and more with just a single line of code. Hence, integrating wallet data into your Chiliz projects is a breeze.
To illustrate the simplicity of using the Wallet API, here’s a sample script demonstrating how easy it is to obtain the full transaction history of a particular wallet:
import fetch from 'node-fetch'; const options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' }, }; fetch('https://deep-index.moralis.io/api/v2.2/wallets/0xf977814e90da44bfa03b6295a0616a897441acec/history?chain=0x15b38', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
Upon executing this endpoint, you will receive the total transaction history for the specified wallet. Additionally, the response will include user-friendly summaries, categories, and more detailed information for each transaction. Here’s how a sample response might appear:
{ //... "result": [ { "hash": "0x0ea1e72d074cc7835d7f76014102bdd230257657d1cc9e57ad1701ce37d37c58", "nonce": "73645", "transaction_index": "0", "from_address_entity": null, "from_address_entity_logo": null, "from_address": "0x87917d879ba83ce3ada6e02d49a10c1ec1988062", "from_address_label": null, "to_address_entity": null, "to_address_entity_logo": null, "to_address": "0xa6610b3361c4c0d206aa3364cd985016c2d89386", "to_address_label": null, "value": "0", "gas": "47867", "gas_price": "5000000000000", "receipt_cumulative_gas_used": "47615", "receipt_gas_used": "47615", "receipt_contract_address": null, "receipt_status": "1", "block_timestamp": "2024-09-09T07:01:17.000Z", "block_number": "16386933", "block_hash": "0xb7d25de19e5eb2ddefec0bfce6d637dd49a8ab18a564e77f7434e0c691e2ab27", "transaction_fee": "0.238075", "method_label": "transfer", "nft_transfers": [], "erc20_transfers": [ { "token_name": "AS Roma", "token_symbol": "ASR", "token_logo": null, "token_decimals": "0", "from_address_entity": null, "from_address_entity_logo": null, "from_address": "0x87917d879ba83ce3ada6e02d49a10c1ec1988062", "from_address_label": null, "to_address_entity": null, "to_address_entity_logo": null, "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec", "to_address_label": null, "address": "0xa6610b3361c4c0d206aa3364cd985016c2d89386", "log_index": 0, "value": "77303", "possible_spam": false, "verified_contract": true, "security_score": null, "direction": "receive", "value_formatted": "77303" } ], "native_transfers": [], "summary": "Received 77,303 ASR from 0x87...8062", "possible_spam": false, "category": "token receive" }, //... ] }
Token API
The Token API is your all-encompassing resource for ERC-20 data, covering every token across all prominent chains. This ranges from stablecoins like USDC to meme coins like Shiba Inu.

With the Token API, you can easily access token balances, metadata, ownership details, and much more. Thus, the Token API is ideal for anyone looking to construct token analytics platforms, token explorers, and similar projects.
To demonstrate the power of the Token API, review the script below that details how to fetch a wallet’s token balances:
import fetch from 'node-fetch'; const options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' }, }; fetch('https://deep-index.moralis.io/api/v2.2/0xf977814e90da44bfa03b6295a0616a897441acec/erc20?chain=0x15b38', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
Upon executing the code above, you will receive the token balances for the specified wallet. Here’s a sample response you might get:
[ { token_address: '0x454038003a93cf44766af352f74bad6b745616d0', symbol: 'JUV', name: 'Juventus', logo: null, thumbnail: null, decimals: 0, balance: '2162051', possible_spam: false, verified_contract: true, total_supply: '19956000', total_supply_formatted: '19956000', percentage_relative_to_total_supply: 10.83408999799559, security_score: null }, //... ]
Blockchain API
Moralis’ Blockchain API is the go-to tool for fetching blockchain-related data. With this industry-leading interface, you can swiftly gather and integrate block data, contract logs, transactions, and more into your Chiliz projects. Essentially, the Blockchain API is perfect for creating block explorers or similar platforms.

To illustrate the availability of the Blockchain API, here’s a brief script demonstrating how to retrieve the contents of a block by its hash or block number:
import fetch from 'node-fetch'; const options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' }, }; fetch('https://deep-index.moralis.io/api/v2.2/block/2223?chain=0x15b38', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
Upon running the script above, you will receive details including the block’s timestamp, hash, number, log blooms, gas limit, and much more. Here’s an example of the response:
{ "timestamp": "2023-02-08T09:59:39.000Z", "number": "2223", "hash": "0xdb0a5c1d425613467332e6c72fe767655881ee34c0fa249ede12dcbd7108b573", "parent_hash": "0xdbb70c187799812faba5ffabc8dfe7acbcdb0d1509a5ee9beb347f933c137530", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "//...", "transactions_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "state_root": "0x0141d3e37fe45ab505fd139dc96ecccfb64aec1cb85ee9f86cf19ad0a7e64bdd", "receipts_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "miner": "0x39a7179B6c73622B63B8b58b973835e00E9d38b4", "difficulty": "2", "total_difficulty": "4447", "size": "609", "extra_data": "0xd983010108846765746889676f312e31362e3135856c696e75780000bd7c1b1b8668a896f4b724979968dc8b39e0b1e649b6f411896866979b26d88a104488b026a55dd4f2e4efc5afebf6ebdbbce96041c7b659f5e55303920e66bb7775fa2200", "gas_limit": "30000000", "gas_used": "0", "transaction_count": "0", "base_fee_per_gas": "0", "transactions": [] }
If you wish to explore all available interfaces, please visit the Web3 API page!
3-Step Tutorial: How to Retrieve On-Chain Data from Chiliz with Moralis
We will now showcase why building on Chiliz with Moralis is advantageous. We’ll demonstrate how straightforward it is to obtain a wallet’s full transaction history in three simple steps:
- Sign Up with Moralis & Acquire an API Key
- Create a Script
- Execute the Code
Before you can proceed, there are a few prerequisites!
Prerequisites
Before initiating the tutorial, ensure you are prepared with the following:
Step 1: Sign Up with Moralis & Acquire an API Key
Click “Start for Free” at the top right to register with Moralis:

After logging in, you can locate your API key under the “Home” tab:

Copy and save the key; you’ll need it for the next step.
Step 2: Create a Script
Open a code editor such as VS Code, create a new folder, and initialize a project using this terminal command:
npm init
Next, install the necessary dependencies by running the following commands in the root folder of your project:
npm install node-fetch --save npm install moralis @moralisweb3/common-evm-utils
Edit your “package.json” file and add "type": "module"
to the list:

Create a new “index.js” file and insert the following script:
import fetch from 'node-fetch'; const options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' }, }; fetch('https://deep-index.moralis.io/api/v2.2/wallets/0xf977814e90da44bfa03b6295a0616a897441acec/history?chain=0x15b38', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
From here, substitute YOUR_API_KEY
with the key you copied earlier:

Next, set the address
parameter to match your inquiry:

Step 3: Execute the Code
To execute the code, run the command below in your project’s root directory:
node index.js
As a result, you will receive the complete history of the specified wallet, filled with transaction summaries, categories, and much more. Here’s a glimpse of what it might look like:
{ //... "result": [ { "hash": "0x0ea1e72d074cc7835d7f76014102bdd230257657d1cc9e57ad1701ce37d37c58", "nonce": "73645", "transaction_index": "0", "from_address_entity": null, "from_address_entity_logo": null, "from_address": "0x87917d879ba83ce3ada6e02d49a10c1ec1988062", "from_address_label": null, "to_address_entity": null, "to_address_entity_logo": null, "to_address": "0xa6610b3361c4c0d206aa3364cd985016c2d89386", "to_address_label": null, "value": "0", "gas": "47867", "gas_price": "5000000000000", "receipt_cumulative_gas_used": "47615", "receipt_gas_used": "47615", "receipt_contract_address": null, "receipt_status": "1", "block_timestamp": "2024-09-09T07:01:17.000Z", "block_number": "16386933", "block_hash": "0xb7d25de19e5eb2ddefec0bfce6d637dd49a8ab18a564e77f7434e0c691e2ab27", "transaction_fee": "0.238075", "method_label": "transfer", "nft_transfers": [], "erc20_transfers": [ { "token_name": "AS Roma", "token_symbol": "ASR", "token_logo": null, "token_decimals": "0", "from_address_entity": null, "from_address_entity_logo": null, "from_address": "0x87917d879ba83ce3ada6e02d49a10c1ec1988062", "from_address_label": null, "to_address_entity": null, "to_address_entity_logo": null, "to_address": "0xf977814e90da44bfa03b6295a0616a897441acec", "to_address_label": null, "address": "0xa6610b3361c4c0d206aa3364cd985016c2d89386", "log_index": 0, "value": "77303", "possible_spam": false, "verified_contract": true, "security_score": null, "direction": "receive", "value_formatted": "77303" } ], "native_transfers": [], "summary": "Received 77,303 ASR from 0x87...8062", "possible_spam": false, "category": "token receive" }, //... ] }
For more information on this, please refer to our wallet history documentation page!
Why Develop On Chiliz? – Investigating Use Cases
Having learned to fetch on-chain data from Chiliz using Moralis, let’s look at some intriguing use cases:
- Ticketing Systems: Craft innovative ticketing systems and dapps that offer secure, blockchain-based tickets.
- Fan Engagement Platforms: Create engaging fan platforms where users can partake in polls, Q&A sessions, contests, and more with their favorite athletes and celebrities.
- Fantasy Leagues: Elevate the fantasy sports experience by incorporating unique digital assets, real-time stats, and rewards for top players.
- Esports Platforms: Develop esports platforms featuring innovative token-based rewards, real-time data integration, and fluid fan interactions.
- AR Games: Create augmented reality games – similar to Socios’ Token Hunt – that blend digital assets with the real world, providing players the opportunity to collect both NFTs and fungible tokens.

These five use cases are just a few notable examples; the only boundary here is your imagination!
Conclusion: A Deep Dive into Chiliz Chain – Why Build on Chiliz Chain?
Launched in 2018, Chiliz represents an L1 network seeking to establish itself as the leading blockchain for sports and entertainment brands. It employs a PoSA consensus mechanism to provide rapid block finality and minimal transaction fees.
But why should you choose to build on Chiliz? Here are five essential advantages of the network:
- User-Friendly Developer Experience: Chiliz is EVM-compatible, meaning you can utilize common Ethereum tools to build dapps.
- Swift Transactions: The PoSA consensus mechanism enables Chiliz to deliver expedited transaction finality.
- Affordable Fees: Transaction costs on Chiliz are low, making it an attractive blockchain for developers and users.
- Established Ecosystem: With Chiliz, you can tap into millions of users derived from an already established fan base.
- Robust Developer Community: A thriving community of developers is supported by grants and ongoing contributions to gas fees.
In addition to underlining some benefits of developing on Chiliz, we also introduced Moralis – the premier Web3 data provider in the industry. With our Chiliz-compatible Web3 APIs, you can now effortlessly access all the crypto data you require for your dapps.

But why choose Moralis to enhance your development on Chiliz?
- All-Encompassing: Moralis offers you more information with fewer requests. Access token balances, blockchain data, a wallet’s complete history, and much more with a single line of code.
- Cross-Chain: Effortlessly build across all major chains, including Chiliz and Ethereum, using Moralis’ cross-chain compatible APIs.
- Secure: Benefit from enterprise-grade data security provided by the industry’s first SOC 2 Type 2 certified data provider.
If you enjoyed this article on Chiliz, consider exploring more content here on the blog. For example, dive into our NFT Rarity API or learn how to retrieve token prices using an RPC node.
If you’re eager to take advantage of our Chiliz-compatible APIs, don’t forget to register with Moralis!