Create a Token on the Fantom Network (by someone who has literally no clue what he is doing).
In my previous blog post I have shown what the purpose of my coin is. To recap: I will deploy 69.420.000.000 CUTE on the Fantom network. This is my key aim today. Let us begin:
According to the Fantom devs, the process of deploying tokens on the Fantom network should be similar to the one on the Ethereum network. I have found this guide, and I will replicate everything, just with the Fantom network: https://medium.com/better-programming/create-and-deploy-your-own-erc-20-token-on-the-ethereum-network-87931fe4db20
Step 1: Set up a wallet here: https://pwawallet.fantom.network/
Step 2: Connect it with MetaMask. Connect it with MetaMask correctly. If you “only” connect it, you are still in the Ethereum Network, not in Fantom Opera. You can see here how to do it properly: https://twitter.com/FantomFDN/status/1311309120545357824
Step 3: Put some FTM into your wallet
Step 4: Download a code editor, and feel badass for a minute that you will do some coding. Tell others you are one step closer to hack governmental institutions and that you think that after Satoshi, Vitalik Buterin and Andre Cronje, you are the next prodigy of Blockchains. No clue which is good, but I used Brackets: http://brackets.io/
Step 5: Open your code editor and paste everything in it from here: https://gist.github.com/bajcmartinez/c1cefbb3b1375d037f07b7b779568e42/
Step 6: Replace all elements with the two brackets which look funny with the input parameters you want for your coin. See here:
One remark here: The Owner Account is of course your FTM address, not the ETH address. Both “look” the same, which is kind of dumb, but who am I to judge.
Another remark: Those familiar with these codes might already spotted a mistake I did in the picture above. If you want to create 69.420.000.000 coins, and have 18 Decimals, the “Total supply” must be 69.420.000.000+18*0. In my first try, I did not know that and then I had 0.000000000006942 CUTE created.
Step 5: Go to https://remix.ethereum.org/
And whether you believe it or not, the Token is created!
I was surprised that it worked, so I headed to the Fantom Contracts, to find the contract here: https://explorer.fantom.network/address/0xb910b4c8fd8767bc4e53b2ec324e9e6f3fa5c157
It costs 0.0001 FTM which is basically nothing. Transaction fees are very low.
The official contract for CUTE is: 0xb910b4c8fd8767bc4e53b2ec324e9e6f3fa5c157 (++++++ Here is Alexej from the future. The official contract for CUTEZ is now 0x3d5c6b1155e788966db361478ff6004ba4817832 and you can find it here: https://explorer.fantom.network/address/0x3d5c6b1155e788966db361478ff6004ba481783 Why? CUTE is not enough, it has to be CUTEZ now. My standards today are higher)
And at the moment, only I have those precious cuties. Use MetaMask to add custom tokens, and the token contract address to see how many cuties you have. Spoiler alert: None.
Hope you enjoyed reading this. Have fun deploying your first token on the Fantom Network!
Up next: I will do the same on the ETH network. And then I will try to copy (?), duplicate (?) or .. I do not know, make a wallet like the official pwawallet of Fantom, but for cuties.