Learn how you can create a coin and start your own tokens (ICO) on Ethereum Blockchain!
In the world of cryptocurrency, smart contracts and blockchain projects are the trending topics now. But wait a minute, how familiar are you really with Initial Coin Offerings (ICOs)?
Well, Initial Coin Offerings have been all the craze as all of the cryptocurrency projects have raised billions of US Dollars in Ethereum (ETH), Bitcoin (BTC), and other cryptocurrencies as revenue. Most of the current ICOs are ERC-20 tokens; Ethereum Virtual Machine created these tokens which have a few hundred lines of code.
This is a standard that specifies how smart contract tokens should behave so that they can work well with other platforms. More so, the Ethereum platform permits you to create your own token which people can buy using Ethereum (also referred to as Ether), the traditional cryptocurrency of the Ethereum blockchain.
Ethereum is a blockchain, like Bitcoin, and it keeps records of account balances for people who own Ether. The Ethereum platform allows you to create your own token without creating a new blockchain. This means that you can create an Ethereum token using a smart contract.
Example: This illustrates how an ERC-20 token smart contract works.
Let’s say that we want to create a token by the name “Malcolm Token” with the ticker “MAL.” Additionally, there will be 100,000,000 of these tokens available.
The smart token contract will keep records of some basic token attributes such as recording the name “Malcolm Token.” It will also keep the ticker that you see on the cryptocurrency exchange and the total supply of the tokens available. Further, it records who owns Malcolm Token and how much they own.
So, just like any other cryptocurrency, ERC-20 tokens are transferable from one account to another as payment. People can buy these tokens in a crowd-sale just like an ICO. Equally, you can trade ERC-20 tokens on a cryptocurrency exchange that supports it, which all do.
Ethereum helps developers to write apps that run on blockchain with smart contracts. They assist in reading and writing data to the blockchain and execute code as well.
Smart contracts are actually written in a programming language. The name of that programming language is Solidity; it resembles Javascript. It is a complete programming language that allows the user to perform many tasks just as Javascript does. Though, it behaves a bit differently owing to its use case.
In relation to ERC-20 token, a smart contract regulates every aspect of the behavior about how the tokens work and record token ownership (as well as account balances).
ERC-20 is an API specification which specifies how they should build Ethereum tokens. This is a standard adopted by the cryptocurrency community which grants token support in a variety of use cases. Remember, our aim is to build a token that is compliant with this standard so that it is compatible with other tokens and receives global acceptance.
Applying the ERC-20 standard ensures that a token is compliant for the following use cases:
The ERC-20 standard dictates the interface that the smart contract must respond to, and specifies the structure of the smart contract, as well as the types of tasks the smart contracts must accomplish.
One of the popular ways of distributing ERC-20 tokens is by holding a crowd-sale, or initial coin offering. Crowd-sales are the avenues by which a company can raise capital for their business through the creation of their own ERC-20 token which investors can buy using Ether.
Whenever a crowd-sale happens, the company gets Ether as a liquid capital which the investors paid. The company also get a reserved amount of the ERC-20 tokens that they sold in the crowd sale.
An investor must connect to the Ethereum blockchain with an account for him/her to take part in a crowd-sale. The account has a wallet address that can store Ether and ERC-20 tokens that were actually bought in a crowd-sale.
The investor will have to visit a crowd-sale website which links to a smart contract, as the smart contract governs all the standards on how crowd sale works. The smart contract fixes the price of the token in the crowd-sale and regulates how the crowd-sale behaves.
Anytime an investor buys tokens on the crowd-sale website, they transfer Ether from their wallet to the smart contract. The smart contract immediately sends the purchased tokens to their wallet.
Crowd-sales have different sizes and shapes as well as many phases including Pre-ICO, ICO, and ICO bonus phases. Each of these phases can take place at different points in time and behave differently. They can have whitelists which serve to prevent certain investors from purchasing the tokens.
Since you have picked Ethereum to launch your ICO, the first step you need to take is to create a token. For those who are not tech-savvy, you can find the lists of the code you need to use on Ethereum’s website, www.ethereum.org. Download and run the wallet app, which is available for free download from the website above.
Click on “Deploy New Contract” and create a token. Pay attention to “Construction Parameters” where you can control how fast a block will be rightfully mined. Before you create a new contract, Ethereum will show you the cost of Ether required and the gas input needed.
So, here are the steps:
You don’t need to write all the code required in Solidity – Ethereum’s programming language. Just copy the code from the following repository: https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token.
Open https://remix.ethereum.org and make two files: SafeMath.sol and ERC20.sol, paste the above code into these two files respectively.
Now, you need to implement the functions we defined in our interface. For this reason, you will combine BasicToken.sol and StandardToken.sol from OpenZeppelin into a single file and call it StandardToken.sol.
What do these functions do?
balanceOf: This returns the balance of an Ethereum address.
Allowance: It checks how much an Ethereum address is truly allowed to spend on your behalf.
transferFrom: Shows the address to transfer from if that address allows you to spend some tokens.
Approve: It sets a number of tokens a specified Ethereum address can spend on your behalf.
Event Transfer and event Approval: This will key in an output event onto the blockchain.
Transfer: It transfers an amount to an address of your choice.
Great work! Congratulations for coming this far. That was the toughest part. The last step here is for you to specify a name, symbol or ticker, and supply for your token. You can just enter the parameters you want when creating the contract in the remix.
Following the create button, enter a name, symbol or thicker, number of decimals, and total supply in that order and press create.
That is it! You have successfully created your first token or ICO on the Ethereum blockchain. You can test the functions or workability by sending tokens to the addresses you will find in the drop-down menu which is next to “account” in the remix.
This is a rough guide to the steps involved in the creation of an ICO through the Ethereum blockchain. There are many resources online and on Ethereum’s website to guide you through the process. Use them all to ease your journey to your own token!
This article should not be taken as, and is not intended to provide, investment advice. Users are ultimately responsible for the investment decisions he/she/it makes based on this information. It is your responsibility to review, analyze and verify any content/information before relying on them. Trading is a highly risky activity. Do consult your financial adviser before making any decision. Please conduct your thorough research before investing in any cryptocurrency and read our full disclaimer.
Join our Telegram Group To Stay Up To Date With Crypto News
One of the top performing cryptocurrencies of the day is REPO. REPO (REPO) is currently up 72.75% compared to USD…
As the world is moving towards Blockchain, gaming giant Atari too wants to dip its toe into the emerging technology.…
Private equity firm GSR Capital has hired tZERO, an Overstock.com subsidiary, to develop digital token for trading cobalt. Overstock said…
On Monday, December 17th, Gulf News reported that the advisory council of the United Arab Emirates Banks Federation (UBF) can adopt blockchain use…
France's financial regulatory watchdog - Financial Market Regulator (AMF) is working aggressively to bring down unauthorized crypto companies. The AMF…
There's a flood of new stablecoins hitting the cryptocurrency space in the last few months. A stablecoin is basically a…