Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k 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 (29.5k points)
edited by

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/

Give yourself time to explore this field properly. Enroll in IBM Blockchain Certificate now.

Browse Categories

...