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

feat: create timestamp entity every hour #16

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

george-openformat
Copy link

A rough implementation that would create a timestamp entity every hour that contains the first block number of that hour.

Things to consider:

  • It requires indexing every block which may impact indexing speed
  • It will add 8766 entities a year (hours in year)

Would be used to get a range of block numbers given a list Unix timestamps on each hour in UTC

{
  timestamps (where : {id_in: [
      "1728406800",
      "1728410400",
      "1728414000"
  ] }){
    blockNumber
  }
}

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

Successfully merging this pull request may close these issues.

1 participant