Let me be clear on this, here i want reverse functionality. I have the contract address generated and i am able to access it in the mined block. However i want to know what is the data in ABI json once again. Please let me know if its possible. Else minimum requirement for getting JSON file(without using contract code).

Thanks in advance for your help.


2 Answers 2


No there is not.

Work is ongoing on EthPM which would document where commonly used libraries/packages are already deployed on the blockchain. You could thus work backwards from an address to the sourcecode using this directory.

That said not all contracts will be listed and as such this is not a catch all.

Some contracts are 'verified' on sites like Etherscan and EthTools. This means that the creator of the contract has submitted the source code (to these sites) and verified that it compiles to the same bytecode as is stored on the chain.

The simple answer however is no. You can not work backwards from bytecode to sourcecode. More details on why can be found in this answer by chriseth (who created Solidity).

  • That was really some great information @thomas. Thanks
    – Amit Kumar
    Aug 16, 2017 at 5:26

abi-decompiler is a Python program to do this, see https://github.com/beched/abi-decompiler

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.