> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spark.money/llms.txt
> Use this file to discover all available pages before exploring further.

# refundAndBroadcastStaticDeposit

> Refund a static deposit and broadcast to Bitcoin network.

Refunds a static deposit and broadcasts the transaction to the Bitcoin network.

## Method Signature

```typescript theme={null}
async refundAndBroadcastStaticDeposit({
  depositTransactionId,
  outputIndex,
  destinationAddress,
  satsPerVbyteFee,
}: {
  depositTransactionId: string;
  outputIndex?: number;
  destinationAddress: string;
  satsPerVbyteFee?: number;
}): Promise<string>
```

## Parameters

<ResponseField name="depositTransactionId" type="string" required>
  The transaction ID of the original deposit
</ResponseField>

<ResponseField name="outputIndex" type="number">
  The output index (auto-detected if not provided)
</ResponseField>

<ResponseField name="destinationAddress" type="string" required>
  The Bitcoin address to send the refund to
</ResponseField>

<ResponseField name="satsPerVbyteFee" type="number">
  The fee rate in sats per vbyte
</ResponseField>

## Returns

<ResponseField name="txid" type="string" required>
  The transaction ID of the broadcast refund transaction
</ResponseField>

## Example

```typescript theme={null}
const txid = await wallet.refundAndBroadcastStaticDeposit({
  depositTransactionId: "abc123...",
  destinationAddress: "bcrt1p...",
  satsPerVbyteFee: 10
});
console.log("Refund broadcast, txid:", txid);
```
