@aws-sdk/client-managedblockchain-query 3.533.0 → 3.537.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +118 -14
  3. package/dist-es/ManagedBlockchainQuery.js +2 -0
  4. package/dist-es/commands/ListFilteredTransactionEventsCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +7 -4
  7. package/dist-es/pagination/ListFilteredTransactionEventsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/protocols/Aws_restJson1.js +72 -2
  10. package/dist-types/ManagedBlockchainQuery.d.ts +9 -1
  11. package/dist-types/ManagedBlockchainQueryClient.d.ts +4 -3
  12. package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +2 -1
  13. package/dist-types/commands/GetAssetContractCommand.d.ts +2 -1
  14. package/dist-types/commands/GetTokenBalanceCommand.d.ts +2 -1
  15. package/dist-types/commands/GetTransactionCommand.d.ts +2 -1
  16. package/dist-types/commands/ListAssetContractsCommand.d.ts +2 -1
  17. package/dist-types/commands/ListFilteredTransactionEventsCommand.d.ts +129 -0
  18. package/dist-types/commands/ListTokenBalancesCommand.d.ts +2 -1
  19. package/dist-types/commands/ListTransactionEventsCommand.d.ts +13 -4
  20. package/dist-types/commands/ListTransactionsCommand.d.ts +3 -2
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/models_0.d.ts +450 -253
  23. package/dist-types/pagination/ListFilteredTransactionEventsPaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +1 -0
  25. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  26. package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +18 -0
  27. package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +6 -0
  28. package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +9 -0
  29. package/dist-types/ts3.4/commands/GetAssetContractCommand.d.ts +9 -0
  30. package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +9 -0
  31. package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +9 -0
  32. package/dist-types/ts3.4/commands/ListAssetContractsCommand.d.ts +9 -0
  33. package/dist-types/ts3.4/commands/ListFilteredTransactionEventsCommand.d.ts +39 -0
  34. package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +9 -0
  35. package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +9 -0
  36. package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +9 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +70 -30
  39. package/dist-types/ts3.4/pagination/ListFilteredTransactionEventsPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  41. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  42. package/package.json +40 -40
@@ -1,8 +1,8 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ManagedBlockchainQueryServiceException as __BaseException } from "./ManagedBlockchainQueryServiceException";
3
3
  /**
4
- * @public
5
4
  * <p>The Amazon Web Services account doesn’t have access to this resource. </p>
5
+ * @public
6
6
  */
7
7
  export declare class AccessDeniedException extends __BaseException {
8
8
  readonly name: "AccessDeniedException";
@@ -12,6 +12,17 @@ export declare class AccessDeniedException extends __BaseException {
12
12
  */
13
13
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
14
  }
15
+ /**
16
+ * <p>This is the container for the unique public address on the blockchain.</p>
17
+ * @public
18
+ */
19
+ export interface AddressIdentifierFilter {
20
+ /**
21
+ * <p>The container for the recipient address of the transaction. </p>
22
+ * @public
23
+ */
24
+ transactionEventToAddress: string[] | undefined;
25
+ }
15
26
  /**
16
27
  * @public
17
28
  * @enum
@@ -39,18 +50,18 @@ export declare const QueryNetwork: {
39
50
  */
40
51
  export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
41
52
  /**
42
- * @public
43
53
  * <p>Container for the blockchain address and network information about a contract.</p>
54
+ * @public
44
55
  */
45
56
  export interface ContractIdentifier {
46
57
  /**
47
- * @public
48
58
  * <p>The blockchain network of the contract.</p>
59
+ * @public
49
60
  */
50
61
  network: QueryNetwork | undefined;
51
62
  /**
52
- * @public
53
63
  * <p>Container for the blockchain address about a contract.</p>
64
+ * @public
54
65
  */
55
66
  contractAddress: string | undefined;
56
67
  }
@@ -68,105 +79,105 @@ export declare const QueryTokenStandard: {
68
79
  */
69
80
  export type QueryTokenStandard = (typeof QueryTokenStandard)[keyof typeof QueryTokenStandard];
70
81
  /**
71
- * @public
72
82
  * <p>This container contains information about an contract.</p>
83
+ * @public
73
84
  */
74
85
  export interface AssetContract {
75
86
  /**
76
- * @public
77
87
  * <p>The container for the contract identifier containing its blockchain network
78
88
  * and address.</p>
89
+ * @public
79
90
  */
80
91
  contractIdentifier: ContractIdentifier | undefined;
81
92
  /**
82
- * @public
83
93
  * <p>The token standard of the contract.</p>
94
+ * @public
84
95
  */
85
96
  tokenStandard: QueryTokenStandard | undefined;
86
97
  /**
87
- * @public
88
98
  * <p>The address of the contract deployer.</p>
99
+ * @public
89
100
  */
90
101
  deployerAddress: string | undefined;
91
102
  }
92
103
  /**
93
- * @public
94
104
  * <p>The container for time.</p>
105
+ * @public
95
106
  */
96
107
  export interface BlockchainInstant {
97
108
  /**
98
- * @public
99
109
  * <p>The container of the <code>Timestamp</code> of the blockchain instant.</p>
100
110
  * <note>
101
111
  * <p>This <code>timestamp</code> will only be recorded up to
102
112
  * the second.</p>
103
113
  * </note>
114
+ * @public
104
115
  */
105
116
  time?: Date;
106
117
  }
107
118
  /**
119
+ * <p>The container for the owner identifier.</p>
108
120
  * @public
109
- * <p>The container for the identifier of the owner.</p>
110
121
  */
111
122
  export interface OwnerIdentifier {
112
123
  /**
113
- * @public
114
124
  * <p>The contract or wallet address for the owner.</p>
125
+ * @public
115
126
  */
116
127
  address: string | undefined;
117
128
  }
118
129
  /**
119
- * @public
120
130
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
121
131
  * <note>
122
132
  * <p>Only the native tokens BTC and ETH, and the ERC-20,
123
133
  * ERC-721, and ERC 1155 token standards are supported.</p>
124
134
  * </note>
135
+ * @public
125
136
  */
126
137
  export interface TokenIdentifier {
127
138
  /**
128
- * @public
129
139
  * <p>The blockchain network of the token.</p>
140
+ * @public
130
141
  */
131
142
  network: QueryNetwork | undefined;
132
143
  /**
133
- * @public
134
144
  * <p>This is the token's contract address.</p>
145
+ * @public
135
146
  */
136
147
  contractAddress?: string;
137
148
  /**
138
- * @public
139
149
  * <p>The unique identifier of the token.</p>
140
150
  * <note>
141
151
  * <p>For native tokens, use the 3 character abbreviation that best matches your token.
142
152
  * For example, btc for Bitcoin, eth for Ether, etc. For all other token types you must
143
153
  * specify the <code>tokenId</code> in the 64 character hexadecimal <code>tokenid</code> format.</p>
144
154
  * </note>
155
+ * @public
145
156
  */
146
157
  tokenId?: string;
147
158
  }
148
159
  /**
149
- * @public
150
160
  * <p>The container for the input for getting a token balance.</p>
161
+ * @public
151
162
  */
152
163
  export interface BatchGetTokenBalanceInputItem {
153
164
  /**
154
- * @public
155
165
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
156
166
  * <note>
157
167
  * <p>Only the native tokens BTC and ETH, and the ERC-20,
158
168
  * ERC-721, and ERC 1155 token standards are supported.</p>
159
169
  * </note>
170
+ * @public
160
171
  */
161
172
  tokenIdentifier: TokenIdentifier | undefined;
162
173
  /**
174
+ * <p>The container for the owner identifier.</p>
163
175
  * @public
164
- * <p>The container for the identifier of the owner.</p>
165
176
  */
166
177
  ownerIdentifier: OwnerIdentifier | undefined;
167
178
  /**
168
- * @public
169
179
  * <p>The container for time.</p>
180
+ * @public
170
181
  */
171
182
  atBlockchainInstant?: BlockchainInstant;
172
183
  }
@@ -175,8 +186,8 @@ export interface BatchGetTokenBalanceInputItem {
175
186
  */
176
187
  export interface BatchGetTokenBalanceInput {
177
188
  /**
178
- * @public
179
189
  * <p>An array of <code>BatchGetTokenBalanceInputItem</code> objects whose balance is being requested.</p>
190
+ * @public
180
191
  */
181
192
  getTokenBalanceInputs?: BatchGetTokenBalanceInputItem[];
182
193
  }
@@ -199,77 +210,77 @@ export declare const ErrorType: {
199
210
  */
200
211
  export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
201
212
  /**
202
- * @public
203
213
  * <p>Error generated from a failed <code>BatchGetTokenBalance</code> request.</p>
214
+ * @public
204
215
  */
205
216
  export interface BatchGetTokenBalanceErrorItem {
206
217
  /**
207
- * @public
208
218
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
209
219
  * <note>
210
220
  * <p>Only the native tokens BTC and ETH, and the ERC-20,
211
221
  * ERC-721, and ERC 1155 token standards are supported.</p>
212
222
  * </note>
223
+ * @public
213
224
  */
214
225
  tokenIdentifier?: TokenIdentifier;
215
226
  /**
227
+ * <p>The container for the owner identifier.</p>
216
228
  * @public
217
- * <p>The container for the identifier of the owner.</p>
218
229
  */
219
230
  ownerIdentifier?: OwnerIdentifier;
220
231
  /**
221
- * @public
222
232
  * <p>The container for time.</p>
233
+ * @public
223
234
  */
224
235
  atBlockchainInstant?: BlockchainInstant;
225
236
  /**
226
- * @public
227
237
  * <p>The error code associated with the error.</p>
238
+ * @public
228
239
  */
229
240
  errorCode: string | undefined;
230
241
  /**
231
- * @public
232
242
  * <p>The message associated with the error.</p>
243
+ * @public
233
244
  */
234
245
  errorMessage: string | undefined;
235
246
  /**
236
- * @public
237
247
  * <p>The type of error.</p>
248
+ * @public
238
249
  */
239
250
  errorType: ErrorType | undefined;
240
251
  }
241
252
  /**
242
- * @public
243
253
  * <p>The container for the properties of a token balance output.</p>
254
+ * @public
244
255
  */
245
256
  export interface BatchGetTokenBalanceOutputItem {
246
257
  /**
258
+ * <p>The container for the owner identifier.</p>
247
259
  * @public
248
- * <p>The container for the identifier of the owner.</p>
249
260
  */
250
261
  ownerIdentifier?: OwnerIdentifier;
251
262
  /**
252
- * @public
253
263
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
254
264
  * <note>
255
265
  * <p>Only the native tokens BTC and ETH, and the ERC-20,
256
266
  * ERC-721, and ERC 1155 token standards are supported.</p>
257
267
  * </note>
268
+ * @public
258
269
  */
259
270
  tokenIdentifier?: TokenIdentifier;
260
271
  /**
261
- * @public
262
272
  * <p>The container for the token balance.</p>
273
+ * @public
263
274
  */
264
275
  balance: string | undefined;
265
276
  /**
266
- * @public
267
277
  * <p>The container for time.</p>
278
+ * @public
268
279
  */
269
280
  atBlockchainInstant: BlockchainInstant | undefined;
270
281
  /**
271
- * @public
272
282
  * <p>The container for time.</p>
283
+ * @public
273
284
  */
274
285
  lastUpdatedTime?: BlockchainInstant;
275
286
  }
@@ -278,27 +289,27 @@ export interface BatchGetTokenBalanceOutputItem {
278
289
  */
279
290
  export interface BatchGetTokenBalanceOutput {
280
291
  /**
281
- * @public
282
292
  * <p>An array of <code>BatchGetTokenBalanceOutputItem</code> objects returned by the response.</p>
293
+ * @public
283
294
  */
284
295
  tokenBalances: BatchGetTokenBalanceOutputItem[] | undefined;
285
296
  /**
286
- * @public
287
297
  * <p>An array of <code>BatchGetTokenBalanceErrorItem</code> objects returned from the request.</p>
298
+ * @public
288
299
  */
289
300
  errors: BatchGetTokenBalanceErrorItem[] | undefined;
290
301
  }
291
302
  /**
292
- * @public
293
303
  * <p>The request processing has failed because of an internal error in the service.</p>
304
+ * @public
294
305
  */
295
306
  export declare class InternalServerException extends __BaseException {
296
307
  readonly name: "InternalServerException";
297
308
  readonly $fault: "server";
298
309
  $retryable: {};
299
310
  /**
311
+ * <p>Specifies the <code>retryAfterSeconds</code> value.</p>
300
312
  * @public
301
- * <p>The container of the <code>retryAfterSeconds</code> value.</p>
302
313
  */
303
314
  retryAfterSeconds?: number;
304
315
  /**
@@ -318,20 +329,20 @@ export declare const ResourceType: {
318
329
  */
319
330
  export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
320
331
  /**
321
- * @public
322
332
  * <p>The resource was not found.</p>
333
+ * @public
323
334
  */
324
335
  export declare class ResourceNotFoundException extends __BaseException {
325
336
  readonly name: "ResourceNotFoundException";
326
337
  readonly $fault: "client";
327
338
  /**
328
- * @public
329
339
  * <p>The <code>resourceId</code> of the resource that caused the exception.</p>
340
+ * @public
330
341
  */
331
342
  resourceId: string | undefined;
332
343
  /**
333
- * @public
334
344
  * <p>The <code>resourceType</code> of the resource that caused the exception.</p>
345
+ * @public
335
346
  */
336
347
  resourceType: ResourceType | undefined;
337
348
  /**
@@ -340,30 +351,30 @@ export declare class ResourceNotFoundException extends __BaseException {
340
351
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
341
352
  }
342
353
  /**
343
- * @public
344
354
  * <p>The service quota has been exceeded for this resource.</p>
355
+ * @public
345
356
  */
346
357
  export declare class ServiceQuotaExceededException extends __BaseException {
347
358
  readonly name: "ServiceQuotaExceededException";
348
359
  readonly $fault: "client";
349
360
  /**
350
- * @public
351
361
  * <p>The <code>resourceId</code> of the resource that caused the exception.</p>
362
+ * @public
352
363
  */
353
364
  resourceId: string | undefined;
354
365
  /**
355
- * @public
356
366
  * <p>The <code>resourceType</code> of the resource that caused the exception.</p>
367
+ * @public
357
368
  */
358
369
  resourceType: ResourceType | undefined;
359
370
  /**
360
- * @public
361
371
  * <p>The container for the <code>serviceCode</code>.</p>
372
+ * @public
362
373
  */
363
374
  serviceCode: string | undefined;
364
375
  /**
365
- * @public
366
376
  * <p>The container for the <code>quotaCode</code>.</p>
377
+ * @public
367
378
  */
368
379
  quotaCode: string | undefined;
369
380
  /**
@@ -372,11 +383,11 @@ export declare class ServiceQuotaExceededException extends __BaseException {
372
383
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
373
384
  }
374
385
  /**
375
- * @public
376
386
  * <p>The request or operation couldn't be performed because a service is throttling
377
387
  * requests. The most common source of throttling errors is when you create resources
378
388
  * that exceed your service limit for this resource type. Request a limit increase or
379
389
  * delete unused resources, if possible.</p>
390
+ * @public
380
391
  */
381
392
  export declare class ThrottlingException extends __BaseException {
382
393
  readonly name: "ThrottlingException";
@@ -385,18 +396,18 @@ export declare class ThrottlingException extends __BaseException {
385
396
  throttling: boolean;
386
397
  };
387
398
  /**
388
- * @public
389
399
  * <p>The container for the <code>serviceCode</code>.</p>
400
+ * @public
390
401
  */
391
402
  serviceCode: string | undefined;
392
403
  /**
393
- * @public
394
404
  * <p>The container for the <code>quotaCode</code>.</p>
405
+ * @public
395
406
  */
396
407
  quotaCode: string | undefined;
397
408
  /**
398
- * @public
399
409
  * <p>The container of the <code>retryAfterSeconds</code> value.</p>
410
+ * @public
400
411
  */
401
412
  retryAfterSeconds?: number;
402
413
  /**
@@ -405,18 +416,18 @@ export declare class ThrottlingException extends __BaseException {
405
416
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
406
417
  }
407
418
  /**
408
- * @public
409
419
  * <p>The resource passed is invalid.</p>
420
+ * @public
410
421
  */
411
422
  export interface ValidationExceptionField {
412
423
  /**
413
- * @public
414
424
  * <p>The name of the field that triggered the <code>ValidationException</code>.</p>
425
+ * @public
415
426
  */
416
427
  name: string | undefined;
417
428
  /**
418
- * @public
419
429
  * <p>The <code>ValidationException</code> message.</p>
430
+ * @public
420
431
  */
421
432
  message: string | undefined;
422
433
  }
@@ -435,20 +446,20 @@ export declare const ValidationExceptionReason: {
435
446
  */
436
447
  export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
437
448
  /**
438
- * @public
439
449
  * <p>The resource passed is invalid.</p>
450
+ * @public
440
451
  */
441
452
  export declare class ValidationException extends __BaseException {
442
453
  readonly name: "ValidationException";
443
454
  readonly $fault: "client";
444
455
  /**
445
- * @public
446
456
  * <p>The container for the reason for the exception</p>
457
+ * @public
447
458
  */
448
459
  reason: ValidationExceptionReason | undefined;
449
460
  /**
450
- * @public
451
461
  * <p>The container for the <code>fieldList</code> of the exception.</p>
462
+ * @public
452
463
  */
453
464
  fieldList?: ValidationExceptionField[];
454
465
  /**
@@ -469,60 +480,60 @@ export declare const ConfirmationStatus: {
469
480
  */
470
481
  export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
471
482
  /**
472
- * @public
473
483
  * <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">
474
484
  * <i>finality</i>
475
485
  * </a> of the results.</p>
486
+ * @public
476
487
  */
477
488
  export interface ConfirmationStatusFilter {
478
489
  /**
479
- * @public
480
490
  * <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">
481
491
  * <i>finality</i>
482
492
  * </a>. Transactions
483
493
  * that have reached finality are always part of the response.</p>
494
+ * @public
484
495
  */
485
496
  include: ConfirmationStatus[] | undefined;
486
497
  }
487
498
  /**
488
- * @public
489
499
  * <p>The contract or wallet address by which to filter the request.</p>
500
+ * @public
490
501
  */
491
502
  export interface ContractFilter {
492
503
  /**
493
- * @public
494
504
  * <p>The blockchain network of the contract.</p>
505
+ * @public
495
506
  */
496
507
  network: QueryNetwork | undefined;
497
508
  /**
498
- * @public
499
509
  * <p>The container for the token standard.</p>
510
+ * @public
500
511
  */
501
512
  tokenStandard: QueryTokenStandard | undefined;
502
513
  /**
503
- * @public
504
514
  * <p>The network address of the deployer.</p>
515
+ * @public
505
516
  */
506
517
  deployerAddress: string | undefined;
507
518
  }
508
519
  /**
509
- * @public
510
520
  * <p>The metadata of the contract.</p>
521
+ * @public
511
522
  */
512
523
  export interface ContractMetadata {
513
524
  /**
514
- * @public
515
525
  * <p>The name of the token contract.</p>
526
+ * @public
516
527
  */
517
528
  name?: string;
518
529
  /**
519
- * @public
520
530
  * <p>The symbol of the token contract.</p>
531
+ * @public
521
532
  */
522
533
  symbol?: string;
523
534
  /**
524
- * @public
525
535
  * <p>The decimals used by the token contract.</p>
536
+ * @public
526
537
  */
527
538
  decimals?: number;
528
539
  }
@@ -543,8 +554,8 @@ export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionSta
543
554
  */
544
555
  export interface GetAssetContractInput {
545
556
  /**
546
- * @public
547
557
  * <p>Contains the blockchain address and network information about the contract.</p>
558
+ * @public
548
559
  */
549
560
  contractIdentifier: ContractIdentifier | undefined;
550
561
  }
@@ -553,23 +564,23 @@ export interface GetAssetContractInput {
553
564
  */
554
565
  export interface GetAssetContractOutput {
555
566
  /**
556
- * @public
557
567
  * <p>Contains the blockchain address and network information about the contract.</p>
568
+ * @public
558
569
  */
559
570
  contractIdentifier: ContractIdentifier | undefined;
560
571
  /**
561
- * @public
562
572
  * <p>The token standard of the contract requested.</p>
573
+ * @public
563
574
  */
564
575
  tokenStandard: QueryTokenStandard | undefined;
565
576
  /**
566
- * @public
567
577
  * <p>The address of the deployer of contract.</p>
578
+ * @public
568
579
  */
569
580
  deployerAddress: string | undefined;
570
581
  /**
571
- * @public
572
582
  * <p>The metadata of the contract.</p>
583
+ * @public
573
584
  */
574
585
  metadata?: ContractMetadata;
575
586
  }
@@ -578,23 +589,23 @@ export interface GetAssetContractOutput {
578
589
  */
579
590
  export interface GetTokenBalanceInput {
580
591
  /**
581
- * @public
582
592
  * <p>The container for the identifier for the token, including the unique
583
593
  * token ID and its blockchain network.</p>
594
+ * @public
584
595
  */
585
596
  tokenIdentifier: TokenIdentifier | undefined;
586
597
  /**
587
- * @public
588
598
  * <p>The container for the identifier for the owner.</p>
599
+ * @public
589
600
  */
590
601
  ownerIdentifier: OwnerIdentifier | undefined;
591
602
  /**
592
- * @public
593
603
  * <p>The time for when the TokenBalance is requested or
594
604
  * the current time if a time is not provided in the request.</p>
595
605
  * <note>
596
606
  * <p>This time will only be recorded up to the second.</p>
597
607
  * </note>
608
+ * @public
598
609
  */
599
610
  atBlockchainInstant?: BlockchainInstant;
600
611
  }
@@ -603,32 +614,32 @@ export interface GetTokenBalanceInput {
603
614
  */
604
615
  export interface GetTokenBalanceOutput {
605
616
  /**
617
+ * <p>The container for the owner identifier.</p>
606
618
  * @public
607
- * <p>The container for the identifier of the owner.</p>
608
619
  */
609
620
  ownerIdentifier?: OwnerIdentifier;
610
621
  /**
611
- * @public
612
622
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
613
623
  * <note>
614
624
  * <p>Only the native tokens BTC and ETH, and the ERC-20,
615
625
  * ERC-721, and ERC 1155 token standards are supported.</p>
616
626
  * </note>
627
+ * @public
617
628
  */
618
629
  tokenIdentifier?: TokenIdentifier;
619
630
  /**
620
- * @public
621
631
  * <p>The container for the token balance.</p>
632
+ * @public
622
633
  */
623
634
  balance: string | undefined;
624
635
  /**
625
- * @public
626
636
  * <p>The container for time.</p>
637
+ * @public
627
638
  */
628
639
  atBlockchainInstant: BlockchainInstant | undefined;
629
640
  /**
630
- * @public
631
641
  * <p>The container for time.</p>
642
+ * @public
632
643
  */
633
644
  lastUpdatedTime?: BlockchainInstant;
634
645
  }
@@ -637,18 +648,17 @@ export interface GetTokenBalanceOutput {
637
648
  */
638
649
  export interface GetTransactionInput {
639
650
  /**
651
+ * <p>The hash of a transaction. It is generated when a transaction is created.</p>
640
652
  * @public
641
- * <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
642
653
  */
643
654
  transactionHash: string | undefined;
644
655
  /**
645
- * @public
646
656
  * <p>The blockchain network where the transaction occurred.</p>
657
+ * @public
647
658
  */
648
659
  network: QueryNetwork | undefined;
649
660
  }
650
661
  /**
651
- * @public
652
662
  * <p>There are two possible types of transactions used for this data type:</p>
653
663
  * <ul>
654
664
  * <li>
@@ -662,109 +672,110 @@ export interface GetTransactionInput {
662
672
  * Alice's must be credited. This state-changing action occurs within a transaction.</p>
663
673
  * </li>
664
674
  * </ul>
675
+ * @public
665
676
  */
666
677
  export interface Transaction {
667
678
  /**
668
- * @public
669
679
  * <p>The blockchain network where the transaction occurred.</p>
680
+ * @public
670
681
  */
671
682
  network: QueryNetwork | undefined;
672
683
  /**
673
- * @public
674
684
  * <p>The block hash is a unique identifier for a block. It is a fixed-size
675
685
  * string that is calculated by using the information in the block. The block
676
686
  * hash is used to verify the integrity of the data in the block.</p>
687
+ * @public
677
688
  */
678
689
  blockHash?: string;
679
690
  /**
691
+ * <p>The hash of a transaction. It is generated when a transaction is created.</p>
680
692
  * @public
681
- * <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
682
693
  */
683
694
  transactionHash: string | undefined;
684
695
  /**
685
- * @public
686
696
  * <p>The block number in which the transaction is recorded.</p>
697
+ * @public
687
698
  */
688
699
  blockNumber?: string;
689
700
  /**
690
- * @public
691
701
  * <p>The <code>Timestamp</code> of the transaction. </p>
702
+ * @public
692
703
  */
693
704
  transactionTimestamp: Date | undefined;
694
705
  /**
695
- * @public
696
706
  * <p>The index of the transaction within a blockchain.</p>
707
+ * @public
697
708
  */
698
709
  transactionIndex: number | undefined;
699
710
  /**
700
- * @public
701
711
  * <p>The number of transactions in the block.</p>
712
+ * @public
702
713
  */
703
714
  numberOfTransactions: number | undefined;
704
715
  /**
705
- * @public
706
716
  * <p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
717
+ * @public
707
718
  */
708
719
  to: string | undefined;
709
720
  /**
710
- * @public
711
721
  * <p>The initiator of the transaction. It is either in the form a public key or a
712
722
  * contract address.</p>
723
+ * @public
713
724
  */
714
725
  from?: string;
715
726
  /**
716
- * @public
717
727
  * <p>The blockchain address for the contract.</p>
728
+ * @public
718
729
  */
719
730
  contractAddress?: string;
720
731
  /**
721
- * @public
722
732
  * <p>The amount of gas used for the transaction.</p>
733
+ * @public
723
734
  */
724
735
  gasUsed?: string;
725
736
  /**
726
- * @public
727
737
  * <p>The amount of gas used up to the specified point in the block.</p>
738
+ * @public
728
739
  */
729
740
  cumulativeGasUsed?: string;
730
741
  /**
731
- * @public
732
742
  * <p>The effective gas price.</p>
743
+ * @public
733
744
  */
734
745
  effectiveGasPrice?: string;
735
746
  /**
736
- * @public
737
747
  * <p>The signature of the transaction. The Z coordinate of a point V.</p>
748
+ * @public
738
749
  */
739
750
  signatureV?: number;
740
751
  /**
741
- * @public
742
752
  * <p>The signature of the transaction. The X coordinate of a point R.</p>
753
+ * @public
743
754
  */
744
755
  signatureR?: string;
745
756
  /**
746
- * @public
747
757
  * <p>The signature of the transaction. The Y coordinate of a point S.</p>
758
+ * @public
748
759
  */
749
760
  signatureS?: string;
750
761
  /**
751
- * @public
752
762
  * <p>The transaction fee.</p>
763
+ * @public
753
764
  */
754
765
  transactionFee?: string;
755
766
  /**
767
+ * <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
756
768
  * @public
757
- * <p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
758
769
  */
759
770
  transactionId?: string;
760
771
  /**
761
- * @public
762
772
  * <p>Specifies whether the transaction has reached Finality.</p>
773
+ * @public
763
774
  */
764
775
  confirmationStatus?: ConfirmationStatus;
765
776
  /**
766
- * @public
767
777
  * <p>Identifies whether the transaction has succeeded or failed.</p>
778
+ * @public
768
779
  */
769
780
  executionStatus?: ExecutionStatus;
770
781
  }
@@ -773,8 +784,8 @@ export interface Transaction {
773
784
  */
774
785
  export interface GetTransactionOutput {
775
786
  /**
776
- * @public
777
787
  * <p>Contains the details of the transaction.</p>
788
+ * @public
778
789
  */
779
790
  transaction: Transaction | undefined;
780
791
  }
@@ -783,19 +794,18 @@ export interface GetTransactionOutput {
783
794
  */
784
795
  export interface ListAssetContractsInput {
785
796
  /**
786
- * @public
787
797
  * <p>Contains the filter parameter for the request.</p>
798
+ * @public
788
799
  */
789
800
  contractFilter: ContractFilter | undefined;
790
801
  /**
791
- * @public
792
802
  * <p> The pagination token that indicates the next set of results to retrieve.</p>
803
+ * @public
793
804
  */
794
805
  nextToken?: string;
795
806
  /**
796
- * @public
797
807
  * <p>The maximum number of contracts to list.</p>
798
- * <p>Default:<code>100</code>
808
+ * <p>Default: <code>100</code>
799
809
  * </p>
800
810
  * <note>
801
811
  * <p>Even if additional results can be retrieved, the request can return less
@@ -804,6 +814,7 @@ export interface ListAssetContractsInput {
804
814
  * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
805
815
  * <code>null</code> when there are no more results to return</p>
806
816
  * </note>
817
+ * @public
807
818
  */
808
819
  maxResults?: number;
809
820
  }
@@ -812,170 +823,143 @@ export interface ListAssetContractsInput {
812
823
  */
813
824
  export interface ListAssetContractsOutput {
814
825
  /**
815
- * @public
816
826
  * <p>An array of contract objects that contain the properties for each contract.</p>
827
+ * @public
817
828
  */
818
829
  contracts: AssetContract[] | undefined;
819
830
  /**
820
- * @public
821
831
  * <p>The pagination token that indicates the next set of results to retrieve. </p>
832
+ * @public
822
833
  */
823
834
  nextToken?: string;
824
835
  }
825
836
  /**
826
837
  * @public
827
- * <p>The container for the owner information to filter by.</p>
838
+ * @enum
828
839
  */
829
- export interface OwnerFilter {
840
+ export declare const ListFilteredTransactionEventsSortBy: {
830
841
  /**
831
- * @public
832
- * <p>The contract or wallet address.</p>
842
+ * Timestamp of a transaction
833
843
  */
834
- address: string | undefined;
835
- }
844
+ readonly blockchainInstant: "blockchainInstant";
845
+ };
836
846
  /**
837
847
  * @public
838
- * <p>The container of the token filter like the contract address
839
- * on a given blockchain network or a unique token identifier on a given
840
- * blockchain network.</p>
841
- * <note>
842
- * <p>You must always specify the network property of this
843
- * container when using this operation.</p>
844
- * </note>
845
848
  */
846
- export interface TokenFilter {
849
+ export type ListFilteredTransactionEventsSortBy = (typeof ListFilteredTransactionEventsSortBy)[keyof typeof ListFilteredTransactionEventsSortBy];
850
+ /**
851
+ * @public
852
+ * @enum
853
+ */
854
+ export declare const SortOrder: {
847
855
  /**
848
- * @public
849
- * <p>The blockchain network of the token.</p>
856
+ * Result sorted in ascending order
850
857
  */
851
- network: QueryNetwork | undefined;
858
+ readonly ASCENDING: "ASCENDING";
859
+ /**
860
+ * Result sorted in descending order
861
+ */
862
+ readonly DESCENDING: "DESCENDING";
863
+ };
864
+ /**
865
+ * @public
866
+ */
867
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
868
+ /**
869
+ * <p>Lists all the transaction events for an address on the blockchain.</p>
870
+ * <note>
871
+ * <p>This operation is only supported on the Bitcoin blockchain networks.</p>
872
+ * </note>
873
+ * @public
874
+ */
875
+ export interface ListFilteredTransactionEventsSort {
852
876
  /**
877
+ * <p>Container on how the results will be sorted by?</p>
853
878
  * @public
854
- * <p>This is the address of the contract.</p>
855
879
  */
856
- contractAddress?: string;
880
+ sortBy?: ListFilteredTransactionEventsSortBy;
857
881
  /**
882
+ * <p>The container for the <i>sort order</i> for <code>ListFilteredTransactionEvents</code>.
883
+ * The <code>SortOrder</code> field only accepts the values <code>ASCENDING</code>
884
+ * and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default
885
+ * to <code>ASCENDING</code>.</p>
858
886
  * @public
859
- * <p>The unique identifier of the token.</p>
860
887
  */
861
- tokenId?: string;
888
+ sortOrder?: SortOrder;
862
889
  }
863
890
  /**
891
+ * <p>This container is used to specify a time frame.</p>
864
892
  * @public
865
893
  */
866
- export interface ListTokenBalancesInput {
867
- /**
868
- * @public
869
- * <p>The contract or wallet address on the blockchain network by which to filter the
870
- * request. You must specify the <code>address</code> property of the <code>ownerFilter</code>
871
- * when listing balances of tokens owned by the address.</p>
872
- */
873
- ownerFilter?: OwnerFilter;
894
+ export interface TimeFilter {
874
895
  /**
896
+ * <p>The container for time.</p>
875
897
  * @public
876
- * <p>The contract address or a token identifier on the
877
- * blockchain network by which to filter the request. You must specify the <code>contractAddress</code>
878
- * property of this container when listing tokens minted by a contract.</p>
879
- * <note>
880
- * <p>You must always specify the network property of this
881
- * container when using this operation.</p>
882
- * </note>
883
898
  */
884
- tokenFilter: TokenFilter | undefined;
899
+ from?: BlockchainInstant;
885
900
  /**
901
+ * <p>The container for time.</p>
886
902
  * @public
887
- * <p>The pagination token that indicates the next set of results to retrieve.</p>
888
903
  */
889
- nextToken?: string;
904
+ to?: BlockchainInstant;
905
+ }
906
+ /**
907
+ * <p>This container specifies filtering attributes related to <code>BITCOIN_VOUT</code> event types</p>
908
+ * @public
909
+ */
910
+ export interface VoutFilter {
890
911
  /**
912
+ * <p>Specifies if the transaction output is spent or unspent.</p>
891
913
  * @public
892
- * <p>The maximum number of token balances to return.</p>
893
- * <p>Default:<code>100</code>
894
- * </p>
895
- * <note>
896
- * <p>Even if additional results can be retrieved, the request can return less
897
- * results than <code>maxResults</code> or an empty array of results.</p>
898
- * <p>To retrieve the next set of results, make another request with the
899
- * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
900
- * <code>null</code> when there are no more results to return</p>
901
- * </note>
902
914
  */
903
- maxResults?: number;
915
+ voutSpent: boolean | undefined;
904
916
  }
905
917
  /**
906
918
  * @public
907
- * <p>The balance of the token.</p>
908
919
  */
909
- export interface TokenBalance {
920
+ export interface ListFilteredTransactionEventsInput {
910
921
  /**
922
+ * <p>The blockchain network where the transaction occurred.</p>
923
+ * <p>Valid Values: <code>BITCOIN_MAINNET</code> | <code>BITCOIN_TESTNET</code>
924
+ * </p>
911
925
  * @public
912
- * <p>The container for the identifier of the owner.</p>
913
926
  */
914
- ownerIdentifier?: OwnerIdentifier;
927
+ network: string | undefined;
915
928
  /**
929
+ * <p>This is the unique public address on the blockchain for which the transaction events are being requested.</p>
916
930
  * @public
917
- * <p>The identifier for the token, including the unique token ID and its blockchain network.</p>
918
931
  */
919
- tokenIdentifier?: TokenIdentifier;
932
+ addressIdentifierFilter: AddressIdentifierFilter | undefined;
920
933
  /**
934
+ * <p>This container specifies the time frame for the transaction events returned in the response.</p>
921
935
  * @public
922
- * <p>The container of the token balance.</p>
923
936
  */
924
- balance: string | undefined;
937
+ timeFilter?: TimeFilter;
925
938
  /**
939
+ * <p>This container specifies filtering attributes related to BITCOIN_VOUT event types</p>
926
940
  * @public
927
- * <p>The time for when the TokenBalance is requested or
928
- * the current time if a time is not provided in the request.</p>
929
- * <note>
930
- * <p>This time will only be recorded up to the second.</p>
931
- * </note>
932
941
  */
933
- atBlockchainInstant: BlockchainInstant | undefined;
942
+ voutFilter?: VoutFilter;
934
943
  /**
944
+ * <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">
945
+ * <i>finality</i>
946
+ * </a> of the results.</p>
935
947
  * @public
936
- * <p>The <code>Timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
937
948
  */
938
- lastUpdatedTime?: BlockchainInstant;
939
- }
940
- /**
941
- * @public
942
- */
943
- export interface ListTokenBalancesOutput {
949
+ confirmationStatusFilter?: ConfirmationStatusFilter;
944
950
  /**
951
+ * <p>The order by which the results will be sorted.</p>
945
952
  * @public
946
- * <p>An array of <code>TokenBalance</code> objects. Each object contains details about
947
- * the token balance.</p>
948
953
  */
949
- tokenBalances: TokenBalance[] | undefined;
954
+ sort?: ListFilteredTransactionEventsSort;
950
955
  /**
951
- * @public
952
956
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
953
- */
954
- nextToken?: string;
955
- }
956
- /**
957
- * @public
958
- */
959
- export interface ListTransactionEventsInput {
960
- /**
961
- * @public
962
- * <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
963
- */
964
- transactionHash: string | undefined;
965
- /**
966
- * @public
967
- * <p>The blockchain network where the transaction events occurred.</p>
968
- */
969
- network: QueryNetwork | undefined;
970
- /**
971
957
  * @public
972
- * <p>The pagination token that indicates the next set of results to retrieve.</p>
973
958
  */
974
959
  nextToken?: string;
975
960
  /**
976
- * @public
977
961
  * <p>The maximum number of transaction events to list.</p>
978
- * <p>Default:<code>100</code>
962
+ * <p>Default: <code>100</code>
979
963
  * </p>
980
964
  * <note>
981
965
  * <p>Even if additional results can be retrieved, the request can return less
@@ -984,6 +968,7 @@ export interface ListTransactionEventsInput {
984
968
  * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
985
969
  * <code>null</code> when there are no more results to return</p>
986
970
  * </note>
971
+ * @public
987
972
  */
988
973
  maxResults?: number;
989
974
  }
@@ -1042,126 +1027,339 @@ export declare const QueryTransactionEventType: {
1042
1027
  */
1043
1028
  export type QueryTransactionEventType = (typeof QueryTransactionEventType)[keyof typeof QueryTransactionEventType];
1044
1029
  /**
1045
- * @public
1046
1030
  * <p>The container for the properties of a transaction event.</p>
1031
+ * @public
1047
1032
  */
1048
1033
  export interface TransactionEvent {
1049
1034
  /**
1050
- * @public
1051
1035
  * <p>The blockchain network where the transaction occurred.</p>
1036
+ * @public
1052
1037
  */
1053
1038
  network: QueryNetwork | undefined;
1054
1039
  /**
1040
+ * <p>The hash of a transaction. It is generated when a transaction is created.</p>
1055
1041
  * @public
1056
- * <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
1057
1042
  */
1058
1043
  transactionHash: string | undefined;
1059
1044
  /**
1060
- * @public
1061
1045
  * <p>The type of transaction event.</p>
1046
+ * @public
1062
1047
  */
1063
1048
  eventType: QueryTransactionEventType | undefined;
1064
1049
  /**
1065
- * @public
1066
1050
  * <p>The wallet address initiating the transaction. It can either be a public key or a contract.</p>
1051
+ * @public
1067
1052
  */
1068
1053
  from?: string;
1069
1054
  /**
1070
- * @public
1071
1055
  * <p>The wallet address receiving the transaction. It can either be a public key or a contract.</p>
1056
+ * @public
1072
1057
  */
1073
1058
  to?: string;
1074
1059
  /**
1075
- * @public
1076
1060
  * <p>The value that was transacted.</p>
1061
+ * @public
1077
1062
  */
1078
1063
  value?: string;
1079
1064
  /**
1065
+ * <p>The blockchain address for the contract</p>
1080
1066
  * @public
1081
- * <p>The blockchain address. for the contract</p>
1082
1067
  */
1083
1068
  contractAddress?: string;
1084
1069
  /**
1085
- * @public
1086
1070
  * <p>The unique identifier for the token involved in the transaction.</p>
1071
+ * @public
1087
1072
  */
1088
1073
  tokenId?: string;
1089
1074
  /**
1075
+ * <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
1090
1076
  * @public
1091
- * <p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
1092
1077
  */
1093
1078
  transactionId?: string;
1094
1079
  /**
1080
+ * <p>The position of the transaction output in the transaction output list.</p>
1095
1081
  * @public
1096
- * <p>The position of the vout in the transaction output list.</p>
1097
1082
  */
1098
1083
  voutIndex?: number;
1084
+ /**
1085
+ * <p>Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.</p>
1086
+ * <note>
1087
+ * <p>This is only returned for <code>BITCOIN_VOUT</code> event types.</p>
1088
+ * </note>
1089
+ * @public
1090
+ */
1091
+ voutSpent?: boolean;
1092
+ /**
1093
+ * <p>The transactionId that <i>created</i> the spent transaction output.</p>
1094
+ * <note>
1095
+ * <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
1096
+ * </note>
1097
+ * @public
1098
+ */
1099
+ spentVoutTransactionId?: string;
1100
+ /**
1101
+ * <p>The transactionHash that <i>created</i> the spent transaction output.</p>
1102
+ * <note>
1103
+ * <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
1104
+ * </note>
1105
+ * @public
1106
+ */
1107
+ spentVoutTransactionHash?: string;
1108
+ /**
1109
+ * <p>The position of the spent transaction output in the output list of the <i>creating transaction</i>.</p>
1110
+ * <note>
1111
+ * <p>This is only returned for <code>BITCOIN_VIN</code> event types.</p>
1112
+ * </note>
1113
+ * @public
1114
+ */
1115
+ spentVoutIndex?: number;
1116
+ /**
1117
+ * <p>The container for time.</p>
1118
+ * @public
1119
+ */
1120
+ blockchainInstant?: BlockchainInstant;
1121
+ /**
1122
+ * <p>This container specifies whether the transaction has reached Finality.</p>
1123
+ * @public
1124
+ */
1125
+ confirmationStatus?: ConfirmationStatus;
1099
1126
  }
1100
1127
  /**
1101
1128
  * @public
1102
1129
  */
1103
- export interface ListTransactionEventsOutput {
1130
+ export interface ListFilteredTransactionEventsOutput {
1104
1131
  /**
1132
+ * <p>The transaction events returned by the request.</p>
1105
1133
  * @public
1106
- * <p>An array of <code>TransactionEvent</code> objects. Each object contains details
1107
- * about the transaction events.</p>
1108
1134
  */
1109
1135
  events: TransactionEvent[] | undefined;
1110
1136
  /**
1137
+ * <p>The pagination token that indicates the next set of results to retrieve.</p>
1138
+ * @public
1139
+ */
1140
+ nextToken?: string;
1141
+ }
1142
+ /**
1143
+ * <p>The container for the owner information to filter by.</p>
1144
+ * @public
1145
+ */
1146
+ export interface OwnerFilter {
1147
+ /**
1148
+ * <p>The contract or wallet address.</p>
1149
+ * @public
1150
+ */
1151
+ address: string | undefined;
1152
+ }
1153
+ /**
1154
+ * <p>The container of the token filter like the contract address
1155
+ * on a given blockchain network or a unique token identifier on a given
1156
+ * blockchain network.</p>
1157
+ * <note>
1158
+ * <p>You must always specify the network property of this
1159
+ * container when using this operation.</p>
1160
+ * </note>
1161
+ * @public
1162
+ */
1163
+ export interface TokenFilter {
1164
+ /**
1165
+ * <p>The blockchain network of the token.</p>
1166
+ * @public
1167
+ */
1168
+ network: QueryNetwork | undefined;
1169
+ /**
1170
+ * <p>This is the address of the contract.</p>
1171
+ * @public
1172
+ */
1173
+ contractAddress?: string;
1174
+ /**
1175
+ * <p>The unique identifier of the token.</p>
1111
1176
  * @public
1177
+ */
1178
+ tokenId?: string;
1179
+ }
1180
+ /**
1181
+ * @public
1182
+ */
1183
+ export interface ListTokenBalancesInput {
1184
+ /**
1185
+ * <p>The contract or wallet address on the blockchain network by which to filter the
1186
+ * request. You must specify the <code>address</code> property of the <code>ownerFilter</code>
1187
+ * when listing balances of tokens owned by the address.</p>
1188
+ * @public
1189
+ */
1190
+ ownerFilter?: OwnerFilter;
1191
+ /**
1192
+ * <p>The contract address or a token identifier on the
1193
+ * blockchain network by which to filter the request. You must specify the <code>contractAddress</code>
1194
+ * property of this container when listing tokens minted by a contract.</p>
1195
+ * <note>
1196
+ * <p>You must always specify the network property of this
1197
+ * container when using this operation.</p>
1198
+ * </note>
1199
+ * @public
1200
+ */
1201
+ tokenFilter: TokenFilter | undefined;
1202
+ /**
1112
1203
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
1204
+ * @public
1113
1205
  */
1114
1206
  nextToken?: string;
1207
+ /**
1208
+ * <p>The maximum number of token balances to return.</p>
1209
+ * <p>Default: <code>100</code>
1210
+ * </p>
1211
+ * <note>
1212
+ * <p>Even if additional results can be retrieved, the request can return less
1213
+ * results than <code>maxResults</code> or an empty array of results.</p>
1214
+ * <p>To retrieve the next set of results, make another request with the
1215
+ * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
1216
+ * <code>null</code> when there are no more results to return</p>
1217
+ * </note>
1218
+ * @public
1219
+ */
1220
+ maxResults?: number;
1115
1221
  }
1116
1222
  /**
1223
+ * <p>The balance of the token.</p>
1117
1224
  * @public
1118
- * @enum
1119
1225
  */
1120
- export declare const ListTransactionsSortBy: {
1226
+ export interface TokenBalance {
1121
1227
  /**
1122
- * Timestamp of a transaction
1228
+ * <p>The container for the identifier of the owner.</p>
1229
+ * @public
1123
1230
  */
1124
- readonly TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP";
1125
- };
1231
+ ownerIdentifier?: OwnerIdentifier;
1232
+ /**
1233
+ * <p>The identifier for the token, including the unique token ID and its blockchain network.</p>
1234
+ * @public
1235
+ */
1236
+ tokenIdentifier?: TokenIdentifier;
1237
+ /**
1238
+ * <p>The container of the token balance.</p>
1239
+ * @public
1240
+ */
1241
+ balance: string | undefined;
1242
+ /**
1243
+ * <p>The time for when the TokenBalance is requested or
1244
+ * the current time if a time is not provided in the request.</p>
1245
+ * <note>
1246
+ * <p>This time will only be recorded up to the second.</p>
1247
+ * </note>
1248
+ * @public
1249
+ */
1250
+ atBlockchainInstant: BlockchainInstant | undefined;
1251
+ /**
1252
+ * <p>The <code>Timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
1253
+ * @public
1254
+ */
1255
+ lastUpdatedTime?: BlockchainInstant;
1256
+ }
1126
1257
  /**
1127
1258
  * @public
1128
1259
  */
1129
- export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy];
1260
+ export interface ListTokenBalancesOutput {
1261
+ /**
1262
+ * <p>An array of <code>TokenBalance</code> objects. Each object contains details about
1263
+ * the token balance.</p>
1264
+ * @public
1265
+ */
1266
+ tokenBalances: TokenBalance[] | undefined;
1267
+ /**
1268
+ * <p>The pagination token that indicates the next set of results to retrieve.</p>
1269
+ * @public
1270
+ */
1271
+ nextToken?: string;
1272
+ }
1130
1273
  /**
1131
1274
  * @public
1132
- * @enum
1133
1275
  */
1134
- export declare const SortOrder: {
1276
+ export interface ListTransactionEventsInput {
1135
1277
  /**
1136
- * Result sorted in ascending order
1278
+ * <p>The hash of a transaction. It is generated when a transaction is created.</p>
1279
+ * @public
1137
1280
  */
1138
- readonly ASCENDING: "ASCENDING";
1281
+ transactionHash?: string;
1139
1282
  /**
1140
- * Result sorted in descending order
1283
+ * <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
1284
+ * <note>
1285
+ * <p>
1286
+ * <code>transactionId</code> is only supported on the Bitcoin networks.</p>
1287
+ * </note>
1288
+ * @public
1141
1289
  */
1142
- readonly DESCENDING: "DESCENDING";
1143
- };
1290
+ transactionId?: string;
1291
+ /**
1292
+ * <p>The blockchain network where the transaction events occurred.</p>
1293
+ * @public
1294
+ */
1295
+ network: QueryNetwork | undefined;
1296
+ /**
1297
+ * <p>The pagination token that indicates the next set of results to retrieve.</p>
1298
+ * @public
1299
+ */
1300
+ nextToken?: string;
1301
+ /**
1302
+ * <p>The maximum number of transaction events to list.</p>
1303
+ * <p>Default: <code>100</code>
1304
+ * </p>
1305
+ * <note>
1306
+ * <p>Even if additional results can be retrieved, the request can return less
1307
+ * results than <code>maxResults</code> or an empty array of results.</p>
1308
+ * <p>To retrieve the next set of results, make another request with the
1309
+ * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
1310
+ * <code>null</code> when there are no more results to return</p>
1311
+ * </note>
1312
+ * @public
1313
+ */
1314
+ maxResults?: number;
1315
+ }
1144
1316
  /**
1145
1317
  * @public
1146
1318
  */
1147
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
1319
+ export interface ListTransactionEventsOutput {
1320
+ /**
1321
+ * <p>An array of <code>TransactionEvent</code> objects. Each object contains details
1322
+ * about the transaction events.</p>
1323
+ * @public
1324
+ */
1325
+ events: TransactionEvent[] | undefined;
1326
+ /**
1327
+ * <p>The pagination token that indicates the next set of results to retrieve.</p>
1328
+ * @public
1329
+ */
1330
+ nextToken?: string;
1331
+ }
1148
1332
  /**
1149
1333
  * @public
1334
+ * @enum
1335
+ */
1336
+ export declare const ListTransactionsSortBy: {
1337
+ /**
1338
+ * Timestamp of a transaction
1339
+ */
1340
+ readonly TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP";
1341
+ };
1342
+ /**
1343
+ * @public
1344
+ */
1345
+ export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy];
1346
+ /**
1150
1347
  * <p>The container for determining how the list transaction result will
1151
1348
  * be sorted.</p>
1349
+ * @public
1152
1350
  */
1153
1351
  export interface ListTransactionsSort {
1154
1352
  /**
1155
- * @public
1156
1353
  * <p>Defaults to the value <code>TRANSACTION_TIMESTAMP</code>.</p>
1354
+ * @public
1157
1355
  */
1158
1356
  sortBy?: ListTransactionsSortBy;
1159
1357
  /**
1160
- * @public
1161
1358
  * <p>The container for the <i>sort order</i> for <code>ListTransactions</code>.
1162
1359
  * The <code>SortOrder</code> field only accepts the values <code>ASCENDING</code>
1163
1360
  * and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default
1164
1361
  * to <code>ASCENDING</code>.</p>
1362
+ * @public
1165
1363
  */
1166
1364
  sortOrder?: SortOrder;
1167
1365
  }
@@ -1170,40 +1368,38 @@ export interface ListTransactionsSort {
1170
1368
  */
1171
1369
  export interface ListTransactionsInput {
1172
1370
  /**
1173
- * @public
1174
1371
  * <p>The address (either a contract or wallet), whose transactions are being requested.</p>
1372
+ * @public
1175
1373
  */
1176
1374
  address: string | undefined;
1177
1375
  /**
1178
- * @public
1179
1376
  * <p>The blockchain network where the transactions occurred.</p>
1377
+ * @public
1180
1378
  */
1181
1379
  network: QueryNetwork | undefined;
1182
1380
  /**
1183
- * @public
1184
1381
  * <p>The container for time.</p>
1382
+ * @public
1185
1383
  */
1186
1384
  fromBlockchainInstant?: BlockchainInstant;
1187
1385
  /**
1188
- * @public
1189
1386
  * <p>The container for time.</p>
1387
+ * @public
1190
1388
  */
1191
1389
  toBlockchainInstant?: BlockchainInstant;
1192
1390
  /**
1391
+ * <p>The order by which the results will be sorted. </p>
1193
1392
  * @public
1194
- * <p>The order by which the results will be sorted. If <code>ASCENNDING</code> is selected, the results
1195
- * will be ordered by <code>fromTime</code>. </p>
1196
1393
  */
1197
1394
  sort?: ListTransactionsSort;
1198
1395
  /**
1199
- * @public
1200
1396
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
1397
+ * @public
1201
1398
  */
1202
1399
  nextToken?: string;
1203
1400
  /**
1204
- * @public
1205
1401
  * <p>The maximum number of transactions to list.</p>
1206
- * <p>Default:<code>100</code>
1402
+ * <p>Default: <code>100</code>
1207
1403
  * </p>
1208
1404
  * <note>
1209
1405
  * <p>Even if additional results can be retrieved, the request can return less
@@ -1212,40 +1408,41 @@ export interface ListTransactionsInput {
1212
1408
  * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
1213
1409
  * <code>null</code> when there are no more results to return</p>
1214
1410
  * </note>
1411
+ * @public
1215
1412
  */
1216
1413
  maxResults?: number;
1217
1414
  /**
1218
- * @public
1219
1415
  * <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">
1220
1416
  * <i>finality</i>
1221
- * </a>. Transactions that have reached finiality are always
1417
+ * </a>. Transactions that have reached finality are always
1222
1418
  * part of the response.</p>
1419
+ * @public
1223
1420
  */
1224
1421
  confirmationStatusFilter?: ConfirmationStatusFilter;
1225
1422
  }
1226
1423
  /**
1227
- * @public
1228
1424
  * <p>The container of the transaction output.</p>
1425
+ * @public
1229
1426
  */
1230
1427
  export interface TransactionOutputItem {
1231
1428
  /**
1429
+ * <p>The hash of a transaction. It is generated when a transaction is created.</p>
1232
1430
  * @public
1233
- * <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
1234
1431
  */
1235
1432
  transactionHash: string | undefined;
1236
1433
  /**
1237
- * @public
1238
1434
  * <p>The blockchain network where the transaction occurred.</p>
1435
+ * @public
1239
1436
  */
1240
1437
  network: QueryNetwork | undefined;
1241
1438
  /**
1242
- * @public
1243
1439
  * <p>The time when the transaction occurred.</p>
1440
+ * @public
1244
1441
  */
1245
1442
  transactionTimestamp: Date | undefined;
1246
1443
  /**
1247
- * @public
1248
1444
  * <p>Specifies whether to list transactions that have not reached Finality.</p>
1445
+ * @public
1249
1446
  */
1250
1447
  confirmationStatus?: ConfirmationStatus;
1251
1448
  }
@@ -1254,13 +1451,13 @@ export interface TransactionOutputItem {
1254
1451
  */
1255
1452
  export interface ListTransactionsOutput {
1256
1453
  /**
1257
- * @public
1258
1454
  * <p>The array of transactions returned by the request.</p>
1455
+ * @public
1259
1456
  */
1260
1457
  transactions: TransactionOutputItem[] | undefined;
1261
1458
  /**
1262
- * @public
1263
1459
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
1460
+ * @public
1264
1461
  */
1265
1462
  nextToken?: string;
1266
1463
  }