Gets a quote for claiming a deposit made to a static deposit address for the SparkWallet.
Method Signature
async getClaimStaticDepositQuote(
txId: string,
outputIndex?: number
): Promise<{
txId: string;
outputIndex: number;
creditAmountSats: number;
sspSignature: string;
}>
Parameters
The Bitcoin transaction ID of the deposit transaction
Returns
Promise resolving to an object containing:
The transaction ID from the quote
The amount in satoshis to claim
The SSP signature required for claiming
Example
const quote = await wallet.getClaimStaticDepositQuote("transaction-hash-here");
console.log("Quote:", quote);