Elastic Subgraphs is the Chainstack suite of tools that provides access to real-time and historical data from DeFi protocols. This data is crucial for monitoring and analyzing DeFi activities and making informed decisions within the DeFi space.
TLDR:
DeFi protocols enable various financial services such as lending, borrowing, trading, and yield farming. Via Chainstack Elastic Subgraphs, you can access such protocols as Uniswap, SushiSwap, Lido, Aave, OpenSea, and more.
Access to DeFi protocols is facilitated through a GraphQL API based on The Graph standard. Additionally, you can use the GraphQL visual interface to compose and execute GraphQL queries.
When accessing Elastic Subgraphs for an exact protocol, you use a preset subgraph created specifically for that purpose. To use one of the protocols, you do the following:
For examples of using both of these endpoints, see Query a subgraph.
Each of the protocols available in Elastic Subgraphs has a preset subgraph schema which you can use to create effective queries and use them within your DApps. To learn the schema of the protocol, do the following: