0

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?

0

You can't. You need an ABI to interact with a contract.

3
  • 1
    How could I get an ABI from a contract thats not mine? Downloading it and compiling? – redigaffi Apr 9 at 20:34
  • 1
    You 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... – Undead8 Apr 9 at 22:49
  • 1
    How could I find the ABI if its public? – redigaffi Apr 10 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.