All Collections
Building on Avalanche
Developer FAQ
How do I verify a contract's Source Code?
How do I verify a contract's Source Code?
H avatar
Written by H
Updated over a week ago

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.

Verified Contracts

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.

Unverified Contracts

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.


For any additional questions, please visit our knowledge base or contact a support team member via the chat button at support.avax.network.

Did this answer your question?