Introducing OAK Insights: Data Monitoring & GraphQL API📊📊

Christian Dirk
Ava Protocol
Published in
6 min readOct 5, 2023

Our team at OAK Network is really proud to show off our new Insights services that we have built to help streamline interactions with any of OAK Network’s blockchains, empowering developers creating dApps. In the following article, we highlight the importance of data tools and show how developers and users can try out the data dashboard from OAK Network.

Introduction

When building products and services on a blockchain, every team needs advanced tools for managing and querying the complex types of data being created. In response to valuable feedback from our partners and the requirements of our internal team, OAK has built a new Insights services, including a Data Monitoring dashboard and a GraphQL API, based on the open-source SubQuery technology to address challenges and enhance functionalities of our current and future products. This solution delivers several key benefits:

  • Enhanced Data Accessibility: The Insights services provide support to OAK’s unique data formats associated with tasks.
  • Streamlined Data Retrieval: The inclusion of a GraphQL API facilitates seamless and efficient data extraction.
  • Built-in Data Indexing: The integration of built-in data indexing enhances data retrieval efficiency and diversity.

With the introduction of the Insights services, developers gain the ability to effortlessly query complex automation data from OAK Network, Turing Network, and our Turing Staging Network. This comprehensive tool provides access to a wealth of information, including historical events, the status of pending tasks, and the upcoming occurrence of scheduled tasks. As a result, users can significantly streamline their task tracking processes.

Furthermore, our team is thrilled to showcase the notification functionality enabled by our data insights tool. Users now have the capability to receive email and telegram notifications whenever specific on-chain tasks are triggered, enhancing their overall experience and efficiency.

If you are a developer and are interested in using the GraphQL API in your dApp check out our docs and GraphQL Playground from the link below.

https://docs.oak.tech/docs/graphql-api/

Our team is especially interested in feedback on the tool from Polkadot ecosystem developers so please reach out to us if you have any. You can also find a link to our Insights open-source solution on Github.

https://github.com/OAK-Foundation/oak-subql

The Data Monitoring Dashboard

The data monitoring dashboard collects, stores, and displays datasets from OAK Network blockchains that are helpful for developers and users using any OAK Network products and services. For example, users and developers who are using our TUR auto-compounding features on NovaWallet and SubWallet can monitor any task_events which are attached to their wallet address to see exactly when their staking rewards will be auto-compounded next.

The data dashboard can also be used to collect data and information about XCM events across any chain that has an open channel with OAK or Turing Network. For example, we can monitor the XCM remote executions that are scheduled between Turing and MangataX for users who are providing liquidity to the TUR:MGX liquidity pool.

The dashboard offers built-in processed data for more flexibility and efficiency for developers and users by collecting unique data events and through the integration of the Graphql API.

The dashboard also has a range of pre-organized datasets that can be read and manipulated — an example can be seen in the chart below.

Figure 1 — XCMP Message Stat Data chart

Real-Time Task Notifications

One of the most important features that the Insights services enables is the functionality for real-time task notifications to be easily implemented. Users will be able to connect their emails and telegram accounts to receive a notification when a task is triggered on-chain. This can be used for a variety of tasks including informing the user when rewards have been auto-compounded or for when a recurring payment has been successful.

Real-time notifications play an integral role in establishing OAK Networks’ underlying infrastructure for operating as the hub for cross-chain automation and we are excited for the possibilities that enabling real-time task notifications creates.

The OAK team is actively developing a user-friendly automation hub to seamlessly integrate the task notification functionality, connecting via Telegram and/or email. The technical details is available on our documentation — a link is provided below.

https://docs.oak.tech/docs/graphql-api/

Integrating Data Sets & Models

The Data Monitoring dashboard also allows users to upload data from other sources for comparison and analysis. For example: CSV data from Dune can be uploaded to the dashboard or raw data from Subsquid can also be integrated into the dashboard. Comparative data can be collected from other parachains to also be included in the insights dashboard. Data from popular block explorers such as Subscan or Etherscan can also be incorporated into the dashboard.

Our team at OAK Network are committed to making sure that our Data Monitoring Dashboard is compatible with other ecosystem services and products. If you are from a Polkadot based project and want to discuss collaboration please reach out to us at any of our community channels.

Popular Queries & Examples

Our technical documentation resources have a variety of information for developers interested in utilizing the Insights services including a list of common and helpful queries. We have attached two examples below, which include the fetching of scheduled tasks for a given account and for returning the status of task execution for a given account in a specified time period.

For a more comprehensive breakdown of what is possible, we recommend checking out our technical documentation.

If you have any questions about using the dashboard please join our community Discord where we have a variety of resources for developers and ways to speak with our team.

Further Resources

If you are a developer and are interested in learning more about OAK Network or integrating Insights GraphQL API or building with us we recommend checking out our developer portal. We have a variety of information available including potential grants for services and products that integrate OAK’s automation features. You can find a link to the developer portal below.

If you are a user who wants to get involved with OAK Network or use one of our products we recommend checking out our website at the link below and joining our community Discord here. We host a variety of community events that can get you involved with using OAK’s automation functionality and we have a variety of education material available. You can also visit our website in the link below and you can find all our social media links at the bottom of this article.

https://oak.tech/

About OAK Network

OAK Network is a layer one blockchain that enables multi-chain applications to automate single or recurring transactions using a simple ‘if this’ trigger condition and ‘then that’ transaction instruction. As the web3 hub for cross-chain automation, OAK unlocks a diverse range of rich DeFi user experiences including scheduled and recurring payments, stable-cost-averaging, stop loss and limit orders, and non-custodial copy trading.

Discord | Github | Medium | Telegram | Twitter | Website

--

--

Christian Dirk
Ava Protocol

Head of Research & Education at OAK Network and PhD Business Information Systems Candidate - Polkadot head ambassador for the Australia & New Zealand region.