Tag: node.js
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, …
Node/Javascript Function to Transfer BTS Assets on BitShares Blockchain To make a transfer on the BitShares blockchain, you need to create and broadcast a transfer operation. This operation includes …
In one of my project, I have the following code (Node/Javascript) that invokes a few APIs one by one (sequentially). However, these HTTPS requests can be done in parallel …