Create Your Own Cryptocurrency In 10 Minutes

Aykan Örsçelik
Aquamatis
Published in
6 min readJun 14, 2020

Creating A MetaMask Account

  1. Enter https://metamask.io in the address bar of the browser to navigate to the MetaMask site. Click the Download button.Use Google Chrome for this.

2. Click the Install MetaMask for Chrome button to add the Chrome extension, which will take you to the Extensions page for Google Chrome.

Once you have added the extension, the setup page for MetaMask will display

3. Click CREATE A WALLET button

4. Click NO THANKS button in the next page

5. Create a password and select the checkbox that says, “I have read and agree to the Terms of Use”, and then click the CREATE button.

6. The Secret Backup Phrase screen displays. The backup phrase will validate your identity if you forget your password, as there is no central entity that can reset your password. You will need to keep these words saved somewhere. Click the shaded area to reveal the words and save them in the order they occur on your computer. Take a photo of the page, you will need this in the upcoming pages.

7. Click all the secret words in the order they were given to you to add them into the box and click the CONFIRM button.

8. Once you have done this, you will have MetaMask installed as your Chrome extension. Click the ALL DONE button.

Getting Ether

1.In the top-right corner, you can see you are currently connected to the Main Ethereum Network. This is the network where you can trade real ether. You also have access to the test networks where you can use fake ether (for free) to interact with a sister network.

Select Rinkeby Test Network from the Networks drop-down menu.This is the most commonly used network for testing whether an ether has been transferred successfully.

2.Click the Deposit button.

3.Click Get Ether button.

4.This will open the rinkeby.io webpage,which has all the information about the Rinkeby Test Network. Click the Crypto Faucet icon on the left panel.

5.Now turn back to MetaMask and copy your public address

6.Then you need to login to Twitter. You can make a fake account just for this purpose or use your own personal account. Later on, you may delete the tweet after this process completes). Create a tweet with the address and copy the URL link of that tweet by right-clicking it and selecting Copy link to Tweet.

7.Paste the link of your tweet to the Rinkeby Authenticated Faucet page,and then select the 18.75 Ethers/3 days from the Give me Ether drop-down list.

8.After a few minutes check your MetaMask account and you will see the funds deposited.

Access the Remix Website

  1. Enter https://remix.ethereum.org in the address bar of the browser to navigate to the Remix site. In the opening page, click the USE PREVIOUS VERSION button

2. If this is the first time you are visiting this site, you will be greeted with an existing smart contract called ballot.sol. You can close this with clicking the X button next to the file.

Creating Cryptocurrency

  1. Click the + sign inside the circle on the top-left of the window to create a new file.

2. Type a name, in this example I will use AQUAMATIS you may call this anything that you want your cryptocurrency to be called. Click OK button after you type the name.

3. Paste this code into Remix. You can change the name of the token.

pragma solidity ^0.5.0;
contract AQUAMATISToken {
// Track how many tokens are owned by each address.
mapping (address => uint256) public balanceOf;
// Modify this section
string public name = “AQUAMATIS Token”;
string public symbol = “AQUAMATIS”;
uint8 public decimals = 18;
uint256 public totalSupply = 1000000 * (uint256(10) ** decimals);
event Transfer(address indexed from, address indexed to, uint256 value);constructor() public {
// Initially assign all tokens to the contract’s creator.
balanceOf[msg.sender] = totalSupply;
emit Transfer(address(0), msg.sender, totalSupply);
}
function transfer(address to, uint256 value) public returns (bool success) {
require(balanceOf[msg.sender] >= value);
balanceOf[msg.sender] -= value; // deduct from sender’s balance
balanceOf[to] += value; // add to recipient’s balance
emit Transfer(msg.sender, to, value);
return true;
}
event Approval(address indexed owner, address indexed spender, uint256 value);mapping(address => mapping(address => uint256)) public allowance;function approve(address spender, uint256 value)
public
returns (bool success)
{
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value)
public
returns (bool success)
{
require(value <= balanceOf[from]);
require(value <= allowance[from][msg.sender]);
balanceOf[from] -= value;
balanceOf[to] += value;
allowance[from][msg.sender] -= value;
emit Transfer(from, to, value);
return true;
}
}

4. Click the compile and from the Select new compiler version, select this one. And select the Auto compile checkbox.

5. Go to your MetaMask account and choose the Rinkeby Test Network. After, copy your account.

6. Turn back to Remix, click the run button. Paste your account to the Account section. And choose the Injected Web3 as Environment.

7. Click the deploy button.

8. Click the Confirm button.

Import Tokens to MetaMask

  1. Turn back to Remix and copy the address of your tokens.

2. In MetaMask,click the ellipses,and then click ExpandView from the pop-up menu.

3. Click the add token.

4. Paste the address you copied here and click to next button.

5. Click the Add Tokens button in the next page

And it is done! You have created your own cryptocurrency. Remember that this is in a test network.

--

--

Aykan Örsçelik
Aquamatis

FRC, team #7742 — Vex Robotics, Editor and Writer @aquamatis — Underwater Robotics, Oxidizer — Software, Hardware, CAD design @aykan_2004