Developer Guide
Cooperative Exit to L1
Learn how to withdraw funds from Spark to Bitcoin
Understanding Cooperative Exits
A cooperative exit involves coordination between your wallet and the SSP to process your withdrawal efficiently. This is the preferred method because:
- Lower fees than unilateral exits
- It’s faster
- No timelocks
Initiating the Withdraw
The minimum amount to withdrawal is 10,000 sats
Withdrawing tokens
You can also withdraw tokens from your spark wallet.
More details on token withdrawal token withdrawal
Fee Considerations
- Network fees are required for the Bitcoin transaction and they will be deducted from the
amountSats
- The total cost will include:
- Bitcoin network fee
- Spark service fee (if applicable, charged by the SSP)
- Example: If you are setting
amountSats
to 10,000 sats, the bitcoin fees are 2000 sats, and the SSP fees are 1000 sats, you will receive 7000 sats at your L1 address.
Best Practices
- Verify the withdrawal address before confirming
- Keep track of your exit transaction ID
- Wait for sufficient confirmations
Common Issues
- Network congestion delays
- Address format issues
- Insufficient balance for fees
Next Steps
If cooperative exit isn’t possible, you can:
Try a unilateral exit(coming soon)- Review the API Reference for advanced options
Need Help?
- Check our FAQ
- Review the API Reference
- Follow our Testing Guide