I would like to query a range of blocks on the EOSIO mainnet which were created during a specific time span (for example, from unix time 1555500000 to 1555600000, which is around April 17-18, 2019). How do I find the numbers of the blocks created in that time span?
I see it's possible via getting various blocks with the REST API (/v1/chain/get_block
), looking at the timestamp
field of the responses, and performing a binary search for each of my two unix time borders.
Is there a more straightforward way?