Balmy
DCA
DCA
  • Introduction to the protocol
  • FAQ
  • Concepts
    • Positions
      • Actions
      • NFT/Permissions
      • Swap Intervals
    • Fees
    • Swaps
    • Token Integration
    • Yield Sources
  • Architecture
    • Core
      • Hub
      • Permission Manager
      • NFT Descriptor
    • Periphery
      • Companion
      • Libraries
  • Tech Guides
    • Interacting with the protocol
    • Smart Contract Registry
    • Swaps
      • Next Swap
      • Executing a Flash Swap
    • Position Management
      • Creating a Position
      • Modifying a Position
      • Withdrawing from a Position
      • Terminating a Position
    • Permission Management
    • Subgraphs
      • Playground
      • Fetch all pairs
      • Fetch all tokens
      • Fetch all active intervals
      • Fetch positions by address
    • Github
  • Mean explained by friends
    • By Perpetual Protocol
    • By Ceazor's Snack Sandwich
  • Other
    • Bug Reports
Powered by GitBook
On this page

Was this helpful?

  1. Tech Guides

Subgraphs

PreviousPermission ManagementNextPlayground

Last updated 1 year ago

Was this helpful?

The Graph is an indexing protocol for querying networks like Ethereum and IPFS. Anyone can build and publish open GraphQL APIs, called subgraphs, making data easily accessible. Additionally GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

There are two main ways of querying a subgraph from your application:

  • HTTP Request

  • Using a graphql client

Since both are covered in we will mainly focus on how to build queries to fetch data from Mean Finance.

Subgraph Registry

Chain

The Graph - How to query from your app
Ethereum
Arbitrum
Optimism
Polygon
BNB