Verify with Chiliz Block Explorer

Chiliz Block Explorer is a service built by Blockscout. You can therefore rely on their documentation for your everyday use.

Blockscout provides several ways to verify your smart contract on Chiliz Chain:

  • For most contracts: using their verification feature.

  • For more complex contracts: using command-line tools, such as Hardhat.

  • For easy contracts: using their API.

See Blockscout's documentation on contract verification.

Using the Chiliz Block Explorer verification feature

Chiliz Block Explorer provides a contract verification interface for Chiliz Mainnet at https://scan.chiliz.com/contract-verification. It is also documented here: https://docs.blockscout.com/devs/verification/blockscout-ui

You can also verify contract on Spicy Testnet with this interface: https://spicy-explorer.chiliz.com/

For multi-file contracts, ensure your code has been flattened before uploading.

For instance, if you use Remix IDE, you can right click on your compiled contract-XYZ.sol contract file in the File Explorer, and choose the "Flatten" option. Then, download the resulting file (named contract-XYZ_flattened.sol in order to upload it to the verification form.

Steps:

  1. In the "Contract address to verify" field, insert the address of the smart contract.

  2. Select the license that you want to apply to your contract. Because it is not obvious what this means, here is a quick explainer on open-source licenses.

  1. Choose the verification method. The most simple method will be to provide a flattened version of your Solidity contract.

  2. Choose the compiler version (Chiliz Chain supports versions up to v0.8.24) and EVM version (Chiliz Chain supports versions up to the Shangai version).

  1. Finally, in "Contract Code" field, paste the smart contract code that you used to originally compile the smart contract, and click "Verify & publish".

If successful, your contract will be clearly labeled as verified, notably with a green check. The block explorer will make its source code visible and enable all interactive features.

Using command-line tools

Blockscout's own documentation features detailed guides on how to use command-line tools for verification. This is particularly useful if you're already want to automate contract verification in your development environment.

You can read their guides on deploying & verifying with:

Using Blockscout's API

Blockscout has a dedicated contract verification API:

The API endpoints are:

Last updated

Was this helpful?