@secondlayer/sdk 6.27.2 → 6.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1450,6 +1450,9 @@ type IndexSbtcWithdrawal = {
1450
1450
  recipient_btc_version: number | null
1451
1451
  recipient_btc_hashbytes: string | null
1452
1452
  sweep_txid: string | null
1453
+ /** BTC L1 settlement of the committed sweep: true once confirmed, false while
1454
+ * pending, null when there is no sweep yet (REQUESTED). */
1455
+ settlement_confirmed: boolean | null
1453
1456
  requested_at?: string | null
1454
1457
  resolved_at?: string | null
1455
1458
  };
@@ -1478,6 +1481,10 @@ type IndexSbtcWithdrawalDetail = {
1478
1481
  sweep_txid: string | null
1479
1482
  btc_confirmations: number | null
1480
1483
  settlement_confirmed: boolean | null
1484
+ /** Confirming Bitcoin block height; null until the sweep confirms. */
1485
+ btc_block_height: number | null
1486
+ /** ISO timestamp the sweep first crossed the confirmation threshold. */
1487
+ confirmed_at: string | null
1481
1488
  }
1482
1489
  finalized: boolean
1483
1490
  };
@@ -1579,6 +1586,9 @@ type SbtcWithdrawalsListParams = {
1579
1586
  status?: SbtcWithdrawalStatus
1580
1587
  sender?: string
1581
1588
  requestId?: number
1589
+ /** Filter by BTC L1 settlement: true → only confirmed sweeps; false → not
1590
+ * yet confirmed (pending or no sweep). */
1591
+ settlementConfirmed?: boolean
1582
1592
  fromHeight?: number
1583
1593
  toHeight?: number
1584
1594
  };
package/dist/index.js CHANGED
@@ -1201,6 +1201,7 @@ class Index extends BaseClient {
1201
1201
  status: params.status,
1202
1202
  sender: params.sender,
1203
1203
  request_id: params.requestId,
1204
+ settlement_confirmed: params.settlementConfirmed,
1204
1205
  from_height: params.fromHeight,
1205
1206
  to_height: params.toHeight
1206
1207
  })}`);
@@ -2634,5 +2635,5 @@ export {
2634
2635
  ApiError
2635
2636
  };
2636
2637
 
2637
- //# debugId=CD88F21B10F170CE64756E2164756E21
2638
+ //# debugId=560ACB6602920BFB64756E2164756E21
2638
2639
  //# sourceMappingURL=index.js.map