Now that we have our contract on the blockchain, we can start using it.
- First we’ll parse our ABI into a JSON data structure
- Second we’ll create a contract “class” using that ABI and
- Third we’ll instantiate that class using our address
It’s probably easier to just show you in code.
Remember that all reads can be performed locally, for free, as long as they don’t change any state. Let’s try our read function