Use Ethers.js to interact with a deployed smart contract

preview_player
Показать описание

You will need a) the smart contract address and b) the ABI.

I use an Ethers provider to perform read transactions.
I use an Ethers signer to perform write transactions.

Ethers documentation:

Github code:
Рекомендации по теме
Комментарии
Автор

thank you, I have a better understanding now

clement
Автор

First of all great video. But I have a doubt about the PRIVATE_KEY that you are using from .env. Whose private key is it? Is it the owner of the contract or current connected wallet?

SagarGopale
Автор

Hey how can i detected if I m connect to meta mask after I once manually connect by clicking on connect button. Plz help me

lobsanggyatso
Автор

pls how can i use thhe ether.js i installed it already but when i try to run and debug it says error
Require stack:
at Module._resolveFilename

tofunmis