Skip to main content
Gets a quote for claiming a deposit made to a static deposit address for the SparkWallet.

Method Signature

async getClaimStaticDepositQuote(
  transactionId: string,
  outputIndex?: number
): Promise<StaticDepositQuoteOutput>

Parameters

transactionId
string
required
The Bitcoin transaction ID of the deposit transaction
outputIndex
number
The index of the output (auto-detected if not provided)

Returns

quote
StaticDepositQuoteOutput
required
Quote object containing:
  • creditAmountSats: The amount in satoshis to claim
  • signature: The SSP signature required for claiming

Example

const quote = await wallet.getClaimStaticDepositQuote("abc123...");
console.log("Credit amount:", quote.creditAmountSats);
console.log("Signature:", quote.signature);