# Subgraphs

Both the PoolTogether [app](https://app.pooltogether.com) and [reference](https://reference-app.pooltogether.com/) app use [subgraphs](https://thegraph.com) to index the protocols smart contract events. A cryptocurrency powered economy of participants work together to index various blockchains and make this data available in configurable and consumable form to front-end users. PoolTogether was the first set of subgraphs to be indexed in the The Graph's decentralized indexer network.

There are PoolTogether v3 subgraphs available for most networks that PoolTogether has been deployed on. There are separate subgraphs available for PoolTogether's [LootBox](/v3.3.0/protocol/lootbox.md) on Ethereum Mainnet and Rinkeby (fun fact: the LootBox indexes every single ERC20, ERC721 and ERC1155 transfer since the LootBox launched!).

There are currently 3 separate subgraphs for different versions of deployed prize pool contracts. Some networks only have 1 or 2 subgraphs as they were introduced after the v3.3.8 changes.

## PrizePool Subgraphs

### [Subgraph Code on GitHub](https://github.com/pooltogether/pooltogether-subgraph-v3)

| Subgraph                                                                                  | Version(s)    |
| ----------------------------------------------------------------------------------------- | ------------- |
| **Ethereum Mainnet**                                                                      |               |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/pooltogether-v3_1_0)       | 3.0.0 - 3.3.1 |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/pooltogether-v3_3_2)       | 3.3.2 - 3.3.7 |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/pooltogether-v3_3_8)       | 3.3.8 and up  |
|                                                                                           |               |
| **Rinkeby Testnet**                                                                       |               |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/rinkeby-staging-v3_1_0)    | 3.0.0 - 3.3.1 |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/rinkeby-v3_3_2)            | 3.3.2 - 3.3.7 |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/rinkeby-v3_3_8)            | 3.3.8 and up  |
|                                                                                           |               |
| **Polygon**                                                                               |               |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/pooltogether-polygon-v3_3) | 3.3.2 - 3.3.7 |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/polygon-v3_3_8)            | 3.3.8 and up  |
|                                                                                           |               |
| **Xdai**                                                                                  |               |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/pooltogether-xdai-v3_3)    | 3.3.8 and up  |
|                                                                                           |               |
| **POA Sokol**                                                                             |               |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether-sokol-v3_3)                | 3.3.8 and up  |

## LootBox Subgraphs

### [Subgraph Code on GitHub](https://github.com/pooltogether/loot-box-subgraph)

|                                                                                              |              |
| -------------------------------------------------------------------------------------------- | ------------ |
| **Ethereum Mainnet**                                                                         |              |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/lootbox-v1_0_0)               | 3.0.0 and up |
|                                                                                              |              |
| **Rinkeby Testnet**                                                                          |              |
| [Explorer](https://thegraph.com/explorer/subgraph/pooltogether/ptv3-lootbox-rinkeby-staging) | 3.0.0 and up |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v3.docs.pooltogether.com/v3.3.0/resources/subgraphs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
