7

Is there a place to see how many Ethereum contracts have been published?

If someone wanted to calculate that, it would just be total number of accounts minus accounts with code, right? Any suggestions on an easy way to calculate this? It seems like a meaningful metric for Ethereum.

2
  • how to get total number of accounts ?
    – niksmac
    Apr 28, 2016 at 16:59
  • Etherscan has an address growth graph but that doesn't say anything about how many people are just speculating. I'm wondering how much is Ethereum actually being used for its capabilities... even if it is just a "hello world" contract. Apr 28, 2016 at 17:04

2 Answers 2

4

Here are some places you can find the information you are looking for:

The three URLs above shows you the contract accounts only, so you don't have to separate these from normal accounts from your calculations.

As a meaningful metric, you will have to take into account the many test contracts, e.g. https://www.ethereum.org/token.

1
  • 1
    That's great, thank you. Etherchain and Etherscan are off by ~200 contracts, but that's close enough for what I was looking for. Strangely, Ether Camp is off from those two by like ~19k... unless I'm missing something. Apr 28, 2016 at 17:48
1

Amberdata.io has an API that can do this pretty easily:

curl --request GET \
  --url 'https://web3api.io/api/v1/addresses?type=contract' \
  --header 'x-api-key: <x-api_key>'

Response:

{
  "status":200
  "title":"OK"
  "description":"Successful request"
  "payload":{
    "totalRecords":6505274
    "records":[
      0:{...}
      1:{...}
      ...
    ]
    }
}

totalRecords would be the total amount of smart contracts. As of running this query there are 6,505,274 smart contracts.

Let me know if that's helpful! 😄

Your Answer

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

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