Skip to content

Instantly share code, notes, and snippets.

@alinobrasil
alinobrasil / The Graph Quick Start - Berachain.md
Created February 7, 2025 20:57
The Graph Docs for Berachain

The Graph

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.

Quick Start

These subgraphs only take a few minutes to set up. To get started, follow these three steps:

  1. Initialize your subgraph project
  2. Deploy & Publish