# The Graph

> Decentralized indexing protocol for querying blockchain data through subgraphs.

- Readiness score: **80/100** (score.v2)
- Integration difficulty: medium
- Chains: arbitrum-one, bsc
- Categories: data, indexing, subgraphs
- Last verified: 2026-05-29 by composewith.eth seed research (confidence: medium)

## Resources

- docs: https://thegraph.com/docs/
- sdk: https://github.com/graphprotocol/graph-tooling
- template: https://thegraph.com/docs/en/developing/creating-a-subgraph/
- support: https://discord.gg/graphprotocol
- grant: https://thegraph.com/ecosystem/grants/

## Good for

- indexed contract events
- analytics APIs
- app backends
- public data layers

## Avoid for

- private low-latency indexing without extra infra

## Capabilities

### Subgraph indexing (production-ready)
Best for: event indexing, query APIs, historical app data
- Schema design and hosted/decentralized deployment choices affect maintenance.

## Composes with

- **maci** (governance_and_voting; supports) — Indexes MACI poll, signup, message, proof, and tally events for governance applications.
- **uniswap** (supporting_protocol; supports) — Indexes pool, swap, liquidity, and hook activity for DeFi applications.
- **erc-8004** (agent_identity_and_trust; supports) — Indexes agent registry, reputation, feedback, and validation events for agent discovery surfaces.

## Per-chain support

### bsc (production-ready)
- Docs: https://thegraph.com/docs/en/supported-networks/bsc/
- BNB Smart Chain is a supported network for subgraphs; set the network to bsc in your subgraph manifest.
- Limitations: Indexer coverage and pruning behavior can vary by network; confirm the features your subgraph needs are available for BSC.
- Verified 2026-06-10 (source: https://thegraph.com/docs/en/supported-networks/bsc/)

## Advisories

- **Hosted Service is retired — index on the decentralized network** (deprecation, recommended) — The Graph's Hosted Service has been sunset. New subgraphs must be deployed to Subgraph Studio and published to the decentralized network; queries should target a network gateway endpoint with an API key rather than a legacy hosted-service URL. Stacks still pointing at hosted-service query URLs will stop resolving and should migrate.

---
Canonical: https://composewith.eth/protocols/the-graph · JSON: https://composewith.eth/protocols/the-graph.json
