0 votes
1 view
in Blockchain by (11.8k points)

I'm using dfuse streaming API to built a EOS based application. I want to keep an in-sync view of all the data flowing through my smart contract.

I want to ensure that I will always be in sync so I never miss a single block. Using the dfuse streaming API, how can I achieve that?

1 Answer

0 votes
by (27.7k points)

For a given stream (corresponding to a request and an associated req_id), when you received a progress for a block, you are guaranteed to have seen all the contents it contained in your query (the actions for get_action_traces, or the rows for get_table_rows).

If you keep track of that block_num and/or block_id, upon disconnection/reconnections, you can provide it back in your request, and be guaranteed never to miss.

refer the link below for more details

https://docs.dfuse.io/

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...