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 timestamp, block ID, and (maybe?) confirmations to the Transaction data type #87

Closed
telestrial opened this issue Sep 5, 2024 · 2 comments
Milestone

Comments

@telestrial
Copy link

Feel free to amend as necessary. We're currently missing these from the sibling Sia Central transaction-type request.

@telestrial
Copy link
Author

telestrial commented Sep 10, 2024

@chris124567 @n8maninger I know there was some work done here fixing/modifying the pull that closed this issue. I believe this is settled now? One can now fetch the chain index of a transaction via the new route. That directly gets you the blockID. From there:

  1. Is the confirmations the difference between the height in the chain index and the current height? Is this guaranteed to always be true?
  2. How does one get the timestamp?

@n8maninger
Copy link
Member

n8maninger commented Sep 10, 2024

Timestamp is the block timestamp
Confirmations is the difference in heights

@n8maninger n8maninger added this to the v0.1.0 milestone Nov 1, 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

No branches or pull requests

3 participants