The Graph

The Graph is a search engine API for blockchains. It solves the problem of analyzing on chain data by indexing it off chain, through a distributed network of actors. Developers, Indexers and Curators are coordinated & incentivized through the GRT utility token, in a system designed to guarantee honest and reliable data for dApp developers to build with.

Where to start

🧑‍💻 Discover the basics through code

The Graph 101

ReactNext.js
The Graph Pathway has moved to learn-web3-dapp

The Graph + NEAR

ReactNext.js
The Graph + NEAR Pathway has moved to learn-web3-dapp

Tutorials

Tutorial

Scan the latest pairs added on UniswapV3 using TheGraph

Scan the latest pairs added on UniswapV3 using TheGraph in Google Sheets
Tutorial

Deploy a subgraph for an Avalanche smart contract

Learn how to deploy a Solidity smart contract to the Avalanche Fuji testnet using HardHat, then create and deploy its subgraph to the Subgraph Studio
Tutorial

Explore an existing subgraph

Learn how to explore an existing subgraph and visualize its data using a pie chart
Tutorial

The Journey of a Subgraph Query

Learn about how subgraph queries are performed and how they travel through the Graph Protocol
Tutorial

Deploy a subgraph for a Polygon smart contract

Learn how to deploy a Solidity smart contract to Polygon Mumbai testnet using HardHat, then create and deploy its subgraph to the Subgraph Studio
Tutorial

Creating subgraphs for multiple smart contracts

Learn how to build a subgraph for a complex dApp that uses multiple smart contracts, like Uniswap
Tutorial

Writing Unit Tests for Subgraphs

Learn how to write unit tests for subgraphs with matchstick
Tutorial

Deploy a subgraph with HardHat

Learn how to deploy a subgraph for a smart contract using HardHat.
Tutorial

Query NFT Data with OpenZeppelin Subgraphs

Learn how to create, deploy and use a subgraph for an ERC-721 smart contract on Ethereum mainnet
Tutorial

Query Ethereum data with The Graph

Learn how to create a subgraph from a deployed smart contract on Ethereum

Want to write about The Graph and earn $GRT?

Share your Web 3 learnings with others and earning token of the networks you care about.