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

Transaction with an unlock_time has 0 as tx_confirmations and tx_timestamp in the outputs endpoint #295

Open
Olsm opened this issue Sep 19, 2023 · 3 comments

Comments

@Olsm
Copy link

Olsm commented Sep 19, 2023

For a locked transaction with an unlock_time set, in the outputs endpoint the "tx_confirmations" is 0 and the "tx_timestamp" is 0, but in the transaction endpoint the "confirmations" is 218170 and the timestamp is 1668901942. Is there a reason for that or is it a bug?

@moneroexamples
Copy link
Owner

Can you provide more details or screenshot? Its not clear to me what you are referring to. Is it about the explorer's API?

@Olsm
Copy link
Author

Olsm commented Sep 22, 2023

Yes it is about the API. See an example below:

"api/outputs?txhash=<tx_hash>&address=&viewkey=&txprove=0" for the tx gives this response for a transaction that has unlock_time not 0 in "api/rawtransaction/<tx_hash>":

bilde

Notice that 'tx_confirmations' is 0 and 'tx_timestamp' is 0.

In "api/transaction/<tx_hash>" the confirms and timestamp exists in 'confirmations' and 'timestamp' instead of being 0.

@moneroexamples
Copy link
Owner

I have difficulties replicating the issue. Does this happen for every transaction for you, or is it for new txs (e.g. in mempool) only?

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

2 participants