Verify contract source code
1. Type of Contract Verification
Contract verification allows smart contract developers to prove and publish the source code of the contracts deployed on-chain.
There are 3 different types of contract verification on Aurascan.
An unverified contract tab show the contract creation code.
As the contract creator, you may choose Verify and Publish to verify your contract source code, if verifying successfully, contract will be updated to Exact Match.
A similar match verification is happened automatically when your contract creation code matches an existing contract that has been deployed and verified on Aurascan.
The contract code tab displays a yellow verified badge, along with the contract address it was matched to.
An Exact Match verification represents the exact contract code that was deployed.
The contract code tab displays a green verified badge, link and file contract source code and contract schema, as well as the ability to interact with it via our built-in Read/Write contract buttons.
2. How to verify contract source code
Step 1: Choose Verify and Publish button on Contract tab.
Step 2: Enter link Github source code, compiled wasm file name, compiler version of the contract and click Verify & Publish.
Step 3: Contract source code verification is pending. After verification is successful, contract tab will show compiler output and be updated to Exact Match.
Step 4: If verification is failed, contract tab show an unverified contract. If verification is successful, contract tab show an exact match contract.