In the previous chapter, we learned how to write and deploy smart contracts using Solidity. In this chapter, we will learn about web3.js and how to import it, connect to geth, and use it in Node.js or client-side JavaScript. We will also learn how to build a web client using web3.js for the smart contract that we created in the previous chapter.
In this chapter, we'll cover the following topics:
- Importing web3.js in Node.js and client-side JavaScript
- Connecting to geth
- Exploring web3.js
- Discovering the most-used APIs of web3.js
- Building a Node.js application for an ownership contract
This chapter is same as chapter present in author's previous book Blockchain for Projects. This is not a second edition book,it is used to explain fundamental concepts to the readers.Â