This is not in spec yet but the coarse idea is:
- starting from Starknet 0.14.3
get_preconfirmed_block will accept additional params, in particular round and already polled transaction count
- the endpoint returns only new transactions after the count that we already downloaded,
- endpoint returns
round as well so we can reset the counter to 0 and clear the currently served preconfimed block when round is increased
- new params ignored, and the endpoint returns the entire current view of the preconfirmed block for Starknet 0.14.2
- inspect the api response to figure out if it's the 0.14.2 format or the new 0.14.3 format
- consult SW for more details
This is not in spec yet but the coarse idea is:
get_preconfirmed_blockwill accept additional params, in particularroundand already polled transaction countroundas well so we can reset the counter to 0 and clear the currently served preconfimed block when round is increased