Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum Block Height HTTP Headers #1509

Open
digorithm opened this issue Sep 18, 2024 · 0 comments
Open

Minimum Block Height HTTP Headers #1509

digorithm opened this issue Sep 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@digorithm
Copy link
Member

As more RPC providers begin offering Fuel APIs, we will encounter race conditions depending on users' locations, network latency, etc. We want SDK users to specify a “minimum block height” parameter in their requests to work around this.

If the value is provided, it should populate a new HTTP request header called “Minimum-Block-Height.” This value should be submitted with the HTTP request. The node can then reject the request or queue it while it waits for its internal state to catch up.

If a user uses this feature, we should also expose a timeout value if the node decides to queue the request.

@digorithm digorithm added the enhancement New feature or request label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant