Skip to content

Commit 49308f8

Browse files
author
AWS
committed
Amazon Managed Blockchain Query Update: This release adds support for transactions that have not reached finality. It also removes support for the status property from the response of the GetTransaction operation. You can use the confirmationStatus and executionStatus properties to determine the status of the transaction.
1 parent 9022126 commit 49308f8

File tree

2 files changed

+45
-25
lines changed

2 files changed

+45
-25
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Managed Blockchain Query",
4+
"contributor": "",
5+
"description": "This release adds support for transactions that have not reached finality. It also removes support for the status property from the response of the GetTransaction operation. You can use the confirmationStatus and executionStatus properties to determine the status of the transaction."
6+
}

services/managedblockchainquery/src/main/resources/codegen-resources/service-2.json

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{"shape":"InternalServerException"},
3131
{"shape":"ServiceQuotaExceededException"}
3232
],
33-
"documentation":"<p>Gets the token balance for a batch of tokens by using the <code>BatchGetTokenBalance</code> action for every token in the request.</p> <note> <p>Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>"
33+
"documentation":"<p>Gets the token balance for a batch of tokens by using the <code>BatchGetTokenBalance</code> action for every token in the request.</p> <note> <p>Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>"
3434
},
3535
"GetAssetContract":{
3636
"name":"GetAssetContract",
@@ -68,7 +68,7 @@
6868
{"shape":"InternalServerException"},
6969
{"shape":"ServiceQuotaExceededException"}
7070
],
71-
"documentation":"<p>Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.</p> <note> <p>Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>"
71+
"documentation":"<p>Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.</p> <note> <p>Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>"
7272
},
7373
"GetTransaction":{
7474
"name":"GetTransaction",
@@ -87,7 +87,7 @@
8787
{"shape":"InternalServerException"},
8888
{"shape":"ServiceQuotaExceededException"}
8989
],
90-
"documentation":"<p>Get the details of a transaction.</p>"
90+
"documentation":"<p>Gets the details of a transaction.</p> <note> <p>This action will return transaction details for all transactions that are <i>confirmed</i> on the blockchain, even if they have not reached <a href=\"https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality\">finality</a>. </p> </note>"
9191
},
9292
"ListAssetContracts":{
9393
"name":"ListAssetContracts",
@@ -141,7 +141,7 @@
141141
{"shape":"InternalServerException"},
142142
{"shape":"ServiceQuotaExceededException"}
143143
],
144-
"documentation":"<p>An array of <code>TransactionEvent</code> objects. Each object contains details about the transaction event.</p>"
144+
"documentation":"<p>An array of <code>TransactionEvent</code> objects. Each object contains details about the transaction event.</p> <note> <p>This action will return transaction details for all transactions that are <i>confirmed</i> on the blockchain, even if they have not reached <a href=\"https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality\">finality</a>. </p> </note>"
145145
},
146146
"ListTransactions":{
147147
"name":"ListTransactions",
@@ -323,7 +323,26 @@
323323
},
324324
"ConfirmationStatus":{
325325
"type":"string",
326-
"enum":["FINAL"]
326+
"enum":[
327+
"FINAL",
328+
"NONFINAL"
329+
]
330+
},
331+
"ConfirmationStatusFilter":{
332+
"type":"structure",
333+
"required":["include"],
334+
"members":{
335+
"include":{
336+
"shape":"ConfirmationStatusIncludeList",
337+
"documentation":"<p>The container to determine whether to list results that have only reached <a href=\"https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality\"> <i>finality</i> </a>. Transactions that have reached finality are always part of the response.</p>"
338+
}
339+
},
340+
"documentation":"<p>The container for the <code>ConfirmationStatusFilter</code> that filters for the <a href=\"https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality\"> <i>finality</i> </a> of the results.</p>"
341+
},
342+
"ConfirmationStatusIncludeList":{
343+
"type":"list",
344+
"member":{"shape":"ConfirmationStatus"},
345+
"min":1
327346
},
328347
"ContractFilter":{
329348
"type":"structure",
@@ -545,7 +564,7 @@
545564
},
546565
"maxResults":{
547566
"shape":"ListAssetContractsInputMaxResultsInteger",
548-
"documentation":"<p>The maximum number of contracts to list.</p>"
567+
"documentation":"<p>The maximum number of contracts to list.</p> <p>Default:<code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>"
549568
}
550569
}
551570
},
@@ -587,7 +606,7 @@
587606
},
588607
"maxResults":{
589608
"shape":"ListTokenBalancesInputMaxResultsInteger",
590-
"documentation":"<p>The maximum number of token balances to return.</p>"
609+
"documentation":"<p>The maximum number of token balances to return.</p> <p>Default:<code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>"
591610
}
592611
}
593612
},
@@ -632,7 +651,7 @@
632651
},
633652
"maxResults":{
634653
"shape":"ListTransactionEventsInputMaxResultsInteger",
635-
"documentation":"<p>The maximum number of transaction events to list.</p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>"
654+
"documentation":"<p>The maximum number of transaction events to list.</p> <p>Default:<code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>"
636655
}
637656
}
638657
},
@@ -675,15 +694,19 @@
675694
"toBlockchainInstant":{"shape":"BlockchainInstant"},
676695
"sort":{
677696
"shape":"ListTransactionsSort",
678-
"documentation":"<p>Sorts items in an ascending order if the first page starts at <code>fromTime</code>. Sorts items in a descending order if the first page starts at <code>toTime</code>.</p>"
697+
"documentation":"<p>The order by which the results will be sorted. If <code>ASCENNDING</code> is selected, the results will be ordered by <code>fromTime</code>. </p>"
679698
},
680699
"nextToken":{
681700
"shape":"NextToken",
682701
"documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
683702
},
684703
"maxResults":{
685704
"shape":"ListTransactionsInputMaxResultsInteger",
686-
"documentation":"<p>The maximum number of transactions to list.</p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>"
705+
"documentation":"<p>The maximum number of transactions to list.</p> <p>Default:<code>100</code> </p> <note> <p>Even if additional results can be retrieved, the request can return less results than <code>maxResults</code> or an empty array of results.</p> <p>To retrieve the next set of results, make another request with the returned <code>nextToken</code> value. The value of <code>nextToken</code> is <code>null</code> when there are no more results to return</p> </note>"
706+
},
707+
"confirmationStatusFilter":{
708+
"shape":"ConfirmationStatusFilter",
709+
"documentation":"<p>This filter is used to include transactions in the response that haven't reached <a href=\"https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality\"> <i>finality</i> </a>. Transactions that have reached finiality are always part of the response.</p>"
687710
}
688711
}
689712
},
@@ -797,13 +820,6 @@
797820
"type":"string",
798821
"pattern":"(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})"
799822
},
800-
"QueryTransactionStatus":{
801-
"type":"string",
802-
"enum":[
803-
"FINAL",
804-
"FAILED"
805-
]
806-
},
807823
"QuotaCode":{"type":"string"},
808824
"ResourceId":{"type":"string"},
809825
"ResourceNotFoundException":{
@@ -990,10 +1006,10 @@
9901006
},
9911007
"tokenId":{
9921008
"shape":"QueryTokenId",
993-
"documentation":"<p>The unique identifier of the token.</p> <note> <p>You must specify this container with <code>btc</code> for the native BTC token, and <code>eth</code> for the native ETH token. For all other token types you must specify the <code>tokenId</code> in the 64 character hexadecimal <code>tokenid</code> format.</p> </note>"
1009+
"documentation":"<p>The unique identifier of the token.</p> <note> <p>For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for Bitcoin, eth for Ether, etc. For all other token types you must specify the <code>tokenId</code> in the 64 character hexadecimal <code>tokenid</code> format.</p> </note>"
9941010
}
9951011
},
996-
"documentation":"<p>The container for the identifier for the token including the unique token ID and its blockchain network.</p> <note> <p>Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>"
1012+
"documentation":"<p>The container for the identifier for the token including the unique token ID and its blockchain network.</p> <note> <p>Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.</p> </note>"
9971013
},
9981014
"Transaction":{
9991015
"type":"structure",
@@ -1034,12 +1050,6 @@
10341050
"shape":"Long",
10351051
"documentation":"<p>The number of transactions in the block.</p>"
10361052
},
1037-
"status":{
1038-
"shape":"QueryTransactionStatus",
1039-
"documentation":"<p>The status of the transaction.</p> <important> <p>This property is deprecated. You must use the <code>confirmationStatus</code> and the <code>executionStatus</code> properties to determine if the <code>status</code> of the transaction is <code>FINAL</code> or <code>FAILED</code>.</p> <ul> <li> <p>Transactions with a <code>status</code> of <code>FINAL</code> will now have the <code>confirmationStatus</code> set to <code>FINAL</code> and the <code>executionStatus</code> set to <code>SUCCEEDED</code>.</p> </li> <li> <p>Transactions with a <code>status</code> of <code>FAILED</code> will now have the <code>confirmationStatus</code> set to <code>FINAL</code> and the <code>executionStatus</code> set to <code>FAILED</code>.</p> </li> </ul> </important>",
1040-
"deprecated":true,
1041-
"deprecatedMessage":"The status field in the GetTransaction response is deprecated and is replaced with the confirmationStatus and executionStatus fields."
1042-
},
10431053
"to":{
10441054
"shape":"ChainAddress",
10451055
"documentation":"<p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
@@ -1171,6 +1181,10 @@
11711181
"transactionTimestamp":{
11721182
"shape":"Timestamp",
11731183
"documentation":"<p>The time when the transaction occurred.</p>"
1184+
},
1185+
"confirmationStatus":{
1186+
"shape":"ConfirmationStatus",
1187+
"documentation":"<p>Specifies whether to list transactions that have not reached Finality.</p>"
11741188
}
11751189
},
11761190
"documentation":"<p>The container of the transaction output.</p>"

0 commit comments

Comments
 (0)