contract MyToken { | |
/* This creates an array with all balances */ | |
mapping (address => uint256) public balanceOf; | |
} |
The phrase “mapping” stands for an associative array, which associates balances with addresses. All addresses are in hexadecimal format. “Public”, which is bolded, means that anyone will be able to see balance. After you add the line of code to the Solidity field, your screen should look like this.
However, this doesn’t mean that your cryptocurrency has actually been created. What you need to do now is add another line of code under line 4 in the Solidity code box as follows:
function MyToken() { | |
balanceOf[msg.sender] = 21000000; | |
} |
Your initial token supply will be 21 million. However, you can easily set this amount to anything you like. Let’s take a glance at the right side of the application. Click “Select Contract to Deploy” and a drop-down window will open. Click “MyToken.”
After following the aforementioned steps, you will have a smart contract that is linked to a token. However, you can’t move them yet. Let’s fix that by adding the following code below the last bracket in the Solidity field.
/* Send coins */ | |
function transfer(address _to, uint256 _value) { | |
/* Add and subtract new balances */ | |
balanceOf[msg.sender] -= _value; | |
balanceOf[_to] += _value; | |
} |
What we have here is relatively self-explanatory. We can send tokens and values will be subtracted or added where necessary. However, how do we handle people that want to send more than they possess? In order to stop a contract from executing itself under such conditions, we add another line of code to the Solidity box.
function transfer(address _to, uint256 _value) { | |
/* Check if sender has balance and for overflows */ | |
require(balanceOf[msg.sender] >= _value && balanceOf[_to] + _value >= balanceOf[_to]); | |
/* Add and subtract new balances */ | |
balanceOf[msg.sender] -= _value; | |
balanceOf[_to] += _value; | |
} |
We must now add some basic information into the Solidity field pertaining to our contract. Proceed like so:
/* Initializes contract with initial supply tokens to the creator of the contract */ | |
function MyToken(uint256 initialSupply, string tokenName, string tokenSymbol, uint8 decimalUnits) { | |
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens | |
name = tokenName; // Set the name for display purposes | |
symbol = tokenSymbol; // Set the symbol for display purposes | |
decimals = decimalUnits; // Amount of decimals for display purposes | |
} |
After we have gone through all of the steps mentioned above, we now need to create something known as “Events.” These are essentially empty functions that allow Ethereum wallets to monitor the activities of a contract. Remember that every event must start with a capital letter. In order to declare an event, the following code must be added:
event Transfer(address indexed from, address indexed to, uint256 value);
As well, within the “Transfer” function, add this:
/* Notify anyone listening that this transfer took place */
Transfer(msg.sender, _to, _value);
After you do this, your token is essentially good to go, all you have to do is deploy it.
Navigate over to the “contracts tab” and hit “deploy new contract.” Following this, copy and paste the token source found here. If there is an issue, Solidity will notify you. On the right side of the application you will see a few parameters such as _supply, _name, _symbol, _decimals, you can tweak and alter all of these to your liking.
After tweaking all of this, you can then set a fee for your token. You’re good to go and you can deploy your cryptocurrency. Check out the image to the right for more information. The password field will prompt you to enter the password that you set when you downloaded the wallet app.
Now you know how to make a cryptocurrency in practice, and you can even send it to your friends! All you have to do to make that happen is to navigate to the send tab, and send tokens to anybody you know. Of course, your tokens will not have any value because they aren’t yet tied to any product or service, which means that nobody will buy them and they won’t be listed on Coinmarketcap. However, understanding blockchain technology isn’t that hard, is it?
If you want to create a full-fledged cryptocurrency, it’s better to turn to the professionals.
How many cryptocurrencies exist?
According to Coinmarketcap, there are 18,000 cryptocurrencies on the market and the number is still growing.
While it is impossible to name the single best cryptocurrency on the market, below we have listed the most popular ones. They are all worth your attention.
This was the first cryptocurrency to be created. To this day, Bitcoin is still at the top of the game. Bitcoin has a 40% share of the total cryptocurrency market, and there is no indication that it will stop growing in the years to come. As of today, the market capitalization of Bitcoin accounts for $834 billion.
Ether matches Bitcoin in popularity and recognition. Launched in 2015, Ether has shown steady growth over the last few years with a market share of 11.022%. The underlying blockchain, Ethereum, is used by developers to create new tokens. The market capitalization of Ether constitutes $372 billion and continues to grow.
Tether is a stable coin meaning it is stabilized by fiat money including the US dollar and the Euro. In theory, it holds a value that would equal one of the currencies mentioned. As a result, Tether’s value is more consistent compared to other cryptocurrencies and investors who want to avoid high coin volatility favor the Tether coin. These days, Tether’s market capitalization has reached over $80 billion.
Litecoin (LTC) has been operating since 2011 and is among the best cryptocurrencies to follow, aside from Bitcoin. This cryptocurrency is based on an open-source payment network without central control and utilizes script as a PoW (proof-of-work). Despite the fact that Litecoin resembles Bitcoin in some ways, it has a quicker block generation rate. Thus, Litecoin confirms transactions faster, and more and more merchants are accepting the cryptocurrency. These days, Litecoin has a market capitalizationof over $8 billion.
This cryptocurrency was launched in 2017 for assisting trading on Binance, one of the key crypto exchanges globally. This version of cryptocurrency allows its users to trade and pay fees on Binance with a significant discount. These days, it can also be used for trading, payment, booking travel events, as well as exchanging other cryptocurrencies like Bitcoin or Ethereum. The market cap of Binance Coin is over $68 billion.
The information provided above indicates that blockchain and distinct types of creation on its basis remain one of the top technologies on the market.
Companies see value in the advantages that decentralized technologies offer: security, transparency, anonymity, and fast transactions. Businesses can’t stop thinking about how to create a cryptocurrency and utilize it in everyday business operations.
You can create a cryptocurrency to raise money for your project (ICO), to use in your applications, or both.
In either case, the process is comprised of various steps you should take. If you are not ready to take on the challenge, you need a qualified team to accompany you along this bumpy road.
If you are thinking about how to make your own cryptocurrency, we are sure that you would like to know how much it might cost as well. Let's find out.
The price of cryptocurrency creation depends on the specific needs of a project and whether you choose to create a new cryptocurrency from scratch or use an existing blockchain as the underlying technology. It is up to you to decide how to create a cryptocurrency.
Usually, the cost of cryptocurrency development includes the following expenses, but may vary greatly:
Stage | Time | Costs |
---|---|---|
Development | Varies from project to project (from 15 minutes to 5-6 months) | $1,000-$100,000+ |
External Audit (ICO Security Audit) | 30 days | $3,000-$10,000 |
White Paper and Documentation | 24-50 hours (1-2 weeks of full-time work) | $5,000 to $7,000 (~$500 per page) |
Promotion | 1 week - 30 days | $10,000 per week |
Coin Placement | 1-2 weeks | $5,000+ |
Technical issues are the hardest part of creating your own cryptocurrency. You can easily find tutorials on how to create your own cryptocurrency in 15 minutes or how to make a cryptocurrency without coding, but in reality, creating cryptocurrency is not easy. You need to have extensive experience in blockchain programming to accomplish the goal. Only qualified specialists have the knowledge and experience to walk you through this challenging task.
You need to have a solid purpose and goal in new cryptocurrency creation to stand out since there are over 18,000 cryptocurrencies while only 90 are popular and used widely. Still, there is also a way to improve some systems and resolve new issues that can be encountered with the help of blockchain technology and/or new cryptocurrency.
As well, you need to have extensive experience in blockchain programming to accomplish your goal. If not, you should hire qualified specialists who have the knowledge and experience to walk you through this challenging task.
Contact us and we will happily help you to decide how to create a cryptocurrency and assist you in this task.