Withdraw Tokens
Learn how to withdraw LRC-20 tokens back to Bitcoin L1
This feature is currently under development and will be available in a future release of Spark.
Prerequisites
- You have tokens you want to withdraw
- Your L1 wallet has sufficient funds to cover the withdrawal bond (currently 10,000 sats)
Step 1: Get Your L1 Wallet Address
First, get your Bitcoin L1 wallet address that needs funding for withdrawal:
Step 2: Fund Your L1 Wallet Address
Before withdrawing, you need to fund this address with:
- Withdrawal bond (currently 10,000 sats)
- Network fees for the withdrawal transaction
If testing on Lightspark regtest you can use:
- Our Faucet
- username:
hackathon
- password:
MakeBitcoinMoneyAgain
- username:
Step 3: Withdraw your tokens
Once your wallet has minted and/or received tokens, you can withdraw some or all of those tokens:
Parameters
tokenPublicKey
:string
- The public key of the token to withdrawtokenAmount?
:bigint
- (Optional) Amount of tokens to withdraw
Returns
Important Considerations
- Always verify you have sufficient L1 funds (>10,000 sats) before withdrawing
- The withdrawal bond is refundable after the locking period
- Withdrawal requires Bitcoin network fees
- Transfers to L1 require confirmation time (typically 1-2 Bitcoin blocks)
- Keep track of your transaction IDs for status monitoring
Conclusion
Congratulations! You’ve completed the Quick Start guide for token issuance on Spark. For more information, check out the API Reference or FAQ.