Skip to main content
added 41 characters in body
Source Link

https://www.npmjs.com/package/web3-eth

// install using yarn or npm
npm install web3
yarn add web3
// in node.js
var Web3Eth = require('web3-eth');,
 
var  eth = new Web3Eth('ws://localhost:8546');

https://www.npmjs.com/package/web3-eth

// in node.js
var Web3Eth = require('web3-eth');
 
var eth = new Web3Eth('ws://localhost:8546');

https://www.npmjs.com/package/web3-eth

// install using yarn or npm
npm install web3
yarn add web3
// in node.js
var Web3Eth = require('web3-eth'),
   eth = new Web3Eth('ws://localhost:8546');
Source Link

https://www.npmjs.com/package/web3-eth

// in node.js
var Web3Eth = require('web3-eth');
 
var eth = new Web3Eth('ws://localhost:8546');