So I started Ganache-cli with -f option to fork the BSC (ETH FORK), and in the truffle console I want to interact with some smart contracts that are not mine nor I deployed them, how can I interact with them without having the ABI of the given contract?
1 Answer
You can't. You need an ABI to interact with a contract.
-
1How could I get an ABI from a contract thats not mine? Downloading it and compiling? Commented Apr 9, 2021 at 20:34
-
1You just can't! If the person did not make the ABI public, there is no way to have it. You can try decompiling the bytecode, but good luck if you can understand anything...– Undead8Commented Apr 9, 2021 at 22:49
-
1