Deploy and verify a contract

Prerequisites

  1. This documentation assumes you have already installed MetaMask on your system. If not, please install MetaMask first, either the web-based extension or the mobile app.

  2. For your convenience, pin 📍 the MetaMask extension to your preferred browser.

Building a smart contract is an essential part of the creative project that leads to a dApp for Chiliz Chain — or any blockchain, really.

There are two steps that you must go through once you have built your dApp's smart contract:

  1. Deploying the contract on Chiliz Chain.

  2. Verifying that contract.

These two steps are documented here.

Step 1: Deploy your smart contract

You can use either of these options:

Deploy with Remix IDEDeploy with thirdweb

Step 2: Verify your smart contract

Verifying a smart contract allows you to confirm that the contract's source code corresponds to a specific contract address on the blockchain. This is crucial for transparency and trust, especially in the decentralized world of blockchain.

Once you have deployed your smart contract on Chiliz Chain, you can verify it by using a block explorer, such as Chiliscan (by Routescan) or Chiliz Block Explorer (by Blockscout).

Here are guides for each:

Verify with ChiliscanVerify with Chiliz Block Explorer

Once your contract is verified, it will receive a "green dot" on the block explorer interface, indicating that your contract can be trusted.

Chiliscan example
Chiliz Block Explorer example

See for instance the PSG Fan Token contract:

PSG Fan Token on Chiliscan
PSG Fan Token on Chiliz Block Explorer

Last updated

Was this helpful?