Using Remix
Last updated
Last updated
You can refer to this tutorial on using Remix to deploy contracts.
Our deployed HelloWorld
contract address is 0x1267b1887f0a7333a47bb0a37e68c04a8ee80a44
Navigate to the HelloWorld smart contract address in the KCC Testnet explorer
Find the Code sub-tab and click on Verify & Publish
Choose the via flattened source code
and continue to the Next
Naming the smart contract
Select the appropriate compiler version
Copy and paste the flattened source code
Click Verify & Publish.
KCC Testnet will take a few seconds to compile your contract, verify, and publish it.
Standard input json is basically the raw file fed into the Solidity compiler on verification. There are some minor updates made regarding info the output compiler should return, but the main contract-related fields remain the same. This way, standard json allows you to specify the most subtle compiler settings, as well as to specify all source files.
It is quite cumbersome and tedious work, so it is preferable to use any of the above methods, however, we describe the process in more detail for those who want to use it.
For this tutorial, we will create standard json for the following contract:
1) We will use a COMPILERINPUT
file generated by the compiler. You can find it in the “Compilation Details” tab (ensure that correct contract is chosen).
Create a JSON file locally and paste the copied content into the JSON file.
2) Submit composed standard json for verification “Via Standard Input JSON
” and check results.
Import the local JSON file.