5

I have a Solidity contract source code and a raw transaction (hex) from blockchain. Is it possible for me to decode the transaction to its symbolic format, so I can see what contract methods are called and with which arguments?

2

1 Answer 1

3

Check out http://ethslurp.com. It does exactly that. Here's all ~135,000 DAO transactions decoded (and separated by day and function call) as ASCII text files: http://daodeepdive.com/data.html.

3
  • 1
    Ethslurp looks like a great tool! But it doesn't appear to do what the OP asked. It pulls transactions off the blockchain, but it doesn't let you input raw transaction data and parse it out. If, for example, you've generated an offline transaction and want to verify it before posting, ethslurp doesn't help you. Commented Jan 17, 2017 at 12:34
  • It says the data is 'from the blockchain,' not that it is about to be sent to the blockchain. You're right thought that it works after the fact with JSON received from etherscan.io APIs. We're working, though, on taking the data directly from Parity via RPC. Maybe the OP can clarify. Is it before the fact, or after the fact? Commented Jan 17, 2017 at 17:58
  • 1
    What I'm looking for myself is something to doublecheck the offline transactions generated in myetherwallet. Ethslurp may not be the right place for that. I'll probably use it for other stuff though; it should really be better known. Commented Jan 17, 2017 at 20:38

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.