How To Tutorials
Verifying NFT Contracts
Using Sourcify
11min
Sourcify is a Solidity source code and metadata verification tool and repository that works to verify smart contracts for the Palm network.
- Drag and drop the folder containing your source files and metadata, or add them separately. See below to help you find the correct files generated by Using Sourcify or Using Sourcify
- Input the contract address you want to verify. If a contract at that address is verified in any of the chains it will be shown above.
- Select the chain the contract is deployed to.
- Click Verify.
If you are using Hardhat to deploy your smart contracts you can verify in two ways:
- Drag and drop the .json file found in the artifacts > build-info folder.
- Select the main contract deployed at the address you want to verify.
- Input the address and chain and click "Verify".
Hardhat-deploy allows you to write deploy scripts and has other features geared towards a better developer experience.
- Follow along this Using Hardhat to correctly install the prerequisites needed to use the sourcify task via the CLI.
If you are using Truffle to deploy your smart contracts you can verify in two ways:
- Use the output file at build/contracts/<contract-name>.json for the metadata file.
- Add the source files.
- Select the main contract deployed at the address you want to verify.
- Input the address and chain and click "Verify".
Truffle-Plugin-Verify allows you to automatically verify your contracts' source code straight from the CLI.
- Follow along this Using Truffle to correctly install and add the plugin to your configuration file needed to verify via the CLI.
Updated 25 Mar 2024
Did this page help you?