What is The Graph?

1 min read Updated

The Graph is a decentralized protocol for indexing and querying blockchain data — enabling developers to build subgraphs that organize on-chain data into efficient, queryable APIs.

WHY IT MATTERS

The Graph is often called 'the Google of Web3.' It organizes the messy, unstructured data on blockchains into clean, queryable APIs. Developers define subgraphs — schemas and mappings that specify what events to listen for and how to store the data.

The protocol is decentralized: indexers run nodes that process subgraph data, curators signal which subgraphs are valuable, and delegators stake GRT tokens to support indexers. Queries are paid in GRT.

Major dApps (Uniswap, Aave, Decentraland) use The Graph for their data needs. The hosted service is being deprecated in favor of the decentralized network.

FREQUENTLY ASKED QUESTIONS

What is a subgraph?
A definition of what blockchain data to index and how to organize it. It includes a schema (data structure), event handlers (what on-chain events to process), and mappings (how to transform event data into stored entities).
Is The Graph free?
The hosted service was free but is being sunset. The decentralized network charges per query in GRT. For development, free tiers and sponsored subgraphs are available.
Can I build my own indexer?
Yes — tools like Ponder, Goldsky, and SubQuery offer alternatives. Building custom indexers gives more control but requires more infrastructure management.

FURTHER READING

Enforce policies on every tool call

Intercept is the open-source MCP proxy that enforces YAML policies on AI agent tool calls. No code changes needed.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.