This document outlines the process of verifying a Smart Contract deployed on any Avalanche L1 using the official explorer.
-
Compile the smart contract using the tooling of your choice.
-
Deploy the compiled smart contract to an L1 on Avalanche Mainnet or Testnet.
-
Upon successful deployment, you will receive:
- A transaction hash
- A contract address
- Navigate to the official Explorer for Mainnet or Testnet and click on Tools dropdown menu to select Smart Contract Verification interface.
- Prepare the following files:
- The contract's Solidity file (
.sol
) - The
metadata.json
file containing the ABI and metadata
- The contract's Solidity file (
- Upload the required files:
- Upload the contract's Solidity file
- Upload the
metadata.json
file
- 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
- Initiate verification:
-
- Click on the Submit Contract button to start the verification process.
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.