Launching your base token using thirdweb
If a developer wants to have their own base token for a virtual chain launched via AuroraCloud, they can use, for example, OpenZeppelin or Aurora Contracts.
But what if you're just a beginner in the web3 world? thirdweb comes to the rescue here and provides an easy UI to do exactly that - deploy, mint, burn your own ERC-20, and even allows conducting airdrops with it.
Of course, to be used as a base token for your virtual chain that token will need to be bridged to NEAR first via OmniBridge, but we will discuss that in the next article.
Quick plan
We're going to:
- Register on thirdweb
- Create a thirdweb project
- Add a new contract (ERC-20) to the project
- Deploy ERC-20 contract and mint tokens
- Add that ERC-20 to your MetaMask wallet
Requirements
We're expecting you to have your MetaMask installed and your wallet already created there. You can use any other EVM wallet too. E.g., Rabby, Brave or Coinbase Wallet.
Also, please get some real funds there to pay for gas and token deployments. We recommend using NEAR Intents to swap and bridge tokens between different chains.
Please contact us on Discord if you will need any help with getting funds for gas fees.
Creating thirdweb account
So, let's go to thirdweb and login there with your wallet:
Next, create your account:
Creating thirdweb project
After that you will see your dashboard there:
Click "Create Project" button. You will see a popup, enter a name and click "Allow all domains" checkbox there:
Now, click "Create". You will see a popup with your secret key:
Save your secret key in a safe place, such as a password manager inside your browser. Then, tick the checkbox "I confirm that I have securily stored my secret key" and click "View Project". You will see:
Deploying a contract
Click "Contracts" at the sidebar, you will see:
Click "Discover Contracts" and choose "Token" contract, which is just a regular ERC-20:
Then, click "Deploy Now" button:
Now, enter your token information:
You can also provide the image for you token above. After that scroll to the bottom of the form and make sure you have Base network (or Arbitrum) selected:
Wait a bit and confirm the transaction in MetaMask:
After that, you will see your token deployed succesfully:
Minting tokens
You will be redirected here, after clicking "View Contract" above:
As you can see, you need to mint tokens now. So click on "token tab" link above, you will go here:
Click "Mint" button, you will see a side menu. Enter amount of tokens there (I will mint 1000) and click "Mint Tokens" button:
Sign a transaction in your wallet:
After that you will receive minted tokens to your account.
Adding token to your wallet
To see your tokens inside your wallet, please click the Basescout button on your token dashboard:
You will see this page opening up, click on the MetaMask icon near the token address:
You will see MetaMask popup asking you to add a new token, click "Add" button:
After that you will see your token balance in your wallet:
Conclusion
We have deployed and minted a simple ERC-20 token to be used as a base token on your virtual chain. You can take a look at the transactions which happened during this tutorial on block explorer:
Total cost of creating a token was only around $0.02!
In the second article we will take a look on how you can bridge that token to NEAR via OmniBridge.
And in the third one, how to use it as a base token for your virtual chain.
Of course, it is not obligatory to do it yourself – our team can always help you. But, doing it gives you more understanding around how everything works in Aurora Ecosystem!
On this note, I wish you great time of the day and I hope you have enjoyed the article! Thank you!
If you have encountered any errors, problems or just have any questions or suggestions, please contact us on Discord.