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?

1 Answer 1

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
    Commented Apr 9, 2021 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
    Commented Apr 9, 2021 at 22:49
  • 1
    How could I find the ABI if its public?
    – redigaffi
    Commented Apr 10, 2021 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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