The best way to interact with your contract from your application is by using web3.js. This library offers plenty of feature sets that you will need while building a DApp. In this recipe, you will learn to read data from the deployed smart contract.
Reading data from smart contracts
Getting ready
You need to have web3.js installed on your application to use these methods. Ensure that your Ethereum node is running. You can also use Ganache to create a development node.
How to do it...
In order to read data from smart contracts, we will have to perform these steps:
- Create...