ACP-267: Primary Network validator uptime requirement increases from 80% to 90%.Read the proposal
The Graph

The Graph

The Graph is a decentralized indexing protocol that enables easy querying of blockchain data using GraphQL.

Back

Overview

Getting historical data on a smart contract can be frustrating when building a dapp. The Graph provides an easy way to query smart contract data through APIs known as subgraphs. The Graph’s infrastructure relies on a decentralized network of indexers, enabling your dapp to become truly decentralized.

Features

  • Decentralized Indexing: Enables indexing blockchain data through multiple indexers, thus eliminating any single point of failure
  • GraphQL Queries: Provides a powerful GraphQL interface for querying indexed data, making data retrieval super simple.
  • Customizable & Reusable: Define your own logic for transforming & storing blockchain data. Reuse subgraphs published by other developers.
  • Data Aggregation: Aggregates data from multiple blockchain sources, offering a unified view for easier access and analysis.
  • Scalability: Designed to handle large volumes of data and scale with the needs of growing dApps and data requirements.

Getting Started

Building a subgraph only takes a few minutes. It primarily consists of the following steps:

  1. Initialize your subgraph project
  2. Deploy & Publish
  3. Query from your dapp

Here’s a detailed quick-start guide: https://thegraph.com/docs/en/quick-start/

Documentation

For detailed instructions on creating subgraphs, querying data, and integrating with The Graph, visit the The Graph Documentation.

Use Cases

  • Decentralized Applications (dApps): Index and query data for dApps.
  • Data Aggregation: Aggregate data from multiple blockchain sources for analytics.
  • Data Retrieval: Fast and reliable data retrieval for applications that need blockchain data.
  • Analytics and Reporting: Collect and analyze blockchain data for reporting.

Is this guide helpful?

Developer:

The Graph

Categories:

Indexers

Available For:

C-Chain

Website:

https://thegraph.com/

Documentation:

https://thegraph.com/docs/