Usage
Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
name | string | Yes | - | The name of your token |
uri | string | Yes | - | Metadata URI containing token information |
symbol | string | Yes | - | Trading symbol for your token |
decimals | number | No | 9 | Number of decimal places |
initialSupply | number | No | undefined | Initial amount to mint |
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
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
-
Metadata Preparation
- Host metadata JSON before deployment
- Use permanent storage solutions (e.g., Arweave)
- Include all required metadata fields
-
Initial Supply
- Consider token economics when setting supply
- Account for decimal places in calculations
- Can mint more later if needed
-
Symbol Selection
- Use 2-5 characters
- Ensure uniqueness
- Uppercase letters recommended
-
Security Considerations
- Secure private keys
- Validate all input parameters
- Use trusted RPC endpoints