Verify a contract
This page lists various Filecoin Ethereum Virtual Machine (FEVM) explorers with verification tools, and provides a tutorial on how to verify a contract using Filfox.
Last updated
This page lists various Filecoin Ethereum Virtual Machine (FEVM) explorers with verification tools, and provides a tutorial on how to verify a contract using Filfox.
Last updated
The following FEVM-compatible chain explorers offer contract verification tools. For more information, click the appropriate link below.
The following guide walks you through the process of contract verification using the Filfox explorer.
A smart contract (.sol
file)
Open Remix:
In the File Explorer sidebar tab, under contracts, right click on the contract you want to verify.
From the menu, select generate UML to flatten the <contract-name>.sol
file and ensure that all components and tasks are included.
A new contract with the name <contract-name>_flattened.sol
is generated below your original contract.
Ensure that the license and Solidity version in the flattened contract is the same as in your original contract.
Click Save.
Right click on <contract-name>_flattened.sol
.
In the menu, click Download to save the file.
Note the following information, as you will need it later:
The address of your deployed contract
The contract license type (if any)
The Solidity compiler version
Navigate to Filfox.
In the form, enter the information noted previously for the deployed contract you would like to verify:
The address
The license type
The compiler version
Click Continue.
Click *Select .sol files.
Select your flattened .sol
file.
Click Verify and Publish.
![](../../.gitbook/assets/smart-contracts-developing-contracts-verify-a-contract-verify-and -publish.jpg)
To view your verified contract:
Enter the address of the contract in the Filfox search bar.