Index Aave V3 Data LIVE with Traceye Community Subgraphs
Tags: subgraphs, traceye
Published: 2024-04-04 08:19:16

<p>Aave V3 is the upgraded, most recent version of the Aave Protocol– the decentralized and non-custodial liquidity market for seamless borrowing and lending of crypto assets. Besides allowing suppliers to earn interest on their liquidity and borrowers to borrow assets, Aave V3 has a significant role in enabling developers to innovate and build great DeFi applications such as exchanges, flash loan platforms, yield aggregators, asset management apps, and more. Hence, these app developers need both historical and live data from the Aave V3 protocol based on their specific project requirements.&nbsp;</p>
<p>With this article, we continue our data indexing series with Traceye’s community subgraphs. We have previously covered <a href="https://www.zeeve.io/blog/index-and-query-uniswapv3-liquidity-pool-data-with-traceye/">UniswapV3</a> and <a href="https://www.zeeve.io/blog/pull-data-from-compound-v3-easily-with-traceyes-community-subgraph/">Compound V3</a>, and now, let’s discuss indexing Aave V3 live data. With Traceye’s community <a href="https://www.zeeve.io/traceye-data-indexing/">subgraphs</a>, you can query data from indexed databases quickly through GraphQL APIs running in the backend.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://www.zeeve.io/subgraphs/"><img src="https://www.zeeve.io/wp-content/uploads/2024/03/Enable-real-time-data-streaming-in-your-dApps-1024x213.png" alt="Aave V3 subgraph indexing" class="wp-image-64119"/></a></figure>
<h2 class="wp-block-heading" id="h-brief-overview-of-traceye-s-aave-v3-subgraph">Brief Overview of Traceye’s Aave V3 Subgraph</h2>
<p>The Aave V3 subgraph is yet another indexed, shared subgraph offered by Traceye. The subgraph is available for one-click activation under Traceye's community subgraphs, and hence, developers and data consumers can query live Aave V3 data using it. For example, market hourly/daily snapshots, real-time interest rates, market lists, and so on.&nbsp;</p>
<p>Aave V3 subgraphs as community subgraphs are automated, which means all the essential subgraph components, like GraphQL schema, ABI files, and manifests, are already deployed and running in the backend. Users don't need to do any heavy lifting on their end. All they need is the basic knowledge of Subgraphs and GraphQL entities.&nbsp;</p>
<h2 class="wp-block-heading" id="h-who-all-may-need-aave-v3-protocol-s-live-data">Who all may need Aave V3 Protocol’s live data?</h2>
<p>Below are some of the main use cases that heavily rely on Aave V3 live data:</p>
<p><strong>Trading platforms:</strong> Enterprises or developers building trading platforms will need to leverage Aave V3 live data and insights to ensure better execution of lending, borrowing, and exchange strategies in their ecosystem. For example, a trading app might need real-time reserve data, user data, deposit data, flash loan data, and lending/borrowing data from Aave V3.&nbsp;</p>
<p><strong>Applications integrating Aave V3’s functionality: </strong>DeFi applications may need to integrate Aave V3’s functionality in their app to make it more useful and interactive. For this, they need data such as interest rates, available liquidity, and real-time borrowing trends, which can help developers create more robust and user-friendly interfaces for their applications.</p>
<p><strong>Smart contract developers: </strong>Developers building smart contracts to interact with the Aave V3 protocol will need live data to enable various functions within the contract. For example, a smart contract designed for a decentralized lending platform will need Aave data to define loan eligibility, calculate current interest rates, and manage collateral.</p>
<h2 class="wp-block-heading" id="h-how-to-index-aave-v3-data-live-with-traceye-community-subgraphs">How to Index Aave V3 Data LIVE with Traceye Community Subgraphs?</h2>
<p><a href="https://www.zeeve.io/traceye-data-indexing/">Traceye</a> community subgraphs are designed to eliminate the complexities around data indexing and querying using Aave V3 subgraphs. Instead of building your subgraph from scratch and then maintaining its performance, community subgraphs from Traceye enable one-click deployment of hosted Aave V3 subgraphs, thereby providing an easy-to-use interface to pull relevant data via GraphQL queries.&nbsp;</p>
<p>However, Traceye also allows you to launch your dedicated subgraph easily. If you choose this, you first need to create your subgraph, compile it, and launch it on a highly optimized, enterprise-grade infrastructure for availability &amp; performance. Want more information on this? Check out our dedicated article linked below: <a href="https://www.zeeve.io/blog/how-to-deploy-subgraphs-with-zeeves-traceye-step-by-step-guide/"><strong>How to deploy Subgraphs with Traceye? Step-by-Step Guide</strong></a></p>
<p>Now, let’s walk through the step-by-step Aave V3 subgraph indexing process by leveraging Traceye’s community subgraph offering.&nbsp;</p>
<p><strong>Step 1: </strong>Sign up or log in to the <a href="https://www.zeeve.io/">Zeeve Platform</a>. On the comprehensive dashboard, navigate to the ‘Traceye’ located on the left panel.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnldpup5zo78xn0hs8vo.png)
<p><strong>Step 2:</strong> Click ‘Hosted Subgraph,’ select the number of community subgraphs, and then proceed to checkout with the ‘Buy Now’ option. Complete the payment process and again navigate to the hosted subgraphs.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jzb1nzbk158oh1w4zxj8.png)
<p><strong>Step 3:</strong> Click on ‘Add Subgraph’. From the drop-down menu, choose Launch Community. At this point, you can easily create a new subgraph or update an existing one. However, you need a subscription for the subgraphs. All your subgraphs, whether dedicated or shared, will be hosted on Traceye. Plus, you can monitor them all across a unified dashboard.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cuznmd2w01olbm8lprpq.png)
<p><strong>Step 4:</strong> As you can see, a list of protocols has appeared. All these are available at Traceye for retrieving data. Because our article is focused on Aave V3, let’s continue with this protocol. Click on the ‘Activate’ button, and the subgraph will be deployed instantly.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zp0vly3londnv87e4qw.png)
<p>Upon activation, you will see a dashboard similar to the one below that displays details about your subgraph, such as Sync Status (it will be 100% as community subgraphs are already indexed), total requests, API units consumed, and basic information such as subgraph creation date, network type, etc. What’s important here is the Query URL, which we will discuss in the next step.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4f8gxxjefu4czc2l06r4.png)
<p><strong>Step 5:</strong> Your Aave V3 subgraph will now index live data, allowing you to query a range of data right away. To pull data, click on the ‘Query URL’ in the above screenshot. You will now be redirected to a GraphQL playground environment designed to allow you to query data and get results from the Aave V3 subgraph.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iismad92jgmexp4710s5.png)
<p><strong>Step 6: </strong>Be it your own subgraph or Traceye’s community subgraphs, they query data based on specific entities that you choose. To see all the entities available with the Aave V3 subgraph at Traceye, click on the GraphQL explorer’s icon. It will unfold a comprehensive list of entities ready to query data. For example, you can see active accounts, events, interest rates, flash loans, etc, in the below image.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0n19ihfeobsarh0h3vl0.png)
<p><strong>Step:7</strong> Let’s say you need live flash loan data for the first 15 IDs. To get this data, click on the ‘flashloans’ entity, enter 15 in the ‘first’ sub-entity, and set an order with ‘account_id. This will indicate the subgraph for Aave V3 subgraph indexing for the first 15 account IDs. Also, there are a bunch of customizations available, like order direction, block, skip, where, etc. We are currently focusing on getting live flash loan data for the first 15 IDs. Hence, we won’t make further customizations. As we have entered all the inputs, let’s proceed to fetch the data.&nbsp;</p>
<p>Click the play button, and flash loan data for all the 15 IDs will appear on the screen. Similarly, you can query data for all your preferred entities.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ix87fbrxtpmnulzrj11.png)
<h2 class="wp-block-heading" id="h-monitoring-amp-logs-for-traceye-s-community-subgraphs-nbsp">Monitoring &amp; Logs for Traceye’s community Subgraphs&nbsp;</h2>
<p>Traceye offers 24/7 monitoring and management service for all your subgraphs deployed on its infrastructure. Speaking about Aave v3 subgraphs, you can check logs on important parameters; Info, debug, warning, and error. The dashboard will produce specific logs for each parameter, allowing you to get a holistic view of your subgraph’s performance. Additionally, the dashboard will produce real-time alerts during instances like storage running out, potential downtime, or similar performance-related issues. Additionally, you can explore older and newer logs, as required.</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6p9f8ukwq1va4cwpmn9.png)
<h2 class="wp-block-heading" id="h-conclusion">Conclusion</h2>
<p>Congratulations on successfully deploying an Aave V3 subgraph with Traceye. As you can see, community subgraphs are quick and extremely easy to deploy and query data from. Without writing a single line of code, enduring the complex process of data indexing, or doing configurations,&nbsp; you can start retrieving data from your preferred protocol.&nbsp;</p>
<p>However, as discussed, your requirement is for a dedicated subgraph or building a subgraph from ground level; feel free to contact us. Get more information on Traceye or Zeeve’s blockchain-related services. Send your queries via mail or <a href="https://www.zeeve.io/talk-to-an-expert/">schedule a call for a detailed discussion</a>.</p>