File tree Expand file tree Collapse file tree 2 files changed +62
-7
lines changed
Expand file tree Collapse file tree 2 files changed +62
-7
lines changed Original file line number Diff line number Diff line change 1+ swagger : ' 2.0'
2+ schemes : ["http"]
3+ host : localhost
4+ basePath : /
5+ info :
6+ title : cardano-submit-api
7+ version : 3.1.0
8+ license :
9+ name : Apache-2.0
10+ url : https://github.com/input-output-hk/cardano-rest/blob/master/submit-api/LICENSE
11+ description : |
12+ <p align="right"><img style="position: relative; top: -10em; margin-bottom: -12em;" width="20%" src="https://cardanodocs.com/img/cardano.png"></img></p>
13+
14+ x-tagGroups : []
15+
16+ definitions : {}
17+
18+ paths :
19+ /api/submit/tx :
20+ post :
21+ operationId : postTransaction
22+ summary : Submit Tx
23+ description : Submit an already serialized transaction to the network.
24+ parameters :
25+ - in : header
26+ name : Content-Type
27+ required : true
28+ type : string
29+ enum : ["application/cbor"]
30+
31+ x-code-samples :
32+ - lang : " Shell"
33+ label : " cURL"
34+ source : |
35+ # Assuming `data` is a raw binary serialized transaction on the file-system.
36+ curl -X POST \
37+ --header "Content-Type: application/cbor" \
38+ --data-binary @data http://localhost:8101/api/submit/tx
39+ produces :
40+ - " application/json"
41+ responses :
42+ 202 :
43+ description : Ok
44+ schema :
45+ description : The transaction id.
46+ type : string
47+ format : hex
48+ minLength : 64
49+ maxLength : 64
50+ example : 92bcd06b25dfbd89b578d536b4d3b7dd269b7c2aa206ed518012cffe0444d67f
51+
52+ 400 :
53+ description : Bad Request
54+ schema :
55+ type : string
56+ description : An error message.
Original file line number Diff line number Diff line change 1- basePath : /
1+ swagger : " 2.0"
2+ schemes : ["http"]
23host : localhost:8090
4+ basePath : /
35info :
6+ title : go-cardano-submit-api
7+ version : 3.1.0
48 contact :
59610 name : CloudStruct
913 license :
1014 name : Apache 2.0
1115 url : http://www.apache.org/licenses/LICENSE-2.0.html
12- title : go-cardano-submit-api
13- version : 3.1.0
1416paths :
1517 /api/submit/tx :
1618 post :
19+ summary : Submit Tx
1720 description : Submit an already serialized transaction to the network.
1821 parameters :
1922 - description : Content type
3841 description : Server Error
3942 schema :
4043 type : string
41- summary : Submit Tx
42- schemes :
43- - http
44- swagger : " 2.0"
You can’t perform that action at this time.
0 commit comments