How to Deploy Your Token Easily with Remix IDE and ThirdWeb - Dave's Blog

Tuesday, December 17, 2024

How to Deploy Your Token Easily with Remix IDE and ThirdWeb

Thumbnail

Some developers are certainly familiar with the term Token. This Token is typically used for transactions. In the crypto world, a Token can be bought or sold. In this tutorial, I intend to write an article about creating this Token to be deployed in crypto using the programming language Solidity.


Before you start, you should know:

  • What is the Solidity programming language?
  • What is Remix IDE?
  • What is ThirdWeb?

Solidity Programming Language

The Solidity programming language is used to create smart contracts. You can configure your contract to be either a token or a standard smart contract. If you want to create a token smart contract, you will need libraries such as OpenZeppelin, which provide secure and reusable code for building your contracts efficiently.


For the definitions of Remix IDE and ThirdWeb, you can read them in my previous post. There, I also outlined the pros and cons of both tools. Read the full post here: Remix IDE and ThirdWeb: Pros & Cons in Smart Contract Deployment


Remix IDE tutorial

first we will try to deploy a token using the Remix IDE tools. So, what do you need to prepare?

  • Device
  • Internet
  • Some knowledge of the Solidity programming language
  • Crypto wallet (Recommended: MetaMask or Bitget wallet)
  • Capital (according to the chosen network)

1. Open Remix IDE website & Import Simple Token template

The first step after preparing the items above is to open the Remix IDE. Once opened, you will see a display like this.

Image 1

After the editor appears, check if you already have a Solidity project or not. If you do, it means you have used it before. However, if you don't, you can visit cookbook.dev to find the "simple-token" template for compilation later.

Image 2

2. Compile & Deploy the contract

After you import the template from cookbook.dev, there is no need to make any changes if you just want to try it out. You can directly compile the Solidity script "simple-token.sol" with some configurations (which can be adjusted according to your needs).


After the compilation is complete, go to the "Deploy and Run Transactions" menu. At the top, you will find the wallet that will be used. Use the wallet you have and make sure the network you are using matches the one you want to select (I recommend using a testnet for testing purposes).

Image 3

After selecting the wallet and the network to be used, you can go to the bottom section (Deploy). There, you will find 3 parameters (Generally), which include Name, Symbol, and Total Supply.


Fill in all three parameters. For the total supply, since the common decimals in Ethereum are 18, you cannot input the total supply with a regular number, for example, 100 billion as 100000000000. Instead, you need to convert that amount (ether) to wei. You can use this website to convert ether to wei: eth-converter.com.

Image 4

Once everything is filled in, you can click deploy and confirm it in your wallet. Prepare some capital (according to the chosen network) as gas fees. After confirmation, wait a moment, and once it's done, check the explorer of your chosen network. In the explorer, you may still need to wait a bit until the status shows success. You will receive your token's contract address, and your token will be deployed and published.


ThirdWeb Tutorial

For ThirdWeb, you need to create an account on the platform. Here, I am using a wallet and email to register on ThirdWeb. Just follow the steps and select the free plan to continue. If prompted to enter credit card information, ignore it and press the back button. You will be redirected to the dashboard.

Image 5

After you are directed to the dashboard, select the contract menu at the top. Then, click the deploy contract button at the top right.

Image 6

You will be presented with various ready-to-use contract templates. For this time, we will only use the "Token" ERC20 template.

Image 7

For ThirdWeb, the token creation has a few additional parameters, but you can leave the description and image fields empty. However, you must fill in the name and symbol of the token. You can set the platform fees according to your preference. As for gasless, I am still not quite sure, and for deploy options, choose the network that corresponds to where you want to deploy your token (for example, I chose Sepolia).

Image 8

Make sure all inputs are filled in correctly. Once done, deploy your token and follow the instructions provided.

Image 9

After successfully deploying, mint your initial supply on the token page. Click the mint button and enter the amount of tokens you want to mint. In this case, you do not need to convert ether to wei again, as ThirdWeb will handle the conversion for you.

Image 10

After successfully minting, congratulations! Your token is now created and available on the explorer of your network with the total supply you entered earlier.


Conclusion

In conclusion, you are free to choose any tools you prefer, as both are similar. However, the difference is that you can edit the contract as you wish in Remix IDE, while in ThirdWeb, you cannot modify the contract freely because everything is managed by ThirdWeb.

No comments:

Post a Comment