What you need to know
- Token creation is one-per-wallet
- No Bitcoin L1 funding needed
- Tokens are created instantly
- Metadata is immutable once set
- Minting can begin immediately after creation
Prerequisites
- You have already initialized your wallet
- SDK version 0.2.2 or later
Create Your Token
Creating a token on Spark is simple and immediate. Use thecreateToken method to register your token with the Spark network:
Parameters
ThecreateToken() function accepts the following metadata:
| Parameter | Type | Description |
|---|---|---|
tokenName | string | Human-readable token name (e.g., “USD Coin”) |
tokenTicker | string | Token symbol (e.g., “USDC”) |
decimals | number | Number of decimal places (e.g., 6 for USDC, 8 for BTC) |
maxSupply | bigint | Maximum token supply in base units. Set to 0n for unlimited supply |
isFreezable | boolean | Whether the token can be frozen after issuance |