Transaction details on afterSave function


I’m using Moralis.Cloud.afterSave to adjust some data for the database event we receive.

I also want to keep the gas cost of the transaction. the row has the transaction hash. I’m just wondering if the event on afterSave somehow also receives the transaction details? or should I manually fetch that transaction and get the transaction data inside afterSave function

If I need to manually fetch it, is it possible to use moralis sdk inside cloud functions or should I fetch it by http request?


you can use Moralis SDK inside cloud functions

are you having problems with gas information missing in particular for a transaction, and all the other transaction fields are present?