Skip to content

Commit 0a394a2

Browse files
Data-NexusDayitva0xPotatoofdoom
authored
Updating Subgraph Section (#713)
Co-authored-by: Dayitva Goel <dayitvagoel@gmail.com> Co-authored-by: 0xPotatoofdoom <singledivorceddad@gmail.com>
1 parent 239311a commit 0a394a2

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/api/subgraph/overview.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ title: Overview
77
## The Uniswap Subgraph
88

99
Uniswap uses multiple [subgraphs](https://thegraph.com/docs/about/introduction#what-the-graph-is) for indexing and organizing data from the Uniswap smart contracts.
10-
These subgraphs are hosted on The Graph hosted service and can be used to query Uniswap data.
10+
These subgraphs are hosted on The Graph and can be used to query Uniswap data.
1111

1212
### Versions and Production Endpoints
1313

14-
Each version of Uniswap has its own dedicated subgraph, and governance contracts have a dedicated subgraph as well.
14+
Each version of Uniswap for each chain has its own dedicated subgraph. As hosted subgraphs have been depreciated, you will now need to call through their decentralized subgraphs.
1515

1616
Each subgraph has a dedicated endpoint for querying data, as well as a page on [The Graph explorer](https://thegraph.com/explorer) that exposes the schema and available fields to query.
1717

18+
## Creating an API Key
19+
20+
API Keys can be created by users inside the [Studio](https://thegraph.com/studio/apikeys/). This key will be included into the endpoint to associate a consumers usage to their billing.
21+
22+
1823
##### v4 (Mainnet)
1924

2025
- [Subgraph](https://thegraph.com/explorer/subgraphs/DiYPVdygkfjDWhbxGSqAQxwBKmfKnkWQojqeM2rkLb3G?view=About&chain=arbitrum-one)
@@ -32,3 +37,22 @@ Each subgraph has a dedicated endpoint for querying data, as well as a page on [
3237
- [Subgraph](https://thegraph.com/explorer/subgraphs/A3Np3RQbaBA6oKJgiwDJeo5T3zrYfGHPWFYayMwtNDum?view=Query&chain=arbitrum-one)
3338
- Graphql Endpoint: `https://gateway.thegraph.com/api/<YOUR_API_KEY_HERE>/subgraphs/id/A3Np3RQbaBA6oKJgiwDJeo5T3zrYfGHPWFYayMwtNDum`
3439
- Code: https://github.com/Uniswap/v2-subgraph
40+
41+
##### v1 (Mainnet)
42+
43+
- [Explorer Page](https://thegraph.com/explorer/subgraphs/ESnjgAG9NjfmHypk4Huu4PVvz55fUwpyrRqHF21thoLJ?view=Query&chain=arbitrum-one)
44+
- Graphql Endpoint: `https://gateway.thegraph.com/api/<YOUR_API_KEY_HERE>/subgraphs/id/ESnjgAG9NjfmHypk4Huu4PVvz55fUwpyrRqHF21thoLJ`
45+
- Code: https://github.com/graphprotocol/uniswap-subgraph
46+
47+
## v3 Subgraphs for other chains
48+
49+
| Chain | V3 |
50+
|--|--|
51+
| Arbitrum | [Subgraph](https://thegraph.com/explorer/subgraphs/FbCGRftH4a3yZugY7TnbYgPJVEv2LvMT6oF1fxPe9aJM?view=Query&chain=arbitrum-one) |
52+
| Base | [Subgraph](https://thegraph.com/explorer/subgraphs/43Hwfi3dJSoGpyas9VwNoDAv55yjgGrPpNSmbQZArzMG?view=Query&chain=arbitrum-one) |
53+
| Optimism | [Subgraph](https://thegraph.com/explorer/subgraphs/Cghf4LfVqPiFw6fp6Y5X5Ubc8UpmUhSfJL82zwiBFLaj?view=Query&chain=arbitrum-one) |
54+
| Polygon | [Subgraph](https://thegraph.com/explorer/subgraphs/3hCPRGf4z88VC5rsBKU5AA9FBBq5nF3jbKJG7VZCbhjm?view=Query&chain=arbitrum-one) |
55+
| BSC | [Subgraph](https://thegraph.com/explorer/subgraphs/F85MNzUGYqgSHSHRGgeVMNsdnW1KtZSVgFULumXRZTw2?view=Query&chain=arbitrum-one) |
56+
| Avalanche | [Subgraph](https://thegraph.com/explorer/subgraphs/GVH9h9KZ9CqheUEL93qMbq7QwgoBu32QXQDPR6bev4Eo?view=Query&chain=arbitrum-one) |
57+
| Celo | [Subgraph](https://thegraph.com/explorer/subgraphs/ESdrTJ3twMwWVoQ1hUE2u7PugEHX3QkenudD6aXCkDQ4?view=Query&chain=arbitrum-one) |
58+
| Blast | [Subgraph](https://thegraph.com/explorer/subgraphs/2LHovKznvo8YmKC9ZprPjsYAZDCc4K5q4AYz8s3cnQn1?view=Query&chain=arbitrum-one) |

0 commit comments

Comments
 (0)