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?


1 Answer 1


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

  • @Péter Szilágyi Could I get the abi only by the address that the contract stored? Dec 27, 2016 at 7:10

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.