Token Operations
Deploy Token
Learn how to deploy token
Deploy fungible tokens on Sui with customizable parameters, including name, symbol, decimals, image URL, description, and initial supply. This guide covers the entire deployment process.
Usage
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | string | Yes | Name of the token |
imageUrl | string | No | URL of the token image |
symbol | string | Yes | Token symbol |
decimals | number | No | Decimal places |
totalSupply | string | Yes | Total token supply |
fixedSupply | boolean | Yes | Whether the supply is fixed |
description | string | Yes | Token description |
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
The LangChain tool expects a JSON string as input with the required parameters. It will handle parsing and execute the deployment seamlessly.
Example Implementation
Implementation Details
- Supports the fungible token standard
- Creates a token with zero seller fee basis points
- Optionally mints the initial supply to the deployer’s wallet
Error Handling
Best Practices
- Name Selection
- Choose a unique and descriptive name.
- Initial Supply
- Consider token economics when determining supply.
- Ensure that supply * decimals remains below 1E28, the maximum value convertible to BigInt.
- Symbol Selection
- Use 2-5 characters.
- Uppercase letters are recommended.
- Security Considerations
- Secure private keys.
- Validate all input parameters.
- Use trusted RPC endpoints.