Skip to main content

Introduction

PoolTogether Subgraphs

PoolTogether has a GraphQL API Endpoint hosted by The Graph called a subgraph for indexing and organizing data from the PoolTogether smart contracts.

These subgraphs can be used to query on-chain PoolTogether data. The subgraphs data are serviced by a decentralized group of server operators called Indexers.

The PoolTogether subgraphs work by listening for events emitted by one or more data sources (Smart Contracts) on the various chains. It handles the indexing and caching of data which can later be queried using the GraphQL API Endpoint, providing an excellent developer experience.

Get Started

Learn more about how subgraphs work by checking out The Graph's official documentation. If you are unfamiliar with GraphQL, we recommend taking a quick look through the GraphQL documentation first.

GitHub Code

You can find the source code for the subgraphs at:


Subgraph Endpoints


Mainnet Subgraphs

Optimism (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-optimism/version/latest

Base (contracts)

https://api.studio.thegraph.com/query/41211/pt-v5-base/version/latest

Arbitrum One (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-arbitrum/version/latest

Scroll (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-scroll/version/latest

Gnosis (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-gnosis/version/latest


Testnet Subgraphs

Optimism Sepolia (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-op-sepolia/version/latest

Base Sepolia (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-base-sepolia/version/latest

Arbitrum Sepolia (contracts)

https://api.studio.thegraph.com/query/41211/pt-v5-arbitrum-sepolia/version/latest

Scroll Sepolia (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-scroll-sepolia/version/latest

Gnosis Chiado (contracts)

https://api.studio.thegraph.com/query/63100/pt-v5-gnosis-chiado/version/latest