2

On etherscan.io there is a contract`s source code tab, where does Etherscan get this code? If developers make it available for Etherscan then is it necessary for them to public it or specifically make it available on Etherscan? enter image description here

For example this code of cryptokittes can be found on Etherscan along with several other dapps.

Shane Fontaine
  • 18,036
  • 20
  • 54
  • 82
Anam Nizami
  • 885
  • 1
  • 8
  • 21

1 Answers1

2

Developers have to manually upload the code to etherscan.io and prove that it corresponds to the bytecode of the contract instance.

More details here: Is it possible to deploy smart contract source code using remix?

ivicaa
  • 7,519
  • 1
  • 20
  • 50
  • 1
    For a walkthrough of how to do it / how it works, see https://programtheblockchain.com/posts/2018/01/16/verifying-contract-source-code/. – user19510 Feb 21 '18 at 20:54