For Bitcoin
| Transaction Type | Fee structure |
|---|---|
| L1 to Spark | On-chain fee paid by the user |
| Spark to Spark | Free. Small flat fee coming in 6-12 months |
| Spark to Lightning | 0.25% + routing fee |
| Lightning to Spark | Free for the receiver. 0.15% for the sender (charged on routing nodes via route hints) |
| Send to L1 | 250 × sats_per_vbyte + 750 where sats_per_vbyte is the fee rate based on exit speed (slow, medium, or fast) |
| Unilateral Exit | On-chain fee paid by the user |
For BTKN assets
| Transaction Type | Fee structure |
|---|---|
| Spark to Spark | Free |
| Unilateral Exit | On-chain fee + bond locked by user |
Some of the fees are sourced directly from the Lightspark SSP, specifically for Spark–Lightning interactions. Lightspark is the first SSP on Spark, but the system is open. Anyone can run an SSP (SSP specs coming soon). If you’re an SSP, reach out, and we’ll include your fee structure.
Fee Estimation Flow
The complete process for estimating fees before making transactions:1
Choose Operation Type
Determine which type of operation you want to estimate fees for.
2
Get Fee Estimate
Call the appropriate fee estimation method.
3
Review Fee Details
Examine the fee estimate response to understand costs.
4
Proceed with Transaction
Use the fee estimate to set appropriate limits for your transaction.
Lightning Send Fee Estimates
Estimate fees for sending Lightning payments before making the transaction. Gets an estimated fee for sending a Lightning payment. Note: the actual fee assessed may be different from the fee estimate as it will be determined by the actual Lightning node routing.Example Response
Sending on L1 Fee Estimates
Estimate fees for sending funds on the Bitcoin network. Gets a fee quote for a cooperative exit (on-chain withdrawal). The quote includes options for different speeds and an expiry time and must be passed towithdraw before it expires.
Example Response
Swap Fee Estimates
Estimate fees for leaves swap operations. Leaves swaps are internal wallet optimization operations that consolidate or split your sats leaves. Gets the estimated fee for a swap of leaves.Fee Deduction Options
For cooperative exits, you can choose how fees are handled:Deduct Fee from Withdrawal Amount
WhendeductFeeFromWithdrawalAmount is set to true:
Pay Fee Separately
WhendeductFeeFromWithdrawalAmount is set to false: