Fefe avatar

HK-University Experience #1

fefe99

Published: 14 Aug 2022 › Updated: 14 Aug 2022HK-University Experience #1

HK-University Experience #1

A few days ago I was lurking around hivepizza@hivepizza discord and found out that haskings was inviting people to their HK-University. When I read it was an opportunity to learn about developing for the hive blockchain I jumped on the boat as quickly as I could.

At the beginning... most I had been doing was brushing up some stuff I learnt a while ago, html/css, github, javascript promises.
Then came the first real problem, how to read hive-engine's api, even if there were enough tools at my disposal, I had no idea how to use them and there wasn't any info that was self-explanatory in the place I found myself.

So I completed my first project testing words with sscjs library until I got the data I needed.

This is sscjs example:

ssc.find('tokens', 'tokens', { }, 1000, 0, [], (err, result) => {
    console.log(err, result);
})

So I tried all sorts of combinations like "balances" and "accounts" hoping that something will change and in the end it worked:

ssc.find('tokens', 'balances', { }, 1000, 0, [], (err, result) => {
    console.log(err, result);
})


Yup, lucky enough, I typed the pair "tokens" and "balances" in the right order and I got the data I needed. Here's the link and a preview:

image.png

After a few more projects, (because there was no other option other than trying to understand how it worked) I figured it out that there are "Contracts" like "tokens" and each of them lets you search for different tables like "balances".

Always remember:

image.png

Leave HK-University Experience #1 to:

Written by

I'm watching you

Read more #hashkings posts


Best Posts From Fefe

We have not curated any of fefe99's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Fefe