Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Graph Protocol

The Graph is a decentralized protocol for indexing and querying data from blockchains, enabling applications to efficiently access historical and real-time on-chain data.
Chainscore © 2026
definition
BLOCKCHAIN DATA INDEXING

What is The Graph Protocol?

The Graph is a decentralized protocol for indexing and querying data from blockchains, enabling efficient access to on-chain information through open APIs called subgraphs.

The Graph Protocol is a decentralized indexing and querying protocol for blockchain data, primarily for networks like Ethereum and IPFS. It allows developers to build and publish open APIs, known as subgraphs, that applications can query using GraphQL. This solves the significant challenge of efficiently accessing and organizing the vast, unstructured data stored on blockchains, which is not natively queryable. By providing a decentralized alternative to centralized indexing servers, The Graph enables a more robust and permissionless data layer for the decentralized web.

At its core, the protocol operates through a network of participants: Indexers (node operators who stake GRT tokens to index data and serve queries), Curators (who signal on valuable subgraphs using GRT), Delegators (who delegate GRT to Indexers), and Consumers (who pay for queries). This ecosystem is secured by the Graph Token (GRT), an ERC-20 token used for work allocation, staking, and payments. Query fees are distributed to Indexers and Delegators, incentivizing a reliable and competitive marketplace for data services.

Developers use The Graph by defining a subgraph manifest that specifies the smart contracts to index, the events to listen for, and how to map event data into entities that The Graph will store. Once deployed, the subgraph is indexed by the network, and its data becomes instantly queryable via its unique GraphQL endpoint. This architecture is fundamental to many DeFi applications (like Uniswap or Aave) and NFT platforms, which rely on The Graph to efficiently fetch prices, transaction histories, and user balances without running their own complex infrastructure.

The protocol's decentralized design ensures data integrity and uptime by distributing the indexing workload across many independent nodes, rather than relying on a single point of failure. This makes it a critical piece of Web3 infrastructure, comparable to how Google indexes the web, but in a verifiable and community-governed manner. By abstracting away complex data processing, The Graph significantly lowers the barrier to building performant decentralized applications (dApps) that require rich, real-time on-chain data.

how-it-works
ARCHITECTURE

How The Graph Protocol Works

The Graph Protocol is a decentralized indexing and query protocol for blockchain data, enabling applications to efficiently retrieve information from networks like Ethereum and IPFS.

The Graph Protocol operates as a decentralized data layer for Web3, using a network of participants to index and serve blockchain data via open APIs called subgraphs. Developers publish subgraphs, which are manifest files defining the smart contracts, events, and data transformations to index. Indexers then operate nodes that scan the blockchain, process these events, and store the resulting data in queryable databases, earning fees for their service.

To retrieve data, a decentralized application (dApp) sends a GraphQL query to a public or private endpoint. The query is routed through a gateway, which identifies the relevant subgraph and directs the request to Indexers who have staked the protocol's native GRT token to serve that data. Delegators can stake GRT with Indexers to share in their rewards, while Curators signal on high-quality subgraphs by depositing GRT, guiding Indexers to valuable data sources.

This ecosystem is secured by cryptoeconomic incentives and a dispute resolution layer. Indexers must stake GRT as collateral, which can be slashed for malicious behavior. A Fishermen role exists to challenge incorrect query responses, and Arbitrators make final rulings on disputes. This ensures the network provides reliable, verifiable data without relying on a centralized intermediary, forming the backbone for countless DeFi, NFT, and analytics platforms.

key-components
GRAPH PROTOCOL

Key Components of The Graph Network

The Graph is a decentralized protocol for indexing and querying blockchain data, enabling applications to efficiently access on-chain information through open APIs called subgraphs.

subgraph-explainer
GRAPH PROTOCOL

What is a Subgraph?

A subgraph is a data indexing protocol that organizes and serves blockchain data for efficient querying via GraphQL, primarily used within The Graph ecosystem.

A subgraph is a set of instructions, defined in a manifest (subgraph.yaml), that tells a Graph Node how to index and transform blockchain data from a specific smart contract or protocol. It consists of three core components: the subgraph manifest, which maps data sources; a GraphQL schema, which defines the shape of the queryable data; and mapping functions (written in AssemblyScript or other WASM-compatible languages), which translate on-chain events into the entities in the schema. This structure enables developers to create a customized API for their dApp's specific data needs.

The indexing process begins when a subgraph deployment is synced by an indexer on The Graph Network. The indexer's node scans the blockchain for events specified in the manifest, executes the mapping logic to process these events, and stores the resulting entities in a queryable database. This creates a high-performance, off-chain data layer that abstracts away the complexity of direct blockchain RPC calls. Popular use cases include indexing DEX trading pairs, NFT collections, DAO governance proposals, and lending protocol positions, providing real-time analytics and rich data feeds to applications.

For developers, querying a subgraph is done through a standard GraphQL endpoint, allowing for precise, nested data requests that would be inefficient or impossible to perform directly on-chain. This dramatically reduces front-end complexity and improves application performance. Subgraphs can be deployed in different environments: hosted service (managed by The Graph) or decentralized network (paid querying via GRT tokens). The open subgraph ecosystem means many protocols have publicly available subgraphs, enabling composability and allowing anyone to build on top of indexed public data.

ecosystem-usage
THE GRAPH PROTOCOL

Ecosystem Usage & Supported Networks

The Graph is a decentralized indexing protocol for querying data from blockchains like Ethereum and IPFS. It enables developers to build and publish open APIs called subgraphs, which applications query using GraphQL.

02

Hosted Service (Legacy)

A free, centralized service managed by The Graph Foundation that historically supported subgraph deployment. It is being sunset in favor of the decentralized network. Key features included:

  • No payment required for queries.
  • Served as the primary onboarding platform for early dApps.
  • Currently supports migration paths to the decentralized network.
04

Subgraph Ecosystem

A subgraph defines the smart contracts, events, and data transformations for indexing a specific dApp. The open marketplace includes thousands of subgraphs powering major DeFi and Web3 projects like:

  • Uniswap (trades, liquidity pools)
  • Aave (lending/borrowing markets)
  • ENS (domain registrations)
  • Decentraland (NFT and parcel data)
05

Querying with GraphQL

Applications fetch indexed blockchain data by sending GraphQL queries to a subgraph endpoint. This provides a precise, flexible API where developers request only the specific data they need (e.g., a user's token balances or recent DEX trades), eliminating the need for complex on-chain event processing.

06

Decentralized Data Availability

The protocol ensures data resilience through a decentralized network of Indexers. Key mechanisms include:

  • Query Fees: Paid by consumers in GRT.
  • Indexer Staking: Secures the network and service quality.
  • Dispute Resolution: Fraud proofs and slashing penalize incorrect data.
  • IPFS: Subgraph metadata and files are stored on the InterPlanetary File System.
key-features
THE GRAPH PROTOCOL

Key Features & Benefits

The Graph is a decentralized protocol for indexing and querying blockchain data, enabling applications to efficiently access on-chain information without relying on centralized servers.

05

Censorship Resistance & Uptime

Because the indexing layer is decentralized across many independent Indexer nodes, it is resistant to censorship and single points of failure. Applications can query data from multiple Indexers, ensuring high availability. This is a critical improvement over relying on a single centralized API provider, which can be taken offline or manipulate data access.

ARCHITECTURE COMPARISON

The Graph vs. Traditional Data Access

A technical comparison of decentralized indexing via The Graph versus conventional methods for querying blockchain data.

Feature / MetricThe Graph ProtocolCentralized Indexer / APIFull Node RPC

Data Availability

Decentralized, redundant network

Centralized, single point of failure

Self-hosted, single point of failure

Query Language

GraphQL

Custom REST API or SQL

Low-level JSON-RPC

Data Freshness (Indexed Data)

< 1 block

Minutes to hours

Real-time (raw)

Developer Onboarding

Define subgraph schema

API key, rate limits, documentation

Sync node, manage infrastructure

Query Cost Model

GRT payment to Indexers

Subscription fees or pay-per-call

Infrastructure & operational costs

Censorship Resistance

High (decentralized network)

Low (provider-controlled)

Self-determined

Historical Data Access

Instant via indexed subgraph

Limited by provider retention policy

Full history (if archival node)

Data Transformation

On-chain logic in mapping handlers

Post-processing in application layer

Manual application-layer processing

examples
THE GRAPH PROTOCOL

Example Use Cases & dApps

The Graph is a decentralized indexing protocol for querying blockchain data. These cards showcase how developers use its subgraphs to power applications across DeFi, NFTs, DAOs, and more.

THE GRAPH PROTOCOL

Technical Details

A deep dive into the decentralized indexing and querying protocol that powers Web3 data access, covering its core components, economic model, and technical architecture.

The Graph is a decentralized protocol for indexing and querying blockchain data, enabling applications to efficiently access on-chain information via GraphQL APIs. It works by organizing a network of participants: Indexers stake GRT tokens to operate nodes that index specific subgraphs (open APIs for blockchain data), Curators signal on valuable subgraphs by depositing GRT, Delegators stake GRT with Indexers to secure the network, and Consumers pay query fees to access the data. When a dApp submits a query, it is routed to the appropriate Indexer, which returns the requested data from its indexed cache, with payments settled via the network's billing system. This creates a decentralized marketplace for reliable blockchain data without relying on centralized servers.

THE GRAPH PROTOCOL

Common Misconceptions

Clarifying frequent misunderstandings about The Graph's architecture, tokenomics, and role in the Web3 data stack.

No, The Graph is not a blockchain; it is a decentralized indexing and query protocol built on top of existing blockchains. It functions as a data layer, similar to how Google indexes the web, but for blockchain data. The protocol uses a network of Indexers, Curators, and Delegators to organize and serve queryable data via open APIs called subgraphs. While it has its own utility token (GRT) and a staking mechanism for securing its network, it does not process its own transactions or host smart contracts for general-purpose applications. It relies on underlying blockchains like Ethereum, Arbitrum, and others for its data sources.

THE GRAPH PROTOCOL

Frequently Asked Questions (FAQ)

Essential questions and answers about The Graph, the decentralized protocol for indexing and querying blockchain data.

The Graph is a decentralized protocol for indexing and querying data from blockchains like Ethereum, enabling applications to efficiently retrieve specific on-chain information. It works by organizing data into open APIs called subgraphs, which are maintained by a network of Indexers, Curators, and Delegators. Developers define a subgraph to specify which blockchain data to index and how to transform it. Indexers then run nodes to index this data and serve GraphQL queries, earning query fees and indexing rewards in the protocol's native token, GRT. This creates a marketplace where data consumers pay for queries, and network participants are incentivized to provide reliable service.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
What is The Graph Protocol? | Blockchain Data Indexing | ChainScore Glossary