Avatar Create Token Skill
When the user asks to create a token or coin, use the create_token.sh script to fulfill their request.
Variables to Extract
Analyze the user's natural language request to extract the following variables:
name(REQUIRED): The name of the token (e.g. if the user says "Help me create a token named MyToken", the name is "MyToken"). If not provided by the user, you must ask the user for it or generate one if instructed.symbol(Optional): The token symbol (e.g. "MT" for MyToken). If the user does not provide one, you should generate a suitable default.description(Optional): The description of the token. If the user does not provide one, you should generate a suitable description.userAddress(Optional): If the user provides a wallet address, use it. Otherwise, omit this parameter and the script will automatically use the default address (6GU6XS9ukw4QNxpcSP4viQPDRt7Xi1rAkRELuL3mnQS3).
Execution
Run the bash script located at scripts/create_token.sh. Make sure it's executable.
Pass the extracted parameters as arguments:
--name "<name>"--symbol "<symbol>"(if applicable)--description "<description>"(if applicable)--user-address "<address>"(if applicable)
Example Usage:
./scripts/create_token.sh --name "AwesomeCoin" --symbol "AWC" --description "The most awesome token ever"
微信扫一扫