Token Factories
Token Metadata
type TokenMetadata = {
name: string; // Token name (e.g., "My Token")
symbol: string; // Token symbol (e.g., "MTK")
decimals?: number; // Number of decimals (default: 9)
uri?: string; // Optional URI to JSON metadata
};Creating Token Metadata Helper
import { createTokenMetadata } from "@vertigo-amm/vertigo-sdk";
// Create and validate token metadata
const metadata = createTokenMetadata(
"My Amazing Token", // name (max 32 characters)
"MAT", // symbol (max 10 characters)
"https://example.com/token-metadata.json" // URI to off-chain metadata
);Example: Launch a simple token
Example: Launch a Token-2022 token
Example: Launch token with liquidity pool
Example: Launch with custom timing
Parameters Reference
LaunchTokenParams
LaunchTokenWithPoolParams
Migration from v1
v1 (Old) - SPL Token Factory
v2 (New) - Unified Factory
Key Improvements in v2
Advanced: Pool Authority Client
Custom Token Factories
Error Handling
Tips
Last updated

