Deploy & Mint a Token | Celo Documentation (2024)

How to deploy a token contract that use the ERC20 token standard to Celo without writing code.

Getting Started

In this tutorial, we will go over how to deploy an ERC20 token contract. The process is very similar for deploying other tokens as well.

  1. Install Metamask.
  2. Add the Celo network to Metamask. We suggest adding the Alfajores testnet to Metamask as well, so you can test contract deployments before deploying to mainnet.
  3. Add a small amount of CELO to your Metamask account. In this example, we will deploy to the Alfajores testnet, so we need Alfajores CELO, which you can get from the faucet here.
  4. Go to the Open Zeppelin Contracts Wizard.
  5. Select ERC20 as the type of contract that you would like to deploy.

Deploy & Mint a Token | Celo Documentation (1)

  1. Name your token. We are calling our token “ProsperityToken” in this example.
  2. Select the features for your token. We are making ProsperityToken mintable, burnable and enabling snapshots, so the token may be used for governance. We are also making the contract Ownable, so the deployer of the contract can mint new tokens and distribute them as desired. Ideally, the owner account will be a multi-signature contract, so no single person has control over this token contract.If you want the block explorer to recognize your token then leave "Upgradeability" unchecked and do not select one of the two radio options below it. Selecting one of these options will prevent the Celo block explorer from recognizing your deployed contract as a token. If you want upgradability and do not care about the block explorer, feel free to make your token contract upgradable.

Deploy & Mint a Token | Celo Documentation (2)

  1. Open your contract in Remix by clicking “Open in Remix”. Remix will pop open with the contract code already filled in.
  2. Click the big blue button that says “Compile contract-xxxxx.sol”. The contract should compile without error.

Deploy & Mint a Token | Celo Documentation (3)

  1. Click the Ethereum logo in the left sidebar. This will bring up a new interface for deploying the contract.

Deploy & Mint a Token | Celo Documentation (4)

  1. In the “Environment” section on the top left, select “Injected Web3”. This will connect Remix to Metamask. Now clicking the “deploy” button will deploy the contracts to whichever network Metamask is connected to. You should see a small textbox indicating that Remix is connected to a custom network. The Alfajores network id is 44787.

Deploy & Mint a Token | Celo Documentation (5)

  1. In the Contract dropdown, select the contract that you want to deploy. In this example, it is called ProsperityToken.

Deploy & Mint a Token | Celo Documentation (6)

  1. Click Deploy. Metamask should pop open.

Deploy & Mint a Token | Celo Documentation (7)

  1. Click Confirm. Once the transaction confirms (less than 5 seconds), a contract interface will appear in the bottom left, and transaction details will appear in the console at the bottom.

Deploy & Mint a Token | Celo Documentation (8)

That’s it! We now have ProsperityToken deployed on Alfajores with the Metamask account as the contract owner.

You can see the contract information on the Alfajores block explorer. Copy and paste the contract address or deployment transaction hash from the console output and paste it into the block explorer search bar or look up the deployment transaction info in the Metamask activity.

Deploying your token on the Mainnet

When you're ready to deploy your token to the Celo Mainnet make sure to change the network of your connected wallet from Alfajores to the Celo Mainnet. Once you have done this you can simply redeploy the contract (you will not need to recompile it).

Note: When deploying to the Mainnet you will need to use real Celo to pay the gas fee (as opposed to using the faucet on the testnet). As of December 2021 this cost is less than $0.01 US. You can learn how to get Celo here.

Verify

If you are unable to view your token on the block explorer, you may need to Verify it first. If you are able to see your token, you may skip this section.

Verifying your contract with Remix is straight-forward and allows anyone to read and interact with the contract on the block explorer. You can read more about verifying a contract with Remix on this page.

You can find my example contract here.

Let me know what you end up building and reach out if you have any questions, @critesjosh_ on Twitter or joshc#0001 on Discord. Join the Celo discord at https://chat.celo.org.

Deploy & Mint a Token | Celo Documentation (2024)
Top Articles
BNB Price Prediction 2023, 2024, 2025 to 2030: Can BNB reach 1000USD? - Crypto Bulls Club
These 3 Cryptos May Explode In The Year 2023; Here’s The List
Automated refuse, recycling for most residences; schedule announced | Lehigh Valley Press
Wisconsin Women's Volleyball Team Leaked Pictures
Kobold Beast Tribe Guide and Rewards
THE 10 BEST Women's Retreats in Germany for September 2024
America Cuevas Desnuda
Doublelist Paducah Ky
Mail Healthcare Uiowa
10000 Divided By 5
Here's how eating according to your blood type could help you keep healthy
How to Watch Braves vs. Dodgers: TV Channel & Live Stream - September 15
Nonuclub
Mary Kay Lipstick Conversion Chart PDF Form - FormsPal
Missed Connections Dayton Ohio
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
Daily Voice Tarrytown
Mission Impossible 7 Showtimes Near Marcus Parkwood Cinema
Bank Of America Financial Center Irvington Photos
Craigslist West Valley
Where Is The Nearest Popeyes
Ein Blutbad wie kein anderes: Evil Dead Rise ist der Horrorfilm des Jahres
Juicy Deal D-Art
Bekijk ons gevarieerde aanbod occasions in Oss.
What Are The Symptoms Of A Bad Solenoid Pack E4od?
Construction Management Jumpstart 3Rd Edition Pdf Free Download
Rs3 Ushabti
Makemv Splunk
Gen 50 Kjv
Cosas Aesthetic Para Decorar Tu Cuarto Para Imprimir
Biografie - Geertjan Lassche
Generator Supercenter Heartland
Greyson Alexander Thorn
Grove City Craigslist Pets
134 Paige St. Owego Ny
Whas Golf Card
Cross-Border Share Swaps Made Easier Through Amendments to India’s Foreign Exchange Regulations - Transatlantic Law International
Ishow Speed Dick Leak
Myql Loan Login
Smith And Wesson Nra Instructor Discount
Pay Entergy Bill
Miracle Shoes Ff6
Craigslist Boats Dallas
Great Clips Virginia Center Commons
VPN Free - Betternet Unlimited VPN Proxy - Chrome Web Store
Autozone Battery Hold Down
Victoria Vesce Playboy
Hampton Inn Corbin Ky Bed Bugs
Tommy Gold Lpsg
Hkx File Compatibility Check Skyrim/Sse
Varsity Competition Results 2022
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6234

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.