Goldsky

What is Goldsky?

Goldsky provides realtime blockchain indexing, instant subgraphs, and flexible data streaming pipelines make it easy to unlock the full potential of onchain data.

Goldsky's main products are:

  • Subgraphs: Goldsky allows you to create a "subgraph," which is essentially a custom API for your smart contract. You define which data you care about (e.g., Transfer events), and Goldsky creates a dedicated GraphQL API endpoint for you to query that data instantly.

  • Mirror: This is for more heavy-duty data needs. Mirror "mirrors" live blockchain data (like every single block, transaction, and log) directly into your own database (like Postgres or S3) in real-time.

What this means to you

Chiliz Chain developers can use Goldsky to index, stream, and query blockchain data much more easily and efficiently than by making direct calls to a node.

Goldsky does the heavy lifting of reading the blockchain, allowing you to build faster and more powerful dApps.

Subgraphs: Create a Custom API for Your dApp

A subgraph is a custom GraphQL API that you create to query specific data from your smart contracts. Instead of just getting a wallet's current balance, you can build complex queries like "get the last 50 Fan Token transfers for this user" or "show all NFTs owned by this address."

This is the most common way to use Goldsky and is perfect for building dApp frontends.

There are several ways you can leverage Goldsky for your dApp:

  • Building a Fan Token dashboard that shows historical transfer volume.

  • Creating a wallet portfolio that displays a user's entire NFT collection and transaction history.

  • Showing a live feed of activity for your dApp (e.g., recent mints, sales, or votes).

Mirror: Stream Live Chain Data to Your Database

Mirror is acts as a high-speed data pipeline. It can "mirror" all Chiliz Chain data (every block, transaction, and event log) directly into your own database (like Postgres, S3, or Kafka) in real-time.

This gives you maximum control and is designed for complex, high-traffic backends.

Why would you mirror Chiliz Chain? Here are ideas:

  • Running complex analytics on Fan Token holder behavior.

  • Building a real-time notification system that alerts users to any on-chain action related to their account.

  • Powering a backend that needs to combine on-chain data (like NFT ownership) with off-chain data (like user profiles from a traditional database).

Additional Resources

You can visit Goldsky’s official docs to explore how to build more advanced and optimized subgraphs or mirrors.

Last updated

Was this helpful?