How to create a token on SmartBCH the easy way!
| Hi everyone, so here is a quick guide on how you can deploy a token on SmartBCH the easy way with some basic level of security. I will strongly suggest you use a virtual machine inside your computer to improve your security. Keep an updated backup of the virtual machine by copying its files to a flash drive or similar from time to time. Install a secure OS like Debian. The steps bellow assume you are using a virtual machine, but will work just fine if you dont. The next step is to install Metamask, and configure SmartBCH. You can get Metamask from here:https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=enand you can configure SmartBCH by using this site:https://chainlist.org/Search for SmartBCH and follow the instructions to add it to your Metamask. Now that you have Metamask installed and configured, is time to fund your wallet. You can use Coinflex.com or https://hop.cash/ , to move some BCH into your wallet. Also ask around maybe some one can share some for your tests. Ok, so at this point you have a safe work environment and a wallet with some BCH. Next Step go to:https://remix.ethereum.org/ You will see this: Now right click over the contracts folder, click new file and write MyToken.sol, you will get this: Now we need to add the code that will mint your token! We will be creating the most basic token possible, enter this code on the main section:
it will look like this: Try changing the name of the token, and the number of tokens on the code. Example change Lucky, for MoonLambo, and the ticker to mlb. Change the number of tokens, do you want 21million? change it to a trillion so you can be a Lambo trillionaire already. Ok, so now your code is ready! and you are ready to go to the moon! Now we are going to send this code into the SmartBCH blockchain, but first we need to compile the code, so do this: click this icon on the left: click this to switch to the compiler Select 0.8.13 for your compiler: 0.8.13 for latest of the greatest Now click compile! Now that your code is compiled we are going to send it, click this icon on your left menu: you will see something like this: Click on Environment, and select Injected Web3. Your Metamask will open, may ask for your password and asl you to connect, follow the instructions. now Select MyToken.sol here: Click deploy, follow the Metamask instructions, confirm the transaction. Now watch the bottom of your screen, you will see this: At the left you can see the contract address that was assigned to the contract you just deployed. I got this one writing the guide: 0x91637f0FA58E5A319427e86d9FC43593774E689b Now we need to add that to Metamask! so do this, go to Metamask, click Assets and find this: Click on Import tokens, and add the contract address that you generated on the steps above: Enter the address, the other parameters will appear. Click Add Custom Token. Congratulations, you just minted a token on SmartBCH with a basic level of security! Next send some tokens around and share the Good Luck! Try to be creative, meme tokens are cool, but think on creative ways to give utility to your tokens. [link] [comments] |