This forum is a read-only archive. Posting, replying and signing in are disabled.

Questions on search transactions

yfmao

I am using indexer.search_transactions to query for the transactions related with some certain smart contract application. The question I met is the start_time and end_time conditions are not fufilled.

For example, I create an application at 23:00 on 04/21 in UTC -5 time zone, and opt-in 5 acccounts into the smart contract before 23:30 in the same day. Then, at 23:40 I use indexer.search_transactions(start_time=“2021-04-22T02:00:00.00-05:00”) to query for the transactions starting from 02:00 on tommorrow.

What I expect is no returning results, but what I received is all 6 transactions described above. That is weird.

It seems the results filtered by time conditions are not accurate enough… Why does it happen?

✔ Solved by fabrice in post #4
fabrice

Can you checked the timestamp of the returned transactions?
This is the field round-time of the transaction: indexer - Algorand Developer Portal

Can you do it with non-sensitive transactions on TestNet and post your minimum code having the issue as well as the transaction IDs?

yfmao

Thanks for your reply @fabrice

The round-time you mentioned is an integer value stored in the transaction entities returned by the function search_transactions. I am not sure about the meaning of round-time here, could you explain that?