Today, we are sharing a new project that collects information from Chainlink Data Feeds. Chainlink Data Feeds are a service provided by Chainlink, a network that helps smart contracts use real-world data. These data feeds are really important for Chainlink because they make sure that the data used in blockchain apps and smart contracts is accurate and reliable.

Indexers like SubQuery can organise these data feeds and data points in a way that makes it easy for developers to search for and analyse historical data from Data Feeds. This not only reduces development time and expenses but also enhances the overall development experience.

This project serves as a great example of Ethereum's Log Handlers and Dynamic data sources, essential components in light of the deployed Chainlink smart contract architecture. Also in one of our mappings, we demonstrate the process of querying the contract state to retrieve specific smart contract parameters, which are subsequently linked to one of the entities.

Architecture

The Chainlink Data Feeds sample project provides a comprehensive approach to gathering data feeds and their associated data points. Configuring a SubQuery indexer is a straightforward process that focuses exclusively on capturing logs from two distinct categories of Chainlink smart contracts:

  1. `ChainlinkFeedRegistry` (contract address: `0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf`) - This contract serves as a mapping mechanism for all data feeds.
  2. Data Feed Aggregator Contracts: These contracts correspond to individual data feeds.

Key Resources

Use-Cases

Below, we will discuss some interesting ways historical analyses can be used. Let's take a look at a few examples:

The query above retrieves three randomly selected indexed data feeds, and you can also find these same feeds listed on Chainlink's official webpage.

The above query extends the `DataFeeds` entity by incorporating the `prices` object. By including this addition, you will retrieve the associated data points for that particular feed. Additionally, we apply a filter to retrieve data specifically from this data feed, and you can find these identical data point values on the official website mentioned earlier.

Subquery offers a convenient SDK for developing a dApp that effectively harnesses real-world data sourced from decentralised Chainlink data feeds. This represents a pivotal use-case, and it's noteworthy that the broader space currently lacks such initiatives, with most efforts primarily concentrated on a cryptocurrency-related aspect rather than integrating essential real-world data.

About Chainlink

Chainlink is a blockchain-based platform renowned for its role in securely connecting smart contracts to real-world data and external systems. At the heart of Chainlink's functionality lies its comprehensive array of data feeds, which provide vital information from various sources, enabling decentralised applications to access and utilise accurate, up-to-date data seamlessly. These data feeds empower developers to create smart contracts that can perform a wide range of functions, from decentralised finance operations to real-time market data analysis, thereby bridging the gap between blockchain technology and the real world.

About Subquery

SubQuery is a leading blockchain data indexer that provides developers with fast, flexible, universal, and decentralised APIs for web3 projects. We empower developers from over 100+ ecosystems including Ethereum, Polygon, Polkadot, Cosmos, Algorand, NEAR, and Avalanche with rich indexed data to allow them to build intuitive and immersive decentralised applications. This blockchain developer toolkit enables developers to focus on their core use case and front-end without wasting time building a custom backend for data processing activities. In the near future, the SubQuery Network will replicate this scalable and reliable solution in a completely decentralised manner.


Share this post