Skip to content

Commit

Permalink
Merge pull request #195 from balancer/subgraphs
Browse files Browse the repository at this point in the history
Add Subgraph links
  • Loading branch information
mendesfabio authored Dec 11, 2024
2 parents fa30a91 + a4d39a5 commit 4ca9bf4
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions docs/data-and-analytics/data-and-analytics/subgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,32 @@
title: Subgraph
order: 1
---

# Balancer Subgraph

The Balancer Subgraph indexes data on the Balancer smart contracts with a GraphQL interface. It updates data in response to function calls and contract events to maintain data.

:::info
Once v3 subgraph information is available it will be added to this page.
:::
Balancer uses Subgraph Studio for development and deployment of its subgraphs. For querying non-rate-limited endpoints, users need to obtain an API key from The Graph. More information on querying The Graph can be found [here](https://thegraph.com/docs/en/querying/querying-the-graph/).

## V3 Subgraphs

The schemas of GraphQL elements are defined in two separate schema files:

- Vault: [`v3-vault/schema.graphql`](https://github.com/balancer/balancer-subgraph-v3/blob/main/subgraphs/v3-vault/schema.graphql)
- Pools: [`v3-pools/schema.graphql`](https://github.com/balancer/balancer-subgraph-v3/blob/main/subgraphs/v3-pools/schema.graphql)

### Vault Subgraphs

| Network | Production URL | Development URL (rate-limited) |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ethereum | [https://gateway.thegraph.com/api/[api-key]/subgraphs/id/4rixbLvpuBCwXTJSwyAzQgsLR8KprnyMfyCuXT8Fj5cd](https://gateway.thegraph.com/api/[api-key]/subgraphs/id/4rixbLvpuBCwXTJSwyAzQgsLR8KprnyMfyCuXT8Fj5cd) | [https://api.studio.thegraph.com/query/75376/balancer-v3/version/latest](https://api.studio.thegraph.com/query/75376/balancer-v3/version/latest) |
| Gnosis | [https://gateway.thegraph.com/api/[api-key]/subgraphs/id/DDoABVc9xCRQwuXRq2QLZ6YLkjoFet74vnfncQDgJVo2](https://gateway.thegraph.com/api/[api-key]/subgraphs/id/DDoABVc9xCRQwuXRq2QLZ6YLkjoFet74vnfncQDgJVo2) | [https://api.studio.thegraph.com/query/75376/balancer-v3-gnosis/version/latest](https://api.studio.thegraph.com/query/75376/balancer-v3-gnosis/version/latest) |
| Sepolia | [https://api.studio.thegraph.com/query/75376/balancer-v3-sepolia/version/latest](https://api.studio.thegraph.com/query/75376/balancer-v3-sepolia/version/latest) | [https://api.studio.thegraph.com/query/75376/balancer-v3-sepolia/version/latest](https://api.studio.thegraph.com/query/75376/balancer-v3-sepolia/version/latest) |

### Pools Subgraphs

| Network | Production URL | Development URL (rate-limited) |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ethereum | [https://gateway.thegraph.com/api/[api-key]/subgraphs/id/C4tijcwi6nThKJYBmT5JaYK2As2kJGADs89AoQaCnYz7](https://gateway.thegraph.com/api/[api-key]/subgraphs/id/C4tijcwi6nThKJYBmT5JaYK2As2kJGADs89AoQaCnYz7) | [https://api.studio.thegraph.com/query/75376/balancer-pools-v3/version/latest](https://api.studio.thegraph.com/query/75376/balancer-pools-v3/version/latest) |
| Gnosis | [https://gateway.thegraph.com/api/[api-key]/subgraphs/id/yeZGqiwNf3Lqpeo8XNHih83bk5Tbu4KvFwWVy3Dbus6](https://gateway.thegraph.com/api/[api-key]/subgraphs/id/yeZGqiwNf3Lqpeo8XNHih83bk5Tbu4KvFwWVy3Dbus6) | [https://api.studio.thegraph.com/query/75376/balancer-pools-v3-gnosis/version/latest](https://api.studio.thegraph.com/query/75376/balancer-pools-v3-gnosis/version/latest) |
| Sepolia | [https://api.studio.thegraph.com/query/75376/balancer-pools-v3-sepolia/version/latest](https://api.studio.thegraph.com/query/75376/balancer-pools-v3-sepolia/version/latest) | [https://api.studio.thegraph.com/query/75376/balancer-pools-v3-sepolia/version/latest](https://api.studio.thegraph.com/query/75376/balancer-pools-v3-sepolia/version/latest) |

0 comments on commit 4ca9bf4

Please sign in to comment.