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 Answer 1

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

9
  • 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. Commented Mar 29, 2019 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... Commented Mar 29, 2019 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
    Commented Mar 29, 2019 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... Commented Mar 29, 2019 at 13:10
  • can you share the link to that paper?
    – Jaime
    Commented Mar 29, 2019 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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