Verify with Chiliscan

Chiliscanarrow-up-right is a service built by Routescan. You can therefore rely on their documentationarrow-up-right for your everyday use.

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

  • For most contracts: using their verification form on Chiliscan

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

  • For easy contracts: using their API.

See Routescan's documentation on contract verificationarrow-up-right.

Using Chiliscan's verification form

Chiliscan provides a contract verification interface for Chiliz Mainnet at https://chiliscan.com/verifycontractarrow-up-right. It is also documented here: https://info.routescan.io/en/articles/11991234-verifying-contracts-uiarrow-up-right

circle-info

You can also verify contract on Spicy Testnet with this interface: https://testnet.chiliscan.com/verifycontractarrow-up-right

circle-info

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" field, insert the address of the smart contract that you want to verify. Depending on the situation, the tool can tell you that a contract doesn't exist yet on Chiliz Chain, or that it has already been verified. If it's neither, further interface elements are displayed.

  2. Click on "Import from Solidity", and fill the form correctly:

    1. Select "0.8.24+xxx" as the compiler version.

    2. Select "Shangai" as the EVM version.

    3. Upload your contract file.

  3. Click on "Verify Contract".

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.

If any errors occur, the interface will display a corresponding error message to guide you.

Using command-line tools

Routescan's own documentation features detailed guidesarrow-up-right 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 Routescan's API

Routescan has a dedicated contract API, which you can use to verify contracts:

If you are working with simpler smart contracts, a Routescan-provided guide is available on Paragraph.com. This guide walks you through the steps to prepare and verify contracts that do not require complex build processes.

Of note: it requires contracts to be flattened.

Last updated

Was this helpful?