1

I call a contract over geth RPC using sendTransaction and get a transaction hash. Is there a way to verify over the geth RPC interface if this transaction failed due to a VM abort (Solidity throw statement, similar)?

The transaction receipt doesn't seem to offer any variables telling this.

1

Checking the transaction receipt for gas == gasUsed is a practical heuristic, because the only way that the VM aborts is to consume all gas.

There's currently no indicator for a transaction that ran Out of Gas, so nothing more precise than the heuristic is available through RPC.

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.