I've found some libraries which decode input from transaction, but all of them require ABI of contract.

Can I decode input data if I know only txHash, contract address and input data?

How etherscan does it?

Here is an example: https://etherscan.io/tx/0x42afb58ccd19e5f30c4e41a352cdc99e6e3f5ba05191215123e935dc15f55c93

Input data is decoded, but there is no source code (ABI) for that contract.

P.S. I'm interested more in JS libraries, but programming language is not so important.

  • This is question is somehow related ethereum.stackexchange.com/questions/7927/… , there's a listing of know signatures at 4byte.directory .
    – Ismael
    Commented Oct 3, 2017 at 16:09
  • @Ismael Thank you! This site 4byte.directory is very useful and it finds signatures for many contacts. I'll try to decode with web3 library: web3.eth.abi.decodeParameters(typesArray, hexString); Commented Oct 3, 2017 at 17:21


Your Answer

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

Browse other questions tagged or ask your own question.