Skip to content
This documentation is in beta, and we’re looking for feedback. See how you can contribute 🌟

Using Sourcify

Sourcify is a Solidity source code and metadata verification tool and repository that works to verify smart contracts for the Palm network.


🏁 Prerequisites

  1. You have a Deploy NFT Contracts on the Palm network written in Solidity, compiled and deployed.
  2. You have the contract source code and the metadata file which contains the compilation settings.

Using the Sourcify Verifier

  1. Go to the online verifier
  2. 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 Hardhat or Truffle
  3. 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.
  4. Select the chain the contract is deployed to.
  5. Click Verify.

With Hardhat

If you are using Hardhat to deploy your smart contracts you can verify in two ways:

Online

  1. Drag and drop the .json file found in the artifacts > build-info folder.
  2. Select the main contract deployed at the address you want to verify.
  3. Input the address and chain and click β€œVerify”.

Hardhat-Deploy Plugin

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.

With Truffle

If you are using Truffle to deploy your smart contracts you can verify in two ways:

Online

  1. Use the output file at build/contracts/<contract-name>.json for the metadata file.
  2. Add the source files.
  3. Select the main contract deployed at the address you want to verify.
  4. Input the address and chain and click β€œVerify”.

Truffle-Plugin-Verify

Truffle and its plugin, truffle-plugin-verify, have been discontinued. It is recommended to migrate to Hardhat or Foundry for smart contract development and verification.


🏁 Additional Resources