The Graph Subgraphs
Explore and query blockchain data through The Graph subgraphs. Inspect GraphQL schemas, build queries for NFT transfers, DEX swaps, and DeFi metrics, iterate on them interactively, and export finished queries for your app.
This skill helps you turn raw on-chain activity into structured, queryable data via The Graph. It examines subgraph GraphQL schemas, composes and refines queries for indexed entities like transfers, swaps, and protocol metrics, tests them against live subgraphs, and exports the queries you keep so they drop straight into your project's data layer.
When to use
Use when querying blockchain data via The Graph subgraphs, exploring a subgraph's GraphQL schema, building queries for NFT transfers, DEX swaps, or DeFi metrics, or exporting tested subgraph queries into an app.
Examples
Inspect a subgraph schema
Discover entities and fields to query
Explore the schema of this Uniswap subgraph and show me the entities and fields available for querying pool swaps and liquidity
Query DEX swaps
Build a GraphQL query for on-chain activity
Write a subgraph GraphQL query that returns the last 100 swaps for a given pool with amounts, tokens, and timestamps, then paginate it
Export queries to my app
Package tested queries for integration
Export the subgraph queries I've tested into typed GraphQL documents I can drop into my frontend data layer