Skip to main content

Morpho Subgraphs

Introduction

The existing Morpho Subgraphs provide developers with a powerful way to access and retrieve data from the Morpho Protocol using GraphQL-based subgraphs. These subgraphs enable developers to track the evolution of the supported lending protocols and their interactions with Morpho.

Getting Started

To use the Morpho Subgraphs, one needs to be familiar with GraphQL and its query language. Visit the TheGraph Playground to explore the available subgraphs and learn how to structure queries.

The Graph is sunsetting the Hosted Service. Refer to this article for more information.

Accessing Morpho Subgraphs

With the deprecation of the Hosted Service, all Morpho subgraphs are now accessible through TheGraph Playground. Here’s how to proceed:

  1. Visit TheGraph Playground.
  2. Select a subgraph and open the “playground” tab to start doing queries as usual.
  3. If you want to make queries from a script, generate an API key here and add it to the subgraph query link, accessible through the subgraph page (replace the [api key] placeholder with your key).

Subgraph Studio users start on a Free Plan, which allows them to make 100,000 queries per month. Additional queries are available following more information on TheGraph.

Explore the subgraphs

The subgraphs contain data related to lending protocols, event flows, and more. One can access data such as pool rates, indexes, balances, and user interactions with Morpho, including supplies, borrows, repayments, and withdrawals.

Why use the subgraphs?

Using the Morpho subgraphs enables anyone to access comprehensive data from the Morpho Protocol. The subgraphs provide a scalable and efficient way to retrieve information that is difficult or time-consuming to compute on-chain.

Questions

If you have any questions or need further assistance, please don't hesitate to reach out on Discord.