Skip to main content
Claims an instant static deposit using a quote from getInstantStaticDepositQuote and one of its fulfillment plans.
This method supports both 0-conf plans and plans that require one or more confirmations. The SDK signs the correct claim statement based on the selected plan.

Method Signature

Parameters

quote
StaticDepositQuote
required
The quote object returned by getInstantStaticDepositQuote.
plan
InstantStaticDepositPlan
required
The fulfillment plan to claim. Select a plan with confirmations === 0 for the 0-conf path.
transactionId
string
required
The Bitcoin transaction ID of the deposit transaction.
outputIndex
number
required
The output index that pays the Spark static deposit address.

Returns

claimId
string
required
The identifier for the instant static deposit claim.

Example