Skip to main content
Verifying a smart contract allows developers to review your code from within the CeloScan Block Explorer
If you use Celo Composer all the configuration is done for you out of the box, all you need is the CeloScan API keys!

Prerequisites

Before the installation steps you need to have your hardhat project initialized using the command
Make sure to have dependencies installed and the hardhat config file is importing @nomicfoundation/hardhat-toolbox

Hardhat Configuration

Use environment variables for secrets. Install dotenv, create a .env, and load it at the top of hardhat.config.js.
Then add the following configuration to the config object in hardhat.config.js.

Verifying Contracts

Use the following command (Make sure your contracts are compiled before verification) Celo Sepolia Testnet
Celo Mainnet