Overview
Token management skills enable agents to create and control SPL (Solana Program Library) tokens. These skills provide full lifecycle management from token creation to supply control to account cleanup.launch_token
Create a new SPL token on Solana with an initial supply minted to your wallet. You become the mint authority and freeze authority for the token.Parameters
Token name (e.g., “My Agent Token”). This is stored in token metadata.
Token ticker symbol (e.g., “MAT”, “AGT”). Typically 3-5 characters, uppercase.
Number of decimal places for the token. Default: 9.Common values:
- 9 (standard for Solana tokens)
- 6 (common for stablecoins like USDC)
- 0 (for NFTs or non-divisible tokens)
Initial token supply in whole units. Default: 1,000,000.Example: If decimals=9 and initialSupply=1000000, the actual supply will be 1,000,000 * 10^9 base units.
What You Get
When you launch a token, the system:- Creates a new mint account (token definition)
- Creates your associated token account (ATA)
- Mints the initial supply to your ATA
- Sets you as mint authority (can mint more)
- Sets you as freeze authority (can freeze accounts)
Example Invocation
Example Response
mint_supply
Mint additional tokens for a token you created. You must be the current mint authority.Parameters
Mint address of the token (from
launch_token response).Amount of tokens to mint in whole units (not base units).
Token decimals (must match the token’s decimals). Default: 9.
Example Invocation
Example Response
revoke_mint_authority
Permanently revoke minting capability for a token. This is irreversible.Why Revoke Mint Authority?
Revoking mint authority is a trust signal to token holders:- Fixed Supply: No more tokens can ever be minted
- No Inflation: Token supply is permanently capped
- Increased Trust: Holders know the supply won’t be diluted
Parameters
Mint address of the token to revoke authority on.
Example Invocation
Example Response
burn_tokens
Burn (destroy) SPL tokens from your wallet. This permanently removes them from circulation.Parameters
Mint address of the token to burn.
Amount of tokens to burn in whole units.
Use Cases
- Reduce supply: Permanently decrease circulating supply
- Deflationary mechanism: Implement token burn economics
- Correct mistakes: Remove tokens from a test mint
Example Invocation
Example Response
Burning vs Minting: You don’t need mint authority to burn tokens. Any holder can burn their own tokens.
close_token_account
Close an empty token account to reclaim the rent-exempt SOL balance (~0.002 SOL per account).Parameters
Mint address of the token account to close.
Requirements
Example Invocation
Example Response
Complete Token Launch Workflow
Scenario: Agent creates a token, mints more supply, then revokes authority
Cycle 1: Launch Token
Cycle 2: Check Balance
Cycle 3: Mint Additional Supply
Minted 5,000,000 tokens! (Total supply now: 15,000,000)
Cycle 4: Revoke Mint Authority (Fixed Supply)
Mint authority PERMANENTLY REVOKED. Supply capped at 15,000,000.
Cycle 5: Verify with Token Info
Token Economics Strategies
Fixed Supply Token
- Launch with desired total supply
- Immediately revoke mint authority
- Result: Bitcoin-like fixed supply model
Inflationary Token
- Launch with initial supply
- Keep mint authority
- Mint additional supply on schedule
- Result: Controlled inflation model
Deflationary Token
- Launch with supply
- Burn tokens periodically
- Optionally revoke mint authority
- Result: Decreasing supply over time
Token Metadata
Currently, token name and symbol are stored in Karen’s internal database. For production tokens on mainnet, you should also create Metaplex token metadata for broader ecosystem compatibility.
Error Handling
Common Token Errors
- Not mint authority: Can’t mint or revoke authority if you’re not the mint authority
- Account not empty: Can’t close token account with non-zero balance
- Insufficient balance: Can’t burn more tokens than you own
- Invalid decimals: Decimals mismatch between mint and parameters
Next Steps
DeFi Operations
Learn how to swap your newly created tokens
Staking
Stake SOL to validators and earn rewards