Skip to main content

API Overview

This section explains the Pegasys Subgraph and how to interact with it. The Pegasys subgraph indexes data from the Pegasys contracts over time. It organizes data about pairs, tokens, Pegasys as a whole, and more. The subgraph updates any time a transaction is made on Pegasys. 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.

Pegasys Subgraph - source code for deployed subgraph.

Pegasys-API - API for querying key values for Pegasys and the PSYS token.

Usage#

The subgraph provides a snapshot of the current state of Pegasys and also tracks historical data. It is currently used to power info.pegasys.finance. 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.