Hardhat
Learn how to verify smart contracts on the Filecoin network using Hardhat with various verification services including Blockscout, Sourcify, and Filfox.
Prerequisites
Verification Methods
Blockscout Verification
const config: HardhatUserConfig = {
solidity: {
...
},
networks: {
filecoin: {
...
},
calibration: {
...
},
},
// Configuration for hardhat-verify plugin with Blockscout API
etherscan: {
apiKey: {
filecoin: "empty",
calibration: "empty",
},
customChains: [
{
network: "filecoin",
chainId: 314,
urls: {
apiURL: "https://filecoin.blockscout.com/api",
browserURL: "https://filecoin.blockscout.com",
},
},
{
network: "calibration",
chainId: 314159,
urls: {
apiURL: "https://filecoin-testnet.blockscout.com/api",
browserURL: "https://filecoin-testnet.blockscout.com",
},
},
],
}
};
export default config;Sourcify Verification
Filfox Verification
Last updated