Skip to main content

Introduction

PoolTogether-V4 Subgraph Introduction

The following pages contain everything you need to know about the PoolTogether suite of 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 their documentation first here

Current Subgraph locations

Mainnet

SubgraphHosted ServiceDecentralized Network
Prizes Claimedhttps://thegraph.com/hosted-service/subgraph/pooltogether/mainnet-v4-prizes-claimedhttps://thegraph.com/explorer/subgraph?id=2egD38z98PyFwxU9wmNACJLPErpY9f28v7gxvgU4WHxg&view=Overview
TWAB Rewardshttps://thegraph.com/hosted-service/subgraph/pooltogether/mainnet-twab-rewardshttps://thegraph.com/explorer/subgraph?id=J2rXR9mkUi1Lp7y2frVYFnSx9iJ2W4YmJDgGdK7k7wip&view=Overview
TWAB Delegatorhttps://thegraph.com/hosted-service/subgraph/pooltogether/mainnet-twab-delegatorhttps://thegraph.com/explorer/subgraph?id=9e675xZvfRpWLzfkPqipNKWwZWUmWYMg6igWLVKA2qcw&view=Overview
Ticket TWABhttps://thegraph.com/hosted-service/subgraph/pooltogether/mainnet-twabhttps://thegraph.com/explorer/subgraph?id=DwkpPnn9yQPnhMS4WfnUFYNFXRZM9R1PjLBwbo7EmGA6&view=Overview
Governancehttps://thegraph.com/hosted-service/subgraph/pooltogether/pooltogether-governancehttps://thegraph.com/explorer/subgraph?id=HZmtsnmRWMKh532QbirX9ouAxUGrzSNtWUPK6nnM2bdL&view=Overview

Polygon

SubgraphHosted ServiceDecentralized Network
Prizes Claimedhttps://thegraph.com/hosted-service/subgraph/pooltogether/polygon-v4-prizes-claimed
TWAB Rewardshttps://thegraph.com/hosted-service/subgraph/pooltogether/polygon-twab-rewards
TWAB Delegatorhttps://thegraph.com/hosted-service/subgraph/pooltogether/polygon-twab-delegator
Ticket TWABhttps://thegraph.com/hosted-service/subgraph/pooltogether/polygon-twab

Avalanche

SubgraphHosted ServiceDecentralized Network
Prizes Claimedhttps://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-v4-prizes-claimed
TWAB Rewardshttps://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-twab-rewards
TWAB Delegatorhttps://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-twab-delegator
Ticket TWABhttps://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-twab

Optimism

SubgraphHosted ServiceDecentralized Network
Prizes Claimedhttps://thegraph.com/hosted-service/subgraph/pooltogether/optimism-v4-prizes-claimed
TWAB Rewardshttps://thegraph.com/hosted-service/subgraph/pooltogether/optimism-twab-rewards
TWAB Delegatorhttps://thegraph.com/hosted-service/subgraph/pooltogether/optimism-twab-delegator
Ticket TWABhttps://thegraph.com/hosted-service/subgraph/pooltogether/optimism-twab
  • Prizes Claimed: https://gateway.thegraph.com/api/[api-key]/subgraphs/id/2egD38z98PyFwxU9wmNACJLPErpY9f28v7gxvgU4WHxg
  • TWAB Rewards: https://gateway.thegraph.com/api/[api-key]/subgraphs/id/J2rXR9mkUi1Lp7y2frVYFnSx9iJ2W4YmJDgGdK7k7wip
  • TWAB Delegator: https://gateway.thegraph.com/api/[api-key]/subgraphs/id/9e675xZvfRpWLzfkPqipNKWwZWUmWYMg6igWLVKA2qcw
  • Ticket TWAB: https://gateway.thegraph.com/api/[api-key]/subgraphs/id/DwkpPnn9yQPnhMS4WfnUFYNFXRZM9R1PjLBwbo7EmGA6
  • Governance: https://gateway.thegraph.com/api/[api-key]/subgraphs/id/HZmtsnmRWMKh532QbirX9ouAxUGrzSNtWUPK6nnM2bdL

Helpful Resources