using web3.js code example
Example: web3 javascript
// npm install web3
const Web3 = require("web3"); //web3 returns a class
const web3 = new Web3(Web3.givenProvider || "http://YOUR BLOCKCHAIN HOST"); //creating an instance of the class
// npm install web3
const Web3 = require("web3"); //web3 returns a class
const web3 = new Web3(Web3.givenProvider || "http://YOUR BLOCKCHAIN HOST"); //creating an instance of the class