🏟️ 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

Was this helpful?

  1. Quick Start
  2. Deploy and verify a contract

Deploy with Remix IDE

Last updated 2 months ago

Was this helpful?

is a no-setup tool with a GUI for developing smart contracts. Used by experts and beginners alike, Remix will get you going in no time.

Remix is available as , , and even . In this page, we will use the web-based version.

You can also use the .

Deploy a smart contract using Remix IDE

  1. Go to .

The Remix IDE opens in your browser.

  1. Remix IDE allows you to directly start working on an ERC20-compatible token. You can of course deploy your own smart contract through Remix IDE, but for the purpose of this tutorial, we'll stick to ERC20.

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

Click the "ERC20" button, right below the "Start Coding" button.

Once you click, Remix IDE loads a standard workspace with several folders and files that appear in the File Explorer on the left. Click in the /contracts/MyToken.sol to display this:

As you can, see MyToken.sol smart contract already imports the ERC20.sol and the ERC20Permet.sol smart contracts.

Open the .deps/npm/@openzeppelin/contracts/token/ERC20/ERC20.sol file. This is the ERC20 contract provided by OpenZeppelin.

You can customise the MyToken.sol smart contract right from Remix IDE (starting with a name and symbol), in order to fit your idea of a token for Chiliz Chain. You should also rename the file itself.

  1. Click "Compile" (the green arrow)

If there are no mistakes in your changes, Remix IDE should display a green checkmark in the "Solidity Compiler" menu on the left:

  1. Open the "Deploy & run transactions" section.

  • Select "Injected Provider - MetaMask" in the "Environment" dropdown menu in order to link your MetaMask account.

  • Make sure that your contract is selected

  • Click "Deploy".

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

  1. Your MetaMask wallet should open automatically.

8. Click "Confirm" to link your MetaMask Wallet with your token's smart contract.

You should receive a notification confirming the transaction within a few seconds.

10. In your MetaMask Wallet, under the "Activity" tab, you will see the contract deployment information. Click it to see all the information about it.

Your contract is now deployed on Chiliz Chain!

is an open-source platform for building secure dApps.

In addition to several security and auditing services, they provide , free for the community to use in their projects. development.

As such, OpenZeppelin contracts are considered industry standards, and you can safely use them. Remix IDE uses the here.

Optionally, you can view the deployed contract on the .

OpenZeppelin
a library of community-vetted smart contract
OpenZeppelin ERC20 contract
Chiliscan Block Explorer
Remix IDE
a web-based environment
a desktop program
a CLI tool
official Remix IDE documentation for creating and deploying a contract
https://remix.ethereum.org