Skip to content

feat(preconfirmed): add support and integrate new preconfirmed block API #3352

@CHr15F0x

Description

@CHr15F0x

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions