Source Code Verification

Ensure the authenticity and security of your smart contracts with Chainlens Blockchain Explorer's verification services

Chainlens block explorer provides a source code verification feature that allows deployed contracts on blockchain networks to be verified and interacted with via the Chainlens user interface.

Video Walkthrough

The below video demonstrates how to upload smart contract source code and interact with the smart contracts from within Chainlens.

Prerequisites

  1. You should have a smart contract written in Solidity, compiled, and deployed to your preferred EVM-compatible network. You should be able to locate the contract in Chainlens using the contract's address.
  2. You have the compiled source code and metadata. Read more about contract metadata.

Getting the Contract Metadata

  1. Using solc --metadata command as explained in the solidity documentation.
  2. The contracts metadata can be found in the artifacts/build-info/ directory as a .json file for hardhat projects.
  3. Truffle adds the contract's compiled files in the build/contracts/ folder.

Source Code Verification

On the view of the contract in Chainlens click on the Source Code tab.

Chainlens EVM Explorer Contract Details
Contract Details View

From the Source Code tab, upload the contract's solidity source code and the generated metadata.

Chainlens EVM Explorer Source Code Tab
Source Code Tab

The source code verification status will be changed, and the contract's source codes and ABI will be visible after successful verification.

Chainlens EVM Explorer Verification Badge for verified contract
Verification Badge for verified contract
Chainlens EVM Explorer Deployed bytecode
Deployed bytecode
Chainlens EVM Explorer Verified contract source code
Verified Contract Source Code

Frequently asked questions

What is a Blockchain Explorer as a Service?

A Blockchain Explorer as a Service (EaaS) provides a fully managed blockchain explorer for your network and its users, without the need for local infrastructure setup.

How does Chainlens benefit developers working on EVM blockchains?

Chainlens enhances productivity for developers allowing them to see on-chain activity associated with their contracts. with advanced tools for data analysis, contract testing, and seamless integration with existing EVM and Ethereum standards.

What kind of blockchain data and insights can I access through Chainlens?

Chainlens provides a number of types of data —enriched blockchain data on on-chain asset such as NFTs and tokens as well as user balances associated with them. It also provides decoded smart contract data and metadata associated with NFTs. Raw blockchain data such as block information and transaction details are also included. Comprehensive analytical data is also collected for many types of data.

Can Chainlens help me track my NFTs on EVM blockchains?

Yes, Chainlens provides comprehensive NFT support, allowing you to view NFTs that are contained within specific wallets, or browse entire collections on EVM blockchains. It also provides a breakdown of attributes associated with specific NFTs.

Does Chainlens offer any analytics or reporting capabilities?

Chainlens includes comprehensive analytics and reporting features that provide deep insights into both historical and current blockchain activity and trends for networks.

What kind of documentation and support is available for Chainlens?

Chainlens offers detailed documentation and responsive customer support to assist users with issues when they occur.

Can Chainlens scale to meet the needs of large or high-traffic networks?

Yes, Chainlens is designed to scale efficiently as networks grow, both in terms of handling greater volumes of user traffic, as well as supporting large volumes of network transactions.

Does Chainlens stay updated with the latest network developments and updates?

Chainlens continually updates its services to cater for upgrades and enhancements made to network protocols. 

What features and tools does Chainlens offer?

Chainlens offers customizable branding, powerful search, sleek dashboards, a complete API for integrations, and great support for NFTs and tokens. It also provides high-quality decoded blockchain data for network operators, developers and end-users.

Is Chainlens compatible with existing Ethereum tools and standards?

Yes, Chainlens supports the EIP-3091 standard for block explorer API allowing it to seamlessly  integrate with existing Ethereum tools such as wallets. It also supports contract verification via the Sourcify service.

How does Chainlens handle smart contract interaction and verification?

Chainlens supports direct interaction with verified contracts. Verified contracts are those that have been verified using the Sourcify service. This can be done directly from Chainlens when viewing the details of a smart contract or directly via the Sourcify service.

What are the advantages of using Chainlens over building my own blockchain exploration tools?

Using Chainlens saves time and resources so your team can focus on their core competencies. Using Chainlens managed service offers significant cost savings over running your explorer infrastructure yourself, offering a ready-to-use, scalable, and platform for blockchain exploration and analytics to serve both your team and community.

How easy is it to integrate Chainlens into my existing projects or workflows?

Integration is streamlined and user-friendly via Chainlens powerful API. which has extensive documentation to guide users through the process.

Are there any pricing plans or subscription options for Chainlens?

Chainlens provides flexible pricing plans tailored to the needs of different networks, from new networks with only a few thousand transactions up to large established networks with tens or hundreds of millions of transactions.

How secure and reliable is the infrastructure behind Chainlens?

Chainlens uses robust security measures and reliable cloud based infrastructure providers to ensure safe and uninterrupted service.

Can Chainlens assist with smart contract deployment and management?

The deployment process is usually driven by developers. However, Chainlens complements this by providing tools for verifying and working with deployed smart contracts efficiently.

Chainlens, trusted by over 1500+ users

Chainlens is a modern,
user-friendly and fast
EVM blockchain explorer

Chainlens Transaction CountTransaction countToken chartAccounts