Overview
Last modified:
The Centurion Subgraph
Centurion uses multiple subgraphs for indexing and organizing data from the Centurion smart contracts. These subgraphs are hosted on The Graph and can be used to query Centurion data.
Versions and Production Endpoints
Each version of Centurion for each chain has its own dedicated subgraph. As hosted subgraphs have been depreciated, you will now need to call through their decentralized subgraphs.
Each subgraph has a dedicated endpoint for querying data, as well as a page on The Graph explorer that exposes the schema and available fields to query.
Creating an API Key
API Keys can be created by users inside the Studio. This key will be included into the endpoint to associate a consumers usage to their billing.
v3 (Mainnet)
- Subgraph
- Graphql Endpoint:
https://gateway.thegraph.com/api/<YOUR_API_KEY_HERE>/subgraphs/id/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV - Code: https://github.com/CenturionDEX/centurion-dex-subgraphs
v2 (Mainnet)
- Subgraph
- Graphql Endpoint:
https://gateway.thegraph.com/api/<YOUR_API_KEY_HERE>/subgraphs/id/A3Np3RQbaBA6oKJgiwDJeo5T3zrYfGHPWFYayMwtNDum - Code: https://github.com/CenturionDEX/centurion-dex-subgraphs
v1 (Mainnet)
- Explorer Page
- Graphql Endpoint:
https://gateway.thegraph.com/api/<YOUR_API_KEY_HERE>/subgraphs/id/ESnjgAG9NjfmHypk4Huu4PVvz55fUwpyrRqHF21thoLJ - Code: https://github.com/graphprotocol/centurion-subgraph
v3 Subgraphs for other chains
| Chain | V3 |
|---|---|
| Arbitrum | Subgraph |
| Base | Subgraph |
| Optimism | Subgraph |
| Polygon | Subgraph |
| BSC | Subgraph |
| Avalanche | Subgraph |
| Celo | Subgraph |
| Blast | Subgraph |