Hivejs Tutorials-- #3
Hello Everyone
As you know we work on the Hivejs Library. We try to understand how the hivejs work and what can we do with it. I am not a professional developer that is why I work on the basic stuff I learn and let people learn from me as well. I study the Hivejs every day and try to explain it to the junior developers just like me. In this tutorial, we are going to get the account history of Hive blockchain. The history will contain the transfers, delegations,vote comment and some other stuff from the account. So without wasting time let's start our today's tutorial.
So I have the visual studio open with a file named index.js. We will write our code here in the index file which is our main file.
Now we need to install the hived from node package module. we have installed it in the previous tutorials but if you don't know how to install it let me do it again. We just need to enter the following command in the terminal.
$ npm install @hiveio/hive-js --save
After successful installation, we can now write our code.
We are going to use this API. This will return the account history from the hive blockchain.
just like this.
Each block contains operations. let's filter that.
Now this will return the whole history of my account like from the creation to till now . The whole thing includes transfer, votes, account claiming, reward claiming etc.
Like here the steem account created my account and then delegated some steem( Almost 10 month ago)
Now this code will only print the name of voter and author. (In this case the person who voted me and my voting list)
This is just the basic stuff you can do a lot of things with it like we can use it in our apps. In the next post, i will try to create a basic tool using hivejs/hived which will help you in understanding liberty.
Now if you like the post please upvote and comment if you want to give me some advise
Leave Hivejs Tutorials-- #3 to:
Read more #hivejs posts
Best Posts From ProGrammer
We have not curated any of pakgamer'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 ProGrammer
- What do you think your Password is Secure?
- Nodejs Tutorial-- Sending Email using NodeMailer
- Node.js Tutorial --Reading and Writing files
- How to install Nodemon-- Express.js Tutorials
- How to use Range Element in a simple voting tool
- Learning Express.js-- installation and Hello World Example
- How to Compile your C/C++ code on the Visual Studio Code.
- How to check Voting Power And Resource Credit of Hive Account Through dhive
- How To Send Message TO WhatsApp Using JavaScript/Node.js-- Twilio
- How to add Custom prefix to your Discord Bot. Discordjs Tutorial
- HiveJs Tutorials --Learning how to transfer HIVE/HBD thorugh HiveJs
- Fetching API -- JavaScript Tutorial
- Learning Local Storage in JavaScript..
- Hivejs Tutorials-- #3
- Learn jQuery. Learning Events/Methods
- Learn jQuery --- Learning Selectors
- Learning JQuery-- Understanding the basics
- TypeScript for beginners -- A quick start
- How to Stream Hive Blockchain Transactions.-- HIVED
- Grand Theft Auto V (GTA 5) is now free on Epic Games Store.