Foundry
Learn how to verify smart contracts on the Filecoin network using Foundry with various verification services including Blockscout, Sourcify, and Filfox.
This guide shows you how to verify your smart contracts using Foundry on the Filecoin network.
Prerequisites
A Foundry project set up for Filecoin development
If you don't have a Foundry project, check out the FEVM Foundry Kit
A deployed contract address
Contract constructor arguments (if any)
Verification Methods
Blockscout Verification
Blockscout is a popular blockchain explorer that supports contract verification.
Verify on Calibration Testnet:
forge verify-contract \
--verifier blockscout \
--verifier-url 'https://filecoin-testnet.blockscout.com/api/' \
--force \
--skip-is-verified-check \
0xYourContractAddress \
src/MyContract.sol:MyContractVerify on Filecoin Mainnet:
Sourcify Verification
Sourceify provides decentralized contract verification.
Verify on Filecoin Mainnet:
Verify on Calibration Testnet:
For more information, see the Sourcify documentation.
Filfox Verification
Filfox is the native Filecoin explorer with dedicated verification support.
Installation:
Usage:
Examples:
For detailed information, see the @fil-b/filfox-verifier documentation.
Last updated
Was this helpful?