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 |
Returns
Examples
Creating an Unlimited Supply Token
Creating a Fixed Supply Token
Legacy L1 Announcements
Deprecated: L1 token announcements via
announceTokenL1()
are being phased out. While existing tokens announced on-chain will continue to function normally, we recommend using Spark Native Tokens (createToken()
) for all new token launches. The L1 announcement flow will be removed from the SDK in upcoming releases.