Initializing Wallets and Smart Contracts.

Solidity

Blockchain

07/06/2021


To initialize a smart contract, we need to have two things. One is the Address of the contract and the other one is the ABI (Application Binary Interface) of the Smart Contract.

We can get the ABI upon compilation of the Smart contracts

Then we need a provider. There are many types of providers like JsonRpcProvider , InfuraProvider, EtherscanProvider and so on.

For this example we will use the InfuraProvider. To use InfuraProvider, we need to get a ProjectID from Infura.io

In this example, I'll show how to initialize and call