onion-monero-blockchain-explorer icon indicating copy to clipboard operation
onion-monero-blockchain-explorer copied to clipboard

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

Open Olsm opened this issue 2 years ago • 3 comments

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?

Olsm avatar Sep 19 '23 22:09 Olsm

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

moneroexamples avatar Sep 22 '23 06:09 moneroexamples

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.

Olsm avatar Sep 22 '23 13:09 Olsm

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?

moneroexamples avatar Sep 23 '23 08:09 moneroexamples