onion-monero-blockchain-explorer
onion-monero-blockchain-explorer copied to clipboard
Transaction with an unlock_time has 0 as tx_confirmations and tx_timestamp in the outputs endpoint
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?
Can you provide more details or screenshot? Its not clear to me what you are referring to. Is it about the explorer's API?
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>":
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.
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?