Category: javascript
The simplest method/function to retrieve the latest block number on ETH aka Ethereum Blockchain is via the following method: const Web3 = require('web3'); const getBlockNumber = async() => { …
On Ethereum Blockchain, we need to pay the miner Gas Fee to perform some operations, for example, invoking Smart Contract, or simply transfering ETH. The Gas Fee equals to …
Most APIs return JSON. Below is a simple example of a Node.js (Javascript) async function that uses the node-fetch package to fetch JSON data from the provided URL. Firstly, …
The Range Function in Javascript Let’s review the following JavaScript function called range. This function generates an array of numbers within a specified range, with a default step of …
Steem Blockchain has been running for a while, and how to compute the Chain Age, Uptime and Downtime? It is similar to compute the Uptime, Downtime or Fault Rate …