[SOLVED] Transaction status from get-transaction


Iā€™m calling: https://docs.moralis.io/web3-data-api/evm/reference/get-transaction and want to check if this transaction succeeded.

Would that be the case if receipt_status = ā€œ1ā€? (I cannot find the possible values for receipt_status. )
Or would there be another indicator?

Thanks for helping!

Hi @marcelh1983

The receipt_status = 1 indicates that the transaction is successful.

The possible values are 0, 1, and null.
0 = failed or pending
1 = Success
null = possibly an old transaction before 2017 that does not contain the receipt_status value.

1 Like