Hookpad, TheGraph, and querying the blockchain

Admin
Admin
Aug 1, 2019 · 3 min read
Image for post
Image for post

Welcome, dapp developer! Let’s travel in time for a bit. If you started developing the blockchain event processor for your dapp 2 months ago, you’d be just getting to a decent product by now, (you’d still probably be missing some of the events) — blockchain is not for everybody, querying data from it is a pain in the neck!

As Jesus Rodriguez wrote in his Hackernoon article:

“Data access has played a prominent role in any technology trend in the history of software. Data access technologies such as databases, search engines or query APIs are so ubiquitous that we barely think about them when architecting software solutions. As Web 3.0, decentralized applications powered by blockchain technologies evolve, infrastructure blocks such as data access will become more relevant. However, solving data access in the blockchain have proven to be a very challenging endeavor that forces developers to spend significant amounts of time writing infrastructure code.”

But if you’re reading this, chances are you already know all this, and you’re looking for an alternative to the only solution (until now): TheGraph. So, let’s get to it!

Because querying the blockchain is such a nightmare, developers have come up with 3 different solutions:

  1. Spend 2 months writing code to properly query the blockchain, consider you might need to not only track present blocks but also past ones. Host your own node, or use Infura, scale your own infrastructure, but most importantly: maintain your event processor while developing all those features your users want you to release. ROI: Negative
  2. Use TheGraph, a solution that will let you query the blockchain, facilitating your work by letting you use “subgraphs” developed by other companies. You’ll still need to write code (to define your subgraph, and mappings), deploy your infrastructure, and again, maintenance is on your own. Yes, you still have to deal with keeping your event processor sharp and smooth while working on whatever you dapp does with all those events you queried. ROI: Neutral to negative
  3. Use Hookpad, a plug & play, fully-managed blockchain event processing solution for dapp developers. Yep! Just like you heard, you just input the ABI to your contract and define the events you need, and we start sending all your events, parsed and clean, to your dapp’s backend! We count with both: Webhooks and API. ROI: Positive
Image for post
Image for post

Feel free to sign up for Hookpad’s beta, and read more about why we created this product.

If you have any questions or doubts, our team will be happy to answer them on this Telegram group. To stay up to date, follow us on Twitter.

hookpad

We provide a plug & play, fully-managed, blockchain event…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store