Constellations

Intro

Constellations is a high-performance and real-time indexer currently used by Stargaze. It has a free to use API.

Constellations is:

  1. A public facing website available at www.constellations.zone to view content.

  2. A set of GraphQL API to fetch data Constellations has indexed. Self-generated GraphQL documentation is enabled and you can read the Constellations book.

You should already know about GraphQL to use Constellations. You can read more about GraphQL here.

How is it built?

Constellations is built entirely in Rust, backed with Posgresql and hosted on bare metal servers for optimum performance. It fetches blocks live from the blockchain over websockets, parse them instantly and store blocks, transactions, messages and events.

API example

Get most recent minted collections

This will get the most recent minted collections on Stargaze.

Query

query Collections($collectionsLimit: Int, $sortBy: CollectionSortBy) {
  collections(limit: $collectionsLimit, sortBy: $sortBy) {
    collections {
      image
      description
      tokensCount
      website
      createdAt
      collectionAddr
      name
      mintedAt
    }
  }
}

Variables

{
  "collectionsLimit": 2,
  "sortBy": "MINTED_AT_DESC"
}

Try it out live on explorer

Last updated