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.
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)
- 1.Open Remix.
- 2.In the File Explorer sidebar tab, under contracts, right click on the contract you want to verify.
- 3.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. - 4.Ensure that the license and Solidity version in the flattened contract is the same as in your original contract.
- 5.Click Save.
- 6.Right click on
<contract-name>_flattened.sol
. - 7.In the menu, click Download to save the file.
- 8.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
- 9.
- 10.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
- 11.Click Continue.
- 12.Click *Select .sol files.
- 13.Select your flattened
.sol
file. - 14.Click Verify and Publish.Success! Your contract is now verified.
- 15.To view your verified contract:
- 1.
- 2.Scroll down the contract page and select the Contract tab.A Contract Source Code Verified banner is displayed, along with contract information and source code. You can also view other verified contracts on Filfox.
Last modified 1mo ago