🏟️ BUIDL where legends play. Join our Hackathon at Parc des Princes, Paris – July 2025 •
Register Now
Chiliz Chain Developer Docs
Chiliz ChainBlock ExplorerCommunitySocios.com
English
English
  • Chiliz Chain developer docs
  • Quick Start
    • Chiliz Chain in a nutshell
    • Connect to Mainnet and Testnet
    • Deploy and verify a contract
      • Deploy with Remix IDE
      • Deploy with thirdweb
      • Verify with Chiliscan
      • Verify with Chiliz Block Explorer
    • Run a Chiliz Chain Node
    • Free online courses
    • Inflation Supply Allocation Addresses
    • Smart Contract Addresses
  • Learn
    • About Chiliz Chain
      • Tokenomics
      • Security Audits
      • Chiliz Labs
    • About Wallets
      • How to use MetaMask
        • Install MetaMask
        • Link Chiliz Chain to MetaMask
      • How to use a multisig wallet (Safe)
    • About Bridging
      • Using Dcentralab's Chainport
      • Using Chiliz Bridge
      • Bridging stablecoins
      • Making your project token bridgeable
    • About Staking
      • Stake your CHZ
      • Unstake your CHZ
      • Staking Rewards
      • Stake CHZ from your Ledger
      • Chiliz Staking FAQ
    • About Validators
      • Defining Validators and Delegators
      • Why Become a Validator
      • How to Become a Validator
      • Running a Validator node
      • How to Stop Being a Validator
      • About Validator slashing
    • About Fan Tokens
      • 2023 Migration of Fan Tokens to Chiliz Chain
    • About Stablecoins
      • Stablecoins on Chiliz Chain
    • Glossary
      • Blockchain
      • Consensus mechanisms
      • Governance
      • Validator
      • Staking
      • Wallet
      • CAP-20
      • Wrapped CHZ (wCHZ)
  • Develop
    • Basics
      • Connect to Chiliz Chain
        • Connect using RPC
        • Run a Chiliz Chain Node
        • Use a hardware wallet
      • Block Explorers
      • Testnet Faucet
        • Obtain testCHZs with Tatum Faucet
      • Use Wrapped CHZ
      • How-Tos
        • How to get the balance of a wallet
        • How to get the history of a wallet
        • How to get the metadata of a specific NFT
      • Tips & Tricks
    • Advanced
      • How to integrate Socios Wallet in your dApp
      • How to use Account Abstraction
      • How to get the USD price of Fan Tokens
      • How to generate random numbers
      • How to follow transfers of a Fan Token
      • How to create Telegram notifications for Fan Token transfers
      • How to estimate gas fees
    • Chiliz Chain API
    • Developers FAQ
  • Community
    • Chiliz Chain Ecosystem
      • Developer Tools
        • Ankr
        • Azuro
        • Biconomy
        • Blocknative
        • Hyperlane
        • Lumx
        • Moralis
        • Pyth
        • Reown
        • Rarible
        • Tatum
        • The Graph
        • Thirdweb
        • Web3Auth
      • Custody solutions
        • Cobo
        • Fireblocks
      • Wallets
        • Magic
        • Privy
    • Developers events
      • Chiliz Sports Hackathon - July 2024
        • Setting The Stage
        • Getting Started
        • Mission Brief & Key Dates
        • The Prize Money
        • Theme & Intro
        • Tracks, Requirements, Regulations & Scoring Criteria
        • The Process
        • Disclaimers
        • Useful information
      • ETHGlobal Bangkok Hackathon 2024
      • ETHGlobal Istanbul Hackathon 2023
      • ETHGlobal London Hackathon 2024
      • ETHGlobal Online Hackathon Summer 2024
      • Hacking Poland 2025
      • Lumx Hack powered by ETH Rio
  • Chiliz Chain Changelog
    • Governance Proposals & Decisions
      • February 2025: New validator proposals
      • December 2024: Governance Update Proposals
      • May 2024: Dragon 8 (Tokenomics 2.0) Proposal
      • 2024 Dragon8 hard fork announcement
    • Blockchain code changes
    • Outage reports
      • Details on the May 21st outage
  • Doc Updates
Powered by GitBook
On this page
  • Deploy a smart contract using thirdweb's Explore
  • Deploy a smart contract using thirdweb's CLI tool
  • Installing thirdweb CLI
  • Deploying a contract using thirdweb CLI

Was this helpful?

  1. Quick Start
  2. Deploy and verify a contract

Deploy with thirdweb

Last updated 1 month ago

Was this helpful?

provides tools, SDKs, and smart contract templates that simplify building and deploying blockchain apps.

Thirdweb provides their services for most EVM-based chains, including as well as .

There are two ways of deploying a contract to Chiliz Chain using thirdweb's tools:

  • Use their web-based Explore library, if you just want a standard contract.

  • Use their CLI-centric tool, if you want to deploy a custom contract.

We'll explore both here.

Note: The thirdweb team built a great video about this very topic:

Deploy a smart contract using thirdweb's Explore

  1. Click the "Token" contract.

Chiliz's Fan Tokens are CAP20 tokens, which are a Chiliz Chain-specific extension of the Ethereum ERC20 token standard.

The contract page opens. We advise you to fully read the information it displays.

  1. Click the "Deploy Now" button (top right of the screen).

A form opens:

  1. Fill in the various form fields, starting with the "Contract Metadata" section.

The rest of the sections can be left to be auto-filled by Explore, but we advise you to pay attention to each, most importantly:

  • Recipient address: If you are logged with your wallet (such as MetaMask), this field should already display your wallet's address. Make sure it is indeed yours!

  • Deploy options: This is where you choose the chain where you want to deploy this contract. Make sure to choose Chiliz Chain (or Spicy Testnet, depending on your need)!

  1. Click on "Deploy Now" to deploy your own Token on Chiliz Chain.

Make sure to have enough CHZ on your wallet to pay for transactions!

You will have transactions to sign from your wallet, the number of which can vary.

  1. Click on "View Now" to access your thirdweb dashboard and see the deployed contract.

Deploy a smart contract using thirdweb's CLI tool

thirdweb's deploy tool simplifies smart contract deployment to any EVM chain (including Chiliz Chain) with a single command, handling complex technical details automatically.

Installing thirdweb CLI

To use the thirdweb deploy tool, you need:

  • a local installation of Node.js and its npm tool.

  • a local installation of the thirdweb CLI tool.

Then you can install thirdweb CLI by running the following command in the terminal:

npm i -g @thirdweb-dev/cli

Deploying a contract using thirdweb CLI

Once you have installed the CLI, you can use it to deploy your smart contracts.

  1. From the terminal, navigate to the root of your smart contract repository.

  2. Run the deploy command:

npx thirdweb deploy

This will then guide you through the process of deploying your contract:

  1. It will connect to your thirdweb dashboard by opening a browser window.

  2. From the dashboard, you will need to authorize your device. This will require you to sign a transaction using the wallet that you use with thirdweb.

Check out the demo from the thirdweb team:

Thirdweb provides , a library of audited EVM smart contracts, along with an online tool that allows anyone to deploy a standard contract to any EVM chain.

You can also rely on .

Go to .

This is the recommended way if you want to use a non-standard contract (for instance, ).

You can also rely on .

To install Node.js and npm, .

The thirdweb team has created a , which you should definitly check out!

Explore
the official thirdweb documentation for their Explore library
thirdweb Explore
a customized OpenZeppelin contract
the official thirdweb documentation for their deployment tools
follow the instructions here
deep-dive video for thirdweb CLI
Thirdweb
Chiliz Chain Mainnet
Spicy Testnet