Confirmed Transaction Webhook Callback Is Taking Forever

After integrating Moralis Stream, and after triggering a contract event, the first webhook callback sends an immediate unconfirmed transaction notification. The second callback that confirms the transaction takes forever to be transmitted to the server. Is there a way to speed up this process and get a realtime notification once the transaction is confirmed?

it should be real time for the confirmed transaction, for when it is considered as confirmed, maybe something else happened, like the webhook not working, do you see errors in stats or data in history?

The confirmation is returned after approx. 10 min. The unconfirmed transaction is return within few seconds. I don’t have any issue with the webhook.

that delay is based on the block numbers until we consider a transaction as being confirmed, you can find here the number of blocks per chain

It need 100 blocks for Polygon… because of that it’s taking 10 min for the callback. Do you think there is a way to speed up the process ? It’s important for me to minimize this delay.

you can process the original unconfirmed event, and check the transaction after 2-3 minutes if you want faster speed

Is there an API for that ?

an api for what in particular?

An API I can call after 2-3 minutes to check if the transaction was confirmed

you can try to get the transaction by transaction hash after 2-3 minutes to see if it is returned at that time in the same block number

also, depending on the type of transactions that you are interested in, they can have a lower or a higher chance to be affected by a possible reorg