Quick Start
Announce Your Token
Announce a new LRC-20 token on Bitcoin L1
The first step on your journey to minting tokens on Spark is to announce your token identifier and metadata on L1. This is a one time operation that locks in LRC-20 token settings and restrictions. All token data is embedded in an OP_RETURN output.
Step 1: Get Your L1 Wallet Address
In the earlier step you initialized your wallet. Now get your wallets L1 funding address.
Step 2: Get Your L1 Wallet Address
Next you need to fund this address with a UTXO to fulfill the network fees needed for your announcement transaction. If testing on Lightspark regtest you can use our faucet.
Step 3: Broadcast the L1 Announcement Transaction
Now you are ready to announce your token on L1.
Parameters
The announce call takes in the following metadata:
Parameter | Type | Description |
---|---|---|
tokenName | string | Human-readable token name (e.g., “USD Coin”) |
tokenTicker | string | Trading 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 |
isFreezeable | boolean | Whether the token can be frozen |
Returns
Example Token Definitions
Creating an Unlimited Supply Token
Creating a Fixed Supply Token
Notes
- Issuer wallets are 1:1 with tokens. A single Issuer Wallet can not manage multiple tokens.
- The announcement transaction requires Bitcoin network fees
- Transaction confirmation typically takes 1-2 blocks (~10-20 minutes)
- Token metadata is immutable after announcement
- Save the announcement transaction ID so you can refer to it later
- If
isFreezeable
is true, the token can be frozen later usingfreezeToken
Next Steps
Once your token is created, you can mint some tokens.