Hello Steemians!!
Background
It’s my pleasure to participate in Steem crypto academy such a teaching and skilled developing platform. As we are in season 5 week 2nd and we have an informative class "How to create your own crypto token" by professor @reddileep. Before coming to crypto coin and token, let me tell you about the term Cryptocurrency. Cryptocurrency is a decentralized digital currency that uses as a money transfer for funding. Cryptocurrency came in 2009 that uses secure encryption techniques for transactions.
1-Introduce how to create your own Cryptocurrency by differentiating between token and coin.
Creating an own cryptocurrency there are many backends works involved such as documentation, crypto usage scenario, and legitimacy before deciding to create Cryptocurrency. Other than that crypto issuer has to select which platform and token will be used for the change of mode. Further Cryptocurrency is divided into two subcategories crypto coin and crypto token. Now let’s understand them.
Coin
Token
A token is another subcategory of cryptocurrency. It's a simple process that does not require own blockchain, instead, an issuer must know technology, coding skills. So token work on existing blockchain and verify the transaction and make it secure, Like Ethearum and NEO.
Difference between Token and Coin
Token | Coin |
---|---|
It can be introduced on an existing platform. | It requires a new blockchain to operate all funds. |
It’s a digital asset in terms of utility and services. | It’s a digital crypto coin that has some value like another physical coin. |
Tokens are an open-source coding-based project that requires less knowledge of the blockchain. | Relatively coin requires depth knowledge of blockchain and code skills too. |
The token can be created without much effort, It’s faster and cost-effective. | Whereas it’s a very lengthy process and needs a lot of investment and is costly. |
2. Demonstrate how to prepare everything needed to create a crypto token, such as making a wallet and adding a few coins to it to pay the gas fee. (Here you should deposit at least 15$ worth of BNB coins from your exchange wallet to the newly created wallet)
In order to create a new crypto token first we need some funds to transfer for that I’m going to use BSC(Binance Smart chain) with using Metamask wallet. So before doing a fund transfer I need a wallet that I’m going to set up.
How to setup a new wallet on MetaMask
First, go to the official MetaMast site and the home page looks as below.
Now click on the Download now button and then select your device type as it’s available for Android, ISO, and desktop which support Chrome, Firefox, Brave, and Edge browser, I’m going to use chrome browser.
Once setup is installed on your local browser we are ready to create a wallet. Click on the MetaMask icon from the installed list.
Click on create a wallet for a new wallet or we can import for an existing wallet.
src
Read the privacy policy of MetaMask and click on Agree
src
Create a wallet password that will be used for transaction verification.
Read security-related all information before moving forward.
src
Now keep secure office the phase in case of recover your wallet.
src
Now frame a sentence that we have stored. And confirmed it.
Now we can see the congratulation message for wallet creation.
It’s all done for wallet setup we are good too.
src
Adding Binance Smart Chain to the MetaMask
As in the below screenshot, we can see the network list shown Ethereum main and I’m using BSC so have to add the BSC network to the list by clicking add network.
Fill in all the required information of the BSC networks like network name, new RPC URL, and Chain Id. This information is critical so don’t fill in wrong information that can create problems from fund transfer. I’m using Chainlist platform to get all the required information related to BSC.
As in the above screenshot, you can see I’ve connected my MetaMask wallet and searched for BSC basic information.
Now click on approve which will add to the MetaMask list. Or we can enter all required detail manually.
Now my wallet has successfully connected. And ready to transfer funds on Binance wallet.
Now I’m using my spot wallet to transfer funds in the newly created BNB wallet from MetaMask as the minimum withdrawn limit is 0.1 as per the latest Binance policy.
So after deduction of gas fee the amount 0.0995 BNB ($58.82).
Transaction Hash id:0x416302f32979fb1d30c7a70fb0e2ae797bdd38cb5e2e3a8e54e0210a760f6742
3.Explain the Remix IDE and download the source code by showing each step. (Screenshots required)
Remix IDE is a web-based open-source developer tool that helps students and developers to test web applications for Ethereum based blockchain. This tool is written javascript which supports local browsers such as chrome, firefox, and others. The purpose of this tool is to make coding a fast process and reliable seamlessly. As I’m going to create a BSC token contract so need to get basic information about BSC by official documents. Let’s see how it can be set up in a coding environment.
After selecting issuer-BEP20 it landed to the BSC remix.ethereum.org compilation document that has to follow.
Next, we have to download BEP20Token.sol and update. That can be downloaded by clicking here
4- Customize the source code according to your imagined future project. (In addition to simply stating the steps, you should provide a clear explanation about each customized code)
As per the BSC issuer document, we have to open REMIX IDE and after landing on the home page the UI interface looks as.
First I have to create a new contract file with the name BEP20Tonen.sol
Now opened BEP20token template that downloaded just now from BSC official site
As we can see some Interface list name has been defined with the name of IBEP20 such as totalSupply(), decimals(), symbol(), and name() that we are going to use in our programming just a bit.
From my local notpad++ windows
The BEP20Token context inherited the IBEP20 interface and has to implement according to our new token creation.
src
name(): Here name is the name of the project or token name Like Binance smart Chain
symbol(): This function is for returning the abbreviation of the project name like Binance smart chain or BSC
decimals(): this function validate the after fraction value will accepts example : 0.000000000000000001 (18 decimals).
totalSupply(): whereas it returns the total supply value for the token allocation.
Now it’s time to name my new project.
Name = "Steem For Local";
Symbol = "SFL";
Decimals = 18;
Total supply = 1000000 * 10 ** 18;
Now I’ll assign this basic parameter to the function. As below.
src
Now it’s time for compilation. As from the left side compile icon we can do that.
Now after deployment we can get the detail of the project name, project owner, and total supply for more reference look screenshots.
5- Demonstrate all the steps to add your created crypto token into your any wallet such as Trust Wallet and MetaMask wallet. (Screenshots required)
As in the previous question, we have seen token has been created now we need to connect the MetaMask wallet to Remix IDE and perform other steps.
From the MataMast wallet click on three dots and then connect sites. Currently, only it’s connected to Chainlist only.
Now click on manual connect to the current site. And the next.
Now click on connect.
src
From the Remix IDE change environment as Injected Web3 provider. That is for the MetaMast code execution provider.
In the Remix, IDE from the left side account section can be seen my BNB wallet connected.
src
Now click on deploy and in the contract deployment section total gas fee is 0.00786627BNB, next click on confirm.
10 million SFL has been created successfully. and Hash id : 0x48121170be448735a9ecff08c379ea1c08f3d08895dd6cad46bc259bcd3224d4 can be seen in the log detail.
We are ready to import the newly created tokens into the MetaMask wallet as.
Click on import tokens. That will ask for the Token contract address. To get the contract address click on the BEP20TOKEN blockchain
Paste that id in the MetaMask Token contract address input box rest of the detail will populate automatically such as symbol, decimal value.
src Contract address : 0xE7598584404271aA27E81bb1Deb79769Ca2AeF8f
Next, click on add custom token and then import token.
A newly created 1000000 SFL was added to the network list.
src
6- Verify transactions and other details through the relevant Block Explorer. (Screenshots required)
After successfully deploying the transaction Id we can take it from the log file.
Transaction hash id : 0x48121170be448735a9ecff08c379ea1c08f3d08895dd6cad46bc259bcd3224d4
To verify the transaction I’m using bscscan official site.
In the above screenshot, the truncation fee is 0.00786627 BNB ($4.65) and others can be found like Token name, total supply SFL, 100000 SFL respectively.
Created SFL token detail.
Conclusion
To summarize this task we have understood the main difference between Coin and token. The creation of a Coin needs a lot of investment depth knowledge and experience on blockchain and own platform where the token is a simple process anyone can create with basic coding knowledge. Now I have created my first crypto token Steem for Local SFL ever and I’ll make more projects on this. I have learned a lot from doing all activities. It was a really exciting task thanks to professor @reddileep for this amazing class.