How to verify a smart contract using the Explorer?

This document outlines the process of verifying a Smart Contract deployed on any Avalanche L1 using the official explorer.

Contract Deployment

  1. Compile the smart contract using the tooling of your choice.

  2. Deploy the compiled smart contract to an L1 on Avalanche Mainnet or Testnet.

  3. Upon successful deployment, you will receive:

    • A transaction hash
    • A contract address
Note: Ensure you save the contract address as it will be required for the verification process.

Contract Verification

  1. Navigate to the official Explorer for Mainnet or Testnet and click on Tools dropdown menu to select Smart Contract Verification interface. 

  2. Prepare the following files:
    • The contract's Solidity file (.sol)
    • The metadata.json file containing the ABI and metadata
  3. Upload the required files:
    • Upload the contract's Solidity file
    • Upload the metadata.json file
  4. Enter the contract address and select the L1 :
    • Paste the contract address obtained from the deployment step into the designated input field.
    • Pick the correct L1


  5. Initiate verification:
    • Click on the Submit Contract button to start the verification process.

Next Steps

After submitting the contract for verification, your request will be processed shortly and you will see the below message.


For any additional questions, please view our other knowledge base articles or contact a support team member via the chat button. Examples are for illustrative purposes only.