Skip to main content
Version: V5

Introduction

PoolTogether V5 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.

Current Testnet Subgraphs

Ethereum Sepolia

SubgraphDecentralized Service Endpoint
Prize Poolhttps://api.studio.thegraph.com/query/41211/v5-prize-pool-eth-sepolia/v0.0.1
TWAB Controllerhttps://api.studio.thegraph.com/query/41211/v5-twab-controller-eth-sepolia/v0.0.1

Ethereum Goerli

SubgraphHosted Service Endpoint
Prize Poolhttps://api.thegraph.com/subgraphs/name/pooltogether/v5-eth-goerli-prize-pool
TWAB Controllerhttps://api.thegraph.com/subgraphs/name/pooltogether/v5-eth-goerli-twab-controller

Polygon Mumbai

SubgraphHosted Service Endpoint
Prize Poolhttps://api.thegraph.com/subgraphs/name/pooltogether/v5-polygon-mumbai-prize-pool
TWAB Controllerhttps://api.thegraph.com/subgraphs/name/pooltogether/v5-polygon-mumbai-twab-control