aws-sdk-managedblockchainquery 1.0.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-managedblockchainquery/client.rb +834 -0
- data/lib/aws-sdk-managedblockchainquery/client_api.rb +395 -0
- data/lib/aws-sdk-managedblockchainquery/customizations.rb +0 -0
- data/lib/aws-sdk-managedblockchainquery/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-managedblockchainquery/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-managedblockchainquery/endpoints.rb +100 -0
- data/lib/aws-sdk-managedblockchainquery/errors.rb +206 -0
- data/lib/aws-sdk-managedblockchainquery/plugins/endpoints.rb +80 -0
- data/lib/aws-sdk-managedblockchainquery/resource.rb +26 -0
- data/lib/aws-sdk-managedblockchainquery/types.rb +989 -0
- data/lib/aws-sdk-managedblockchainquery/waiters.rb +15 -0
- data/lib/aws-sdk-managedblockchainquery.rb +58 -0
- metadata +95 -0
@@ -0,0 +1,989 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ManagedBlockchainQuery
|
11
|
+
module Types
|
12
|
+
|
13
|
+
# The Amazon Web Services account doesn’t have access to this resource.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# The container for the exception message.
|
17
|
+
# @return [String]
|
18
|
+
#
|
19
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/AccessDeniedException AWS API Documentation
|
20
|
+
#
|
21
|
+
class AccessDeniedException < Struct.new(
|
22
|
+
:message)
|
23
|
+
SENSITIVE = []
|
24
|
+
include Aws::Structure
|
25
|
+
end
|
26
|
+
|
27
|
+
# Error generated from a failed `BatchGetTokenBalance` request.
|
28
|
+
#
|
29
|
+
# @!attribute [rw] token_identifier
|
30
|
+
# The container for the identifier for the token including the unique
|
31
|
+
# token ID and its blockchain network.
|
32
|
+
#
|
33
|
+
# <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
|
34
|
+
# 1155 token standards are supported.
|
35
|
+
#
|
36
|
+
# </note>
|
37
|
+
# @return [Types::TokenIdentifier]
|
38
|
+
#
|
39
|
+
# @!attribute [rw] owner_identifier
|
40
|
+
# The container for the identifier of the owner.
|
41
|
+
# @return [Types::OwnerIdentifier]
|
42
|
+
#
|
43
|
+
# @!attribute [rw] at_blockchain_instant
|
44
|
+
# The container for time.
|
45
|
+
# @return [Types::BlockchainInstant]
|
46
|
+
#
|
47
|
+
# @!attribute [rw] error_code
|
48
|
+
# The error code associated with the error.
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
# @!attribute [rw] error_message
|
52
|
+
# The message associated with the error.
|
53
|
+
# @return [String]
|
54
|
+
#
|
55
|
+
# @!attribute [rw] error_type
|
56
|
+
# The type of error.
|
57
|
+
# @return [String]
|
58
|
+
#
|
59
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalanceErrorItem AWS API Documentation
|
60
|
+
#
|
61
|
+
class BatchGetTokenBalanceErrorItem < Struct.new(
|
62
|
+
:token_identifier,
|
63
|
+
:owner_identifier,
|
64
|
+
:at_blockchain_instant,
|
65
|
+
:error_code,
|
66
|
+
:error_message,
|
67
|
+
:error_type)
|
68
|
+
SENSITIVE = []
|
69
|
+
include Aws::Structure
|
70
|
+
end
|
71
|
+
|
72
|
+
# @!attribute [rw] get_token_balance_inputs
|
73
|
+
# An array of `GetTokenBalanceInput` objects whose balance is being
|
74
|
+
# requested.
|
75
|
+
# @return [Array<Types::BatchGetTokenBalanceInputItem>]
|
76
|
+
#
|
77
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalanceInput AWS API Documentation
|
78
|
+
#
|
79
|
+
class BatchGetTokenBalanceInput < Struct.new(
|
80
|
+
:get_token_balance_inputs)
|
81
|
+
SENSITIVE = []
|
82
|
+
include Aws::Structure
|
83
|
+
end
|
84
|
+
|
85
|
+
# The container for the input for getting a token balance.
|
86
|
+
#
|
87
|
+
# @!attribute [rw] token_identifier
|
88
|
+
# The container for the identifier for the token including the unique
|
89
|
+
# token ID and its blockchain network.
|
90
|
+
#
|
91
|
+
# <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
|
92
|
+
# 1155 token standards are supported.
|
93
|
+
#
|
94
|
+
# </note>
|
95
|
+
# @return [Types::TokenIdentifier]
|
96
|
+
#
|
97
|
+
# @!attribute [rw] owner_identifier
|
98
|
+
# The container for the identifier of the owner.
|
99
|
+
# @return [Types::OwnerIdentifier]
|
100
|
+
#
|
101
|
+
# @!attribute [rw] at_blockchain_instant
|
102
|
+
# The container for time.
|
103
|
+
# @return [Types::BlockchainInstant]
|
104
|
+
#
|
105
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalanceInputItem AWS API Documentation
|
106
|
+
#
|
107
|
+
class BatchGetTokenBalanceInputItem < Struct.new(
|
108
|
+
:token_identifier,
|
109
|
+
:owner_identifier,
|
110
|
+
:at_blockchain_instant)
|
111
|
+
SENSITIVE = []
|
112
|
+
include Aws::Structure
|
113
|
+
end
|
114
|
+
|
115
|
+
# @!attribute [rw] token_balances
|
116
|
+
# An array of `BatchGetTokenBalanceOutputItem` objects returned by the
|
117
|
+
# response.
|
118
|
+
# @return [Array<Types::BatchGetTokenBalanceOutputItem>]
|
119
|
+
#
|
120
|
+
# @!attribute [rw] errors
|
121
|
+
# An array of `BatchGetTokenBalanceErrorItem` objects returned from
|
122
|
+
# the request.
|
123
|
+
# @return [Array<Types::BatchGetTokenBalanceErrorItem>]
|
124
|
+
#
|
125
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalanceOutput AWS API Documentation
|
126
|
+
#
|
127
|
+
class BatchGetTokenBalanceOutput < Struct.new(
|
128
|
+
:token_balances,
|
129
|
+
:errors)
|
130
|
+
SENSITIVE = []
|
131
|
+
include Aws::Structure
|
132
|
+
end
|
133
|
+
|
134
|
+
# The container for the properties of a token balance output.
|
135
|
+
#
|
136
|
+
# @!attribute [rw] owner_identifier
|
137
|
+
# The container for the identifier of the owner.
|
138
|
+
# @return [Types::OwnerIdentifier]
|
139
|
+
#
|
140
|
+
# @!attribute [rw] token_identifier
|
141
|
+
# The container for the identifier for the token including the unique
|
142
|
+
# token ID and its blockchain network.
|
143
|
+
#
|
144
|
+
# <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
|
145
|
+
# 1155 token standards are supported.
|
146
|
+
#
|
147
|
+
# </note>
|
148
|
+
# @return [Types::TokenIdentifier]
|
149
|
+
#
|
150
|
+
# @!attribute [rw] balance
|
151
|
+
# The container for the token balance.
|
152
|
+
# @return [String]
|
153
|
+
#
|
154
|
+
# @!attribute [rw] at_blockchain_instant
|
155
|
+
# The container for time.
|
156
|
+
# @return [Types::BlockchainInstant]
|
157
|
+
#
|
158
|
+
# @!attribute [rw] last_updated_time
|
159
|
+
# The container for time.
|
160
|
+
# @return [Types::BlockchainInstant]
|
161
|
+
#
|
162
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BatchGetTokenBalanceOutputItem AWS API Documentation
|
163
|
+
#
|
164
|
+
class BatchGetTokenBalanceOutputItem < Struct.new(
|
165
|
+
:owner_identifier,
|
166
|
+
:token_identifier,
|
167
|
+
:balance,
|
168
|
+
:at_blockchain_instant,
|
169
|
+
:last_updated_time)
|
170
|
+
SENSITIVE = []
|
171
|
+
include Aws::Structure
|
172
|
+
end
|
173
|
+
|
174
|
+
# The container for time.
|
175
|
+
#
|
176
|
+
# @!attribute [rw] time
|
177
|
+
# The container of the `Timestamp` of the blockchain instant.
|
178
|
+
#
|
179
|
+
# <note markdown="1"> This `timestamp` will only be recorded up to the second.
|
180
|
+
#
|
181
|
+
# </note>
|
182
|
+
# @return [Time]
|
183
|
+
#
|
184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/BlockchainInstant AWS API Documentation
|
185
|
+
#
|
186
|
+
class BlockchainInstant < Struct.new(
|
187
|
+
:time)
|
188
|
+
SENSITIVE = []
|
189
|
+
include Aws::Structure
|
190
|
+
end
|
191
|
+
|
192
|
+
# @!attribute [rw] token_identifier
|
193
|
+
# The container for the identifier for the token, including the unique
|
194
|
+
# token ID and its blockchain network.
|
195
|
+
# @return [Types::TokenIdentifier]
|
196
|
+
#
|
197
|
+
# @!attribute [rw] owner_identifier
|
198
|
+
# The container for the identifier for the owner.
|
199
|
+
# @return [Types::OwnerIdentifier]
|
200
|
+
#
|
201
|
+
# @!attribute [rw] at_blockchain_instant
|
202
|
+
# The time for when the TokenBalance is requested or the current time
|
203
|
+
# if a time is not provided in the request.
|
204
|
+
#
|
205
|
+
# <note markdown="1"> This time will only be recorded up to the second.
|
206
|
+
#
|
207
|
+
# </note>
|
208
|
+
# @return [Types::BlockchainInstant]
|
209
|
+
#
|
210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTokenBalanceInput AWS API Documentation
|
211
|
+
#
|
212
|
+
class GetTokenBalanceInput < Struct.new(
|
213
|
+
:token_identifier,
|
214
|
+
:owner_identifier,
|
215
|
+
:at_blockchain_instant)
|
216
|
+
SENSITIVE = []
|
217
|
+
include Aws::Structure
|
218
|
+
end
|
219
|
+
|
220
|
+
# @!attribute [rw] owner_identifier
|
221
|
+
# The container for the identifier of the owner.
|
222
|
+
# @return [Types::OwnerIdentifier]
|
223
|
+
#
|
224
|
+
# @!attribute [rw] token_identifier
|
225
|
+
# The container for the identifier for the token including the unique
|
226
|
+
# token ID and its blockchain network.
|
227
|
+
#
|
228
|
+
# <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
|
229
|
+
# 1155 token standards are supported.
|
230
|
+
#
|
231
|
+
# </note>
|
232
|
+
# @return [Types::TokenIdentifier]
|
233
|
+
#
|
234
|
+
# @!attribute [rw] balance
|
235
|
+
# The container for the token balance.
|
236
|
+
# @return [String]
|
237
|
+
#
|
238
|
+
# @!attribute [rw] at_blockchain_instant
|
239
|
+
# The container for time.
|
240
|
+
# @return [Types::BlockchainInstant]
|
241
|
+
#
|
242
|
+
# @!attribute [rw] last_updated_time
|
243
|
+
# The container for time.
|
244
|
+
# @return [Types::BlockchainInstant]
|
245
|
+
#
|
246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTokenBalanceOutput AWS API Documentation
|
247
|
+
#
|
248
|
+
class GetTokenBalanceOutput < Struct.new(
|
249
|
+
:owner_identifier,
|
250
|
+
:token_identifier,
|
251
|
+
:balance,
|
252
|
+
:at_blockchain_instant,
|
253
|
+
:last_updated_time)
|
254
|
+
SENSITIVE = []
|
255
|
+
include Aws::Structure
|
256
|
+
end
|
257
|
+
|
258
|
+
# @!attribute [rw] transaction_hash
|
259
|
+
# The hash of the transaction. It is generated whenever a transaction
|
260
|
+
# is verified and added to the blockchain.
|
261
|
+
# @return [String]
|
262
|
+
#
|
263
|
+
# @!attribute [rw] network
|
264
|
+
# The blockchain network where the transaction occurred.
|
265
|
+
# @return [String]
|
266
|
+
#
|
267
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransactionInput AWS API Documentation
|
268
|
+
#
|
269
|
+
class GetTransactionInput < Struct.new(
|
270
|
+
:transaction_hash,
|
271
|
+
:network)
|
272
|
+
SENSITIVE = []
|
273
|
+
include Aws::Structure
|
274
|
+
end
|
275
|
+
|
276
|
+
# @!attribute [rw] transaction
|
277
|
+
# Contains the details of the transaction.
|
278
|
+
# @return [Types::Transaction]
|
279
|
+
#
|
280
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransactionOutput AWS API Documentation
|
281
|
+
#
|
282
|
+
class GetTransactionOutput < Struct.new(
|
283
|
+
:transaction)
|
284
|
+
SENSITIVE = []
|
285
|
+
include Aws::Structure
|
286
|
+
end
|
287
|
+
|
288
|
+
# The request processing has failed because of an internal error in the
|
289
|
+
# service.
|
290
|
+
#
|
291
|
+
# @!attribute [rw] message
|
292
|
+
# The container for the exception message.
|
293
|
+
# @return [String]
|
294
|
+
#
|
295
|
+
# @!attribute [rw] retry_after_seconds
|
296
|
+
# The container of the `retryAfterSeconds` value.
|
297
|
+
# @return [Integer]
|
298
|
+
#
|
299
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/InternalServerException AWS API Documentation
|
300
|
+
#
|
301
|
+
class InternalServerException < Struct.new(
|
302
|
+
:message,
|
303
|
+
:retry_after_seconds)
|
304
|
+
SENSITIVE = []
|
305
|
+
include Aws::Structure
|
306
|
+
end
|
307
|
+
|
308
|
+
# @!attribute [rw] owner_filter
|
309
|
+
# The contract or wallet address on the blockchain network by which to
|
310
|
+
# filter the request. You must specify the `address` property of the
|
311
|
+
# `ownerFilter` when listing balances of tokens owned by the address.
|
312
|
+
# @return [Types::OwnerFilter]
|
313
|
+
#
|
314
|
+
# @!attribute [rw] token_filter
|
315
|
+
# The contract address or a token identifier on the blockchain network
|
316
|
+
# by which to filter the request. You must specify the contractAddress
|
317
|
+
# property of this container when listing tokens minted by a contract.
|
318
|
+
#
|
319
|
+
# <note markdown="1"> You must always specify the network property of this container when
|
320
|
+
# using this operation.
|
321
|
+
#
|
322
|
+
# </note>
|
323
|
+
# @return [Types::TokenFilter]
|
324
|
+
#
|
325
|
+
# @!attribute [rw] next_token
|
326
|
+
# The pagination token that indicates the next set of results to
|
327
|
+
# retrieve.
|
328
|
+
# @return [String]
|
329
|
+
#
|
330
|
+
# @!attribute [rw] max_results
|
331
|
+
# The maximum number of token balances to return.
|
332
|
+
# @return [Integer]
|
333
|
+
#
|
334
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTokenBalancesInput AWS API Documentation
|
335
|
+
#
|
336
|
+
class ListTokenBalancesInput < Struct.new(
|
337
|
+
:owner_filter,
|
338
|
+
:token_filter,
|
339
|
+
:next_token,
|
340
|
+
:max_results)
|
341
|
+
SENSITIVE = []
|
342
|
+
include Aws::Structure
|
343
|
+
end
|
344
|
+
|
345
|
+
# @!attribute [rw] token_balances
|
346
|
+
# An array of `TokenBalance` objects. Each object contains details
|
347
|
+
# about the token balance.
|
348
|
+
# @return [Array<Types::TokenBalance>]
|
349
|
+
#
|
350
|
+
# @!attribute [rw] next_token
|
351
|
+
# The pagination token that indicates the next set of results to
|
352
|
+
# retrieve.
|
353
|
+
# @return [String]
|
354
|
+
#
|
355
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTokenBalancesOutput AWS API Documentation
|
356
|
+
#
|
357
|
+
class ListTokenBalancesOutput < Struct.new(
|
358
|
+
:token_balances,
|
359
|
+
:next_token)
|
360
|
+
SENSITIVE = []
|
361
|
+
include Aws::Structure
|
362
|
+
end
|
363
|
+
|
364
|
+
# @!attribute [rw] transaction_hash
|
365
|
+
# The hash of the transaction. It is generated whenever a transaction
|
366
|
+
# is verified and added to the blockchain.
|
367
|
+
# @return [String]
|
368
|
+
#
|
369
|
+
# @!attribute [rw] network
|
370
|
+
# The blockchain network where the transaction events occurred.
|
371
|
+
# @return [String]
|
372
|
+
#
|
373
|
+
# @!attribute [rw] next_token
|
374
|
+
# The pagination token that indicates the next set of results to
|
375
|
+
# retrieve.
|
376
|
+
# @return [String]
|
377
|
+
#
|
378
|
+
# @!attribute [rw] max_results
|
379
|
+
# The maximum number of transaction events to list.
|
380
|
+
#
|
381
|
+
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
382
|
+
# less results than `maxResults` or an empty array of results.
|
383
|
+
#
|
384
|
+
# To retrieve the next set of results, make another request with the
|
385
|
+
# returned `nextToken` value. The value of `nextToken` is `null` when
|
386
|
+
# there are no more results to return
|
387
|
+
#
|
388
|
+
# </note>
|
389
|
+
# @return [Integer]
|
390
|
+
#
|
391
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEventsInput AWS API Documentation
|
392
|
+
#
|
393
|
+
class ListTransactionEventsInput < Struct.new(
|
394
|
+
:transaction_hash,
|
395
|
+
:network,
|
396
|
+
:next_token,
|
397
|
+
:max_results)
|
398
|
+
SENSITIVE = []
|
399
|
+
include Aws::Structure
|
400
|
+
end
|
401
|
+
|
402
|
+
# @!attribute [rw] events
|
403
|
+
# An array of `TransactionEvent` objects. Each object contains details
|
404
|
+
# about the transaction events.
|
405
|
+
# @return [Array<Types::TransactionEvent>]
|
406
|
+
#
|
407
|
+
# @!attribute [rw] next_token
|
408
|
+
# The pagination token that indicates the next set of results to
|
409
|
+
# retrieve.
|
410
|
+
# @return [String]
|
411
|
+
#
|
412
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEventsOutput AWS API Documentation
|
413
|
+
#
|
414
|
+
class ListTransactionEventsOutput < Struct.new(
|
415
|
+
:events,
|
416
|
+
:next_token)
|
417
|
+
SENSITIVE = []
|
418
|
+
include Aws::Structure
|
419
|
+
end
|
420
|
+
|
421
|
+
# @!attribute [rw] address
|
422
|
+
# The address (either a contract or wallet), whose transactions are
|
423
|
+
# being requested.
|
424
|
+
# @return [String]
|
425
|
+
#
|
426
|
+
# @!attribute [rw] network
|
427
|
+
# The blockchain network where the transactions occurred.
|
428
|
+
# @return [String]
|
429
|
+
#
|
430
|
+
# @!attribute [rw] from_blockchain_instant
|
431
|
+
# The container for time.
|
432
|
+
# @return [Types::BlockchainInstant]
|
433
|
+
#
|
434
|
+
# @!attribute [rw] to_blockchain_instant
|
435
|
+
# The container for time.
|
436
|
+
# @return [Types::BlockchainInstant]
|
437
|
+
#
|
438
|
+
# @!attribute [rw] sort
|
439
|
+
# Sorts items in an ascending order if the first page starts at
|
440
|
+
# `fromTime`. Sorts items in a descending order if the first page
|
441
|
+
# starts at `toTime`.
|
442
|
+
# @return [Types::ListTransactionsSort]
|
443
|
+
#
|
444
|
+
# @!attribute [rw] next_token
|
445
|
+
# The pagination token that indicates the next set of results to
|
446
|
+
# retrieve.
|
447
|
+
# @return [String]
|
448
|
+
#
|
449
|
+
# @!attribute [rw] max_results
|
450
|
+
# The maximum number of transactions to list.
|
451
|
+
#
|
452
|
+
# <note markdown="1"> Even if additional results can be retrieved, the request can return
|
453
|
+
# less results than `maxResults` or an empty array of results.
|
454
|
+
#
|
455
|
+
# To retrieve the next set of results, make another request with the
|
456
|
+
# returned `nextToken` value. The value of `nextToken` is `null` when
|
457
|
+
# there are no more results to return
|
458
|
+
#
|
459
|
+
# </note>
|
460
|
+
# @return [Integer]
|
461
|
+
#
|
462
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionsInput AWS API Documentation
|
463
|
+
#
|
464
|
+
class ListTransactionsInput < Struct.new(
|
465
|
+
:address,
|
466
|
+
:network,
|
467
|
+
:from_blockchain_instant,
|
468
|
+
:to_blockchain_instant,
|
469
|
+
:sort,
|
470
|
+
:next_token,
|
471
|
+
:max_results)
|
472
|
+
SENSITIVE = []
|
473
|
+
include Aws::Structure
|
474
|
+
end
|
475
|
+
|
476
|
+
# @!attribute [rw] transactions
|
477
|
+
# The array of transactions returned by the request.
|
478
|
+
# @return [Array<Types::TransactionOutputItem>]
|
479
|
+
#
|
480
|
+
# @!attribute [rw] next_token
|
481
|
+
# The pagination token that indicates the next set of results to
|
482
|
+
# retrieve.
|
483
|
+
# @return [String]
|
484
|
+
#
|
485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionsOutput AWS API Documentation
|
486
|
+
#
|
487
|
+
class ListTransactionsOutput < Struct.new(
|
488
|
+
:transactions,
|
489
|
+
:next_token)
|
490
|
+
SENSITIVE = []
|
491
|
+
include Aws::Structure
|
492
|
+
end
|
493
|
+
|
494
|
+
# The container for determining how the list transaction result will be
|
495
|
+
# sorted.
|
496
|
+
#
|
497
|
+
# @!attribute [rw] sort_by
|
498
|
+
# Defaults to the value `TRANSACTION_TIMESTAMP`.
|
499
|
+
# @return [String]
|
500
|
+
#
|
501
|
+
# @!attribute [rw] sort_order
|
502
|
+
# The container for the *sort order* for `ListTransactions`. The
|
503
|
+
# `SortOrder` field only accepts the values `ASCENDING` and
|
504
|
+
# `DESCENDING`. Not providing `SortOrder` will default to `ASCENDING`.
|
505
|
+
# @return [String]
|
506
|
+
#
|
507
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionsSort AWS API Documentation
|
508
|
+
#
|
509
|
+
class ListTransactionsSort < Struct.new(
|
510
|
+
:sort_by,
|
511
|
+
:sort_order)
|
512
|
+
SENSITIVE = []
|
513
|
+
include Aws::Structure
|
514
|
+
end
|
515
|
+
|
516
|
+
# The container for the owner information to filter by.
|
517
|
+
#
|
518
|
+
# @!attribute [rw] address
|
519
|
+
# The contract or wallet address.
|
520
|
+
# @return [String]
|
521
|
+
#
|
522
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/OwnerFilter AWS API Documentation
|
523
|
+
#
|
524
|
+
class OwnerFilter < Struct.new(
|
525
|
+
:address)
|
526
|
+
SENSITIVE = []
|
527
|
+
include Aws::Structure
|
528
|
+
end
|
529
|
+
|
530
|
+
# The container for the identifier of the owner.
|
531
|
+
#
|
532
|
+
# @!attribute [rw] address
|
533
|
+
# The contract or wallet address for the owner.
|
534
|
+
# @return [String]
|
535
|
+
#
|
536
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/OwnerIdentifier AWS API Documentation
|
537
|
+
#
|
538
|
+
class OwnerIdentifier < Struct.new(
|
539
|
+
:address)
|
540
|
+
SENSITIVE = []
|
541
|
+
include Aws::Structure
|
542
|
+
end
|
543
|
+
|
544
|
+
# The resource was not found.
|
545
|
+
#
|
546
|
+
# @!attribute [rw] message
|
547
|
+
# The container for the exception message.
|
548
|
+
# @return [String]
|
549
|
+
#
|
550
|
+
# @!attribute [rw] resource_id
|
551
|
+
# The `resourceId` of the resource that caused the exception.
|
552
|
+
# @return [String]
|
553
|
+
#
|
554
|
+
# @!attribute [rw] resource_type
|
555
|
+
# The `resourceType` of the resource that caused the exception.
|
556
|
+
# @return [String]
|
557
|
+
#
|
558
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ResourceNotFoundException AWS API Documentation
|
559
|
+
#
|
560
|
+
class ResourceNotFoundException < Struct.new(
|
561
|
+
:message,
|
562
|
+
:resource_id,
|
563
|
+
:resource_type)
|
564
|
+
SENSITIVE = []
|
565
|
+
include Aws::Structure
|
566
|
+
end
|
567
|
+
|
568
|
+
# The service quota has been exceeded for this resource.
|
569
|
+
#
|
570
|
+
# @!attribute [rw] message
|
571
|
+
# The container for the exception message.
|
572
|
+
# @return [String]
|
573
|
+
#
|
574
|
+
# @!attribute [rw] resource_id
|
575
|
+
# The `resourceId` of the resource that caused the exception.
|
576
|
+
# @return [String]
|
577
|
+
#
|
578
|
+
# @!attribute [rw] resource_type
|
579
|
+
# The `resourceType` of the resource that caused the exception.
|
580
|
+
# @return [String]
|
581
|
+
#
|
582
|
+
# @!attribute [rw] service_code
|
583
|
+
# The container for the `serviceCode`.
|
584
|
+
# @return [String]
|
585
|
+
#
|
586
|
+
# @!attribute [rw] quota_code
|
587
|
+
# The container for the `quotaCode`.
|
588
|
+
# @return [String]
|
589
|
+
#
|
590
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ServiceQuotaExceededException AWS API Documentation
|
591
|
+
#
|
592
|
+
class ServiceQuotaExceededException < Struct.new(
|
593
|
+
:message,
|
594
|
+
:resource_id,
|
595
|
+
:resource_type,
|
596
|
+
:service_code,
|
597
|
+
:quota_code)
|
598
|
+
SENSITIVE = []
|
599
|
+
include Aws::Structure
|
600
|
+
end
|
601
|
+
|
602
|
+
# The request or operation couldn't be performed because a service is
|
603
|
+
# throttling requests. The most common source of throttling errors is
|
604
|
+
# when you create resources that exceed your service limit for this
|
605
|
+
# resource type. Request a limit increase or delete unused resources, if
|
606
|
+
# possible.
|
607
|
+
#
|
608
|
+
# @!attribute [rw] message
|
609
|
+
# The container for the exception message.
|
610
|
+
# @return [String]
|
611
|
+
#
|
612
|
+
# @!attribute [rw] service_code
|
613
|
+
# The container for the `serviceCode`.
|
614
|
+
# @return [String]
|
615
|
+
#
|
616
|
+
# @!attribute [rw] quota_code
|
617
|
+
# The container for the `quotaCode`.
|
618
|
+
# @return [String]
|
619
|
+
#
|
620
|
+
# @!attribute [rw] retry_after_seconds
|
621
|
+
# The container of the `retryAfterSeconds` value.
|
622
|
+
# @return [Integer]
|
623
|
+
#
|
624
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ThrottlingException AWS API Documentation
|
625
|
+
#
|
626
|
+
class ThrottlingException < Struct.new(
|
627
|
+
:message,
|
628
|
+
:service_code,
|
629
|
+
:quota_code,
|
630
|
+
:retry_after_seconds)
|
631
|
+
SENSITIVE = []
|
632
|
+
include Aws::Structure
|
633
|
+
end
|
634
|
+
|
635
|
+
# The balance of the token.
|
636
|
+
#
|
637
|
+
# @!attribute [rw] owner_identifier
|
638
|
+
# The container for the identifier of the owner.
|
639
|
+
# @return [Types::OwnerIdentifier]
|
640
|
+
#
|
641
|
+
# @!attribute [rw] token_identifier
|
642
|
+
# The identifier for the token, including the unique token ID and its
|
643
|
+
# blockchain network.
|
644
|
+
# @return [Types::TokenIdentifier]
|
645
|
+
#
|
646
|
+
# @!attribute [rw] balance
|
647
|
+
# The container of the token balance.
|
648
|
+
# @return [String]
|
649
|
+
#
|
650
|
+
# @!attribute [rw] at_blockchain_instant
|
651
|
+
# The time for when the TokenBalance is requested or the current time
|
652
|
+
# if a time is not provided in the request.
|
653
|
+
#
|
654
|
+
# <note markdown="1"> This time will only be recorded up to the second.
|
655
|
+
#
|
656
|
+
# </note>
|
657
|
+
# @return [Types::BlockchainInstant]
|
658
|
+
#
|
659
|
+
# @!attribute [rw] last_updated_time
|
660
|
+
# The `timestamp` of the last transaction at which the balance for the
|
661
|
+
# token in the wallet was updated.
|
662
|
+
# @return [Types::BlockchainInstant]
|
663
|
+
#
|
664
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TokenBalance AWS API Documentation
|
665
|
+
#
|
666
|
+
class TokenBalance < Struct.new(
|
667
|
+
:owner_identifier,
|
668
|
+
:token_identifier,
|
669
|
+
:balance,
|
670
|
+
:at_blockchain_instant,
|
671
|
+
:last_updated_time)
|
672
|
+
SENSITIVE = []
|
673
|
+
include Aws::Structure
|
674
|
+
end
|
675
|
+
|
676
|
+
# The container of the token filter like the contract address on a given
|
677
|
+
# blockchain network or a unique token identifier on a given blockchain
|
678
|
+
# network.
|
679
|
+
#
|
680
|
+
# <note markdown="1"> You must always specify the network property of this container when
|
681
|
+
# using this operation.
|
682
|
+
#
|
683
|
+
# </note>
|
684
|
+
#
|
685
|
+
# @!attribute [rw] network
|
686
|
+
# The blockchain network of the token.
|
687
|
+
# @return [String]
|
688
|
+
#
|
689
|
+
# @!attribute [rw] contract_address
|
690
|
+
# This is the address of the contract.
|
691
|
+
# @return [String]
|
692
|
+
#
|
693
|
+
# @!attribute [rw] token_id
|
694
|
+
# The unique identifier of the token.
|
695
|
+
# @return [String]
|
696
|
+
#
|
697
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TokenFilter AWS API Documentation
|
698
|
+
#
|
699
|
+
class TokenFilter < Struct.new(
|
700
|
+
:network,
|
701
|
+
:contract_address,
|
702
|
+
:token_id)
|
703
|
+
SENSITIVE = []
|
704
|
+
include Aws::Structure
|
705
|
+
end
|
706
|
+
|
707
|
+
# The container for the identifier for the token including the unique
|
708
|
+
# token ID and its blockchain network.
|
709
|
+
#
|
710
|
+
# <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155
|
711
|
+
# token standards are supported.
|
712
|
+
#
|
713
|
+
# </note>
|
714
|
+
#
|
715
|
+
# @!attribute [rw] network
|
716
|
+
# The blockchain network of the token.
|
717
|
+
# @return [String]
|
718
|
+
#
|
719
|
+
# @!attribute [rw] contract_address
|
720
|
+
# This is the token's contract address.
|
721
|
+
# @return [String]
|
722
|
+
#
|
723
|
+
# @!attribute [rw] token_id
|
724
|
+
# The unique identifier of the token.
|
725
|
+
# @return [String]
|
726
|
+
#
|
727
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TokenIdentifier AWS API Documentation
|
728
|
+
#
|
729
|
+
class TokenIdentifier < Struct.new(
|
730
|
+
:network,
|
731
|
+
:contract_address,
|
732
|
+
:token_id)
|
733
|
+
SENSITIVE = []
|
734
|
+
include Aws::Structure
|
735
|
+
end
|
736
|
+
|
737
|
+
# There are two possible types of transactions used for this data type:
|
738
|
+
#
|
739
|
+
# * A Bitcoin transaction is a movement of BTC from one address to
|
740
|
+
# another.
|
741
|
+
#
|
742
|
+
# * An Ethereum transaction refers to an action initiated by an
|
743
|
+
# externally owned account, which is an account managed by a human,
|
744
|
+
# not a contract. For example, if Bob sends Alice 1 ETH, Bob's
|
745
|
+
# account must be debited and Alice's must be credited. This
|
746
|
+
# state-changing action occurs within a transaction.
|
747
|
+
#
|
748
|
+
# @!attribute [rw] network
|
749
|
+
# The blockchain network where the transaction occured.
|
750
|
+
# @return [String]
|
751
|
+
#
|
752
|
+
# @!attribute [rw] block_hash
|
753
|
+
# The block hash is a unique identifier for a block. It is a
|
754
|
+
# fixed-size string that is calculated by using the information in the
|
755
|
+
# block. The block hash is used to verify the integrity of the data in
|
756
|
+
# the block.
|
757
|
+
# @return [String]
|
758
|
+
#
|
759
|
+
# @!attribute [rw] transaction_hash
|
760
|
+
# The hash of the transaction. It is generated whenever a transaction
|
761
|
+
# is verified and added to the blockchain.
|
762
|
+
# @return [String]
|
763
|
+
#
|
764
|
+
# @!attribute [rw] block_number
|
765
|
+
# The block number in which the transaction is recorded.
|
766
|
+
# @return [String]
|
767
|
+
#
|
768
|
+
# @!attribute [rw] transaction_timestamp
|
769
|
+
# The `Timestamp` of the transaction.
|
770
|
+
# @return [Time]
|
771
|
+
#
|
772
|
+
# @!attribute [rw] transaction_index
|
773
|
+
# The index of the transaction within a blockchain.
|
774
|
+
# @return [Integer]
|
775
|
+
#
|
776
|
+
# @!attribute [rw] number_of_transactions
|
777
|
+
# The number of transactions in the block.
|
778
|
+
# @return [Integer]
|
779
|
+
#
|
780
|
+
# @!attribute [rw] status
|
781
|
+
# The status of the transaction.
|
782
|
+
# @return [String]
|
783
|
+
#
|
784
|
+
# @!attribute [rw] to
|
785
|
+
# The identifier of the transaction. It is generated whenever a
|
786
|
+
# transaction is verified and added to the blockchain.
|
787
|
+
# @return [String]
|
788
|
+
#
|
789
|
+
# @!attribute [rw] from
|
790
|
+
# The initiator of the transaction. It is either in the form a public
|
791
|
+
# key or a contract address.
|
792
|
+
# @return [String]
|
793
|
+
#
|
794
|
+
# @!attribute [rw] contract_address
|
795
|
+
# The blockchain address for the contract.
|
796
|
+
# @return [String]
|
797
|
+
#
|
798
|
+
# @!attribute [rw] gas_used
|
799
|
+
# The amount of gas used for the transaction.
|
800
|
+
# @return [String]
|
801
|
+
#
|
802
|
+
# @!attribute [rw] cumulative_gas_used
|
803
|
+
# The amount of gas used up to the specified point in the block.
|
804
|
+
# @return [String]
|
805
|
+
#
|
806
|
+
# @!attribute [rw] effective_gas_price
|
807
|
+
# The effective gas price.
|
808
|
+
# @return [String]
|
809
|
+
#
|
810
|
+
# @!attribute [rw] signature_v
|
811
|
+
# The signature of the transaction. The Z coordinate of a point V.
|
812
|
+
# @return [Integer]
|
813
|
+
#
|
814
|
+
# @!attribute [rw] signature_r
|
815
|
+
# The signature of the transaction. The X coordinate of a point R.
|
816
|
+
# @return [String]
|
817
|
+
#
|
818
|
+
# @!attribute [rw] signature_s
|
819
|
+
# The signature of the transaction. The Y coordinate of a point S.
|
820
|
+
# @return [String]
|
821
|
+
#
|
822
|
+
# @!attribute [rw] transaction_fee
|
823
|
+
# The transaction fee.
|
824
|
+
# @return [String]
|
825
|
+
#
|
826
|
+
# @!attribute [rw] transaction_id
|
827
|
+
# The unique identifier of the transaction. It is generated whenever a
|
828
|
+
# transaction is verified and added to the blockchain.
|
829
|
+
# @return [String]
|
830
|
+
#
|
831
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/Transaction AWS API Documentation
|
832
|
+
#
|
833
|
+
class Transaction < Struct.new(
|
834
|
+
:network,
|
835
|
+
:block_hash,
|
836
|
+
:transaction_hash,
|
837
|
+
:block_number,
|
838
|
+
:transaction_timestamp,
|
839
|
+
:transaction_index,
|
840
|
+
:number_of_transactions,
|
841
|
+
:status,
|
842
|
+
:to,
|
843
|
+
:from,
|
844
|
+
:contract_address,
|
845
|
+
:gas_used,
|
846
|
+
:cumulative_gas_used,
|
847
|
+
:effective_gas_price,
|
848
|
+
:signature_v,
|
849
|
+
:signature_r,
|
850
|
+
:signature_s,
|
851
|
+
:transaction_fee,
|
852
|
+
:transaction_id)
|
853
|
+
SENSITIVE = []
|
854
|
+
include Aws::Structure
|
855
|
+
end
|
856
|
+
|
857
|
+
# The container for the properties of a transaction event.
|
858
|
+
#
|
859
|
+
# @!attribute [rw] network
|
860
|
+
# The blockchain network where the transaction occurred.
|
861
|
+
# @return [String]
|
862
|
+
#
|
863
|
+
# @!attribute [rw] transaction_hash
|
864
|
+
# The hash of the transaction. It is generated whenever a transaction
|
865
|
+
# is verified and added to the blockchain.
|
866
|
+
# @return [String]
|
867
|
+
#
|
868
|
+
# @!attribute [rw] event_type
|
869
|
+
# The type of transaction event.
|
870
|
+
# @return [String]
|
871
|
+
#
|
872
|
+
# @!attribute [rw] from
|
873
|
+
# The wallet address initiating the transaction. It can either be a
|
874
|
+
# public key or a contract.
|
875
|
+
# @return [String]
|
876
|
+
#
|
877
|
+
# @!attribute [rw] to
|
878
|
+
# The wallet address receiving the transaction. It can either be a
|
879
|
+
# public key or a contract.
|
880
|
+
# @return [String]
|
881
|
+
#
|
882
|
+
# @!attribute [rw] value
|
883
|
+
# The value that was transacted.
|
884
|
+
# @return [String]
|
885
|
+
#
|
886
|
+
# @!attribute [rw] contract_address
|
887
|
+
# The blockchain address. for the contract
|
888
|
+
# @return [String]
|
889
|
+
#
|
890
|
+
# @!attribute [rw] token_id
|
891
|
+
# The unique identifier for the token involved in the transaction.
|
892
|
+
# @return [String]
|
893
|
+
#
|
894
|
+
# @!attribute [rw] transaction_id
|
895
|
+
# The unique identifier of the transaction. It is generated whenever a
|
896
|
+
# transaction is verified and added to the blockchain.
|
897
|
+
# @return [String]
|
898
|
+
#
|
899
|
+
# @!attribute [rw] vout_index
|
900
|
+
# The position of the vout in the transaction output list.
|
901
|
+
# @return [Integer]
|
902
|
+
#
|
903
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TransactionEvent AWS API Documentation
|
904
|
+
#
|
905
|
+
class TransactionEvent < Struct.new(
|
906
|
+
:network,
|
907
|
+
:transaction_hash,
|
908
|
+
:event_type,
|
909
|
+
:from,
|
910
|
+
:to,
|
911
|
+
:value,
|
912
|
+
:contract_address,
|
913
|
+
:token_id,
|
914
|
+
:transaction_id,
|
915
|
+
:vout_index)
|
916
|
+
SENSITIVE = []
|
917
|
+
include Aws::Structure
|
918
|
+
end
|
919
|
+
|
920
|
+
# The container of the transaction output.
|
921
|
+
#
|
922
|
+
# @!attribute [rw] transaction_hash
|
923
|
+
# The hash of the transaction. It is generated whenever a transaction
|
924
|
+
# is verified and added to the blockchain.
|
925
|
+
# @return [String]
|
926
|
+
#
|
927
|
+
# @!attribute [rw] network
|
928
|
+
# The blockchain network where the transaction occurred.
|
929
|
+
# @return [String]
|
930
|
+
#
|
931
|
+
# @!attribute [rw] transaction_timestamp
|
932
|
+
# The time when the transaction occurred.
|
933
|
+
# @return [Time]
|
934
|
+
#
|
935
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TransactionOutputItem AWS API Documentation
|
936
|
+
#
|
937
|
+
class TransactionOutputItem < Struct.new(
|
938
|
+
:transaction_hash,
|
939
|
+
:network,
|
940
|
+
:transaction_timestamp)
|
941
|
+
SENSITIVE = []
|
942
|
+
include Aws::Structure
|
943
|
+
end
|
944
|
+
|
945
|
+
# The resource passed is invalid.
|
946
|
+
#
|
947
|
+
# @!attribute [rw] message
|
948
|
+
# The container for the exception message.
|
949
|
+
# @return [String]
|
950
|
+
#
|
951
|
+
# @!attribute [rw] reason
|
952
|
+
# The container for the reason for the exception
|
953
|
+
# @return [String]
|
954
|
+
#
|
955
|
+
# @!attribute [rw] field_list
|
956
|
+
# The container for the `fieldList` of the exception.
|
957
|
+
# @return [Array<Types::ValidationExceptionField>]
|
958
|
+
#
|
959
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ValidationException AWS API Documentation
|
960
|
+
#
|
961
|
+
class ValidationException < Struct.new(
|
962
|
+
:message,
|
963
|
+
:reason,
|
964
|
+
:field_list)
|
965
|
+
SENSITIVE = []
|
966
|
+
include Aws::Structure
|
967
|
+
end
|
968
|
+
|
969
|
+
# The resource passed is invalid.
|
970
|
+
#
|
971
|
+
# @!attribute [rw] name
|
972
|
+
# The name of the field that triggered the `ValidationException`.
|
973
|
+
# @return [String]
|
974
|
+
#
|
975
|
+
# @!attribute [rw] message
|
976
|
+
# The `ValidationException` message.
|
977
|
+
# @return [String]
|
978
|
+
#
|
979
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ValidationExceptionField AWS API Documentation
|
980
|
+
#
|
981
|
+
class ValidationExceptionField < Struct.new(
|
982
|
+
:name,
|
983
|
+
:message)
|
984
|
+
SENSITIVE = []
|
985
|
+
include Aws::Structure
|
986
|
+
end
|
987
|
+
|
988
|
+
end
|
989
|
+
end
|