Skip to main content
Deploy fungible tokens on Solana with Metaplex metadata support. This guide covers token deployment with customizable parameters including name, symbol, decimals, and initial supply.

Usage

Parameters

Example Prompts

Natural Language Prompts

LangChain Tool Prompts

The LangChain tool expects a JSON string input with these parameters. The tool will handle parsing and execute the deployment.

Example Implementation

Here’s a complete example showing token deployment with metadata:

Metadata URI Format

The metadata URI should point to a JSON file following this format:

LangChain Integration

The toolkit provides a LangChain tool for token deployment:

Implementation Details

  • Uses Metaplex’s UMI for token creation
  • Supports fungible token standard
  • Creates token with zero seller fee basis points
  • Optional initial supply minting to deployer’s wallet
  • Confirms transaction with ‘finalized’ commitment

Error Handling

The function includes comprehensive error handling:

Best Practices

  1. Metadata Preparation
    • Host metadata JSON before deployment
    • Use permanent storage solutions (e.g., Arweave)
    • Include all required metadata fields
  2. Initial Supply
    • Consider token economics when setting supply
    • Account for decimal places in calculations
    • Can mint more later if needed
  3. Symbol Selection
    • Use 2-5 characters
    • Ensure uniqueness
    • Uppercase letters recommended
  4. Security Considerations
    • Secure private keys
    • Validate all input parameters
    • Use trusted RPC endpoints