Post
Topic
Board Development & Technical Discussion
Re: Data history for mined blocks
by
bomberb17
on 07/09/2018, 06:09:18 UTC
You can try https://bitcoinstrings.com/, but it's totally converted to text and the blocks' data aren't displayed.
OP_return data were translated too, just ignore them or highlight all the "Mined by" lines then search from other source about which blocks are included in that particular blkXXXXX.dat number.
Sort it out, and you might find what you need.

However, the site's updates were not that frequent (about daily to four times a week)

Thanks, however I would need to devote time to convert text to usable data...


sorry, that was my bad. i always make the same mistake with pages in API calls. Roll Eyes
basically you make the first call:
https://api.smartbit.com.au/v1/blockchain/pool/AntPool?limit=20&sort=height (used 20 so it opens up fast)
then you look for this key in the JSON:
[pool][block_paging][next_link]
which contains the link to next page:
https://api.smartbit.com.au/v1/blockchain/pool/AntPool?next=NTQwMjA2&limit=20

in case you are wondering what the heck "NTQwMjA2" is, it is base64 encoding of the last block height in previous page. in this case the block at index 19 of the array result of the first call which is "540206"

Great thanks! Looks like I will have to find a way to "glue" all these JSONs into a big one..