You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.yaml
+253Lines changed: 253 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -422,6 +422,63 @@ paths:
422
422
application/json:
423
423
schema:
424
424
$ref: '#/components/schemas/GetSwapResponse'
425
+
/htlcclaim:
426
+
post:
427
+
tags:
428
+
- RGB
429
+
summary: Request HTLC claim
430
+
description: Validate the HTLC preimage and update the HTLC tracker entry to start claim processing.
431
+
requestBody:
432
+
required: true
433
+
content:
434
+
application/json:
435
+
schema:
436
+
$ref: '#/components/schemas/HtlcClaimRequest'
437
+
responses:
438
+
'200':
439
+
description: Successful operation
440
+
content:
441
+
application/json:
442
+
schema:
443
+
$ref: '#/components/schemas/EmptyResponse'
444
+
/htlcscan:
445
+
post:
446
+
tags:
447
+
- RGB
448
+
summary: Scan HTLC funding
449
+
description: Scan the chain for HTLC funding UTXOs and update the tracker entry.
450
+
requestBody:
451
+
required: true
452
+
content:
453
+
application/json:
454
+
schema:
455
+
$ref: '#/components/schemas/HtlcScanRequest'
456
+
responses:
457
+
'200':
458
+
description: Successful operation
459
+
content:
460
+
application/json:
461
+
schema:
462
+
$ref: '#/components/schemas/EmptyResponse'
463
+
/htlctracker:
464
+
post:
465
+
tags:
466
+
- RGB
467
+
summary: Get HTLC tracker entry
468
+
description: Get an HTLC tracker entry by payment hash.
469
+
requestBody:
470
+
required: true
471
+
content:
472
+
application/json:
473
+
schema:
474
+
$ref: '#/components/schemas/HtlcTrackerRequest'
475
+
responses:
476
+
'200':
477
+
description: Successful operation
478
+
content:
479
+
application/json:
480
+
schema:
481
+
$ref: '#/components/schemas/HtlcTrackerResponse'
425
482
/init:
426
483
post:
427
484
tags:
@@ -856,6 +913,25 @@ paths:
856
913
application/json:
857
914
schema:
858
915
$ref: '#/components/schemas/RgbInvoiceResponse'
916
+
/rgbinvoicehtlc:
917
+
post:
918
+
tags:
919
+
- RGB
920
+
summary: Get an RGB invoice bound to HTLC
921
+
description: Get an RGB invoice that binds to an HTLC P2TR scriptPubKey for submarine swaps. This is an escrow operation where RGB assets are temporarily locked in an HTLC address that is not owned by the rgb-lib wallet. The assets will be claimed into the wallet later via `/htlcclaim` when the HTLC is spent.
0 commit comments