hello guys, how can i interact with smart contract on the mainnet from my contract ??
Mar 27, 2023, 10:15 AM
i wanna call some method on the mainnet contract, how can i do that ??
Mar 27, 2023, 10:18 AM
hardhat docs
Mar 27, 2023, 10:34 AM
what is it called on hardhat docs ?
Mar 27, 2023, 10:35 AM
cotract method name
Mar 27, 2023, 10:40 AM
i wanna iinteract with this mainnet smart contract 0x4238E5Ccc619dCC8c00ADE4cfc5d3D9020b24898 ( AIToken )
from my local smart contract
Mar 27, 2023, 10:41 AM
then you need to fork mainnet
and interact with it as usual
Mar 27, 2023, 10:42 AM
i see on stackoverflow that we can interact by creating an interface of our target contract, is it possible ?
Mar 27, 2023, 10:45 AM
exactly
do you have basic knowledge in solidity? if no start with cryptozombies.io
Mar 27, 2023, 10:46 AM
i do have basic knowledge of solidity, but i just dont know yet how to interact with mainnet contract
Mar 27, 2023, 10:47 AM
do you know how to interact with another contract?
Mar 27, 2023, 10:48 AM
yes i do with contract address if from contract, and by ABi and contract address if from front end
Mar 27, 2023, 10:49 AM
You need to interact with it from a contract?
Mar 27, 2023, 10:49 AM
what do u mean ?
Mar 27, 2023, 10:50 AM
ethers.js/web3.js
Mar 27, 2023, 10:54 AM
you said you need to interact with a mainnet contract
Mar 27, 2023, 10:54 AM
on-chain or off-chain?
Mar 27, 2023, 10:55 AM
from another contract or a dcript?
Mar 27, 2023, 10:55 AM
i know how to access using etherjs
Mar 27, 2023, 10:55 AM
try to be more clear
Mar 27, 2023, 10:55 AM
i want to interact with the mainnet smart contract from my local smart contract mate ?? is it by forking mainnet ??
Mar 27, 2023, 10:56 AM
yes you need to fork mainnet
and then interact with it using interface
Mar 27, 2023, 11:01 AM
okay mate, thanks
Mar 27, 2023, 11:04 AM