HK-University Experience #1
A few days ago I was lurking around @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:
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:
Leave HK-University Experience #1 to:
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
- Hello World!
- TAG (The Adventure Guild): A game in the Wax Blockchain
- A clicker that gives you free nfts in the testnet
- How to create a python script that runs automatically at startup (WINDOWS)
- How to run a script in the hive blockchain with npm and node.js
- How to create a table with javascript from hive engine's data.
- Rewards from Pizza staking
- How to use sscjs library to find info in hive-engine:
- HK-University Experience #1
- [Zapfic 40] TEAM