In the previous article, we created our wallet and obtained some SOL for testing on the Devnet using the Solana tool suite. In this article, we are going to develop our token.
Step 1: Using the same command prompt from the previous article, create our token with the command below
spl-token create-token
Step 2: Jot down the token address. In my case, it is 14brDZCB1RUy9hg1WcEUXkZM7gqyLL9ezU4xNAKAV8EF
Step 3: Create an account for your token with the command below.
spl-token create-account
In my case, it is
spl-token create-account 14brDZCB1RUy9hg1WcEUXkZM7gqyLL9ezU4xNAKAV8EF
Step 4: Jot down your token account. In my case, it is Bo7ZWwgbffx2gYEe71Cw5ixqwcg8kwsRUg4cTDmzAJMU.
Step 5: Create a token with the maximum supply you want. If the total supply is larger than 10 million, some errors related to the decimals may occur later. Therefore, my recommendation is the total number supply should be lower than 10 million.
spl-token mint
In my case, it is
spl-token mint 14brDZCB1RUy9hg1WcEUXkZM7gqyLL9ezU4xNAKAV8EF 2100000
Step 6: You may check your account balance with the command below
spl-token accounts
Step 7: You may transfer the token you created to someone else with this command
spl-token transfer --fund-recipient
We have already learned how to use the Solana tool suite to create our token. However, since the oyster swap does not currently support phantom wallets, we will need Sollet or Solflare to perform a transaction. Therefore, in the following article, we will learn how to import our wallet to Sollet.
If you think this article is helpful, leave a comment below. 🙂
You may also sponsor this website by sending some SOL to this address: AGzgnsepqh7NePfTrNWfrXPaRXKd1ce8jUwfmFh9FfMe