Links
💾

API Overview

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

Usage

The subgraph provides a snapshot of the current state of PYESwap and also tracks historical data. It is currently used to power PYESwap 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 PYESwap V1 Subgraph only tracks data on PYESwap V1.