I have a smart contract deployed to mainnet. A user has executed a transaction that resulted in a revert failure. How can I debug this transaction to determine what exactly happened that resulted in this failure?

(I have the smart contract source code)

  • You can review the transaction hash on etherscan.io. You can also post it here, so perhaps someone can help you with it. You might also want to post you contract source code here, and indicate which function was called on it. Mar 2, 2019 at 18:34

2 Answers 2


For debugging transaction you can use traceTransaction debugging method that will attempt to run transaction as it was executed in the network. You can get more details from this official documentation: https://github.com/ethereum/go-ethereum/wiki/Management-APIs#debug_tracetransaction


I found this tool and it was quite helpful to me:


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.