Here is what I’ve tried, I scrapped off transactions from Moralis Web3 REST API of a specific NFT collection.
I got all of these transactions stored in a JSON file but how am I able to identify that a transaction object was reverted?
I am trying to achieve is to filter out all transaction objects that have error so I can compute for the correct sales per day in both native transaction and ERC20 token transactions.
Because if these transactions is not filtered out, then the computations are inaccurate because it will still count off the error transactions that contains value for
tx.value. Ideally if that transaction is reverted/thrown an exception then it should be filtered out.
Would appreciate if anyone can guide me how to do it, I tried
AbiCoder to decode the input args in the call but that does not help apparently.