Contract Verification
Guidelines for verifying smart contracts on MetaChain using the Metascan Explorer.
Verifying your smart contract allows others to see the source code of your deployed contract, ensuring transparency and trustworthiness.
Identify Compiler Version
Ensure you know the exact Solidity compiler version used. This can be found in your contract or Truffle configuration.
Verification
This step-by-step guide will walk you through the process of verifying your contract on MetaChain.
Step 1: Navigate to MetaChain's Verification Portal
Go to the MetaChain's contract verification portal (replace with the actual URL once known).
Step 2: Input Contract Details
Contract Address: The address where your contract is deployed.
Contract Name: The name of your main contract (e.g.,
MyContract
).Compiler Version: The version you identified in Step 3.
Optimization: Whether you used optimization during compilation.
Source Code: Paste your contract's source code (or the flattened version from Step 2).
Step 3: Verify
Click on the "Verify" button. If all details are correct, you should see a success message indicating that your contract is now verified.
Last updated