Skip to content

Commit b7449c4

Browse files
author
AWS
committed
Amazon Managed Blockchain Query Update: Adding Confirmation Status and Execution Status to GetTransaction Response.
1 parent 04b7f30 commit b7449c4

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
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": "Adding Confirmation Status and Execution Status to GetTransaction Response."
6+
}

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

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@
321321
"type":"string",
322322
"pattern":"[-A-Za-z0-9]{13,74}"
323323
},
324+
"ConfirmationStatus":{
325+
"type":"string",
326+
"enum":["FINAL"]
327+
},
324328
"ContractFilter":{
325329
"type":"structure",
326330
"required":[
@@ -391,6 +395,13 @@
391395
"type":"string",
392396
"min":1
393397
},
398+
"ExecutionStatus":{
399+
"type":"string",
400+
"enum":[
401+
"FAILED",
402+
"SUCCEEDED"
403+
]
404+
},
394405
"GetAssetContractInput":{
395406
"type":"structure",
396407
"required":["contractIdentifier"],
@@ -749,9 +760,9 @@
749760
"type":"string",
750761
"enum":[
751762
"ETHEREUM_MAINNET",
763+
"ETHEREUM_SEPOLIA_TESTNET",
752764
"BITCOIN_MAINNET",
753-
"BITCOIN_TESTNET",
754-
"ETHEREUM_SEPOLIA_TESTNET"
765+
"BITCOIN_TESTNET"
755766
]
756767
},
757768
"QueryTokenId":{
@@ -992,7 +1003,6 @@
9921003
"transactionTimestamp",
9931004
"transactionIndex",
9941005
"numberOfTransactions",
995-
"status",
9961006
"to"
9971007
],
9981008
"members":{
@@ -1026,7 +1036,9 @@
10261036
},
10271037
"status":{
10281038
"shape":"QueryTransactionStatus",
1029-
"documentation":"<p>The status of the transaction.</p>"
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."
10301042
},
10311043
"to":{
10321044
"shape":"ChainAddress",
@@ -1071,6 +1083,14 @@
10711083
"transactionId":{
10721084
"shape":"String",
10731085
"documentation":"<p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1086+
},
1087+
"confirmationStatus":{
1088+
"shape":"ConfirmationStatus",
1089+
"documentation":"<p>Specifies whether the transaction has reached Finality.</p>"
1090+
},
1091+
"executionStatus":{
1092+
"shape":"ExecutionStatus",
1093+
"documentation":"<p>Identifies whether the transaction has succeeded or failed.</p>"
10741094
}
10751095
},
10761096
"documentation":"<p>There are two possible types of transactions used for this data type:</p> <ul> <li> <p>A Bitcoin transaction is a movement of BTC from one address to another.</p> </li> <li> <p>An Ethereum transaction refers to an action initiated by an externally owned account, which is an account managed by a human, not a contract. For example, if Bob sends Alice 1 ETH, Bob's account must be debited and Alice's must be credited. This state-changing action occurs within a transaction.</p> </li> </ul>"

0 commit comments

Comments
 (0)