Subgraphs

The Balancer Subgraphs indexes data on the Balancer smart contracts with a GraphQL interface. It updates data in response to function calls and contract events to power front-end apps and integrations.

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 hereopen in new window.

V2 Subgraphs

The V2 Subgraphs contain data from the Balancer Vault, including pool token balances and pool parameters.

The schema of GraphQL elements available is defined in /schema.graphql open in new window.

NetworkProduction Subgraph URLDevelopment Subgraph URL (rate-limited)
Ethereumhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/C4ayEZP2yTXRAB8vSaTrgN4m9anTe9Mdm2ViyiAuV9TVopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-v2/version/latestopen in new window
Polygonhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/H9oPAbXnobBRq1cB3HDmbZ1E8MWQyJYQjT1QDJMrdbNpopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-polygon-v2/version/latestopen in new window
Arbitrumhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/98cQDy6tufTJtshDCuhh9z2kWXsQWBHVh2bqnLHsGAeSopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-arbitrum-v2/version/latestopen in new window
Optimismhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/FsmdxmvBJLGjUQPxKMRtcWKzuCNpomKuMTbSbtRtggZ7open in new windowhttps://api.studio.thegraph.com/query/75376/balancer-optimism-v2/version/latestopen in new window
Gnosis Chainhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/EJezH1Cp31QkKPaBDerhVPRWsKVZLrDfzjrLqpmv6cGgopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gnosis-chain-v2/version/latestopen in new window
Avalanchehttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/7asfmtQA1KYu6CP7YVm5kv4bGxVyfAHEiptt2HMFgkHuopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-avalanche-v2/version/latestopen in new window
Basehttps://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latestopen in new windowhttps://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latestopen in new window
Sepoliahttps://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latestopen in new windowhttps://api.studio.thegraph.com/query/24660/balancer-sepolia-v2/version/latestopen in new window
Modehttps://api.studio.thegraph.com/query/75376/balancer-mode-v2/version/latestopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-mode-v2/version/latestopen in new window
Polygon zkEVMhttps://api.studio.thegraph.com/query/24660/balancer-polygon-zk-v2/version/latestopen in new windowhttps://api.studio.thegraph.com/query/24660/balancer-polygon-zk-v2/version/latestopen in new window

Gauges Subgraphs

The Gauges Subgraphs include data from liquidity gauges and veBAL contracts.

The schema of GraphQL elements available is defined in /schema.graphql open in new window.

NetworkProduction Subgraph URLDevelopment Subgraph URL (rate-limited)
Ethereumhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/4sESujoqmztX6pbichs4wZ1XXyYrkooMuHA8sKkYxpTnopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges/version/latestopen in new window
Polygonhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/FxSLKXiieSqBCjDGPbqayhqbxyNtwaEC5M3rxr6hUa8hopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges-polygon/version/latestopen in new window
Arbitrumhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/Bb1hVjJZ52kL23chZyyGWJKrGEg3S6euuNa1YA6XRU4Jopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges-arbitrum/version/latestopen in new window
Optimismhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/CbLt7GqU7sypjRaCfwissEBkFeCw3dUz2emrvBNJ7dZuopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges-optimism/version/latestopen in new window
Gnosis Chainhttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/HW5XpZBi2iYDLBqqEEMiRJFx8ZJAQak9uu5TzyH9BBxyopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges-gnosis-chain/version/latestopen in new window
Avalanchehttps://gateway-arbitrum.network.thegraph.com/api/[API-KEY]/subgraphs/id/GzGBUh1X4Cq9RBdyKoCrPLhYW1saBYHwFBgcTsARPYUGopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges-avalanche/version/latestopen in new window
Basehttps://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latestopen in new windowhttps://api.studio.thegraph.com/query/24660/balancer-gauges-base/version/latestopen in new window
Sepoliahttps://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latestopen in new windowhttps://api.studio.thegraph.com/query/24660/balancer-gauges-sepolia/version/latestopen in new window
Modehttps://api.studio.thegraph.com/query/75376/balancer-gauges-mode/version/latestopen in new windowhttps://api.studio.thegraph.com/query/75376/balancer-gauges-mode/version/latestopen in new window
Polygon zkEVMhttps://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latestopen in new windowhttps://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latestopen in new window