Skip to main content

Verifying Contracts - UI

Updated over a month ago

Manual Verification using Routescan UI

Verification is available for both Solidity and Vyper smart contracts. Our platform supports the UI verification process for contracts written in these two popular programming languages, allowing developers to publicly validate their deployed code. This ensures transparency and builds trust with users by confirming that the onchain bytecode matches the source code.

Access the Verification Tool

  • Head to the Routescan Contract Verification Tool. Alternatively, access it from the Routescan homepage, click the ‘Developers’ dropdown and select ‘Verify Contract’, or visit your contract page and click ‘Verify and Publish’ in the Contract tab.

  • Select your blockchain.

  • Insert your Contract Address (e.g., 0x123...).

  • Choose verification method.

    Choose verification method on Routescan
  • Solidity (Flattened source code).

  • Vyper (Contract).

ℹ️ Important note: For multi-file contracts, ensure your code has been flattened using tools like Remix, Hardhat or Foundry before uploading.

Solidity

Solidity Contract verification on Routescan
  • Compiler Version. Select the precise version used during initial contract deployment (e.g.,v0.8.30+commit.73712a01).

  • Optimization Settings. Toggle ‘Optimized’ if you enabled optimization and specify the number of runs (e.g., 200).

  • EVM Version. Choose the specific EVM version used during deployment, otherwise leave it as the default setting.

  • Upload your source code. Simply drag your source code into the box or click 'browse' to locate it on your computer.

  • Contract Name. You can leave this field empty. Routescan will automatically detect and populate it with your contract name from the provided source code. Make sure the ‘Contract Name field’ and contract file name match.

  • Submit for Verification. Click ‘Verify Contract’. Routescan will verify it against existing onchain bytecode.

Vyper

Vyper Contract verification on Routescan
  • Compiler Version. Select the precise version used during initial contract deployment (e.g.,v0.4.3).

  • Source. Specify how your source code is formatted (e.g., JSON, Vyper Archive).

  • EVM Version. Choose the specific EVM version used during deployment, otherwise leave it as the default setting.

  • Optimization Settings. Select from the dropdown how your contract was optimized during compilation (e.g., for Gas efficiency, or Codesize).

  • Upload your source code. Simply drag your source code into the box or click 'browse' to locate it on your computer.

  • Contract Name. Leave this field empty to let Routescan automatically detect the contract name from your source code. If you choose to enter the name manually, ensure it matches the name of your contract file precisely.

  • Submit for Verification. Click ‘Verify Contract‘. Routescan will verify it against existing onchain bytecode.

Confirmation

If successful, your contract will be clearly labeled as ‘Verified’, with its source code visible and all interactive features enabled.

Verified contract on Routescan, exact match

If any errors occur, the Routescan UI will display corresponding error message to guide you.

Contract Verification error on Routescan

For help with troubleshooting, best practices, or additional support, check out Smart Contract Verification article.

Did this answer your question?