Verified contracts create trust and transparency by providing users with the source code of the smart contracts they are interacting with. It gives users the opportunity to audit the code and verify that it works the way they expect it to.
Source code verification works by compiling contracts to generate bytecode and then matching that with the bytecode stored on the blockchain.
1. To verify the contract, visit https://subnets.avax.network/tools/verify-contract, and enter the chain and address of the contract
2. Now upload the contract's metadata file and any necessary source files below. Avalanche® uses Sourcify to compile and verify contracts behind the scenes.
On Avalanche Explorer, verified contracts will have a verified icon.
Note: A verified contract does not certify the security, performance, or integrity of the smart contract. Nor is it an endorsement of the contract or its owner.
Users will also be able to easily view information about the contract on the contract’s address page. Information such as the contract's name, source code, and ABI information will be available to the user in a readable format.
On Avalanche Explorer, unverified contracts will have their contract byte code displayed for users to access. Only when the user uploaded contract info is submitted for automatic verification will the source code be displayed to users.