5

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?

4

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

| improve this answer | |
  • @Péter Szilágyi Could I get the abi only by the address that the contract stored? – user2781581 Dec 27 '16 at 7:10

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.