@aws-sdk/client-managedblockchain-query 3.378.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.
- package/LICENSE +201 -0
- package/README.md +262 -0
- package/dist-cjs/ManagedBlockchainQuery.js +23 -0
- package/dist-cjs/ManagedBlockchainQueryClient.js +41 -0
- package/dist-cjs/commands/BatchGetTokenBalanceCommand.js +46 -0
- package/dist-cjs/commands/GetTokenBalanceCommand.js +46 -0
- package/dist-cjs/commands/GetTransactionCommand.js +46 -0
- package/dist-cjs/commands/ListTokenBalancesCommand.js +46 -0
- package/dist-cjs/commands/ListTransactionEventsCommand.js +46 -0
- package/dist-cjs/commands/ListTransactionsCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ManagedBlockchainQueryServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +139 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListTokenBalancesPaginator.js +29 -0
- package/dist-cjs/pagination/ListTransactionEventsPaginator.js +29 -0
- package/dist-cjs/pagination/ListTransactionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +706 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/ManagedBlockchainQuery.js +19 -0
- package/dist-es/ManagedBlockchainQueryClient.js +37 -0
- package/dist-es/commands/BatchGetTokenBalanceCommand.js +42 -0
- package/dist-es/commands/GetTokenBalanceCommand.js +42 -0
- package/dist-es/commands/GetTransactionCommand.js +42 -0
- package/dist-es/commands/ListTokenBalancesCommand.js +42 -0
- package/dist-es/commands/ListTransactionEventsCommand.js +42 -0
- package/dist-es/commands/ListTransactionsCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ManagedBlockchainQueryServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +130 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListTokenBalancesPaginator.js +25 -0
- package/dist-es/pagination/ListTransactionEventsPaginator.js +25 -0
- package/dist-es/pagination/ListTransactionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +691 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/ManagedBlockchainQuery.d.ts +58 -0
- package/dist-types/ManagedBlockchainQueryClient.d.ts +174 -0
- package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +149 -0
- package/dist-types/commands/GetTokenBalanceCommand.d.ts +122 -0
- package/dist-types/commands/GetTransactionCommand.d.ts +115 -0
- package/dist-types/commands/ListTokenBalancesCommand.d.ts +135 -0
- package/dist-types/commands/ListTransactionEventsCommand.d.ts +109 -0
- package/dist-types/commands/ListTransactionsCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/ManagedBlockchainQueryServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +917 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTransactionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +109 -0
- package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +149 -0
- package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ManagedBlockchainQueryServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +264 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +99 -0
|
@@ -0,0 +1,917 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { ManagedBlockchainQueryServiceException as __BaseException } from "./ManagedBlockchainQueryServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* <p>The Amazon Web Services account doesn’t have access to this resource. </p>
|
|
6
|
+
*/
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
* <p>The container for time.</p>
|
|
18
|
+
*/
|
|
19
|
+
export interface BlockchainInstant {
|
|
20
|
+
/**
|
|
21
|
+
* <p>The container of the <code>Timestamp</code> of the blockchain instant.</p>
|
|
22
|
+
* <note>
|
|
23
|
+
* <p>This <code>timestamp</code> will only be recorded up to
|
|
24
|
+
* the second.</p>
|
|
25
|
+
* </note>
|
|
26
|
+
*/
|
|
27
|
+
time?: Date;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
* <p>The container for the identifier of the owner.</p>
|
|
32
|
+
*/
|
|
33
|
+
export interface OwnerIdentifier {
|
|
34
|
+
/**
|
|
35
|
+
* <p>The contract or wallet address for the owner.</p>
|
|
36
|
+
*/
|
|
37
|
+
address: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @enum
|
|
42
|
+
*/
|
|
43
|
+
export declare const QueryNetwork: {
|
|
44
|
+
/**
|
|
45
|
+
* Bitcoin main network
|
|
46
|
+
*/
|
|
47
|
+
readonly BITCOIN_MAINNET: "BITCOIN_MAINNET";
|
|
48
|
+
/**
|
|
49
|
+
* Ethereum main network
|
|
50
|
+
*/
|
|
51
|
+
readonly ETHEREUM_MAINNET: "ETHEREUM_MAINNET";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
|
|
60
|
+
* <note>
|
|
61
|
+
* <p>Only the native tokens BTC,ETH, and the ERC-20,
|
|
62
|
+
* ERC-721, and ERC 1155 token standards are supported.</p>
|
|
63
|
+
* </note>
|
|
64
|
+
*/
|
|
65
|
+
export interface TokenIdentifier {
|
|
66
|
+
/**
|
|
67
|
+
* <p>The blockchain network of the token.</p>
|
|
68
|
+
*/
|
|
69
|
+
network: QueryNetwork | string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* <p>This is the token's contract address.</p>
|
|
72
|
+
*/
|
|
73
|
+
contractAddress?: string;
|
|
74
|
+
/**
|
|
75
|
+
* <p>The unique identifier of the token.</p>
|
|
76
|
+
*/
|
|
77
|
+
tokenId?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* <p>The container for the input for getting a token balance.</p>
|
|
82
|
+
*/
|
|
83
|
+
export interface BatchGetTokenBalanceInputItem {
|
|
84
|
+
/**
|
|
85
|
+
* <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
|
|
86
|
+
* <note>
|
|
87
|
+
* <p>Only the native tokens BTC,ETH, and the ERC-20,
|
|
88
|
+
* ERC-721, and ERC 1155 token standards are supported.</p>
|
|
89
|
+
* </note>
|
|
90
|
+
*/
|
|
91
|
+
tokenIdentifier: TokenIdentifier | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* <p>The container for the identifier of the owner.</p>
|
|
94
|
+
*/
|
|
95
|
+
ownerIdentifier: OwnerIdentifier | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* <p>The container for time.</p>
|
|
98
|
+
*/
|
|
99
|
+
atBlockchainInstant?: BlockchainInstant;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export interface BatchGetTokenBalanceInput {
|
|
105
|
+
/**
|
|
106
|
+
* <p>An array of <code>GetTokenBalanceInput</code> objects whose balance is being requested.</p>
|
|
107
|
+
*/
|
|
108
|
+
getTokenBalanceInputs?: BatchGetTokenBalanceInputItem[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @public
|
|
112
|
+
* @enum
|
|
113
|
+
*/
|
|
114
|
+
export declare const ErrorType: {
|
|
115
|
+
/**
|
|
116
|
+
* An API request retrieving an item that can't be found
|
|
117
|
+
*/
|
|
118
|
+
readonly RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION";
|
|
119
|
+
/**
|
|
120
|
+
* An API request validation exception
|
|
121
|
+
*/
|
|
122
|
+
readonly VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION";
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
* <p>Error generated from a failed <code>BatchGetTokenBalance</code> request.</p>
|
|
131
|
+
*/
|
|
132
|
+
export interface BatchGetTokenBalanceErrorItem {
|
|
133
|
+
/**
|
|
134
|
+
* <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
|
|
135
|
+
* <note>
|
|
136
|
+
* <p>Only the native tokens BTC,ETH, and the ERC-20,
|
|
137
|
+
* ERC-721, and ERC 1155 token standards are supported.</p>
|
|
138
|
+
* </note>
|
|
139
|
+
*/
|
|
140
|
+
tokenIdentifier?: TokenIdentifier;
|
|
141
|
+
/**
|
|
142
|
+
* <p>The container for the identifier of the owner.</p>
|
|
143
|
+
*/
|
|
144
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
145
|
+
/**
|
|
146
|
+
* <p>The container for time.</p>
|
|
147
|
+
*/
|
|
148
|
+
atBlockchainInstant?: BlockchainInstant;
|
|
149
|
+
/**
|
|
150
|
+
* <p>The error code associated with the error.</p>
|
|
151
|
+
*/
|
|
152
|
+
errorCode: string | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* <p>The message associated with the error.</p>
|
|
155
|
+
*/
|
|
156
|
+
errorMessage: string | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* <p>The type of error.</p>
|
|
159
|
+
*/
|
|
160
|
+
errorType: ErrorType | string | undefined;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
* <p>The container for the properties of a token balance output.</p>
|
|
165
|
+
*/
|
|
166
|
+
export interface BatchGetTokenBalanceOutputItem {
|
|
167
|
+
/**
|
|
168
|
+
* <p>The container for the identifier of the owner.</p>
|
|
169
|
+
*/
|
|
170
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
171
|
+
/**
|
|
172
|
+
* <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
|
|
173
|
+
* <note>
|
|
174
|
+
* <p>Only the native tokens BTC,ETH, and the ERC-20,
|
|
175
|
+
* ERC-721, and ERC 1155 token standards are supported.</p>
|
|
176
|
+
* </note>
|
|
177
|
+
*/
|
|
178
|
+
tokenIdentifier?: TokenIdentifier;
|
|
179
|
+
/**
|
|
180
|
+
* <p>The container for the token balance.</p>
|
|
181
|
+
*/
|
|
182
|
+
balance: string | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* <p>The container for time.</p>
|
|
185
|
+
*/
|
|
186
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* <p>The container for time.</p>
|
|
189
|
+
*/
|
|
190
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
export interface BatchGetTokenBalanceOutput {
|
|
196
|
+
/**
|
|
197
|
+
* <p>An array of <code>BatchGetTokenBalanceOutputItem</code> objects returned by the response.</p>
|
|
198
|
+
*/
|
|
199
|
+
tokenBalances: BatchGetTokenBalanceOutputItem[] | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* <p>An array of <code>BatchGetTokenBalanceErrorItem</code> objects returned from the request.</p>
|
|
202
|
+
*/
|
|
203
|
+
errors: BatchGetTokenBalanceErrorItem[] | undefined;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
* <p>The request processing has failed because of an internal error in the service.</p>
|
|
208
|
+
*/
|
|
209
|
+
export declare class InternalServerException extends __BaseException {
|
|
210
|
+
readonly name: "InternalServerException";
|
|
211
|
+
readonly $fault: "server";
|
|
212
|
+
$retryable: {};
|
|
213
|
+
/**
|
|
214
|
+
* <p>The container of the <code>retryAfterSeconds</code> value.</p>
|
|
215
|
+
*/
|
|
216
|
+
retryAfterSeconds?: number;
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
* @enum
|
|
225
|
+
*/
|
|
226
|
+
export declare const ResourceType: {
|
|
227
|
+
readonly COLLECTION: "collection";
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
233
|
+
/**
|
|
234
|
+
* @public
|
|
235
|
+
* <p>The resource was not found.</p>
|
|
236
|
+
*/
|
|
237
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
238
|
+
readonly name: "ResourceNotFoundException";
|
|
239
|
+
readonly $fault: "client";
|
|
240
|
+
/**
|
|
241
|
+
* <p>The <code>resourceId</code> of the resource that caused the exception.</p>
|
|
242
|
+
*/
|
|
243
|
+
resourceId: string | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* <p>The <code>resourceType</code> of the resource that caused the exception.</p>
|
|
246
|
+
*/
|
|
247
|
+
resourceType: ResourceType | string | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* @internal
|
|
250
|
+
*/
|
|
251
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @public
|
|
255
|
+
* <p>The service quota has been exceeded for this resource.</p>
|
|
256
|
+
*/
|
|
257
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
258
|
+
readonly name: "ServiceQuotaExceededException";
|
|
259
|
+
readonly $fault: "client";
|
|
260
|
+
/**
|
|
261
|
+
* <p>The <code>resourceId</code> of the resource that caused the exception.</p>
|
|
262
|
+
*/
|
|
263
|
+
resourceId: string | undefined;
|
|
264
|
+
/**
|
|
265
|
+
* <p>The <code>resourceType</code> of the resource that caused the exception.</p>
|
|
266
|
+
*/
|
|
267
|
+
resourceType: ResourceType | string | undefined;
|
|
268
|
+
/**
|
|
269
|
+
* <p>The container for the <code>serviceCode</code>.</p>
|
|
270
|
+
*/
|
|
271
|
+
serviceCode: string | undefined;
|
|
272
|
+
/**
|
|
273
|
+
* <p>The container for the <code>quotaCode</code>.</p>
|
|
274
|
+
*/
|
|
275
|
+
quotaCode: string | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* @internal
|
|
278
|
+
*/
|
|
279
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @public
|
|
283
|
+
* <p>The request or operation couldn't be performed because a service is throttling
|
|
284
|
+
* requests. The most common source of throttling errors is when you create resources
|
|
285
|
+
* that exceed your service limit for this resource type. Request a limit increase or
|
|
286
|
+
* delete unused resources, if possible.</p>
|
|
287
|
+
*/
|
|
288
|
+
export declare class ThrottlingException extends __BaseException {
|
|
289
|
+
readonly name: "ThrottlingException";
|
|
290
|
+
readonly $fault: "client";
|
|
291
|
+
$retryable: {
|
|
292
|
+
throttling: boolean;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* <p>The container for the <code>serviceCode</code>.</p>
|
|
296
|
+
*/
|
|
297
|
+
serviceCode: string | undefined;
|
|
298
|
+
/**
|
|
299
|
+
* <p>The container for the <code>quotaCode</code>.</p>
|
|
300
|
+
*/
|
|
301
|
+
quotaCode: string | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* <p>The container of the <code>retryAfterSeconds</code> value.</p>
|
|
304
|
+
*/
|
|
305
|
+
retryAfterSeconds?: number;
|
|
306
|
+
/**
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* @public
|
|
313
|
+
* <p>The resource passed is invalid.</p>
|
|
314
|
+
*/
|
|
315
|
+
export interface ValidationExceptionField {
|
|
316
|
+
/**
|
|
317
|
+
* <p>The name of the field that triggered the <code>ValidationException</code>.</p>
|
|
318
|
+
*/
|
|
319
|
+
name: string | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* <p>The <code>ValidationException</code> message.</p>
|
|
322
|
+
*/
|
|
323
|
+
message: string | undefined;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @public
|
|
327
|
+
* @enum
|
|
328
|
+
*/
|
|
329
|
+
export declare const ValidationExceptionReason: {
|
|
330
|
+
readonly CANNOT_PARSE: "cannotParse";
|
|
331
|
+
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
332
|
+
readonly OTHER: "other";
|
|
333
|
+
readonly UNKNOWN_OPERATION: "unknownOperation";
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* @public
|
|
337
|
+
*/
|
|
338
|
+
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
339
|
+
/**
|
|
340
|
+
* @public
|
|
341
|
+
* <p>The resource passed is invalid.</p>
|
|
342
|
+
*/
|
|
343
|
+
export declare class ValidationException extends __BaseException {
|
|
344
|
+
readonly name: "ValidationException";
|
|
345
|
+
readonly $fault: "client";
|
|
346
|
+
/**
|
|
347
|
+
* <p>The container for the reason for the exception</p>
|
|
348
|
+
*/
|
|
349
|
+
reason: ValidationExceptionReason | string | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* <p>The container for the <code>fieldList</code> of the exception.</p>
|
|
352
|
+
*/
|
|
353
|
+
fieldList?: ValidationExceptionField[];
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
export interface GetTokenBalanceInput {
|
|
363
|
+
/**
|
|
364
|
+
* <p>The container for the identifier for the token, including the unique
|
|
365
|
+
* token ID and its blockchain network.</p>
|
|
366
|
+
*/
|
|
367
|
+
tokenIdentifier: TokenIdentifier | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* <p>The container for the identifier for the owner.</p>
|
|
370
|
+
*/
|
|
371
|
+
ownerIdentifier: OwnerIdentifier | undefined;
|
|
372
|
+
/**
|
|
373
|
+
* <p>The time for when the TokenBalance is requested or
|
|
374
|
+
* the current time if a time is not provided in the request.</p>
|
|
375
|
+
* <note>
|
|
376
|
+
* <p>This time will only be recorded up to the second.</p>
|
|
377
|
+
* </note>
|
|
378
|
+
*/
|
|
379
|
+
atBlockchainInstant?: BlockchainInstant;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @public
|
|
383
|
+
*/
|
|
384
|
+
export interface GetTokenBalanceOutput {
|
|
385
|
+
/**
|
|
386
|
+
* <p>The container for the identifier of the owner.</p>
|
|
387
|
+
*/
|
|
388
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
389
|
+
/**
|
|
390
|
+
* <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
|
|
391
|
+
* <note>
|
|
392
|
+
* <p>Only the native tokens BTC,ETH, and the ERC-20,
|
|
393
|
+
* ERC-721, and ERC 1155 token standards are supported.</p>
|
|
394
|
+
* </note>
|
|
395
|
+
*/
|
|
396
|
+
tokenIdentifier?: TokenIdentifier;
|
|
397
|
+
/**
|
|
398
|
+
* <p>The container for the token balance.</p>
|
|
399
|
+
*/
|
|
400
|
+
balance: string | undefined;
|
|
401
|
+
/**
|
|
402
|
+
* <p>The container for time.</p>
|
|
403
|
+
*/
|
|
404
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
405
|
+
/**
|
|
406
|
+
* <p>The container for time.</p>
|
|
407
|
+
*/
|
|
408
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
413
|
+
export interface GetTransactionInput {
|
|
414
|
+
/**
|
|
415
|
+
* <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
416
|
+
*/
|
|
417
|
+
transactionHash: string | undefined;
|
|
418
|
+
/**
|
|
419
|
+
* <p>The blockchain network where the transaction occurred.</p>
|
|
420
|
+
*/
|
|
421
|
+
network: QueryNetwork | string | undefined;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @public
|
|
425
|
+
* @enum
|
|
426
|
+
*/
|
|
427
|
+
export declare const QueryTransactionStatus: {
|
|
428
|
+
/**
|
|
429
|
+
* The transaction completed on the blockchain, but failed
|
|
430
|
+
*/
|
|
431
|
+
readonly FAILED: "FAILED";
|
|
432
|
+
/**
|
|
433
|
+
* The transaction has been confirmed and is final in the blockchain
|
|
434
|
+
*/
|
|
435
|
+
readonly FINAL: "FINAL";
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* @public
|
|
439
|
+
*/
|
|
440
|
+
export type QueryTransactionStatus = (typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
|
|
441
|
+
/**
|
|
442
|
+
* @public
|
|
443
|
+
* <p>There are two possible types of transactions used for this data type:</p>
|
|
444
|
+
* <ul>
|
|
445
|
+
* <li>
|
|
446
|
+
* <p>A Bitcoin transaction is a movement of BTC from one address to
|
|
447
|
+
* another.</p>
|
|
448
|
+
* </li>
|
|
449
|
+
* <li>
|
|
450
|
+
* <p>An Ethereum transaction refers to an action initiated by an externally
|
|
451
|
+
* owned account, which is an account managed by a human, not a contract.
|
|
452
|
+
* For example, if Bob sends Alice 1 ETH, Bob's account must be debited and
|
|
453
|
+
* Alice's must be credited. This state-changing action occurs within a transaction.</p>
|
|
454
|
+
* </li>
|
|
455
|
+
* </ul>
|
|
456
|
+
*/
|
|
457
|
+
export interface Transaction {
|
|
458
|
+
/**
|
|
459
|
+
* <p>The blockchain network where the transaction occured.</p>
|
|
460
|
+
*/
|
|
461
|
+
network: QueryNetwork | string | undefined;
|
|
462
|
+
/**
|
|
463
|
+
* <p>The block hash is a unique identifier for a block. It is a fixed-size
|
|
464
|
+
* string that is calculated by using the information in the block. The block
|
|
465
|
+
* hash is used to verify the integrity of the data in the block.</p>
|
|
466
|
+
*/
|
|
467
|
+
blockHash?: string;
|
|
468
|
+
/**
|
|
469
|
+
* <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
470
|
+
*/
|
|
471
|
+
transactionHash: string | undefined;
|
|
472
|
+
/**
|
|
473
|
+
* <p>The block number in which the transaction is recorded.</p>
|
|
474
|
+
*/
|
|
475
|
+
blockNumber?: string;
|
|
476
|
+
/**
|
|
477
|
+
* <p>The <code>Timestamp</code> of the transaction. </p>
|
|
478
|
+
*/
|
|
479
|
+
transactionTimestamp: Date | undefined;
|
|
480
|
+
/**
|
|
481
|
+
* <p>The index of the transaction within a blockchain.</p>
|
|
482
|
+
*/
|
|
483
|
+
transactionIndex: number | undefined;
|
|
484
|
+
/**
|
|
485
|
+
* <p>The number of transactions in the block.</p>
|
|
486
|
+
*/
|
|
487
|
+
numberOfTransactions: number | undefined;
|
|
488
|
+
/**
|
|
489
|
+
* <p>The status of the transaction.</p>
|
|
490
|
+
*/
|
|
491
|
+
status: QueryTransactionStatus | string | undefined;
|
|
492
|
+
/**
|
|
493
|
+
* <p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
494
|
+
*/
|
|
495
|
+
to: string | undefined;
|
|
496
|
+
/**
|
|
497
|
+
* <p>The initiator of the transaction. It is either in the form a public key or a
|
|
498
|
+
* contract address.</p>
|
|
499
|
+
*/
|
|
500
|
+
from?: string;
|
|
501
|
+
/**
|
|
502
|
+
* <p>The blockchain address for the contract.</p>
|
|
503
|
+
*/
|
|
504
|
+
contractAddress?: string;
|
|
505
|
+
/**
|
|
506
|
+
* <p>The amount of gas used for the transaction.</p>
|
|
507
|
+
*/
|
|
508
|
+
gasUsed?: string;
|
|
509
|
+
/**
|
|
510
|
+
* <p>The amount of gas used up to the specified point in the block.</p>
|
|
511
|
+
*/
|
|
512
|
+
cumulativeGasUsed?: string;
|
|
513
|
+
/**
|
|
514
|
+
* <p>The effective gas price.</p>
|
|
515
|
+
*/
|
|
516
|
+
effectiveGasPrice?: string;
|
|
517
|
+
/**
|
|
518
|
+
* <p>The signature of the transaction. The Z coordinate of a point V.</p>
|
|
519
|
+
*/
|
|
520
|
+
signatureV?: number;
|
|
521
|
+
/**
|
|
522
|
+
* <p>The signature of the transaction. The X coordinate of a point R.</p>
|
|
523
|
+
*/
|
|
524
|
+
signatureR?: string;
|
|
525
|
+
/**
|
|
526
|
+
* <p>The signature of the transaction. The Y coordinate of a point S.</p>
|
|
527
|
+
*/
|
|
528
|
+
signatureS?: string;
|
|
529
|
+
/**
|
|
530
|
+
* <p>The transaction fee.</p>
|
|
531
|
+
*/
|
|
532
|
+
transactionFee?: string;
|
|
533
|
+
/**
|
|
534
|
+
* <p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
535
|
+
*/
|
|
536
|
+
transactionId?: string;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @public
|
|
540
|
+
*/
|
|
541
|
+
export interface GetTransactionOutput {
|
|
542
|
+
/**
|
|
543
|
+
* <p>Contains the details of the transaction.</p>
|
|
544
|
+
*/
|
|
545
|
+
transaction: Transaction | undefined;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @public
|
|
549
|
+
* <p>The container for the owner information to filter by.</p>
|
|
550
|
+
*/
|
|
551
|
+
export interface OwnerFilter {
|
|
552
|
+
/**
|
|
553
|
+
* <p>The contract or wallet address.</p>
|
|
554
|
+
*/
|
|
555
|
+
address: string | undefined;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* @public
|
|
559
|
+
* <p>The container of the token filter like the contract address
|
|
560
|
+
* on a given blockchain network or a unique token identifier on a given
|
|
561
|
+
* blockchain network.</p>
|
|
562
|
+
* <note>
|
|
563
|
+
* <p>You must always specify the network property of this
|
|
564
|
+
* container when using this operation.</p>
|
|
565
|
+
* </note>
|
|
566
|
+
*/
|
|
567
|
+
export interface TokenFilter {
|
|
568
|
+
/**
|
|
569
|
+
* <p>The blockchain network of the token.</p>
|
|
570
|
+
*/
|
|
571
|
+
network: QueryNetwork | string | undefined;
|
|
572
|
+
/**
|
|
573
|
+
* <p>This is the address of the contract.</p>
|
|
574
|
+
*/
|
|
575
|
+
contractAddress?: string;
|
|
576
|
+
/**
|
|
577
|
+
* <p>The unique identifier of the token.</p>
|
|
578
|
+
*/
|
|
579
|
+
tokenId?: string;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* @public
|
|
583
|
+
*/
|
|
584
|
+
export interface ListTokenBalancesInput {
|
|
585
|
+
/**
|
|
586
|
+
* <p>The contract or wallet address on the blockchain network by which to filter the
|
|
587
|
+
* request. You must specify the <code>address</code> property of the <code>ownerFilter</code>
|
|
588
|
+
* when listing balances of tokens owned by the address.</p>
|
|
589
|
+
*/
|
|
590
|
+
ownerFilter?: OwnerFilter;
|
|
591
|
+
/**
|
|
592
|
+
* <p>The contract address or a token identifier on the
|
|
593
|
+
* blockchain network by which to filter the request. You must specify the contractAddress
|
|
594
|
+
* property of this container when listing tokens minted by a contract.</p>
|
|
595
|
+
* <note>
|
|
596
|
+
* <p>You must always specify the network property of this
|
|
597
|
+
* container when using this operation.</p>
|
|
598
|
+
* </note>
|
|
599
|
+
*/
|
|
600
|
+
tokenFilter: TokenFilter | undefined;
|
|
601
|
+
/**
|
|
602
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
603
|
+
*/
|
|
604
|
+
nextToken?: string;
|
|
605
|
+
/**
|
|
606
|
+
* <p>The maximum number of token balances to return.</p>
|
|
607
|
+
*/
|
|
608
|
+
maxResults?: number;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* @public
|
|
612
|
+
* <p>The balance of the token.</p>
|
|
613
|
+
*/
|
|
614
|
+
export interface TokenBalance {
|
|
615
|
+
/**
|
|
616
|
+
* <p>The container for the identifier of the owner.</p>
|
|
617
|
+
*/
|
|
618
|
+
ownerIdentifier?: OwnerIdentifier;
|
|
619
|
+
/**
|
|
620
|
+
* <p>The identifier for the token, including the unique token ID and its blockchain network.</p>
|
|
621
|
+
*/
|
|
622
|
+
tokenIdentifier?: TokenIdentifier;
|
|
623
|
+
/**
|
|
624
|
+
* <p>The container of the token balance.</p>
|
|
625
|
+
*/
|
|
626
|
+
balance: string | undefined;
|
|
627
|
+
/**
|
|
628
|
+
* <p>The time for when the TokenBalance is requested or
|
|
629
|
+
* the current time if a time is not provided in the request.</p>
|
|
630
|
+
* <note>
|
|
631
|
+
* <p>This time will only be recorded up to the second.</p>
|
|
632
|
+
* </note>
|
|
633
|
+
*/
|
|
634
|
+
atBlockchainInstant: BlockchainInstant | undefined;
|
|
635
|
+
/**
|
|
636
|
+
* <p>The <code>timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
|
|
637
|
+
*/
|
|
638
|
+
lastUpdatedTime?: BlockchainInstant;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
643
|
+
export interface ListTokenBalancesOutput {
|
|
644
|
+
/**
|
|
645
|
+
* <p>An array of <code>TokenBalance</code> objects. Each object contains details about
|
|
646
|
+
* the token balance.</p>
|
|
647
|
+
*/
|
|
648
|
+
tokenBalances: TokenBalance[] | undefined;
|
|
649
|
+
/**
|
|
650
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
651
|
+
*/
|
|
652
|
+
nextToken?: string;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
export interface ListTransactionEventsInput {
|
|
658
|
+
/**
|
|
659
|
+
* <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
660
|
+
*/
|
|
661
|
+
transactionHash: string | undefined;
|
|
662
|
+
/**
|
|
663
|
+
* <p>The blockchain network where the transaction events occurred.</p>
|
|
664
|
+
*/
|
|
665
|
+
network: QueryNetwork | string | undefined;
|
|
666
|
+
/**
|
|
667
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
668
|
+
*/
|
|
669
|
+
nextToken?: string;
|
|
670
|
+
/**
|
|
671
|
+
* <p>The maximum number of transaction events to list.</p>
|
|
672
|
+
* <note>
|
|
673
|
+
* <p>Even if additional results can be retrieved, the request can return less
|
|
674
|
+
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
675
|
+
* <p>To retrieve the next set of results, make another request with the
|
|
676
|
+
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
677
|
+
* <code>null</code> when there are no more results to return</p>
|
|
678
|
+
* </note>
|
|
679
|
+
*/
|
|
680
|
+
maxResults?: number;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* @public
|
|
684
|
+
* @enum
|
|
685
|
+
*/
|
|
686
|
+
export declare const QueryTransactionEventType: {
|
|
687
|
+
/**
|
|
688
|
+
* A Bitcoin Vin transfer type
|
|
689
|
+
*/
|
|
690
|
+
readonly BITCOIN_VIN: "BITCOIN_VIN";
|
|
691
|
+
/**
|
|
692
|
+
* A Bitcoin Vout transfer type
|
|
693
|
+
*/
|
|
694
|
+
readonly BITCOIN_VOUT: "BITCOIN_VOUT";
|
|
695
|
+
/**
|
|
696
|
+
* An ERC1155 transfer type
|
|
697
|
+
*/
|
|
698
|
+
readonly ERC1155_TRANSFER: "ERC1155_TRANSFER";
|
|
699
|
+
/**
|
|
700
|
+
* An ERC20_BURN transfer type
|
|
701
|
+
*/
|
|
702
|
+
readonly ERC20_BURN: "ERC20_BURN";
|
|
703
|
+
/**
|
|
704
|
+
* An ERC20_DEPOSIT transfer type
|
|
705
|
+
*/
|
|
706
|
+
readonly ERC20_DEPOSIT: "ERC20_DEPOSIT";
|
|
707
|
+
/**
|
|
708
|
+
* An ERC20_MINT transfer type
|
|
709
|
+
*/
|
|
710
|
+
readonly ERC20_MINT: "ERC20_MINT";
|
|
711
|
+
/**
|
|
712
|
+
* An ERC20 transfer type
|
|
713
|
+
*/
|
|
714
|
+
readonly ERC20_TRANSFER: "ERC20_TRANSFER";
|
|
715
|
+
/**
|
|
716
|
+
* An ERC20_WITHDRAWAL transfer type
|
|
717
|
+
*/
|
|
718
|
+
readonly ERC20_WITHDRAWAL: "ERC20_WITHDRAWAL";
|
|
719
|
+
/**
|
|
720
|
+
* An ERC721 transfer type
|
|
721
|
+
*/
|
|
722
|
+
readonly ERC721_TRANSFER: "ERC721_TRANSFER";
|
|
723
|
+
/**
|
|
724
|
+
* An ETH transfer type
|
|
725
|
+
*/
|
|
726
|
+
readonly ETH_TRANSFER: "ETH_TRANSFER";
|
|
727
|
+
/**
|
|
728
|
+
* An internal ETH transfer type
|
|
729
|
+
*/
|
|
730
|
+
readonly INTERNAL_ETH_TRANSFER: "INTERNAL_ETH_TRANSFER";
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* @public
|
|
734
|
+
*/
|
|
735
|
+
export type QueryTransactionEventType = (typeof QueryTransactionEventType)[keyof typeof QueryTransactionEventType];
|
|
736
|
+
/**
|
|
737
|
+
* @public
|
|
738
|
+
* <p>The container for the properties of a transaction event.</p>
|
|
739
|
+
*/
|
|
740
|
+
export interface TransactionEvent {
|
|
741
|
+
/**
|
|
742
|
+
* <p>The blockchain network where the transaction occurred.</p>
|
|
743
|
+
*/
|
|
744
|
+
network: QueryNetwork | string | undefined;
|
|
745
|
+
/**
|
|
746
|
+
* <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
747
|
+
*/
|
|
748
|
+
transactionHash: string | undefined;
|
|
749
|
+
/**
|
|
750
|
+
* <p>The type of transaction event.</p>
|
|
751
|
+
*/
|
|
752
|
+
eventType: QueryTransactionEventType | string | undefined;
|
|
753
|
+
/**
|
|
754
|
+
* <p>The wallet address initiating the transaction. It can either be a public key or a contract.</p>
|
|
755
|
+
*/
|
|
756
|
+
from?: string;
|
|
757
|
+
/**
|
|
758
|
+
* <p>The wallet address receiving the transaction. It can either be a public key or a contract.</p>
|
|
759
|
+
*/
|
|
760
|
+
to?: string;
|
|
761
|
+
/**
|
|
762
|
+
* <p>The value that was transacted.</p>
|
|
763
|
+
*/
|
|
764
|
+
value?: string;
|
|
765
|
+
/**
|
|
766
|
+
* <p>The blockchain address. for the contract</p>
|
|
767
|
+
*/
|
|
768
|
+
contractAddress?: string;
|
|
769
|
+
/**
|
|
770
|
+
* <p>The unique identifier for the token involved in the transaction.</p>
|
|
771
|
+
*/
|
|
772
|
+
tokenId?: string;
|
|
773
|
+
/**
|
|
774
|
+
* <p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
775
|
+
*/
|
|
776
|
+
transactionId?: string;
|
|
777
|
+
/**
|
|
778
|
+
* <p>The position of the vout in the transaction output list.</p>
|
|
779
|
+
*/
|
|
780
|
+
voutIndex?: number;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* @public
|
|
784
|
+
*/
|
|
785
|
+
export interface ListTransactionEventsOutput {
|
|
786
|
+
/**
|
|
787
|
+
* <p>An array of <code>TransactionEvent</code> objects. Each object contains details
|
|
788
|
+
* about the transaction events.</p>
|
|
789
|
+
*/
|
|
790
|
+
events: TransactionEvent[] | undefined;
|
|
791
|
+
/**
|
|
792
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
793
|
+
*/
|
|
794
|
+
nextToken?: string;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* @public
|
|
798
|
+
* @enum
|
|
799
|
+
*/
|
|
800
|
+
export declare const ListTransactionsSortBy: {
|
|
801
|
+
/**
|
|
802
|
+
* Timestamp of a transaction
|
|
803
|
+
*/
|
|
804
|
+
readonly TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP";
|
|
805
|
+
};
|
|
806
|
+
/**
|
|
807
|
+
* @public
|
|
808
|
+
*/
|
|
809
|
+
export type ListTransactionsSortBy = (typeof ListTransactionsSortBy)[keyof typeof ListTransactionsSortBy];
|
|
810
|
+
/**
|
|
811
|
+
* @public
|
|
812
|
+
* @enum
|
|
813
|
+
*/
|
|
814
|
+
export declare const SortOrder: {
|
|
815
|
+
/**
|
|
816
|
+
* Result sorted in ascending order
|
|
817
|
+
*/
|
|
818
|
+
readonly ASCENDING: "ASCENDING";
|
|
819
|
+
/**
|
|
820
|
+
* Result sorted in descending order
|
|
821
|
+
*/
|
|
822
|
+
readonly DESCENDING: "DESCENDING";
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* @public
|
|
826
|
+
*/
|
|
827
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
828
|
+
/**
|
|
829
|
+
* @public
|
|
830
|
+
* <p>The container for determining how the list transaction result will
|
|
831
|
+
* be sorted.</p>
|
|
832
|
+
*/
|
|
833
|
+
export interface ListTransactionsSort {
|
|
834
|
+
/**
|
|
835
|
+
* <p>Defaults to the value <code>TRANSACTION_TIMESTAMP</code>.</p>
|
|
836
|
+
*/
|
|
837
|
+
sortBy?: ListTransactionsSortBy | string;
|
|
838
|
+
/**
|
|
839
|
+
* <p>The container for the <i>sort order</i> for <code>ListTransactions</code>.
|
|
840
|
+
* The <code>SortOrder</code> field only accepts the values <code>ASCENDING</code>
|
|
841
|
+
* and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default
|
|
842
|
+
* to <code>ASCENDING</code>.</p>
|
|
843
|
+
*/
|
|
844
|
+
sortOrder?: SortOrder | string;
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* @public
|
|
848
|
+
*/
|
|
849
|
+
export interface ListTransactionsInput {
|
|
850
|
+
/**
|
|
851
|
+
* <p>The address (either a contract or wallet), whose transactions are being requested.</p>
|
|
852
|
+
*/
|
|
853
|
+
address: string | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* <p>The blockchain network where the transactions occurred.</p>
|
|
856
|
+
*/
|
|
857
|
+
network: QueryNetwork | string | undefined;
|
|
858
|
+
/**
|
|
859
|
+
* <p>The container for time.</p>
|
|
860
|
+
*/
|
|
861
|
+
fromBlockchainInstant?: BlockchainInstant;
|
|
862
|
+
/**
|
|
863
|
+
* <p>The container for time.</p>
|
|
864
|
+
*/
|
|
865
|
+
toBlockchainInstant?: BlockchainInstant;
|
|
866
|
+
/**
|
|
867
|
+
* <p>Sorts items in an ascending order if the first page starts at <code>fromTime</code>.
|
|
868
|
+
* Sorts items in a descending order if the first page starts at <code>toTime</code>.</p>
|
|
869
|
+
*/
|
|
870
|
+
sort?: ListTransactionsSort;
|
|
871
|
+
/**
|
|
872
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
873
|
+
*/
|
|
874
|
+
nextToken?: string;
|
|
875
|
+
/**
|
|
876
|
+
* <p>The maximum number of transactions to list.</p>
|
|
877
|
+
* <note>
|
|
878
|
+
* <p>Even if additional results can be retrieved, the request can return less
|
|
879
|
+
* results than <code>maxResults</code> or an empty array of results.</p>
|
|
880
|
+
* <p>To retrieve the next set of results, make another request with the
|
|
881
|
+
* returned <code>nextToken</code> value. The value of <code>nextToken</code> is
|
|
882
|
+
* <code>null</code> when there are no more results to return</p>
|
|
883
|
+
* </note>
|
|
884
|
+
*/
|
|
885
|
+
maxResults?: number;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* @public
|
|
889
|
+
* <p>The container of the transaction output.</p>
|
|
890
|
+
*/
|
|
891
|
+
export interface TransactionOutputItem {
|
|
892
|
+
/**
|
|
893
|
+
* <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
894
|
+
*/
|
|
895
|
+
transactionHash: string | undefined;
|
|
896
|
+
/**
|
|
897
|
+
* <p>The blockchain network where the transaction occurred.</p>
|
|
898
|
+
*/
|
|
899
|
+
network: QueryNetwork | string | undefined;
|
|
900
|
+
/**
|
|
901
|
+
* <p>The time when the transaction occurred.</p>
|
|
902
|
+
*/
|
|
903
|
+
transactionTimestamp: Date | undefined;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* @public
|
|
907
|
+
*/
|
|
908
|
+
export interface ListTransactionsOutput {
|
|
909
|
+
/**
|
|
910
|
+
* <p>The array of transactions returned by the request.</p>
|
|
911
|
+
*/
|
|
912
|
+
transactions: TransactionOutputItem[] | undefined;
|
|
913
|
+
/**
|
|
914
|
+
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
915
|
+
*/
|
|
916
|
+
nextToken?: string;
|
|
917
|
+
}
|