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

[NEW ENDPOINT] /State - return a state with latest block and timestamp for the data #46

Open
ashachaf opened this issue Oct 6, 2024 · 0 comments

Comments

@ashachaf
Copy link
Collaborator

ashachaf commented Oct 6, 2024

For sanity check, we should create a new endpoint where it just returns the latest block and timestamp of that block used for the dataset available in all other api endpoints.

reason, this will allow a way to quickly identify if there is any stale data that is used or any service that isnt working as expected in harvesting the required data.

alternatively, we can append this information to any existing api endpoint to indicate the freshness of the returned data.

endpoint:

/state

returns:

[
    "blockNumber": 20906564,
    "timestamp": 1728218363
]
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