What problem does it solve?
This Skill helps you turn slow, fragmented blockchain data access into a structured, queryable GraphQL API using The Graph’s subgraphs.
Core Features & Use Cases
- Subgraph architecture: Understand schema design, mapping handlers (event-driven AssemblyScript), and the manifest configuration in subgraph.yaml.
- Practical indexing patterns: Model tokens, transfers, and accounts; compute derived metrics; and store event-derived entities efficiently.
- Query-ready outputs: Use GraphQL queries to retrieve top transfer volume tokens, recent large transfers, and account balances via derived relationships.
- Use Case: You want a DEX analytics dashboard that shows volume trends and relationships between swaps and token metadata; build a subgraph that indexes relevant events and exposes them through GraphQL.
Quick Start
Build a subgraph by defining your schema.graphql entities, wiring event handlers in src/mapping.ts, and configuring the data sources and eventHandlers in subgraph.yaml for your target contract(s).