SparkWallet. The quote includes options for different speeds and an expiry time.
Method Signature
Parameters
The amount in satoshis to withdraw
The Bitcoin address where the funds should be sent
Returns
A fee quote for the withdrawal, or null if not available
CoopExitFeeQuote Fields
| Field | Type | Description |
|---|---|---|
id | string | Quote ID (use as feeQuoteId in withdraw()) |
expiresAt | string | When this quote expires |
userFeeFast | CurrencyAmount | Service fee for fast exit |
userFeeMedium | CurrencyAmount | Service fee for medium exit |
userFeeSlow | CurrencyAmount | Service fee for slow exit |
l1BroadcastFeeFast | CurrencyAmount | L1 tx fee for fast exit |
l1BroadcastFeeMedium | CurrencyAmount | L1 tx fee for medium exit |
l1BroadcastFeeSlow | CurrencyAmount | L1 tx fee for slow exit |
CurrencyAmount has originalValue (number in satoshis) and originalUnit fields.