Explorer | Testnet | Mainnet |
---|---|---|
blastscan.io | no | yes |
blastexplorer.io | no | no |
forge
requires a value for the --etherscan-api-key
option even in cases where a valid API key is not required. Just use a placeholder here.apiUrl
specified in config; in Foundry, this is the --verifier-url
you’ll need to provide in your forge command:
blastscan | |
---|---|
Testnet | https://api-sepolia.blastscan.io/api |
Mainnet | https://api.blastscan.io/api |
blastexplorer | |
---|---|
Testnet | https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan |
Mainnet | https://api.routescan.io/v2/network/mainnet/evm/81457/etherscan |
forge script
or to verify an existing deployment with forge verify-contract
.
hardhat-ignition-ethers
or hardhat-verify
, successful verification in Hardhat is primarily a matter of setting up your hardhat.config.ts
or hardhat.config.js
file correctly.
You’ll need to configure the networks
and etherscan
properties as demonstrated below. In order to specify the correct verification endpoint from the table above, you will also need to configure the etherscan.customChains
property.