The Uniswap Subgraph

Uniswap uses multiple subgraphsarrow-up-right for indexing and organizing data from the Uniswap smart contracts. These subgraphs are hosted on The Graph hosted service and can be used to query Uniswap data.

Versions and Production Endpoints

Each version of Uniswap has its own dedicated subgraph, and governance contracts have a dedicated subgraph as well.

Each subgraph has a dedicated endpoint for querying data, as well as a page on The Graph explorerarrow-up-right the exposes the schema and available fields to query.

V3

  • Explorer Page: https://thegraph.com/explorer/subgraph/uniswap/uniswap-v3

  • Graphql Endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3

  • Code: https://github.com/Uniswap/uniswap-v3-subgraph

Governance

  • Explorer Page: https://thegraph.com/explorer/subgraph/ianlapham/governance-tracking

  • Graphql Endpoint: https://api.thegraph.com/subgraphs/name/ianlapham/governance-tracking

  • Code: https://github.com/ianlapham/uniswap-governance-subgraph

V2

  • Explorer Page: https://thegraph.com/explorer/subgraph/ianlapham/uniswapv2

  • Graphql Endpoint: https://api.thegraph.com/subgraphs/name/ianlapham/uniswapv2

  • Code: https://github.com/Uniswap/uniswap-v2-subgraph

V1

  • Explorer Page: https://thegraph.com/explorer/subgraph/ianlapham/uniswap

  • Graphql Endpoint: https://api.thegraph.com/subgraphs/name/ianlapham/uniswap

  • Code: https://github.com/graphprotocol/uniswap-subgraph

Last updated