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
EisnerAmper - Federal Reporting Rules for Cash Transactions in Excess of $10,000
HOW TO CASH OUT IN GCASH? 3 Easy Ways to Withdraw Money from your GCASH Account
탱글다희 Fantrie
Lincoln Access Rewards Redemption
Dtlr Duke St
Beau Burns Gofundme
1968 Subaru Invader Gt
Number One Buffet Ravenna
Western Razor David Angelo Net Worth
Hmr Properties
Https://Cbdwarehousestore.com/Product-Category/Liquid-Herbal-Incense/
Senior Finance Manager - Commercial International » London, Greater London
Santana Redd Farting
Wilmington Pets Craigslist
Magicseaweed Capitola
Blak Stellenanzeigen
Europa Universalis 4: Army Composition Guide
Engr 2300 Osu
Caldwell Idaho Craigslist
Movie Tavern Suwanee Menu
Wlfi Delays
Top 10 Things To Do in Meridian, Mississippi - Trips To Discover
Citymd West 146Th Urgent Care - Nyc Photos
Peoria | Illinois, Map, Population, & History
Henkels And Mccoy Pay Portal
Scooter Tramps And Beer
Norton Immediate Care Brownsboro
Craigslist Pets Gainesville Fl
Creating a Numerical Table from Two Functions (TABLE)
Craigslist Ct Apartments For Rent
Newsday Crossword Puzzle Brains Only
Crytek director says Hunt: Showdown's big August update represents 'a significant relaunch of Hunt: Showdown at a whole new level'
Preventice Learnworlds
2Nd Chance Apartments In Richmond Va
Xxn Abbreviation List 2023
Hope anchors the soul Zipper Pouch | CafePress
N-central Features and functionality
First Financial Credit Union In Rio Rancho
Super Vote Top Wish Trisha Yearwood’s Birthday Tour Hit On Country Jams Songs For Her Music
Craigslist Free Stuff Chula Vista
Zelda Tears Of The Kingdom Nsp Download
Bailu Game8
Young & Restless Dirty Laundry
Mnps Payroll Calendar 2022-23
Gran Turismo Showtimes Near Century Rio 24 And Xd
Tamusso
Shaughnessy Funeral Fairfield Ct
The City & Borough of Sitka Alaska
Craigslist St. Paul
ROG Falchion Ace HFX | Gaming keyboards|ROG - Republic of Gamers|ROG USA
R/Clashroyale
Litter Robot Pinch Fault
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.