Posted By : Rajat khurana | 27-Oct-2017
Web3.js is the collection of libraries which help us to interact with
Now to carry a transaction from one account to another account, send transaction function is provided by web3.
To get a balance of an account getBalance function is provided by web3 js. Here is code to understand the concept.
Web3 contain an eth obj and with the use of this, we can get the balance of any account.