submitted by /u/bolyus21
Blockmason is excited to launch our second blockchain product called Link. Link allows developers to use smart contracts and the power of blockchain in their web or mobile applications with very little to no prior blockchain experience. Link creates classic, conventional, web-based APIs for any smart contract written on a programmable blockchain such as Ethereum.
In this activity, you will use Link to create your own custom ERC-20 token on Ethereum in just minutes! For details on the ERC-20 standard, see https://theethereum.wiki/w/index.php/ERC20_Token_Standard
While this post will walk you through deploying your custom token on the Ethereum testnet called Ropsten
You will need to setup the following for this activity:
A MetaMask wallet, which will hold your custom ERC-20 tokens. MetaMask is a Chrome extension which interfaces with the Ethereum network from your browser. You can get the extension here: https://metamask.io/
Setup your Link account – register at https://mason.link/sign-up
Seed your Link account wallet with test ETH from https://faucet.ropsten.be/, which will be used to pay for transactions on the Ropsten testnet. You can find your Link account wallet address from the Ethereum Account menu as shown:
Create a New Project in Link, which starts up the new project wizard.
Where is your contract deployed? This will be a new contract deployment, not one with an existing address. You just need to give the deployment a name. Press
. Note, don’t forget the
at the beginning of the URL!
Are you ready to perform the following deployment? Check that you are deploying the correct contract to the Ropsten network. Then press
. This could take up to 30 seconds. Note – if you get an
related error, ensure your Link account wallet has sufficient test ETH.
Sidenote: This example goes through the process of just deploying a contract but Link does so much more! In a later post, we will go through the rest of the wizard to generate useful APIs, allowing us to easily incorporate the custom ERC-20 token in any application.
Go to https://ropsten.etherscan.io/ and paste your contract address into the search bar. You should then see the details of your contract (i.e. the contract creation time and token name). Clicking through to the token itself, you will see the total supply amount and your single wallet holding the entire supply.
Finally, you will add your custom token to your MetaMask wallet. Login to your wallet and to the address that will hold the entire supply. Under the menu item, at the bottom, you should see
and copy and paste in your Token Contract Address. The ‘Symbol’ and ‘Decimals of Precision’ should automatically update.
Complete the setup and you now have your custom ERC-20 tokens in your wallet that you can share! And feel free to send some of your exclusive tokens to us at
If you want to deploy your custom token to the Ethereum Mainnet, simply go through the Link new project wizard again and use the Mainnet Infura API to deploy the smart contract. Remember – you will need to fund your Link wallet with real ETH to cover the gas costs.
Throughout this example, we touched on Link concepts including contract deployment, creating a custom ERC-20 token contract, and utilizing the Ropsten testnet.
In the next post, you will implement your custom token as part of an app’s payment network.
You can also connect with the Blockmason Link Team on these social channels: