How to build a crypto token in under 10 minutes (ECR-20)
With the rise of Doge and other Ethereum based tokens (NFTs, $UNI, $LINK....) I figure there would be many people wanting to learn how to use Solidity to build their own meme (or non-meme) tokens. This blog post will show you step-by-step how to do this within 10 minutes.
If you find this content helpful, please feel free to send me some DOGE @
What is a token?
Crypto "coins" like Bitcoin (BTC) are generally used as "money" or a unit of value and are stored on the coin-specific blockchain. Tokens are built on these existing blockchains (on top of the Ethereum/Neo/etc blockchain). This blog post will be showing you how to build an Ethereum-based token (ECR-20).
Tokens are most commonly used with a dApp (decentralised application). For example, with Enjin, you can use your tokens to purchase in-game assets on the virtual marketplace. These can be characters, plots of land or assets like trees or other digital assets. NFTs are used to facilitate the transfer of digital asset ownership (i.e. music, art, poetry) to a buyer and is logged on the Ethereum blockchain. Zed Run is another cool NFT-based project where you can purchase virtual horses, breed them, and compete in virtual horse-racing. These horses sell upwards of $250,000 USD.
The concept of in-game based purchases using fiat (USD, AUD... etc) is not a new concept. Planet Calpso in a virtual video game universe called Entropia was sold for $6,000,000 USD.
How to build an ECR-20 Token
We are going to use Metamask for this project as the wallet. I do not recommend Metamask as a wallet. This is just for learning and speed purposes. Metamask is an in-browser based wallet which you can download here.
To do this we need to visit the Rinkey Test Network website to request "fake" test ETH. It does not cost that much to deploy a token onto Ethereum. I would just request 3 ETH, or to be honest, whatever you want. What you need to do now is post on Twitter or Facebook with a request and paste this link into the box.
For me, I tweeted the following:
Requesting faucet funds into 0xe93FBA8E62A995DA2E60E7B1aF1FE881d93b4312 on the #Rinkeby #Ethereum test network.
Now, it's time to get our hands dirty. You need to visit and download the following two solidity files from this Github repo.
- Initial Amount (supply): 88888888
- Total Supply (Initial Amount x Decimals): 888888880
- Name: "WETSOCKS"
- Decimals: 10
- Symbol: "WET"
This should pop-up an authentication event to your Metamask wallet, which you need to allow.
Open up Etherscan to verify that the tokens went through from your wallet address. Here in the screenshot you can see that the FROM field is the address of my ETH wallet, and to the TO field is the WET token wallet that was created. You want to copy the "TO" wallet address and add this to your Metamask wallet.
You can also reach me on twitter @inversecos.