A Guide on how one can create their own crypto on Solana

Cryptocurrency tokens are gaining popularity for projects like dApps and experiments. Here's a quick guide on how I created SillyCoin on the Solana!

A Guide on how one can create their own crypto on Solana

Prerequisites:

Before starting, make sure you have

  1. Solana CLI installed and configured.

  2. Node.js and Git installed.

  3. An active GitHub account to host metadata and images.

    (or any other hosting provider of choice)

  4. A basic understanding of blockchain and tokens.

Step 1: Configuring Solana CLI

Run the following to configure Solana for Devnet:

solana config set --url devnet

Verify your balance:

solana balance

Step 2: Generating a Wallet

Generate a wallet/keypair with a specific prefix for personalization. I chose wallets starting with "st" (SillyToken):

solana-keygen grind --starts-with st:1

Once generated, set this wallet as your keypair:

solana config set --keypair <WALLET_FILE>.json

Step 3: Creating Your Token

Now, let’s create the token using SPL Token program:

enabling metadata is necessary if you want to show token name, symbol and logo on

your personalised token.

spl-token create-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb --enable-metadata

Take note of your token mint address. For SillyCoin, mine was: mtZk7SdEyoBSW1A9gpsXh5UkdK7EKuzXyxxJZSee7qV

yay! your token is created. now its time to personalise it.

Step 4: Creating Metadata

Create a metadata.json file for your token. Here’s the metadata for SillyCoin:

{
  "name": "SillyCoin",
  "symbol": "SILLY",
  "description": "Silly coin for silly people, like you and me",
  "image": "https://raw.githubusercontent.com/shricastic/SillyCoin/master/silly.jpg"
}

Step 5: Hosting Metadata Online

Host your metadata and images on GitHub (or any public platform). Push your files to a GitHub repository.

Here’s how the structure looked for SillyCoin:

├── metadata.json
├── silly.jpg

You can verify your hosted metadata URL, like: https://raw.githubusercontent.com/shricastic/SillyCoin/master/metadata.json


Step 6: Initialising Metadata

Initialize your token's metadata, please make sure to replace the metadata link and names of token with yours:

spl-token initialize-metadata <YOUR_TOKEN_ADDRESS> 'SillyCoin' 'SILLY' https://raw.githubusercontent.com/shricastic/SillyCoin/master/metadata.json

Step 7: Creating an Account

Create an associated token account for your mint:

spl-token create-account <YOUR_TOKEN_ADDRESS>

Step 8: Minting Tokens

Mint your tokens to the created account. For example:

spl-token mint <YOUR_TOKEN_ADDRESS> <AMOUNT>

I minted 7000 SILLY tokens:

spl-token mint mtZk7SdEyoBSW1A9gpsXh5UkdK7EKuzXyxxJZSee7qV 7000

Step 9: Verifying Your Token

Use Solana Explorer to verify your token on Devnet. Simply search your token mint address to check the metadata, token balance, and transactions.


Conclusion

Congratulations! You’ve successfully created Your own crypto currency / token on Solana. This token can now be transferred, listed, or integrated into projects. If you found this guide helpful or have questions, feel free to reach out via GitHub etc.


Github link repo :- github.com/shricastic/SillyCoin

Ping me if you want free SillyCoins ;)

Thanks!