Block reorganization in Moralis Streams

Hi there!
I am building a webhook to use Moralis Streams (it is great!), but I do not know how is the behavior of the stream when a block reorganization occurs.
Let me show an example:
I receive a webhook for the block 100 with confirmed: false, but then a block reorganization occurs and this block changes. So, what would be the behavior of the stream in this case? Then I would receive a webhook with confirmed: true for the block 100, but with different payload?

I need to clarify this flow to handle the scenario correctly in our backend.

Thanks in advance.

Hi,

You will receive the webhook request with confirmed true later after 100 blocks have passed, the confirmed true webhook requests are sent after 100 blocks have confirmed current block, if a reorg happened before 100 blocks then the confirmed true webhook will have the info from after the reorg

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.