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

Add /r/blocktime/<HEIGHT> #3065

Closed
raphjaph opened this issue Jan 29, 2024 · 4 comments · Fixed by #3075
Closed

Add /r/blocktime/<HEIGHT> #3065

raphjaph opened this issue Jan 29, 2024 · 4 comments · Fixed by #3075

Comments

@raphjaph
Copy link
Collaborator

raphjaph commented Jan 29, 2024

Or add a `/r/blockinfo/

@cliobitcoinbank
Copy link

We need this to use as a seed in generative stuff and other block based features.

@stet
Copy link

stet commented Feb 4, 2024

what will this output contain? entire block data or limited?

@jerryfane
Copy link
Contributor

what will this output contain? entire block data or limited?

I made a pull request for this #3075

The output as of now contains:

  • Block Hash
  • Block Height
  • Timestamp
  • Number of Transactions
  • Count of Confirmations
  • Previous Block Hash
  • Next Block Hash
  • Inscriptions

Open for feedback though.

@stet
Copy link

stet commented Feb 9, 2024

Open for feedback though.

Thank you. Remind me, what is the total block data fields that Ord indexes?
I will review code but if you know off-hand, thanks.
Ideally, this returns all indexed data.
Typical block endpoint responses also include:

  • ver
  • mrkl_root
  • bits
  • fee
  • nonce
  • size
  • weight

@casey casey linked a pull request Feb 12, 2024 that will close this issue
@casey casey added this to Tracker Feb 12, 2024
@casey casey moved this to Ready for Review in Tracker Feb 12, 2024
@casey casey removed this from Tracker Feb 14, 2024
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 a pull request may close this issue.

4 participants