New to Nutbox?

Domain Steem with JavaScript; Lesson #1 | Introduction to Steem Blockchain and RPC Nodes

6 comments

daprado1999
70
4 days agoSteemit3 min read

Black Gold Elegant Jewelry Logo_20241218_200514_0000.png

edited with canva

Hello friends and welcome to my article in this great dynamics of SLC S22/W1 as organised by @alejos7ven and I would be attempting these tasks immediately.


What is your understanding about RPC Nodes?


RPC Nodes is an acronym for Remote Procedure Cells Contract which act as primary access point to network, providing ways to go about carrying specific functions without nodes infrastructure, suitable for access to account balance publication and modifying data on Blockchain too, aiding in spotting and supporting outstanding articles on platform. Basically sending request to RPC nodes receiving request and transmitting request to the Blockchain upon arrival of request, interpreting and executing operation.

Moreso, practically on steemit one most available fact is that RPC nodes consists of plugins that define performance of activities, containing common methods which communicated and relay message retrieving information or harnessing data accordingly. One of the most popular RPC nodes on steemit is source an interface that lets developers interact and relay messages using JSON data, communicating directly with steemit platform accordingly. The RPC nodes are generally the backbone, skeletal framework in which steemit platform thrives.


"Explore Steem Developer Portal https://developers.steem.io and fetch using JavaScript or python from at least 3 methods of condenser_api plugin (Dont use get_block method"

Screenshot_20241218-201114.png
Steem Developer Portal

Exploring steem developer portal was possible as I retrieved useful data using get_discussion_by_created capacitor_api_get_chain_properties get_dynamic_global_properties


get_dynamic_global_properties


This particularly provided global information about the updated occurrence of the Blockchain. It shared documented time of creation of previous order block and process it got produced, the current rewards of active participants as statistical data contained in each account which is crucial to knowing and tracing activities in the account. It monitors the overall activities of the blockchain incorporated in harnessed programmed codes.


Screenshot_20241217-211624.png
created code
Screenshot_20241217-212423.png
output


get_discussion my_created method


This highlights recent posts which are yet to be rewarded on the Blockchain taking special charactered codes which specified which part you intend on retrieving


Screenshot_20241217-213009.png
created code
Screenshot_20241217-213528.png
output


capacitor_api.get_chain_properties


We obtain information about properties of chain when executed showing result of query and obtain information about properties of steemit

Screenshot_20241218-193248.png
created code
Screenshot_20241218-193721.png
output

Get information of a random block between 1,000,000 and 1,500,000 and write a program that shows who created that block and the date it was created

Using the interaction of the Nod.js_fetch library with the API via the condenser_api plugins custom_api functions allows you to sent HTTP post requests to steem API by taking as parameters the address of RPC nodes, method used was the condenser_api_get_block retrieving information of a given block.


Screenshot_20241217-214008.pngScreenshot_20241217-214521.png

A created block generated in specified range using this formula Math_floor(Math_random () (15000000-100000+1) + 1000000 cautiously executing program effectively. This is my own quota of research in the dynamics as organized by our tutor.


I have concluded my article and invite @lirvic @josepha @simonnwigwe @nanidi to join challenge

Comments

Sort byBest