We mentioned web3 briefly in Chapter 1, Truffle for Decentralized Applications, and we even used it without fully understanding it. The purpose of Chapter 1, Truffle for Decentralized Applications, was to get a fully functional and working Dapp on a local blockchain so you could understand the power of Truffle.
Now, it's time to get more granular.
Let's take a look at some examples:
var balance = web3.eth.getBalance("0x407d73d8a49eeb85d32cf465507dd71d507100c1"); console.log(balance); // instanceof BigNumber console.log(balance.toString(10)); // '1000000000000' console.log(balance.toNumber...