Hookpad 101: how to Hookpad?

Admin
Admin
Sep 26, 2019 · 4 min read
Image for post
Image for post

What is Hookpad? Hookpad is a plug & play platform that allows dapp developers to pull ready to process data from a blockchain.

Who is Hookpad for? Hookpad is great for any dev who needs to bootstrap a project or idea, hackathons, large projects (dapp or dappn’t), and basically anything that needs to pull a large amount of data of a blockchain in real time.

Now, how do I Hookpad?

Getting started on Hookpad is a simple and straightforward process that can be narrowed down to just 4 steps.

1. Create an account at https://hookpad.io/, once done you’ll need to create a project:

Image for post
Image for post

The project name is tied to a network that can’t be changed and it’s name is unique per user (For example, CryptoWars-mainnet).

2. To your brand new project you’ll have to add a contract:

Image for post
Image for post

The contract name is unique. You’ll need to provide a valid ETH address and an ABI. You can add all the contracts you want on this screen but those can’t be modified once created. If you want to do so you’ll need to delete and create it again.

3. Then add a webhook:

Image for post
Image for post

This is an optional step which you can setup or change at any time. To validate a webhook you need a ‘STATUS: 200’ reply when a ‘POST’ message is received.

We strongly recommend running a quick test using Glitch with a test repository we setup just for that.

  1. Remix the test repository (https://glitch.com/edit/#!/hp-webhook-example?path=server.js).
  2. Go to Tools and open the Logs, you should see a ‘Your app is listening on port 3000…’ message.
  3. Go to Show and click on ‘In a New Window’ and then add “/webhook” to the URL of the new window.
  4. Copy the URL into Hookpad and you’re good to go!

Here’s a step by step gif to for this Glitch quick test:

Image for post
Image for post

If you have any doubts regarding this please feel free to contact us.

4. Once your project is setup, you’ve added contracts, and maybe add a webhook you can subscribe to events:

Image for post
Image for post

In here you can select which events you want to “listen” from a contract, you can also select to listen to all events. Events will start appearing once your webhook is up and running (if you haven’t set up your webhook you can come back to this screen later, fill the webhook field and events will start to appear briefly).

Once you get to this point you’ll be able to expand the events you’ve subscribed to and see the transactions generated and their status.

Image for post
Image for post

You’ll also be able to see how events are received on the backend. Events amount to a total counter which is reset every month.

Image for post
Image for post
This is how events would look like on the console of the Glitch example used above.

One of our goals is to aid students and small developers who are just getting started so we have a free plan which is only limited by the amount of events you can receive per month. Unlimited plans are also available for you to upgrade once your dapp takes off!

We want to create the best suite of tools for devs to integrate blockchain data into your backend and that’s only possible with your feedback. Please feel free to share your suggestions with us, you can reach us via Telegram, Twitter or via email at info@hookpad.io

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