Skip to content

Commit

Permalink
Unify transaction identifier response
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Jul 25, 2020
1 parent a3a6607 commit 439cfa9
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

openapi: 3.0.2
info:
version: 1.4.0
version: 1.4.1
title: Rosetta
description: |
Build Once. Integrate Your Blockchain Everywhere.
Expand Down Expand Up @@ -518,7 +518,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ConstructionHashResponse'
$ref: '#/components/schemas/TransactionIdentifierResponse'
default:
description: unexpected error
content:
Expand Down Expand Up @@ -552,7 +552,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ConstructionSubmitResponse'
$ref: '#/components/schemas/TransactionIdentifierResponse'
default:
description: unexpected error
content:
Expand Down Expand Up @@ -1054,15 +1054,6 @@ components:
$ref: '#/components/schemas/NetworkIdentifier'
signed_transaction:
type: string
ConstructionHashResponse:
description: |
ConstructionHashResponse is the output of the `/construction/hash` endpoint.
type: object
required:
- transaction_hash
properties:
transaction_hash:
type: string
ConstructionSubmitRequest:
description: |
The transaction submission request includes a signed transaction.
Expand All @@ -1075,10 +1066,11 @@ components:
$ref: '#/components/schemas/NetworkIdentifier'
signed_transaction:
type: string
ConstructionSubmitResponse:
TransactionIdentifierResponse:
description: |
A TransactionSubmitResponse contains the transaction_identifier of a
submitted transaction that was accepted into the mempool.
TransactionIdentifierResponse contains the transaction_identifier of a
transaction that was submitted to either `/construction/hash` or
`/construction/submit`.
type: object
required:
- transaction_identifier
Expand Down

0 comments on commit 439cfa9

Please sign in to comment.