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

Request: extend the block_header API endpoint to report block's timestamp #763

Open
cortze opened this issue Dec 6, 2024 · 0 comments
Open

Comments

@cortze
Copy link

cortze commented Dec 6, 2024

Hey there, could the V2 API schema be extended to provide the block's timestamp in its header?

I'm talking about this endpoint:

GET /v2/blocks/{block_number}/header

It would be useful to have this data already from the API call, and not have to compute it myself (the light client delays in providing the block header in some occasions, and that affects other internal operations).

The UTC timestamp of the block at its proposal would be best. The sampling scheduled task heavily relies on this timestamp, and I'd prefer to have the most accurate one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant