|
1 | | -openapi: 3.0.3 |
| 1 | +openapi: 3.1.0 |
2 | 2 | info: |
3 | 3 | title: RGB Multisig Hub |
4 | 4 | description: |- |
@@ -167,6 +167,28 @@ paths: |
167 | 167 | application/json: |
168 | 168 | schema: |
169 | 169 | $ref: '#/components/schemas/OperationResponse' |
| 170 | + /transferstatus: |
| 171 | + post: |
| 172 | + tags: |
| 173 | + - Write |
| 174 | + summary: Get or set batch transfer acceptance status |
| 175 | + description: |- |
| 176 | + Without `accept`, returns the registered acceptance for the given batch |
| 177 | + transfer index, or null if none. With `accept`, only a cosigner may |
| 178 | + record acceptance (`true`) or rejection (`false`) for their key; |
| 179 | + watch-only tokens receive 403 on this path. |
| 180 | + requestBody: |
| 181 | + content: |
| 182 | + application/json: |
| 183 | + schema: |
| 184 | + $ref: '#/components/schemas/TransferStatusRequest' |
| 185 | + responses: |
| 186 | + '200': |
| 187 | + description: Successful operation |
| 188 | + content: |
| 189 | + application/json: |
| 190 | + schema: |
| 191 | + $ref: '#/components/schemas/TransferStatusResponse' |
170 | 192 | components: |
171 | 193 | schemas: |
172 | 194 | BumpAddressIndicesRequest: |
@@ -439,6 +461,44 @@ components: |
439 | 461 | type: string |
440 | 462 | format: binary |
441 | 463 | description: Required if ack is true - signed PSBT file |
| 464 | + TransferStatusInfo: |
| 465 | + type: object |
| 466 | + required: |
| 467 | + - cosigner_xpub |
| 468 | + - accepted |
| 469 | + - registered_at |
| 470 | + properties: |
| 471 | + cosigner_xpub: |
| 472 | + type: string |
| 473 | + description: Extended public key of the cosigner who registered the status |
| 474 | + accepted: |
| 475 | + type: boolean |
| 476 | + description: Whether the transfer was accepted |
| 477 | + registered_at: |
| 478 | + type: integer |
| 479 | + format: int64 |
| 480 | + description: Unix timestamp when the status was registered |
| 481 | + TransferStatusRequest: |
| 482 | + type: object |
| 483 | + required: |
| 484 | + - batch_transfer_idx |
| 485 | + properties: |
| 486 | + batch_transfer_idx: |
| 487 | + type: integer |
| 488 | + format: int32 |
| 489 | + example: 1 |
| 490 | + description: Batch transfer index |
| 491 | + accept: |
| 492 | + type: boolean |
| 493 | + description: Omit to read status; set to true/false to record acceptance (cosigner only) |
| 494 | + TransferStatusResponse: |
| 495 | + type: object |
| 496 | + properties: |
| 497 | + status: |
| 498 | + nullable: true |
| 499 | + allOf: |
| 500 | + - $ref: '#/components/schemas/TransferStatusInfo' |
| 501 | + description: Present after a successful write, or when a status exists for the batch; null if absent |
442 | 502 | UserRole: |
443 | 503 | description: The role of the user calling the API |
444 | 504 | oneOf: |
|
0 commit comments