6

Is it possible to get a contract only by its address without the ABI definition?

I'm experimenting with ethereum in a private network through the web3.js client console.

The problem is that any error in node will cause the client to crash. I was careful enough to store the contract address, but not the ABI definition.

Is there a good approach for solving this problem?

Henrique Barcelos
  • 2,481
  • 4
  • 20
  • 38
  • Related: https://ethereum.stackexchange.com/questions/3149/how-do-you-get-a-json-file-abi-from-a-known-contract-address – eth Apr 28 '17 at 04:51

1 Answers1

4

If you have the source code, just recompile it. It will give you the same ABI.

Péter Szilágyi
  • 10,436
  • 39
  • 42