Domain Steem with JavaScript: Lesson#2 | "Exploring the Steem API; Steem JS

in steemjs-s22w2 •  8 days ago 

Black Gold Elegant Jewelry Logo_20241227_214621_0000.png

edited with canva

Hello friends and welcome you all to my article in the SLC S22/W2 as organised by the great tutor @alejos7ven I would be performing tasks as required in the class guide.


TASK 1: Use Steem JS to execute at least 3 methods from Steem API


We firstly install Node.js from site download the program reader Sublime Text and open installed program we set up program, open terminal, visit program folder already saved and placed special command on program. These are methods used in the course of execution of action;

get_dynamic_global_properties: Method is used to retrieve numbers of last generated order block,steem_blockchain_time
total_vesting_fund_steem providing a delightful overall activities of blockchain. This task would not be complete without implementing function get_dynamic_global_properties


Screenshot_20241227-194022.png
code✅
Screenshot_20241227-194100.png
output✅

get_accounts: This method used to retrieve information bearing confidential information about a steem account. It was used on daprado1999 showing records of the account, reputation and other basic information about the user. Account function with specified names useful for such profile, reputation and determining the steem power.


Screenshot_20241227-193444.png
code✅
Screenshot_20241227-192254.png
output ✅

get_content: This includes details which access content of author, which would include subscription, title post, images and so on. It accesses information as regarding activities carried out on blog, and overall tasks conducted on your Wal at a particular time.


Screenshot_20241227-211430.png
code✅
Screenshot_20241227-195732.png
output✅


TASK 2: Calculate effective SP(vesting_shares + received vesting _delegated_vesting_shares_vesting_withdraw_rate) for all steemcurator accounts (sc01-sc08)

We get started by running the get_account method which displays my name and special parameters needed for the task. It would be looked up on JSON and displayed in this basic comprehensive way.


Screenshot_20241227-212246.png
code✅
Screenshot_20241227-212605.png
output✅

We modify these codes into something more comprehensive we remove the rest and get along with the special code which bears the effective SP from 01 through to 08 account respectively.


Screenshot_20241227-204043_1.pngScreenshot_20241227-202036.png


TASK 3: Study the get_dynamic_global_properties method and explain at least 5 values we can get here. Use this site: site

The five values used are;

current _supply: represent the valid number of STEEM which is in existence, this is not affected or bears consideration of SBD

sbd_interest_rate: This is interest paid on SBD you trade into savings, it has a rate of 0 TO 10% APR ad would remain contact even at thd time of this article.

head_block_number: represent active order block, precisely the head_block generated by varying steem witness as voted by users running this method shows a new block being generated per time.

Screenshot_20241227-204611.png
code ✅
Screenshot_20241227-204726.png
output✅

virtual_supply: special virtual supply is the combination of all STEEM supply and all SBD supply when converted to steem at a well spotted price

vote_power_reserve_rate: This represents number of votes, regenerated over a range of 24 hours. We spot 10 votes at 100% voting weight. Statistical analysis conducted assures 1 vote order block is generated every 2 hours and 4 minutes, any voting algorithm set less than this might reduce voting experience.

Cc: @alejos7ven

I have concluded my article and invite @josepha @dove11 @solperez @nancy0 to join challenge

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
Loading...