Skip to main content
Gets a fee quote for a cooperative exit (on-chain withdrawal) for the SparkWallet. The quote includes options for different speeds and an expiry time.

Method Signature

Parameters

amountSats
number
required
The amount in satoshis to withdraw
withdrawalAddress
string
required
The Bitcoin address where the funds should be sent

Returns

feeQuote
CoopExitFeeQuote | null
required
A fee quote for the withdrawal, or null if not available

CoopExitFeeQuote Fields

CurrencyAmount has originalValue (number in satoshis) and originalUnit fields.

Example