1

I have a couple of questions:

  1. How can I determine the amount of Smart Contracts that are hosted on the ETC blockchain?

  2. Of these smart contracts, how many of them have been verified?

I guess geth is necessary for this, but I am not sure. Thanks in advance.

  • 1
    how do you define verified ? – Nulik Sep 4 '18 at 21:53
  • 1
    @Nulik Good question. I think the scope of the question can be broadened to all smart contracts, regardless if they are verified or not. Thanks a lot. – Elías De La Rosa Sep 4 '18 at 21:59
1

I think you are confusing the Ethereum (Classic) blockchain and a general block explorer. The blockchain simply holds the data and state of everything that has ever happened. A block explorer is a visual representation of all of the data from the blockchain, as getting data directly from the blockchain for every query is highly inefficient.

how can I determine the amount of Smart Contracts that are hosted on the ETC blockchain?

There are a few ways to do this, but will be difficult. The most efficient way would be to write a script that scans the blockchain for each instance of a contract creation.

You can use geth for this, but there are other options, if desired.

Also, of these smart contracts, how many of them have been verified?

"Verified" is strictly a statistic created by the hosts of block explorers. There is no such thing as a verified contract from the perspective of the blockchain. I am not sure there is a block explorer that does Verify contracts for ETC.

  • 1
    Shane: thanks for your answer. I was already clear on the difference between a blockchain and a block explorer. Regarding the script: do you have any idea of doing it? Thanks again. – Elías De La Rosa Sep 4 '18 at 21:40
  • You can use this answer. If a transaction is sent to 0x00... it could be a contract. If you check the receipt, you will see a contract address if it is a contract. – shane Sep 4 '18 at 21:44

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.