1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2023-05-04",
5    "endpointPrefix":"managedblockchain-query",
6    "jsonVersion":"1.1",
7    "protocol":"rest-json",
8    "ripServiceName":"chainquery",
9    "serviceFullName":"Amazon Managed Blockchain Query",
10    "serviceId":"ManagedBlockchain Query",
11    "signatureVersion":"v4",
12    "signingName":"managedblockchain-query",
13    "uid":"managedblockchain-query-2023-05-04"
14  },
15  "operations":{
16    "BatchGetTokenBalance":{
17      "name":"BatchGetTokenBalance",
18      "http":{
19        "method":"POST",
20        "requestUri":"/batch-get-token-balance",
21        "responseCode":200
22      },
23      "input":{"shape":"BatchGetTokenBalanceInput"},
24      "output":{"shape":"BatchGetTokenBalanceOutput"},
25      "errors":[
26        {"shape":"ThrottlingException"},
27        {"shape":"ValidationException"},
28        {"shape":"ResourceNotFoundException"},
29        {"shape":"AccessDeniedException"},
30        {"shape":"InternalServerException"},
31        {"shape":"ServiceQuotaExceededException"}
32      ],
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>"
34    },
35    "GetAssetContract":{
36      "name":"GetAssetContract",
37      "http":{
38        "method":"POST",
39        "requestUri":"/get-asset-contract",
40        "responseCode":200
41      },
42      "input":{"shape":"GetAssetContractInput"},
43      "output":{"shape":"GetAssetContractOutput"},
44      "errors":[
45        {"shape":"ThrottlingException"},
46        {"shape":"ValidationException"},
47        {"shape":"ResourceNotFoundException"},
48        {"shape":"AccessDeniedException"},
49        {"shape":"InternalServerException"},
50        {"shape":"ServiceQuotaExceededException"}
51      ],
52      "documentation":"<p>Gets the information about a specific contract deployed on the blockchain.</p> <note> <ul> <li> <p>The Bitcoin blockchain networks do not support this operation.</p> </li> <li> <p>Metadata is currently only available for some <code>ERC-20</code> contracts. Metadata will be available for additional contracts in the future.</p> </li> </ul> </note>"
53    },
54    "GetTokenBalance":{
55      "name":"GetTokenBalance",
56      "http":{
57        "method":"POST",
58        "requestUri":"/get-token-balance",
59        "responseCode":200
60      },
61      "input":{"shape":"GetTokenBalanceInput"},
62      "output":{"shape":"GetTokenBalanceOutput"},
63      "errors":[
64        {"shape":"ThrottlingException"},
65        {"shape":"ValidationException"},
66        {"shape":"ResourceNotFoundException"},
67        {"shape":"AccessDeniedException"},
68        {"shape":"InternalServerException"},
69        {"shape":"ServiceQuotaExceededException"}
70      ],
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>"
72    },
73    "GetTransaction":{
74      "name":"GetTransaction",
75      "http":{
76        "method":"POST",
77        "requestUri":"/get-transaction",
78        "responseCode":200
79      },
80      "input":{"shape":"GetTransactionInput"},
81      "output":{"shape":"GetTransactionOutput"},
82      "errors":[
83        {"shape":"ThrottlingException"},
84        {"shape":"ValidationException"},
85        {"shape":"ResourceNotFoundException"},
86        {"shape":"AccessDeniedException"},
87        {"shape":"InternalServerException"},
88        {"shape":"ServiceQuotaExceededException"}
89      ],
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>"
91    },
92    "ListAssetContracts":{
93      "name":"ListAssetContracts",
94      "http":{
95        "method":"POST",
96        "requestUri":"/list-asset-contracts",
97        "responseCode":200
98      },
99      "input":{"shape":"ListAssetContractsInput"},
100      "output":{"shape":"ListAssetContractsOutput"},
101      "errors":[
102        {"shape":"ThrottlingException"},
103        {"shape":"ValidationException"},
104        {"shape":"AccessDeniedException"},
105        {"shape":"InternalServerException"},
106        {"shape":"ServiceQuotaExceededException"}
107      ],
108      "documentation":"<p>Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).</p> <p>The Bitcoin blockchain networks do not support this operation.</p>"
109    },
110    "ListTokenBalances":{
111      "name":"ListTokenBalances",
112      "http":{
113        "method":"POST",
114        "requestUri":"/list-token-balances",
115        "responseCode":200
116      },
117      "input":{"shape":"ListTokenBalancesInput"},
118      "output":{"shape":"ListTokenBalancesOutput"},
119      "errors":[
120        {"shape":"ThrottlingException"},
121        {"shape":"ValidationException"},
122        {"shape":"AccessDeniedException"},
123        {"shape":"InternalServerException"},
124        {"shape":"ServiceQuotaExceededException"}
125      ],
126      "documentation":"<p>This action returns the following for a given blockchain network:</p> <ul> <li> <p>Lists all token balances owned by an address (either a contract address or a wallet address).</p> </li> <li> <p>Lists all token balances for all tokens created by a contract.</p> </li> <li> <p>Lists all token balances for a given token.</p> </li> </ul> <note> <p>You must always specify the network property of the <code>tokenFilter</code> when using this operation.</p> </note>"
127    },
128    "ListTransactionEvents":{
129      "name":"ListTransactionEvents",
130      "http":{
131        "method":"POST",
132        "requestUri":"/list-transaction-events",
133        "responseCode":200
134      },
135      "input":{"shape":"ListTransactionEventsInput"},
136      "output":{"shape":"ListTransactionEventsOutput"},
137      "errors":[
138        {"shape":"ThrottlingException"},
139        {"shape":"ValidationException"},
140        {"shape":"AccessDeniedException"},
141        {"shape":"InternalServerException"},
142        {"shape":"ServiceQuotaExceededException"}
143      ],
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>"
145    },
146    "ListTransactions":{
147      "name":"ListTransactions",
148      "http":{
149        "method":"POST",
150        "requestUri":"/list-transactions",
151        "responseCode":200
152      },
153      "input":{"shape":"ListTransactionsInput"},
154      "output":{"shape":"ListTransactionsOutput"},
155      "errors":[
156        {"shape":"ThrottlingException"},
157        {"shape":"ValidationException"},
158        {"shape":"AccessDeniedException"},
159        {"shape":"InternalServerException"},
160        {"shape":"ServiceQuotaExceededException"}
161      ],
162      "documentation":"<p>Lists all of the transactions on a given wallet address or to a specific contract.</p>"
163    }
164  },
165  "shapes":{
166    "AccessDeniedException":{
167      "type":"structure",
168      "required":["message"],
169      "members":{
170        "message":{
171          "shape":"ExceptionMessage",
172          "documentation":"<p>The container for the exception message.</p>"
173        }
174      },
175      "documentation":"<p>The Amazon Web Services account doesn’t have access to this resource. </p>",
176      "error":{
177        "httpStatusCode":403,
178        "senderFault":true
179      },
180      "exception":true
181    },
182    "AssetContract":{
183      "type":"structure",
184      "required":[
185        "contractIdentifier",
186        "tokenStandard",
187        "deployerAddress"
188      ],
189      "members":{
190        "contractIdentifier":{
191          "shape":"ContractIdentifier",
192          "documentation":"<p>The container for the contract identifier containing its blockchain network and address.</p>"
193        },
194        "tokenStandard":{
195          "shape":"QueryTokenStandard",
196          "documentation":"<p>The token standard of the contract.</p>"
197        },
198        "deployerAddress":{
199          "shape":"ChainAddress",
200          "documentation":"<p>The address of the contract deployer.</p>"
201        }
202      },
203      "documentation":"<p>This container contains information about an contract.</p>"
204    },
205    "AssetContractList":{
206      "type":"list",
207      "member":{"shape":"AssetContract"},
208      "max":250,
209      "min":0
210    },
211    "BatchGetTokenBalanceErrorItem":{
212      "type":"structure",
213      "required":[
214        "errorCode",
215        "errorMessage",
216        "errorType"
217      ],
218      "members":{
219        "tokenIdentifier":{"shape":"TokenIdentifier"},
220        "ownerIdentifier":{"shape":"OwnerIdentifier"},
221        "atBlockchainInstant":{"shape":"BlockchainInstant"},
222        "errorCode":{
223          "shape":"String",
224          "documentation":"<p>The error code associated with the error.</p>"
225        },
226        "errorMessage":{
227          "shape":"String",
228          "documentation":"<p>The message associated with the error.</p>"
229        },
230        "errorType":{
231          "shape":"ErrorType",
232          "documentation":"<p>The type of error.</p>"
233        }
234      },
235      "documentation":"<p>Error generated from a failed <code>BatchGetTokenBalance</code> request.</p>"
236    },
237    "BatchGetTokenBalanceErrors":{
238      "type":"list",
239      "member":{"shape":"BatchGetTokenBalanceErrorItem"},
240      "max":10,
241      "min":0
242    },
243    "BatchGetTokenBalanceInput":{
244      "type":"structure",
245      "members":{
246        "getTokenBalanceInputs":{
247          "shape":"GetTokenBalanceInputList",
248          "documentation":"<p>An array of <code>BatchGetTokenBalanceInputItem</code> objects whose balance is being requested.</p>"
249        }
250      }
251    },
252    "BatchGetTokenBalanceInputItem":{
253      "type":"structure",
254      "required":[
255        "tokenIdentifier",
256        "ownerIdentifier"
257      ],
258      "members":{
259        "tokenIdentifier":{"shape":"TokenIdentifier"},
260        "ownerIdentifier":{"shape":"OwnerIdentifier"},
261        "atBlockchainInstant":{"shape":"BlockchainInstant"}
262      },
263      "documentation":"<p>The container for the input for getting a token balance.</p>"
264    },
265    "BatchGetTokenBalanceOutput":{
266      "type":"structure",
267      "required":[
268        "tokenBalances",
269        "errors"
270      ],
271      "members":{
272        "tokenBalances":{
273          "shape":"BatchGetTokenBalanceOutputList",
274          "documentation":"<p>An array of <code>BatchGetTokenBalanceOutputItem</code> objects returned by the response.</p>"
275        },
276        "errors":{
277          "shape":"BatchGetTokenBalanceErrors",
278          "documentation":"<p>An array of <code>BatchGetTokenBalanceErrorItem</code> objects returned from the request.</p>"
279        }
280      }
281    },
282    "BatchGetTokenBalanceOutputItem":{
283      "type":"structure",
284      "required":[
285        "balance",
286        "atBlockchainInstant"
287      ],
288      "members":{
289        "ownerIdentifier":{"shape":"OwnerIdentifier"},
290        "tokenIdentifier":{"shape":"TokenIdentifier"},
291        "balance":{
292          "shape":"String",
293          "documentation":"<p>The container for the token balance.</p>"
294        },
295        "atBlockchainInstant":{"shape":"BlockchainInstant"},
296        "lastUpdatedTime":{"shape":"BlockchainInstant"}
297      },
298      "documentation":"<p>The container for the properties of a token balance output.</p>"
299    },
300    "BatchGetTokenBalanceOutputList":{
301      "type":"list",
302      "member":{"shape":"BatchGetTokenBalanceOutputItem"},
303      "max":10,
304      "min":0
305    },
306    "BlockHash":{
307      "type":"string",
308      "pattern":"(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})"
309    },
310    "BlockchainInstant":{
311      "type":"structure",
312      "members":{
313        "time":{
314          "shape":"Timestamp",
315          "documentation":"<p>The container of the <code>Timestamp</code> of the blockchain instant.</p> <note> <p>This <code>timestamp</code> will only be recorded up to the second.</p> </note>"
316        }
317      },
318      "documentation":"<p>The container for time.</p>"
319    },
320    "ChainAddress":{
321      "type":"string",
322      "pattern":"[-A-Za-z0-9]{13,74}"
323    },
324    "ConfirmationStatus":{
325      "type":"string",
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
346    },
347    "ContractFilter":{
348      "type":"structure",
349      "required":[
350        "network",
351        "tokenStandard",
352        "deployerAddress"
353      ],
354      "members":{
355        "network":{
356          "shape":"QueryNetwork",
357          "documentation":"<p>The blockchain network of the contract.</p>"
358        },
359        "tokenStandard":{
360          "shape":"QueryTokenStandard",
361          "documentation":"<p>The container for the token standard.</p>"
362        },
363        "deployerAddress":{
364          "shape":"ChainAddress",
365          "documentation":"<p>The network address of the deployer.</p>"
366        }
367      },
368      "documentation":"<p>The contract or wallet address by which to filter the request.</p>"
369    },
370    "ContractIdentifier":{
371      "type":"structure",
372      "required":[
373        "network",
374        "contractAddress"
375      ],
376      "members":{
377        "network":{
378          "shape":"QueryNetwork",
379          "documentation":"<p>The blockchain network of the contract.</p>"
380        },
381        "contractAddress":{
382          "shape":"ChainAddress",
383          "documentation":"<p>Container for the blockchain address about a contract.</p>"
384        }
385      },
386      "documentation":"<p>Container for the blockchain address and network information about a contract.</p>"
387    },
388    "ContractMetadata":{
389      "type":"structure",
390      "members":{
391        "name":{
392          "shape":"String",
393          "documentation":"<p>The name of the token contract.</p>"
394        },
395        "symbol":{
396          "shape":"String",
397          "documentation":"<p>The symbol of the token contract.</p>"
398        },
399        "decimals":{
400          "shape":"Integer",
401          "documentation":"<p>The decimals used by the token contract.</p>"
402        }
403      },
404      "documentation":"<p>The metadata of the contract.</p>"
405    },
406    "ErrorType":{
407      "type":"string",
408      "enum":[
409        "VALIDATION_EXCEPTION",
410        "RESOURCE_NOT_FOUND_EXCEPTION"
411      ]
412    },
413    "ExceptionMessage":{
414      "type":"string",
415      "min":1
416    },
417    "ExecutionStatus":{
418      "type":"string",
419      "enum":[
420        "FAILED",
421        "SUCCEEDED"
422      ]
423    },
424    "GetAssetContractInput":{
425      "type":"structure",
426      "required":["contractIdentifier"],
427      "members":{
428        "contractIdentifier":{
429          "shape":"ContractIdentifier",
430          "documentation":"<p>Contains the blockchain address and network information about the contract.</p>"
431        }
432      }
433    },
434    "GetAssetContractOutput":{
435      "type":"structure",
436      "required":[
437        "contractIdentifier",
438        "tokenStandard",
439        "deployerAddress"
440      ],
441      "members":{
442        "contractIdentifier":{
443          "shape":"ContractIdentifier",
444          "documentation":"<p>Contains the blockchain address and network information about the contract.</p>"
445        },
446        "tokenStandard":{
447          "shape":"QueryTokenStandard",
448          "documentation":"<p>The token standard of the contract requested.</p>"
449        },
450        "deployerAddress":{
451          "shape":"ChainAddress",
452          "documentation":"<p>The address of the deployer of contract.</p>"
453        },
454        "metadata":{"shape":"ContractMetadata"}
455      }
456    },
457    "GetTokenBalanceInput":{
458      "type":"structure",
459      "required":[
460        "tokenIdentifier",
461        "ownerIdentifier"
462      ],
463      "members":{
464        "tokenIdentifier":{
465          "shape":"TokenIdentifier",
466          "documentation":"<p>The container for the identifier for the token, including the unique token ID and its blockchain network.</p>"
467        },
468        "ownerIdentifier":{
469          "shape":"OwnerIdentifier",
470          "documentation":"<p>The container for the identifier for the owner.</p>"
471        },
472        "atBlockchainInstant":{
473          "shape":"BlockchainInstant",
474          "documentation":"<p>The time for when the TokenBalance is requested or the current time if a time is not provided in the request.</p> <note> <p>This time will only be recorded up to the second.</p> </note>"
475        }
476      }
477    },
478    "GetTokenBalanceInputList":{
479      "type":"list",
480      "member":{"shape":"BatchGetTokenBalanceInputItem"},
481      "max":10,
482      "min":1
483    },
484    "GetTokenBalanceOutput":{
485      "type":"structure",
486      "required":[
487        "balance",
488        "atBlockchainInstant"
489      ],
490      "members":{
491        "ownerIdentifier":{"shape":"OwnerIdentifier"},
492        "tokenIdentifier":{"shape":"TokenIdentifier"},
493        "balance":{
494          "shape":"String",
495          "documentation":"<p>The container for the token balance.</p>"
496        },
497        "atBlockchainInstant":{"shape":"BlockchainInstant"},
498        "lastUpdatedTime":{"shape":"BlockchainInstant"}
499      }
500    },
501    "GetTransactionInput":{
502      "type":"structure",
503      "required":[
504        "transactionHash",
505        "network"
506      ],
507      "members":{
508        "transactionHash":{
509          "shape":"QueryTransactionHash",
510          "documentation":"<p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
511        },
512        "network":{
513          "shape":"QueryNetwork",
514          "documentation":"<p>The blockchain network where the transaction occurred.</p>"
515        }
516      }
517    },
518    "GetTransactionOutput":{
519      "type":"structure",
520      "required":["transaction"],
521      "members":{
522        "transaction":{
523          "shape":"Transaction",
524          "documentation":"<p>Contains the details of the transaction.</p>"
525        }
526      }
527    },
528    "Integer":{
529      "type":"integer",
530      "box":true
531    },
532    "InternalServerException":{
533      "type":"structure",
534      "required":["message"],
535      "members":{
536        "message":{
537          "shape":"ExceptionMessage",
538          "documentation":"<p>The container for the exception message.</p>"
539        },
540        "retryAfterSeconds":{
541          "shape":"Integer",
542          "documentation":"<p>The container of the <code>retryAfterSeconds</code> value.</p>",
543          "location":"header",
544          "locationName":"Retry-After"
545        }
546      },
547      "documentation":"<p>The request processing has failed because of an internal error in the service.</p>",
548      "error":{"httpStatusCode":500},
549      "exception":true,
550      "fault":true,
551      "retryable":{"throttling":false}
552    },
553    "ListAssetContractsInput":{
554      "type":"structure",
555      "required":["contractFilter"],
556      "members":{
557        "contractFilter":{
558          "shape":"ContractFilter",
559          "documentation":"<p>Contains the filter parameter for the request.</p>"
560        },
561        "nextToken":{
562          "shape":"NextToken",
563          "documentation":"<p> The pagination token that indicates the next set of results to retrieve.</p>"
564        },
565        "maxResults":{
566          "shape":"ListAssetContractsInputMaxResultsInteger",
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>"
568        }
569      }
570    },
571    "ListAssetContractsInputMaxResultsInteger":{
572      "type":"integer",
573      "box":true,
574      "max":250,
575      "min":1
576    },
577    "ListAssetContractsOutput":{
578      "type":"structure",
579      "required":["contracts"],
580      "members":{
581        "contracts":{
582          "shape":"AssetContractList",
583          "documentation":"<p>An array of contract objects that contain the properties for each contract.</p>"
584        },
585        "nextToken":{
586          "shape":"NextToken",
587          "documentation":"<p>The pagination token that indicates the next set of results to retrieve. </p>"
588        }
589      }
590    },
591    "ListTokenBalancesInput":{
592      "type":"structure",
593      "required":["tokenFilter"],
594      "members":{
595        "ownerFilter":{
596          "shape":"OwnerFilter",
597          "documentation":"<p>The contract or wallet address on the blockchain network by which to filter the request. You must specify the <code>address</code> property of the <code>ownerFilter</code> when listing balances of tokens owned by the address.</p>"
598        },
599        "tokenFilter":{
600          "shape":"TokenFilter",
601          "documentation":"<p>The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the <code>contractAddress</code> property of this container when listing tokens minted by a contract.</p> <note> <p>You must always specify the network property of this container when using this operation.</p> </note>"
602        },
603        "nextToken":{
604          "shape":"NextToken",
605          "documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
606        },
607        "maxResults":{
608          "shape":"ListTokenBalancesInputMaxResultsInteger",
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>"
610        }
611      }
612    },
613    "ListTokenBalancesInputMaxResultsInteger":{
614      "type":"integer",
615      "box":true,
616      "max":250,
617      "min":1
618    },
619    "ListTokenBalancesOutput":{
620      "type":"structure",
621      "required":["tokenBalances"],
622      "members":{
623        "tokenBalances":{
624          "shape":"TokenBalanceList",
625          "documentation":"<p>An array of <code>TokenBalance</code> objects. Each object contains details about the token balance.</p>"
626        },
627        "nextToken":{
628          "shape":"NextToken",
629          "documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
630        }
631      }
632    },
633    "ListTransactionEventsInput":{
634      "type":"structure",
635      "required":[
636        "transactionHash",
637        "network"
638      ],
639      "members":{
640        "transactionHash":{
641          "shape":"QueryTransactionHash",
642          "documentation":"<p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
643        },
644        "network":{
645          "shape":"QueryNetwork",
646          "documentation":"<p>The blockchain network where the transaction events occurred.</p>"
647        },
648        "nextToken":{
649          "shape":"NextToken",
650          "documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
651        },
652        "maxResults":{
653          "shape":"ListTransactionEventsInputMaxResultsInteger",
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>"
655        }
656      }
657    },
658    "ListTransactionEventsInputMaxResultsInteger":{
659      "type":"integer",
660      "box":true,
661      "max":250,
662      "min":1
663    },
664    "ListTransactionEventsOutput":{
665      "type":"structure",
666      "required":["events"],
667      "members":{
668        "events":{
669          "shape":"TransactionEventList",
670          "documentation":"<p>An array of <code>TransactionEvent</code> objects. Each object contains details about the transaction events.</p>"
671        },
672        "nextToken":{
673          "shape":"NextToken",
674          "documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
675        }
676      }
677    },
678    "ListTransactionsInput":{
679      "type":"structure",
680      "required":[
681        "address",
682        "network"
683      ],
684      "members":{
685        "address":{
686          "shape":"ChainAddress",
687          "documentation":"<p>The address (either a contract or wallet), whose transactions are being requested.</p>"
688        },
689        "network":{
690          "shape":"QueryNetwork",
691          "documentation":"<p>The blockchain network where the transactions occurred.</p>"
692        },
693        "fromBlockchainInstant":{"shape":"BlockchainInstant"},
694        "toBlockchainInstant":{"shape":"BlockchainInstant"},
695        "sort":{
696          "shape":"ListTransactionsSort",
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>"
698        },
699        "nextToken":{
700          "shape":"NextToken",
701          "documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
702        },
703        "maxResults":{
704          "shape":"ListTransactionsInputMaxResultsInteger",
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>"
710        }
711      }
712    },
713    "ListTransactionsInputMaxResultsInteger":{
714      "type":"integer",
715      "box":true,
716      "max":250,
717      "min":1
718    },
719    "ListTransactionsOutput":{
720      "type":"structure",
721      "required":["transactions"],
722      "members":{
723        "transactions":{
724          "shape":"TransactionOutputList",
725          "documentation":"<p>The array of transactions returned by the request.</p>"
726        },
727        "nextToken":{
728          "shape":"NextToken",
729          "documentation":"<p>The pagination token that indicates the next set of results to retrieve.</p>"
730        }
731      }
732    },
733    "ListTransactionsSort":{
734      "type":"structure",
735      "members":{
736        "sortBy":{
737          "shape":"ListTransactionsSortBy",
738          "documentation":"<p>Defaults to the value <code>TRANSACTION_TIMESTAMP</code>.</p>"
739        },
740        "sortOrder":{
741          "shape":"SortOrder",
742          "documentation":"<p>The container for the <i>sort order</i> for <code>ListTransactions</code>. The <code>SortOrder</code> field only accepts the values <code>ASCENDING</code> and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default to <code>ASCENDING</code>.</p>"
743        }
744      },
745      "documentation":"<p>The container for determining how the list transaction result will be sorted.</p>"
746    },
747    "ListTransactionsSortBy":{
748      "type":"string",
749      "enum":["TRANSACTION_TIMESTAMP"]
750    },
751    "Long":{
752      "type":"long",
753      "box":true
754    },
755    "NextToken":{
756      "type":"string",
757      "max":131070,
758      "min":0
759    },
760    "OwnerFilter":{
761      "type":"structure",
762      "required":["address"],
763      "members":{
764        "address":{
765          "shape":"ChainAddress",
766          "documentation":"<p>The contract or wallet address.</p>"
767        }
768      },
769      "documentation":"<p>The container for the owner information to filter by.</p>"
770    },
771    "OwnerIdentifier":{
772      "type":"structure",
773      "required":["address"],
774      "members":{
775        "address":{
776          "shape":"ChainAddress",
777          "documentation":"<p>The contract or wallet address for the owner.</p>"
778        }
779      },
780      "documentation":"<p>The container for the identifier of the owner.</p>"
781    },
782    "QueryNetwork":{
783      "type":"string",
784      "enum":[
785        "ETHEREUM_MAINNET",
786        "ETHEREUM_SEPOLIA_TESTNET",
787        "BITCOIN_MAINNET",
788        "BITCOIN_TESTNET"
789      ]
790    },
791    "QueryTokenId":{
792      "type":"string",
793      "pattern":"[a-zA-Z0-9]{1,66}"
794    },
795    "QueryTokenStandard":{
796      "type":"string",
797      "enum":[
798        "ERC20",
799        "ERC721",
800        "ERC1155"
801      ]
802    },
803    "QueryTransactionEventType":{
804      "type":"string",
805      "enum":[
806        "ERC20_TRANSFER",
807        "ERC20_MINT",
808        "ERC20_BURN",
809        "ERC20_DEPOSIT",
810        "ERC20_WITHDRAWAL",
811        "ERC721_TRANSFER",
812        "ERC1155_TRANSFER",
813        "BITCOIN_VIN",
814        "BITCOIN_VOUT",
815        "INTERNAL_ETH_TRANSFER",
816        "ETH_TRANSFER"
817      ]
818    },
819    "QueryTransactionHash":{
820      "type":"string",
821      "pattern":"(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})"
822    },
823    "QuotaCode":{"type":"string"},
824    "ResourceId":{"type":"string"},
825    "ResourceNotFoundException":{
826      "type":"structure",
827      "required":[
828        "message",
829        "resourceId",
830        "resourceType"
831      ],
832      "members":{
833        "message":{
834          "shape":"ExceptionMessage",
835          "documentation":"<p>The container for the exception message.</p>"
836        },
837        "resourceId":{
838          "shape":"ResourceId",
839          "documentation":"<p>The <code>resourceId</code> of the resource that caused the exception.</p>"
840        },
841        "resourceType":{
842          "shape":"ResourceType",
843          "documentation":"<p>The <code>resourceType</code> of the resource that caused the exception.</p>"
844        }
845      },
846      "documentation":"<p>The resource was not found.</p>",
847      "error":{
848        "httpStatusCode":404,
849        "senderFault":true
850      },
851      "exception":true
852    },
853    "ResourceType":{
854      "type":"string",
855      "enum":["collection"]
856    },
857    "ServiceCode":{"type":"string"},
858    "ServiceQuotaExceededException":{
859      "type":"structure",
860      "required":[
861        "message",
862        "resourceId",
863        "resourceType",
864        "serviceCode",
865        "quotaCode"
866      ],
867      "members":{
868        "message":{
869          "shape":"ExceptionMessage",
870          "documentation":"<p>The container for the exception message.</p>"
871        },
872        "resourceId":{
873          "shape":"ResourceId",
874          "documentation":"<p>The <code>resourceId</code> of the resource that caused the exception.</p>"
875        },
876        "resourceType":{
877          "shape":"ResourceType",
878          "documentation":"<p>The <code>resourceType</code> of the resource that caused the exception.</p>"
879        },
880        "serviceCode":{
881          "shape":"ServiceCode",
882          "documentation":"<p>The container for the <code>serviceCode</code>.</p>"
883        },
884        "quotaCode":{
885          "shape":"QuotaCode",
886          "documentation":"<p>The container for the <code>quotaCode</code>.</p>"
887        }
888      },
889      "documentation":"<p>The service quota has been exceeded for this resource.</p>",
890      "error":{
891        "httpStatusCode":402,
892        "senderFault":true
893      },
894      "exception":true
895    },
896    "SortOrder":{
897      "type":"string",
898      "enum":[
899        "ASCENDING",
900        "DESCENDING"
901      ]
902    },
903    "String":{"type":"string"},
904    "ThrottlingException":{
905      "type":"structure",
906      "required":[
907        "message",
908        "serviceCode",
909        "quotaCode"
910      ],
911      "members":{
912        "message":{
913          "shape":"ExceptionMessage",
914          "documentation":"<p>The container for the exception message.</p>"
915        },
916        "serviceCode":{
917          "shape":"ServiceCode",
918          "documentation":"<p>The container for the <code>serviceCode</code>.</p>"
919        },
920        "quotaCode":{
921          "shape":"QuotaCode",
922          "documentation":"<p>The container for the <code>quotaCode</code>.</p>"
923        },
924        "retryAfterSeconds":{
925          "shape":"Integer",
926          "documentation":"<p>The container of the <code>retryAfterSeconds</code> value.</p>",
927          "location":"header",
928          "locationName":"Retry-After"
929        }
930      },
931      "documentation":"<p>The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.</p>",
932      "error":{
933        "httpStatusCode":429,
934        "senderFault":true
935      },
936      "exception":true,
937      "retryable":{"throttling":true}
938    },
939    "Timestamp":{"type":"timestamp"},
940    "TokenBalance":{
941      "type":"structure",
942      "required":[
943        "balance",
944        "atBlockchainInstant"
945      ],
946      "members":{
947        "ownerIdentifier":{
948          "shape":"OwnerIdentifier",
949          "documentation":"<p>The container for the identifier of the owner.</p>"
950        },
951        "tokenIdentifier":{
952          "shape":"TokenIdentifier",
953          "documentation":"<p>The identifier for the token, including the unique token ID and its blockchain network.</p>"
954        },
955        "balance":{
956          "shape":"String",
957          "documentation":"<p>The container of the token balance.</p>"
958        },
959        "atBlockchainInstant":{
960          "shape":"BlockchainInstant",
961          "documentation":"<p>The time for when the TokenBalance is requested or the current time if a time is not provided in the request.</p> <note> <p>This time will only be recorded up to the second.</p> </note>"
962        },
963        "lastUpdatedTime":{
964          "shape":"BlockchainInstant",
965          "documentation":"<p>The <code>Timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>"
966        }
967      },
968      "documentation":"<p>The balance of the token.</p>"
969    },
970    "TokenBalanceList":{
971      "type":"list",
972      "member":{"shape":"TokenBalance"},
973      "max":250,
974      "min":0
975    },
976    "TokenFilter":{
977      "type":"structure",
978      "required":["network"],
979      "members":{
980        "network":{
981          "shape":"QueryNetwork",
982          "documentation":"<p>The blockchain network of the token.</p>"
983        },
984        "contractAddress":{
985          "shape":"ChainAddress",
986          "documentation":"<p>This is the address of the contract.</p>"
987        },
988        "tokenId":{
989          "shape":"QueryTokenId",
990          "documentation":"<p>The unique identifier of the token.</p>"
991        }
992      },
993      "documentation":"<p>The container of the token filter like the contract address on a given blockchain network or a unique token identifier on a given blockchain network.</p> <note> <p>You must always specify the network property of this container when using this operation.</p> </note>"
994    },
995    "TokenIdentifier":{
996      "type":"structure",
997      "required":["network"],
998      "members":{
999        "network":{
1000          "shape":"QueryNetwork",
1001          "documentation":"<p>The blockchain network of the token.</p>"
1002        },
1003        "contractAddress":{
1004          "shape":"ChainAddress",
1005          "documentation":"<p>This is the token's contract address.</p>"
1006        },
1007        "tokenId":{
1008          "shape":"QueryTokenId",
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>"
1010        }
1011      },
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>"
1013    },
1014    "Transaction":{
1015      "type":"structure",
1016      "required":[
1017        "network",
1018        "transactionHash",
1019        "transactionTimestamp",
1020        "transactionIndex",
1021        "numberOfTransactions",
1022        "to"
1023      ],
1024      "members":{
1025        "network":{
1026          "shape":"QueryNetwork",
1027          "documentation":"<p>The blockchain network where the transaction occurred.</p>"
1028        },
1029        "blockHash":{
1030          "shape":"BlockHash",
1031          "documentation":"<p>The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.</p>"
1032        },
1033        "transactionHash":{
1034          "shape":"QueryTransactionHash",
1035          "documentation":"<p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1036        },
1037        "blockNumber":{
1038          "shape":"String",
1039          "documentation":"<p>The block number in which the transaction is recorded.</p>"
1040        },
1041        "transactionTimestamp":{
1042          "shape":"Timestamp",
1043          "documentation":"<p>The <code>Timestamp</code> of the transaction. </p>"
1044        },
1045        "transactionIndex":{
1046          "shape":"Long",
1047          "documentation":"<p>The index of the transaction within a blockchain.</p>"
1048        },
1049        "numberOfTransactions":{
1050          "shape":"Long",
1051          "documentation":"<p>The number of transactions in the block.</p>"
1052        },
1053        "to":{
1054          "shape":"ChainAddress",
1055          "documentation":"<p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1056        },
1057        "from":{
1058          "shape":"ChainAddress",
1059          "documentation":"<p>The initiator of the transaction. It is either in the form a public key or a contract address.</p>"
1060        },
1061        "contractAddress":{
1062          "shape":"ChainAddress",
1063          "documentation":"<p>The blockchain address for the contract.</p>"
1064        },
1065        "gasUsed":{
1066          "shape":"String",
1067          "documentation":"<p>The amount of gas used for the transaction.</p>"
1068        },
1069        "cumulativeGasUsed":{
1070          "shape":"String",
1071          "documentation":"<p>The amount of gas used up to the specified point in the block.</p>"
1072        },
1073        "effectiveGasPrice":{
1074          "shape":"String",
1075          "documentation":"<p>The effective gas price.</p>"
1076        },
1077        "signatureV":{
1078          "shape":"Integer",
1079          "documentation":"<p>The signature of the transaction. The Z coordinate of a point V.</p>"
1080        },
1081        "signatureR":{
1082          "shape":"String",
1083          "documentation":"<p>The signature of the transaction. The X coordinate of a point R.</p>"
1084        },
1085        "signatureS":{
1086          "shape":"String",
1087          "documentation":"<p>The signature of the transaction. The Y coordinate of a point S.</p>"
1088        },
1089        "transactionFee":{
1090          "shape":"String",
1091          "documentation":"<p>The transaction fee.</p>"
1092        },
1093        "transactionId":{
1094          "shape":"String",
1095          "documentation":"<p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1096        },
1097        "confirmationStatus":{
1098          "shape":"ConfirmationStatus",
1099          "documentation":"<p>Specifies whether the transaction has reached Finality.</p>"
1100        },
1101        "executionStatus":{
1102          "shape":"ExecutionStatus",
1103          "documentation":"<p>Identifies whether the transaction has succeeded or failed.</p>"
1104        }
1105      },
1106      "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>"
1107    },
1108    "TransactionEvent":{
1109      "type":"structure",
1110      "required":[
1111        "network",
1112        "transactionHash",
1113        "eventType"
1114      ],
1115      "members":{
1116        "network":{
1117          "shape":"QueryNetwork",
1118          "documentation":"<p>The blockchain network where the transaction occurred.</p>"
1119        },
1120        "transactionHash":{
1121          "shape":"QueryTransactionHash",
1122          "documentation":"<p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1123        },
1124        "eventType":{
1125          "shape":"QueryTransactionEventType",
1126          "documentation":"<p>The type of transaction event.</p>"
1127        },
1128        "from":{
1129          "shape":"ChainAddress",
1130          "documentation":"<p>The wallet address initiating the transaction. It can either be a public key or a contract.</p>"
1131        },
1132        "to":{
1133          "shape":"ChainAddress",
1134          "documentation":"<p>The wallet address receiving the transaction. It can either be a public key or a contract.</p>"
1135        },
1136        "value":{
1137          "shape":"String",
1138          "documentation":"<p>The value that was transacted.</p>"
1139        },
1140        "contractAddress":{
1141          "shape":"ChainAddress",
1142          "documentation":"<p>The blockchain address. for the contract</p>"
1143        },
1144        "tokenId":{
1145          "shape":"QueryTokenId",
1146          "documentation":"<p>The unique identifier for the token involved in the transaction.</p>"
1147        },
1148        "transactionId":{
1149          "shape":"String",
1150          "documentation":"<p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1151        },
1152        "voutIndex":{
1153          "shape":"Integer",
1154          "documentation":"<p>The position of the vout in the transaction output list.</p>"
1155        }
1156      },
1157      "documentation":"<p>The container for the properties of a transaction event.</p>"
1158    },
1159    "TransactionEventList":{
1160      "type":"list",
1161      "member":{"shape":"TransactionEvent"},
1162      "max":250,
1163      "min":0
1164    },
1165    "TransactionOutputItem":{
1166      "type":"structure",
1167      "required":[
1168        "transactionHash",
1169        "network",
1170        "transactionTimestamp"
1171      ],
1172      "members":{
1173        "transactionHash":{
1174          "shape":"QueryTransactionHash",
1175          "documentation":"<p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>"
1176        },
1177        "network":{
1178          "shape":"QueryNetwork",
1179          "documentation":"<p>The blockchain network where the transaction occurred.</p>"
1180        },
1181        "transactionTimestamp":{
1182          "shape":"Timestamp",
1183          "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>"
1188        }
1189      },
1190      "documentation":"<p>The container of the transaction output.</p>"
1191    },
1192    "TransactionOutputList":{
1193      "type":"list",
1194      "member":{"shape":"TransactionOutputItem"},
1195      "max":250,
1196      "min":0
1197    },
1198    "ValidationException":{
1199      "type":"structure",
1200      "required":[
1201        "message",
1202        "reason"
1203      ],
1204      "members":{
1205        "message":{
1206          "shape":"ExceptionMessage",
1207          "documentation":"<p>The container for the exception message.</p>"
1208        },
1209        "reason":{
1210          "shape":"ValidationExceptionReason",
1211          "documentation":"<p>The container for the reason for the exception</p>"
1212        },
1213        "fieldList":{
1214          "shape":"ValidationExceptionFieldList",
1215          "documentation":"<p>The container for the <code>fieldList</code> of the exception.</p>"
1216        }
1217      },
1218      "documentation":"<p>The resource passed is invalid.</p>",
1219      "error":{
1220        "httpStatusCode":400,
1221        "senderFault":true
1222      },
1223      "exception":true
1224    },
1225    "ValidationExceptionField":{
1226      "type":"structure",
1227      "required":[
1228        "name",
1229        "message"
1230      ],
1231      "members":{
1232        "name":{
1233          "shape":"String",
1234          "documentation":"<p>The name of the field that triggered the <code>ValidationException</code>.</p>"
1235        },
1236        "message":{
1237          "shape":"String",
1238          "documentation":"<p>The <code>ValidationException</code> message.</p>"
1239        }
1240      },
1241      "documentation":"<p>The resource passed is invalid.</p>"
1242    },
1243    "ValidationExceptionFieldList":{
1244      "type":"list",
1245      "member":{"shape":"ValidationExceptionField"}
1246    },
1247    "ValidationExceptionReason":{
1248      "type":"string",
1249      "enum":[
1250        "unknownOperation",
1251        "cannotParse",
1252        "fieldValidationFailed",
1253        "other"
1254      ]
1255    }
1256  },
1257  "documentation":"<p>Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time period. Additionally, you can get details of a given transaction, such as transaction events, which you can further analyze or use in business logic for your applications.</p>"
1258}
1259