Create a 2022 Token
Overview
This guide explains how to create a Solana token using the Token-2022 standard via Pinksale's token creation feature. The Token-2022 standard introduces new optional features (extensions) like built-in transfer fees. This guide focuses specifically on enabling and configuring the Transfer Fee extension during creation. Reading this will help you:
- Understand the process for creating a Token-2022 standard token on Solana through Pinksale.
- Know the required standard fields (Name, Symbol, Decimals, Total Supply).
- Learn how to enable and configure the Transfer Fee extension (Fee Percent, Max Fee).
- Understand the Solana-specific Authority settings (Mint, Freeze, Update) in the context of Token-2022.
- Follow the steps to configure and deploy your Token-2022 contract.
Steps
Follow these steps using your Phantom wallet (or another compatible Solana wallet) connected to Pinksale on your desktop:
-
Navigate to Solana Token Creation:
- Go to the Pinksale homepage: https://pinksale.finance/
- Connect your wallet. Ensure it is set to the Solana network.
- Navigate to the "Token" menu.
- Select "Create Token" option.
- Ensure you select or are operating within the Solana chain and potentially choose an option specifically indicating Token-2022
-
Input Token Details & Configure Transfer Fees: Fill in all required fields carefully:
- Standard Fields:
- Name: The full name for your Solana token. Required.
- Symbol: The short ticker symbol. Required.
- Decimals: Number of decimal places. Must be a positive number >= 9. Required.
- Total supply: Total number of tokens. Must be a positive number. Required.
- Token-2022 Transfer Fee Extension:
- Tick the box to Enable Transfer Fee Config.
- Transfer Fee percent (%): Fee assessed on every transfer, as basis points (bp) of the transfer amount (100 bp = 1%). Example: 50 bp (0.5%) on a 1,000 token transfer yields a 5 token fee.
- Max Transfer Fee: The maximum fee amount (in tokens) that can be charged per transfer, regardless of the percentage. Example: With a max fee of 5,000 tokens, transferring 10 billion tokens would still only incur a 5,000 token fee.
- Solana Authorities:
- Mint Authority: Wallet address with power to create new tokens. Assign carefully or plan to revoke after minting for fixed supply.
- Freeze Authority: Wallet address with power to freeze tokens in user wallets. Usually revoked for standard tradable tokens.
- Update Authority: Wallet address with power to replace the token program code. Retain for upgrades or revoke for immutability.
- Logo: (Optional) Provide the direct URL for your logo or Upload one. You can either manually input the logo URL or use AI to generate it. The URL must resolve to an image resource with a supported extension (
png
,jpg
,jpeg
,gif
) and the size must be less than 2Mb. - Website: (Optional) Your project's official website URL (e.g., https://pinksale.finance).
- Telegram: (Optional) Link to your project's Telegram group/channel (e.g., https://t.me/pinkecosystem).
- X: (Optional) Link to your project's X (formerly Twitter) profile (e.g., https://twitter.com/pinkecosystem).
- Discord: (Optional) Link to your project's Discord server (e.g., https://discord.gg/).
- Description: (Optional) A brief description of your token or project.
Read more about the Transfer Fee extension: https://spl.solana.com/token-2022/extensions#transfer-fees
- Standard Fields:
-
Create & Confirm:
- After carefully filling in all fields, click the "Create Token" button.
- Your Phantom wallet (or another compatible Solana wallet) will pop up asking you to confirm the token creation transaction, showing the estimated SOL network fees.
- Review the details and click “Confirm” in your wallet to deploy the Token-2022 program.
Q&A (FAQs)
- Q1: What is the main difference between a standard SPL token and a Token-2022 token created here?
- A: The Token-2022 standard allows for optional "extensions" built directly into the token program. This Pinksale feature specifically lets you enable the Transfer Fee extension, which automatically takes a percentage fee (and/or max fee) on every token transfer, something not possible with standard SPL tokens without custom contract logic.
- Q2: What are "basis points" for the Transfer Fee percent?
- A: Basis points (bp) are commonly used for percentages in finance. 100 basis points = 1%. So, a 50 bp fee is 0.5%, a 100 bp fee is 1%, etc.
- Q3: Where do the collected transfer fees go?
- A: The official Token-2022 documentation (linked above) explains this in detail. Typically, the collected fees accumulate in the token accounts where the transfer occurred, and a separate transaction (requiring specific authority, often the 'Withdraw Witheld Authority') is needed to transfer these accumulated fees to a designated wallet. Pinksale's specific implementation might simplify this; check their interface or contact support if needed.
- Q4: Can I add other Token-2022 extensions (like Confidential Transfers, Interest-Bearing) using this Pinksale tool?
- A: Based on the provided source content, this specific Pinksale interface only shows options for the Transfer Fee extension. Enabling other Token-2022 extensions likely requires custom development or different tools.
- Q5: Can I change the transfer fees or authorities after creation?
- A: Authorities can typically be transferred or revoked if you still control the current authority address. However, the Transfer Fee configuration (percentage, max fee) set during deployment is usually permanent and cannot be changed later unless the Update Authority is used to deploy an entirely new version of the program (which is a complex process).
Troubleshooting
- Q: The option to "Enable Transfer Fee Config" is missing.
- A: Ensure you are definitely in the Solana token creation section of Pinksale and potentially selected a specific "Token-2022" type if offered. If the option isn't present, Pinksale might have changed their UI or the feature might be temporarily unavailable.
- Q: My "Create" transaction failed.
- A: Ensure enough SOL for gas fees. Double-check all required fields, especially the Authority addresses (must be valid Solana addresses) and numerical constraints (Decimals >= 9, positive supply, valid fee percentages/amounts). Check the block explorer for specific error messages; Token-2022 deployments can sometimes be slightly more complex or costly than standard SPL.
- Q: I set transfer fees, but they don't seem to be working on the DEX.
- A: Ensure the token contract was deployed correctly with the fees enabled. Confirm that the DEX you are using fully supports the Token-2022 standard and its transfer fee extension. Not all DEXs or wallets might correctly handle or display these fees initially. Also, check the logic for withdrawing collected fees (as mentioned in Q3).