@@ -393,6 +393,68 @@ channels:
393
393
type : request
394
394
method : POST
395
395
bindingVersion : ' 0.1.0'
396
+
397
+ /transaction :
398
+ servers :
399
+ - localhost-http
400
+ publish :
401
+ operationId : submitHydraTxRequest
402
+ message :
403
+ summary : |
404
+ Hydra transaction to be submitted to the head.
405
+ Accepts transactions encoded as Base16 CBOR string, TextEnvelope type or JSON.
406
+ payload :
407
+ $ref : " api.yaml#/components/schemas/Transaction"
408
+ bindings :
409
+ http :
410
+ type : request
411
+ method : POST
412
+ bindingVersion : ' 0.1.0'
413
+ subscribe :
414
+ operationId : submitHydraTxResponse
415
+ message :
416
+ oneOf :
417
+ - name : SubmitHydraTxConfirmed
418
+ summary : 200 OK
419
+ description : Transaction was included in a confirmed snapshot.
420
+ payload :
421
+ type : object
422
+ additionalProperties : false
423
+ properties :
424
+ tag :
425
+ type : string
426
+ enum : ["SubmitHydraTxConfirmed"]
427
+ snapshotNumber :
428
+ type : integer
429
+ minimum : 0
430
+ - name : SubmitHydraTxInvalid
431
+ summary : 400 Bad Request
432
+ description : Transaction was rejected due to validation errors.
433
+ payload :
434
+ type : object
435
+ additionalProperties : false
436
+ properties :
437
+ tag :
438
+ type : string
439
+ enum : ["SubmitHydraTxInvalid"]
440
+ validationError :
441
+ type : string
442
+ - name : SubmitHydraTxSubmitted
443
+ summary : 202 Accepted
444
+ description : Transaction was accepted but not yet confirmed.
445
+ payload :
446
+ type : object
447
+ additionalProperties : false
448
+ properties :
449
+ tag :
450
+ type : string
451
+ enum : ["SubmitHydraTxSubmitted"]
452
+ bindings :
453
+ http :
454
+ type : response
455
+ method : POST
456
+ bindingVersion : ' 0.1.0'
457
+
396
458
components :
397
459
messages :
398
460
@@ -3262,6 +3324,43 @@ components:
3262
3324
status :
3263
3325
$ref : " api.yaml#/components/schemas/DepositStatus"
3264
3326
3327
+ SubmitHydraTxResponse :
3328
+ oneOf :
3329
+ - title : SubmitHydraTxConfirmed
3330
+ type : object
3331
+ additionalProperties : false
3332
+ required :
3333
+ - tag
3334
+ - snapshotNumber
3335
+ properties :
3336
+ tag :
3337
+ type : string
3338
+ enum : ["SubmitHydraTxConfirmed"]
3339
+ snapshotNumber :
3340
+ type : integer
3341
+ minimum : 0
3342
+ - title : SubmitHydraTxInvalid
3343
+ type : object
3344
+ additionalProperties : false
3345
+ required :
3346
+ - tag
3347
+ - validationError
3348
+ properties :
3349
+ tag :
3350
+ type : string
3351
+ enum : ["SubmitHydraTxInvalid"]
3352
+ validationError :
3353
+ type : string
3354
+ - title : SubmitHydraTxSubmitted
3355
+ type : object
3356
+ additionalProperties : false
3357
+ required :
3358
+ - tag
3359
+ properties :
3360
+ tag :
3361
+ type : string
3362
+ enum : ["SubmitHydraTxSubmitted"]
3363
+
3265
3364
DepositStatus :
3266
3365
oneOf :
3267
3366
- title : Unknown
0 commit comments