SOLTOKENGEN makes creating tokens on the Solana mainnet easier than ever. Whether you're building a new project, minting tokens for an NFT series, or experimenting with Solana, this tool helps you generate tokens with custom names, symbols, images, descriptions, and mint amounts. No prior blockchain development experience is required!
With SOLTOKENGEN, you can:
- Quickly launch your own Solana token for personal or commercial projects.
- Assign metadata like an image and description to make your token stand out.
- Mint any desired amount of tokens directly to your wallet.
-
Clone the Repository:
git clone https://github.com/zfarrell13/SolanaTokenGen.git
-
Set Up the Python Environment:
- Create a Conda environment:
conda create -n solana python=3.13
- Activate the environment:
conda activate solana
- Install dependencies:
cd SolanaTokenGen pip install -r requirements.txt
- Create a Conda environment:
-
Prepare the Environment Variables:
- Rename
.env_template
to.env
:mv .env_template .env
- Create a Solana Wallet if you donβt already have one:
- Use a Solana wallet provider (e.g., Phantom or Sollet).
- Fund Your Wallet with a small amount of SOL for transaction fees.
- Get the private key of your wallet and place it in
.env
underWALLET_PRIVATE_KEY
.
- Rename
-
Set Up Pinata for Metadata Hosting:
- Sign up for a free Pinata account.
- Generate an API key and place it in
.env
underYOUR_PINATA_JWT
.
Run the script to create your token on the Solana mainnet. The command syntax is as follows:
python main.py --help
usage: main.py [-h] name symbol image_path mint_amount description
Create a Solana token with metadata
positional arguments:
name Token name -- eg. "SampleToken" (in quotes, it has to be one word, no spaces)
symbol Token symbol -- eg. "SPT" (in quotes, it has to be one word, no spaces)
image_path Path to the token image -- eg. "/path/to/sampletoken_image.jpeg" (in quotes, no spaces)
mint_amount Amount of tokens to mint -- eg. 1000000 (integer)
description Token description -- eg. "This is a test token" (in quotes)
options:
-h, --help show this help message and exit
To create a token named Sampletoken1 with the symbol S1, a specified image, a mint amount of 1,000,000, and a description:
python main.py "Sampletoken1" "S1" "path/to/sampletoken1_image.jpeg" 1000000 "This is a test token"
Now that youβve created your token, here are a few things you can do:
- List Your Token on Solana marketplaces or use it within decentralized applications (DApps). If you want to create a Raydium Pool to get listed on sites like Dexscreener, see the section below.
- Build Applications that interact with your token, such as reward systems, voting mechanisms, or in-game assets.
- Create NFTs or use the token as part of your NFT collections.
- Experiment and Learn about Solana and tokenomics while developing your blockchain expertise!
Let SOLTOKENGEN help bring your ideas to life on the Solana blockchain! πβ¨
If you want to create a Raydium Pool to get listed on sites like Dexscreener, here is some important information:
- Token-2022 Program SolanaTokenGen creates tokens with the Token-2022 Token Program, with freeze-authority disabled by default.
- Standard AMM This means when you create a pool, you have to click the Standard AMM Pool Type, otherwise your token will not get listed on sites like Dexscreener.
- Add testnet functionality for testing tokens before mainnet deployment
If you find this tool useful, consider supporting its development:
- Solana (SOL):
7FQPqoirNy47NRzTv4N9VKDfKy8aS6WwhgETvB94z9Uj