🤖Tutorial: Querying the subgraph programatically
The previous tutorial covered the process of *constructing* a query that provides useful data, but what if you want to actually use it in a program?
This tutorial will cover what it looks like to take a query from the user-friendly tooling and use it directly in your application.
The following query (taken from the previous tutorial) will be used, and will display the most recent 100 liquidations within the protocol:
Interacting programmatically
To actually send requests you'll need to use the following URL (subgraphURL
below):
https://api.thegraph.com/subgraphs/name/moonwell-fi/moonwell-moonbeam
Below are some reference implementations that should be helpful, if you'd like to see a language not listed here come request it in the discord!
Last updated