0

I am trying to collect a large set of online contracts and came across the following statement in a research article:

enter image description here

Does anyone know how to access such a "snapshot of 25983 contracts"? Is it somehow hosted by Etherscan?

1

Given that the dates are between a fairly small range, this can be done looking at all the blocks in the time interval and selecting the transactions that result in contract creation. That will give you the addresses. It may sound like much, but this should be a matter of hours in terms of processing.

Hope this helps

  • Hello, thank you for the answer. From my understanding, it seems that they somehow obtained a snapshot from when Ethereum mainnet online until August 30 2018. Am I missed anything. – lllllllllllll Mar 29 at 13:05
  • Indeed, I have been using Google Bigquery to fetech all the addresses of contracts from the mainnet creation date until 2018-12-31. The total number is about 2M and "unique" contracts (by checking the md5sum of contract bytecode) is about 160K. This seems very inconsistent with their data... – lllllllllllll Mar 29 at 13:06
  • Yes, you are right, I miss read the text. However, ~25000 contracts sound like a small amount for the mainnet or testnet. It is still feasible to just let your code run through the blocks. – Jaime Mar 29 at 13:08
  • Yes, that's definitely doable. But I am just confused because even running through blocks and collect the "creation transaction", I could have a much larger dataset >> 25000. I am just wondering how come they got such a dataset... – lllllllllllll Mar 29 at 13:10
  • can you share the link to that paper? – Jaime Mar 29 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.