diff --git a/openapi.json b/openapi.json index 0ba51a25..bce5042f 100644 --- a/openapi.json +++ b/openapi.json @@ -2130,6 +2130,58 @@ } } }, + "/txs/{hash}/required-signers": { + "get": { + "tags": [ + "Cardano » Transactions" + ], + "summary": "Transaction required signers", + "description": "Extra transaction witnesses", + "parameters": [ + { + "in": "path", + "name": "hash", + "required": true, + "schema": { + "type": "string", + "format": "64-character case-sensitive hexadecimal string." + }, + "description": "Hash of the transaction", + "example": "6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b" + } + ], + "responses": { + "200": { + "description": "Query required signers (extra transaction witnesses)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tx_content_required_signers" + } + } + } + }, + "400": { + "$ref": "#/components/responses/400" + }, + "403": { + "$ref": "#/components/responses/403" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "418": { + "$ref": "#/components/responses/418" + }, + "429": { + "$ref": "#/components/responses/429" + }, + "500": { + "$ref": "#/components/responses/500" + } + } + } + }, "/tx/submit": { "post": { "tags": [ @@ -8617,6 +8669,19 @@ ] } }, + "tx_content_required_signers": { + "type": "array", + "items": { + "type": "string", + "description": "Hash of the witness" + }, + "example": [ + "d52e11f3e48436dd42dbec6d88c239732e503b8b7a32af58e5f87625", + "41b32682c413535dbca5178f92f3cee5dede31b995400b8c371e2469", + "d52e11f3e48436dd42dbec6d88c239732e503b8b7a32af58e5f87625", + "666414964a05b01cef36427b8a0fb0f621806c43e66e7a4d3cca3bfb" + ] + }, "account_content": { "type": "object", "properties": { diff --git a/openapi.yaml b/openapi.yaml index 805ce4d8..594dfc81 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1652,6 +1652,40 @@ paths: $ref: '#/components/responses/429' '500': $ref: '#/components/responses/500' + /txs/{hash}/required-signers: + get: + tags: + - Cardano » Transactions + summary: Transaction required signers + description: Extra transaction witnesses + parameters: + - in: path + name: hash + required: true + schema: + type: string + format: 64-character case-sensitive hexadecimal string. + description: Hash of the transaction + example: 6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b + responses: + '200': + description: Query required signers (extra transaction witnesses) + content: + application/json: + schema: + $ref: '#/components/schemas/tx_content_required_signers' + '400': + $ref: '#/components/responses/400' + '403': + $ref: '#/components/responses/403' + '404': + $ref: '#/components/responses/404' + '418': + $ref: '#/components/responses/418' + '429': + $ref: '#/components/responses/429' + '500': + $ref: '#/components/responses/500' /tx/submit: post: tags: @@ -6380,6 +6414,16 @@ components: - redeemer_data_hash - datum_hash - fee + tx_content_required_signers: + type: array + items: + type: string + description: Hash of the witness + example: + - d52e11f3e48436dd42dbec6d88c239732e503b8b7a32af58e5f87625 + - 41b32682c413535dbca5178f92f3cee5dede31b995400b8c371e2469 + - d52e11f3e48436dd42dbec6d88c239732e503b8b7a32af58e5f87625 + - 666414964a05b01cef36427b8a0fb0f621806c43e66e7a4d3cca3bfb account_content: type: object properties: diff --git a/src/definitions.yaml b/src/definitions.yaml index 4aea5da0..0d781eb7 100644 --- a/src/definitions.yaml +++ b/src/definitions.yaml @@ -378,6 +378,9 @@ paths: /txs/{hash}/redeemers: $ref: ./paths/api/txs/{hash}/redeemers.yaml + /txs/{hash}/required-signers: + $ref: ./paths/api/txs/{hash}/required-signers.yaml + /tx/submit: $ref: ./paths/api/tx/submit.yaml diff --git a/src/paths/api/txs/{hash}/required-signers.yaml b/src/paths/api/txs/{hash}/required-signers.yaml new file mode 100644 index 00000000..16ac4c72 --- /dev/null +++ b/src/paths/api/txs/{hash}/required-signers.yaml @@ -0,0 +1,33 @@ +get: + tags: + - Cardano » Transactions + summary: Transaction required signers + description: Extra transaction witnesses + parameters: + - in: path + name: hash + required: true + schema: + type: string + format: 64-character case-sensitive hexadecimal string. + description: Hash of the transaction + example: "6e5f825c82c1c6d6b77f2a14092f3b78c8f1b66db6f4cf8caec1555b6f967b3b" + responses: + "200": + description: Query required signers (extra transaction witnesses) + content: + application/json: + schema: + $ref: ../../../../schemas/txs/tx_content_required_signers.yaml + "400": + $ref: ../../../../responses/errors/400.yaml + "403": + $ref: ../../../../responses/errors/403.yaml + "404": + $ref: ../../../../responses/errors/404.yaml + "429": + $ref: ../../../../responses/errors/429.yaml + "418": + $ref: ../../../../responses/errors/418.yaml + "500": + $ref: ../../../../responses/errors/500.yaml diff --git a/src/schemas/txs/tx_content_required_signers.yaml b/src/schemas/txs/tx_content_required_signers.yaml new file mode 100644 index 00000000..8d097e0c --- /dev/null +++ b/src/schemas/txs/tx_content_required_signers.yaml @@ -0,0 +1,9 @@ +type: array +items: + type: string + description: Hash of the witness +example: + - "d52e11f3e48436dd42dbec6d88c239732e503b8b7a32af58e5f87625" + - "41b32682c413535dbca5178f92f3cee5dede31b995400b8c371e2469" + - "d52e11f3e48436dd42dbec6d88c239732e503b8b7a32af58e5f87625" + - "666414964a05b01cef36427b8a0fb0f621806c43e66e7a4d3cca3bfb"