How to create your custom SPL tokens like USDC using ReactJs and Anchor on Solana

makeDEVeasy
2 min readNov 18, 2022

--

The New York Times

In this article, we will create custom crypto tokens like USDC, DUST on Solana using programming with ReactJs and Anchor.

Steps —

  • If the user wants to hold SPL tokens like USDC in their wallet address.
  • Then we need to create the mint account for the user’s wallet address.
  • Also, we need to create the Associated Token Account (ATA) for the mint account of that respective user wallet address.
  • Atlast, using the mint method. We will mint the tokens and its count.
  • Mint the tokens i.e Updating the token data in the Solana blockchain.
  • Then we will transfer these created custom SPL tokens to the respective user wallet address.
  • Token Name looks like “unknown” and Logo looks like random picture.

Source Code —

Frontend (ReactJs) :-

Backend — Anchor(Rust) Smart contract :-

🎉Kudos to Solana Tutorial for Beginner 🎉 for helping me to complete this article.

Please follow his videos as well on Solana.

I hope you like it, Also refer these resources which mentioned above.

For more articles stay tuned…👋

--

--

makeDEVeasy
makeDEVeasy

Written by makeDEVeasy

Initiative to make the every developer easy, when they look into complex problems and make them to learn more simpler as easy……

No responses yet