Skip to main content

API Overview

This section explains the Unicorn Subgraph and how to interact with it. The Unicorn subgraph indexes data from the Unicorn contracts over time. It organizes data about pairs, tokens, Unicorn as a whole, and more. The subgraph updates any time a transaction is made on Unicorn. The subgraph runs on The Graph protocol's hosted service and can be openly queried.

Resources

Subgraph Explorer - sandbox for querying data and endpoints for developers.

Unicorn V2 Subgraph - source code for deployed subgraph.

Usage

The subgraph provides a snapshot of the current state of Unicorn and also tracks historical data. It is currently used to power unicorn.info. It is not intended to be used as a data source for structuring transactions (contracts should be referenced directly for the most reliable live data).

Making Queries

To learn more about querying a subgraph refer to The Graph's documentation.

Versions

The Unicorn V2 Subgraph only tracks data on Unicorn V2. For Unicorn V1 information see the V1 Subgraph.