Domain Steem with JavaScript: Lesson #1 - Introduction to Steem Blockchain and RPC Nodes

in #steemjs-s22w13 days ago
1000236058.png
canvas

Welcome here friend as we are here to learn and look into Steem Blockchain and RPC Nodes which is a nice topic presented by professor @alejos7ven


What is your understanding of RPC Nodes? [2 PTS]

In the blockchain RPC Nodes is an abbreviation for Remote Procedure Call which is a computer or a server that runs a blockchain continuously. I also, understand that it is a protocol that allows one program in a blockchain to execute or request a procedure on another program that is on a different server.

Based on my understanding of what I have learned from the [lesson] of the professor and with my little research, I came to understand that RPC Nodes in the context of the Steem blockchain, are the gateway for applications or users to interact with the Steem blockchain via the help of Steem API, that is built on JSON-RPC is what I so far understand about RPC Nodes in the Steem blockchain.

In the Steem blockchain, RPC Nodes are very important to us, as we can use them to get vital information such as; submitting transactions, fetching blockchain data, interacting with content and accounts, and so on. The following; https://api.steemit.com, https://api.steemit.net, https://rpc.buildteam.io, and others are examples of RPC Nodes in the Steem blockchain. The first aforementioned node is provided by Steemit, Inc which is the node that is commonly used for connecting with the Steem blockchain.


Explore the Steem Developers Portal (https://developers.steem.io) and fetch data using JavaScript or Python from at least 3 methods of the condenser_api plugin (Don't use get_block method) [5 PTS]

At this point, I explored the given portal https://developers.steem.io and fetched data using JavaScript. Before doing this I installed the only system to enable them to code work properly.

rpc.PNG

rpc1.PNG

Visited the given website and clicked on APPABASE API which I clicked on the condenser API. From the API I then explored the following; get_accounts, get_account_votes, and get_account_history.

get_accounts

rpc2.PNG

rp.PNGrp1.PNG

This is the API on the Steem blockchain that allows developers and users to user account information on the Steemit platform as I click on the get_accounts, I was taken to the interface where the necessary items are written which I used.

get_account_votes
rpc3.PNG

This is the API on the Steem blockchain that allows developers and users to get upvote information on steemit platform.

get_account_history

rpc4.PNG

This is the API on the Steem blockchain that is used to generate history such as transactions history, upvotes, and so on.


Get the 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. [3 PToer

To get the information of a random block between 1,000,000 and 1,500,000 write a program that shows who created it and the date it was created two different code to run to help us get information about a random block.

Code to get information about a random block

get.PNG

Custom API function for Steem API

get1.PNG

In running the code we will have to connect to the Steem blockchain using https://api.steemit.com. The Custom API function helps to fetch data from Steem blockchain a Post request to the endpoint of Steem API and it is structured using JSON-RPC 2.0. To run the code properly we will need to have Node.js installed on our system which as you can see below the block information is displayed.

1000235985.png

I am inviting; @dove11, @simonmwigwe, and @ruthjoe

Sort:  
Loading...
Loading...

Coin Marketplace

STEEM 0.19
TRX 0.24
JST 0.037
BTC 97218.32
ETH 3337.00
USDT 1.00
SBD 3.12