thegraph
Skill based on The Graph docs (graphprotocol/docs), generated 2026-02-09. Official docs: https://thegraph.com/docs
The Graph indexes blockchain data into queryable subgraphs. Subgraphs are defined by a manifest (subgraph.yaml), a GraphQL schema, and AssemblyScript mappings; they are queried via GraphQL. Substreams provide parallel, multi-chain indexing with multiple sinks.
Core References
| Topic | Description | Reference |
|---|---|---|
| Subgraph Manifest | Data sources, event/call/block handlers, indexer hints | core-subgraph-manifest |
| Schema | Entities, scalars, relationships, @derivedFrom, fulltext | core-schema |
| Mappings | AssemblyScript handlers, graph-ts, codegen, store API | core-mappings |
| GraphQL API | Queries, filtering, pagination, sorting, time-travel | core-graphql-api |
| Subgraph ID vs Deployment ID | When to use which for querying; version pinning | core-deployment-id-vs-subgraph-id |
Best Practices
| Topic | Description | Reference |
|---|---|---|
| Performance | Avoid eth_calls, immutable entities, Bytes ids, @derivedFrom, pruning | best-practices-performance |
More from hairyf/blockchain-master
openzeppelin-contracts
Secure smart contract library—access control, tokens (ERC20/721/1155/4626/6909), upgradeable contracts, and utilities.
15viem
TypeScript interface for Ethereum — clients, contracts, accounts, chains, ENS, and utilities.
13wagmi
Wagmi — React/Vue/Solid hooks and Core for Ethereum; config, connectors, read/write contracts, TanStack Query.
11ton
TON Blockchain — addresses, messages, TVM, cells, Blueprint, contracts, payments, API.
11envio
Envio blockchain data stack — HyperSync, HyperIndex, HyperRPC; fast indexing and data APIs.
8uniswap-v4
Uniswap v4 core pool logic — singleton PoolManager, unlock/callback, pool actions, hooks, and types.
7