@avalabs/glacier-sdk 3.1.0-alpha.5 → 3.1.0-alpha.7

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 (45) hide show
  1. package/dist/index.d.ts +738 -664
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/ApiFeature.d.ts +7 -0
  6. package/esm/generated/models/ApiFeature.js +1 -0
  7. package/esm/generated/models/ChainInfo.d.ts +1 -1
  8. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  9. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -2
  10. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -2
  11. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  12. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  13. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  14. package/esm/generated/models/Network.d.ts +2 -1
  15. package/esm/generated/models/Network.js +1 -1
  16. package/esm/generated/models/RequestType.d.ts +2 -2
  17. package/esm/generated/models/RequestType.js +1 -1
  18. package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
  19. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  20. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  21. package/esm/generated/models/TransactionDirectionType.js +1 -0
  22. package/esm/generated/services/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +10 -10
  23. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  24. package/esm/generated/services/EvmChainsService.d.ts +5 -5
  25. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  26. package/esm/generated/services/HealthCheckService.js +1 -1
  27. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  28. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +3 -3
  29. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  30. package/esm/generated/services/PrimaryNetworkService.d.ts +9 -9
  31. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -4
  32. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  33. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  34. package/esm/generated/services/SignatureAggregatorService.d.ts +17 -0
  35. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  36. package/esm/generated/services/TeleporterService.d.ts +27 -3
  37. package/esm/generated/services/TeleporterService.js +1 -1
  38. package/esm/index.d.ts +7 -3
  39. package/esm/index.js +1 -1
  40. package/package.json +2 -2
  41. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  42. package/esm/generated/models/GlacierApiFeature.js +0 -1
  43. package/esm/generated/models/NetworkType.d.ts +0 -6
  44. package/esm/generated/models/NetworkType.js +0 -1
  45. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,206 +54,495 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
- declare class DefaultService {
58
- readonly httpRequest: BaseHttpRequest;
59
- constructor(httpRequest: BaseHttpRequest);
57
+ type LogsFormatMetadata = {
60
58
  /**
61
- * @returns any
62
- * @throws ApiError
59
+ * The IP address of the client that made the request.
63
60
  */
64
- mediaControllerUploadImage(): CancelablePromise<any>;
65
- }
61
+ ipAddress: string;
62
+ /**
63
+ * The host for the request made by the client.
64
+ */
65
+ host: string;
66
+ /**
67
+ * The user agent of the client that made the request.
68
+ */
69
+ userAgent: string;
70
+ };
66
71
 
67
72
  /**
68
- * ISO 4217 currency code.
73
+ * The type of request made by the client.
69
74
  */
70
- declare enum CurrencyCode {
71
- USD = "usd",
72
- EUR = "eur",
73
- AUD = "aud",
74
- CAD = "cad",
75
- CHF = "chf",
76
- CLP = "clp",
77
- CNY = "cny",
78
- CZK = "czk",
79
- DKK = "dkk",
80
- GBP = "gbp",
81
- HKD = "hkd",
82
- HUF = "huf",
83
- JPY = "jpy",
84
- NZD = "nzd"
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
85
78
  }
86
79
 
87
- type Money = {
88
- currencyCode: CurrencyCode;
80
+ type LogsFormat = {
89
81
  /**
90
- * Monetary value in base 10 decimals.
82
+ * The organization id of the request.
91
83
  */
92
- value: number;
93
- };
94
-
95
- type NativeTokenBalance = {
84
+ orgId: string;
96
85
  /**
97
- * The contract name.
86
+ * The unique log id of the request.
98
87
  */
99
- name: string;
88
+ logId: string;
100
89
  /**
101
- * The contract symbol.
90
+ * The timestamp of the request.
102
91
  */
103
- symbol: string;
92
+ eventTimestamp: number;
104
93
  /**
105
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
94
+ * The apiKey used to make the request.
106
95
  */
107
- decimals: number;
96
+ apiKeyId: string;
108
97
  /**
109
- * The logo uri for the address.
98
+ * The alias of the apiKey used to make the request.
110
99
  */
111
- logoUri?: string;
100
+ apiKeyAlias: string;
112
101
  /**
113
- * The evm chain id.
102
+ * The region of the host for the request made by the client.
114
103
  */
115
- chainId: string;
104
+ hostRegion: string;
105
+ requestType: RequestType;
116
106
  /**
117
- * The token price, if available.
107
+ * The path of the request made by the client.
118
108
  */
119
- price?: Money;
109
+ requestPath: string;
120
110
  /**
121
- * The address balance for the token, in units specified by the `decimals` value for the contract.
111
+ * The number of API credits consumed by the request.
122
112
  */
123
- balance: string;
113
+ apiCreditsConsumed: number;
124
114
  /**
125
- * The monetary value of the balance, if a price is available for the token.
115
+ * The duration of the request in milliseconds.
126
116
  */
127
- balanceValue?: Money;
117
+ requestDurationMsecs: number;
118
+ /**
119
+ * The response code of the request.
120
+ */
121
+ responseCode: number;
122
+ /**
123
+ * The chain id of the request.
124
+ */
125
+ chainId?: string;
126
+ /**
127
+ * The rpc method of the request.
128
+ */
129
+ rpcMethod?: string;
130
+ /**
131
+ * The metadata of the request.
132
+ */
133
+ metadata: LogsFormatMetadata;
128
134
  };
129
135
 
130
- type GetNativeBalanceResponse = {
136
+ type LogsResponseDTO = {
131
137
  /**
132
- * The native token balance for the address.
138
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
133
139
  */
134
- nativeTokenBalance: NativeTokenBalance;
140
+ nextPageToken?: string;
141
+ /**
142
+ * The organization id of the request.
143
+ */
144
+ orgId: string;
145
+ /**
146
+ * An array of logs representing the requests made by clients.
147
+ */
148
+ logs: Array<LogsFormat>;
135
149
  };
136
150
 
137
- /**
138
- * The metadata indexing status of the nft.
139
- */
140
- declare enum NftTokenMetadataStatus {
141
- UNKNOWN = "UNKNOWN",
142
- MISSING_TOKEN = "MISSING_TOKEN",
143
- INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
144
- INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
145
- UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
146
- THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
147
- METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
148
- INVALID_METADATA = "INVALID_METADATA",
149
- INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
150
- INDEXED = "INDEXED",
151
- UNINDEXED = "UNINDEXED"
151
+ declare enum TimeIntervalGranularityExtended {
152
+ MINUTE = "minute",
153
+ HOURLY = "hourly",
154
+ DAILY = "daily",
155
+ WEEKLY = "weekly",
156
+ MONTHLY = "monthly"
152
157
  }
153
158
 
154
- type Erc1155TokenMetadata = {
155
- indexStatus: NftTokenMetadataStatus;
156
- metadataLastUpdatedTimestamp?: number;
157
- name?: string;
158
- symbol?: string;
159
- imageUri?: string;
160
- description?: string;
161
- animationUri?: string;
162
- externalUrl?: string;
163
- background?: string;
164
- decimals?: number;
165
- properties?: string;
166
- };
159
+ declare enum UsageMetricsGroupByEnum {
160
+ REQUEST_PATH = "requestPath",
161
+ RESPONSE_CODE = "responseCode",
162
+ CHAIN_ID = "chainId",
163
+ API_KEY_ID = "apiKeyId",
164
+ REQUEST_TYPE = "requestType"
165
+ }
167
166
 
168
- type Erc1155TokenBalance = {
167
+ type UsageMetricsValueDTO = {
169
168
  /**
170
- * A wallet or contract address in mixed-case checksum encoding.
169
+ * Column name used for data aggregation
171
170
  */
172
- address: string;
173
- ercType: Erc1155TokenBalance.ercType;
174
- tokenId: string;
175
- tokenUri: string;
176
- metadata: Erc1155TokenMetadata;
171
+ groupedBy: UsageMetricsValueDTO.groupedBy;
177
172
  /**
178
- * The evm chain id.
173
+ * The value of the column used for data aggregation
179
174
  */
180
- chainId: string;
175
+ groupValue?: (string | number);
181
176
  /**
182
- * The address balance for the token, in units specified by the `decimals` value for the contract.
177
+ * The total number of requests
183
178
  */
184
- balance: string;
185
- };
186
- declare namespace Erc1155TokenBalance {
187
- enum ercType {
188
- ERC_1155 = "ERC-1155"
189
- }
190
- }
191
-
192
- type Erc721TokenMetadata = {
193
- indexStatus: NftTokenMetadataStatus;
194
- metadataLastUpdatedTimestamp?: number;
195
- name?: string;
196
- symbol?: string;
197
- imageUri?: string;
198
- description?: string;
199
- animationUri?: string;
200
- externalUrl?: string;
201
- background?: string;
202
- attributes?: string;
203
- };
204
-
205
- type Erc721TokenBalance = {
179
+ totalRequests: number;
206
180
  /**
207
- * A wallet or contract address in mixed-case checksum encoding.
181
+ * The number of requests per second
208
182
  */
209
- address: string;
183
+ requestsPerSecond: number;
210
184
  /**
211
- * The contract name.
185
+ * The success rate percentage
212
186
  */
213
- name: string;
187
+ successRatePercent: number;
214
188
  /**
215
- * The contract symbol.
189
+ * The median response time in milliseconds
216
190
  */
217
- symbol: string;
218
- ercType: Erc721TokenBalance.ercType;
219
- tokenId: string;
220
- tokenUri: string;
221
- metadata: Erc721TokenMetadata;
191
+ medianResponseTimeMsecs: number;
222
192
  /**
223
- * A wallet or contract address in mixed-case checksum encoding.
193
+ * The number of invalid requests
224
194
  */
225
- ownerAddress?: string;
195
+ invalidRequests: number;
226
196
  /**
227
- * The evm chain id.
197
+ * The number of API credits used
228
198
  */
229
- chainId: string;
199
+ apiCreditsUsed: number;
200
+ /**
201
+ * The number of API credits wasted on invalid requests
202
+ */
203
+ apiCreditsWasted: number;
230
204
  };
231
- declare namespace Erc721TokenBalance {
232
- enum ercType {
233
- ERC_721 = "ERC-721"
205
+ declare namespace UsageMetricsValueDTO {
206
+ /**
207
+ * Column name used for data aggregation
208
+ */
209
+ enum groupedBy {
210
+ REQUEST_PATH = "requestPath",
211
+ RESPONSE_CODE = "responseCode",
212
+ CHAIN_ID = "chainId",
213
+ API_KEY_ID = "apiKeyId",
214
+ REQUEST_TYPE = "requestType",
215
+ NONE = "None"
234
216
  }
235
217
  }
236
218
 
237
- type ListCollectibleBalancesResponse = {
219
+ type Metric = {
238
220
  /**
239
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
221
+ * The timestamp of the metrics value
240
222
  */
241
- nextPageToken?: string;
223
+ timestamp: number;
242
224
  /**
243
- * The list of ERC-721 and ERC-1155 token balances for the address.
225
+ * The metrics values for the timestamp
244
226
  */
245
- collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
227
+ values: Array<UsageMetricsValueDTO>;
246
228
  };
247
229
 
248
- type ListErc1155BalancesResponse = {
230
+ type UsageMetricsResponseDTO = {
249
231
  /**
250
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
232
+ * Duration in which the metrics value is aggregated
251
233
  */
252
- nextPageToken?: string;
234
+ aggregateDuration: string;
253
235
  /**
254
- * The list of ERC-1155 token balances for the address.
236
+ * Org ID for which the metrics are aggregated
255
237
  */
256
- erc1155TokenBalances: Array<Erc1155TokenBalance>;
238
+ orgId: string;
239
+ /**
240
+ * Metrics values
241
+ */
242
+ metrics: Array<Metric>;
243
+ };
244
+
245
+ declare class DataApiUsageMetricsService {
246
+ readonly httpRequest: BaseHttpRequest;
247
+ constructor(httpRequest: BaseHttpRequest);
248
+ /**
249
+ * Get usage metrics for the Data API
250
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
251
+ * @returns UsageMetricsResponseDTO Successful response
252
+ * @throws ApiError
253
+ */
254
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
255
+ /**
256
+ * Organization ID to fetch usage metrics for
257
+ */
258
+ orgId?: string;
259
+ /**
260
+ * Query param for retrieving items after a specific timestamp.
261
+ */
262
+ startTimestamp?: number;
263
+ /**
264
+ * Query param for retrieving items before a specific timestamp.
265
+ */
266
+ endTimestamp?: number;
267
+ /**
268
+ * Time interval granularity for data aggregation
269
+ */
270
+ timeInterval?: TimeIntervalGranularityExtended;
271
+ /**
272
+ * Query param for the criterion used for grouping metrics
273
+ */
274
+ groupBy?: UsageMetricsGroupByEnum;
275
+ /**
276
+ * Filter data by request path.
277
+ */
278
+ requestPath?: string;
279
+ /**
280
+ * Filter data by request type.
281
+ */
282
+ requestType?: 'data' | 'rpc';
283
+ /**
284
+ * Filter data by response status code.
285
+ */
286
+ responseCode?: string;
287
+ /**
288
+ * Filter data by chain ID.
289
+ */
290
+ chainId?: string;
291
+ /**
292
+ * Filter data by API key ID.
293
+ */
294
+ apiKeyId?: string;
295
+ }): CancelablePromise<UsageMetricsResponseDTO>;
296
+ /**
297
+ * Get logs for requests made by client
298
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
299
+ * @returns LogsResponseDTO Successful response
300
+ * @throws ApiError
301
+ */
302
+ getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
303
+ /**
304
+ * Organization ID to fetch usage metrics for
305
+ */
306
+ orgId?: string;
307
+ /**
308
+ * Query param for retrieving items after a specific timestamp.
309
+ */
310
+ startTimestamp?: number;
311
+ /**
312
+ * Query param for retrieving items before a specific timestamp.
313
+ */
314
+ endTimestamp?: number;
315
+ /**
316
+ * Filter data by request path.
317
+ */
318
+ requestPath?: string;
319
+ /**
320
+ * Filter data by request type.
321
+ */
322
+ requestType?: 'data' | 'rpc';
323
+ /**
324
+ * Filter data by response status code.
325
+ */
326
+ responseCode?: string;
327
+ /**
328
+ * Filter data by chain ID.
329
+ */
330
+ chainId?: string;
331
+ /**
332
+ * Filter data by API key ID.
333
+ */
334
+ apiKeyId?: string;
335
+ /**
336
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
337
+ */
338
+ pageToken?: string;
339
+ /**
340
+ * The maximum number of items to return.
341
+ */
342
+ pageSize?: number;
343
+ }): CancelablePromise<LogsResponseDTO>;
344
+ }
345
+
346
+ declare class DefaultService {
347
+ readonly httpRequest: BaseHttpRequest;
348
+ constructor(httpRequest: BaseHttpRequest);
349
+ /**
350
+ * @returns any
351
+ * @throws ApiError
352
+ */
353
+ mediaControllerUploadImage(): CancelablePromise<any>;
354
+ }
355
+
356
+ /**
357
+ * ISO 4217 currency code.
358
+ */
359
+ declare enum CurrencyCode {
360
+ USD = "usd",
361
+ EUR = "eur",
362
+ AUD = "aud",
363
+ CAD = "cad",
364
+ CHF = "chf",
365
+ CLP = "clp",
366
+ CNY = "cny",
367
+ CZK = "czk",
368
+ DKK = "dkk",
369
+ GBP = "gbp",
370
+ HKD = "hkd",
371
+ HUF = "huf",
372
+ JPY = "jpy",
373
+ NZD = "nzd"
374
+ }
375
+
376
+ type Money = {
377
+ currencyCode: CurrencyCode;
378
+ /**
379
+ * Monetary value in base 10 decimals.
380
+ */
381
+ value: number;
382
+ };
383
+
384
+ type NativeTokenBalance = {
385
+ /**
386
+ * The contract name.
387
+ */
388
+ name: string;
389
+ /**
390
+ * The contract symbol.
391
+ */
392
+ symbol: string;
393
+ /**
394
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
395
+ */
396
+ decimals: number;
397
+ /**
398
+ * The logo uri for the address.
399
+ */
400
+ logoUri?: string;
401
+ /**
402
+ * The evm chain id.
403
+ */
404
+ chainId: string;
405
+ /**
406
+ * The token price, if available.
407
+ */
408
+ price?: Money;
409
+ /**
410
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
411
+ */
412
+ balance: string;
413
+ /**
414
+ * The monetary value of the balance, if a price is available for the token.
415
+ */
416
+ balanceValue?: Money;
417
+ };
418
+
419
+ type GetNativeBalanceResponse = {
420
+ /**
421
+ * The native token balance for the address.
422
+ */
423
+ nativeTokenBalance: NativeTokenBalance;
424
+ };
425
+
426
+ /**
427
+ * The metadata indexing status of the nft.
428
+ */
429
+ declare enum NftTokenMetadataStatus {
430
+ UNKNOWN = "UNKNOWN",
431
+ MISSING_TOKEN = "MISSING_TOKEN",
432
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
433
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
434
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
435
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
436
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
437
+ INVALID_METADATA = "INVALID_METADATA",
438
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
439
+ INDEXED = "INDEXED",
440
+ UNINDEXED = "UNINDEXED"
441
+ }
442
+
443
+ type Erc1155TokenMetadata = {
444
+ indexStatus: NftTokenMetadataStatus;
445
+ metadataLastUpdatedTimestamp?: number;
446
+ name?: string;
447
+ symbol?: string;
448
+ imageUri?: string;
449
+ description?: string;
450
+ animationUri?: string;
451
+ externalUrl?: string;
452
+ background?: string;
453
+ decimals?: number;
454
+ properties?: string;
455
+ };
456
+
457
+ type Erc1155TokenBalance = {
458
+ /**
459
+ * A wallet or contract address in mixed-case checksum encoding.
460
+ */
461
+ address: string;
462
+ ercType: Erc1155TokenBalance.ercType;
463
+ tokenId: string;
464
+ tokenUri: string;
465
+ metadata: Erc1155TokenMetadata;
466
+ /**
467
+ * The evm chain id.
468
+ */
469
+ chainId: string;
470
+ /**
471
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
472
+ */
473
+ balance: string;
474
+ };
475
+ declare namespace Erc1155TokenBalance {
476
+ enum ercType {
477
+ ERC_1155 = "ERC-1155"
478
+ }
479
+ }
480
+
481
+ type Erc721TokenMetadata = {
482
+ indexStatus: NftTokenMetadataStatus;
483
+ metadataLastUpdatedTimestamp?: number;
484
+ name?: string;
485
+ symbol?: string;
486
+ imageUri?: string;
487
+ description?: string;
488
+ animationUri?: string;
489
+ externalUrl?: string;
490
+ background?: string;
491
+ attributes?: string;
492
+ };
493
+
494
+ type Erc721TokenBalance = {
495
+ /**
496
+ * A wallet or contract address in mixed-case checksum encoding.
497
+ */
498
+ address: string;
499
+ /**
500
+ * The contract name.
501
+ */
502
+ name: string;
503
+ /**
504
+ * The contract symbol.
505
+ */
506
+ symbol: string;
507
+ ercType: Erc721TokenBalance.ercType;
508
+ tokenId: string;
509
+ tokenUri: string;
510
+ metadata: Erc721TokenMetadata;
511
+ /**
512
+ * A wallet or contract address in mixed-case checksum encoding.
513
+ */
514
+ ownerAddress?: string;
515
+ /**
516
+ * The evm chain id.
517
+ */
518
+ chainId: string;
519
+ };
520
+ declare namespace Erc721TokenBalance {
521
+ enum ercType {
522
+ ERC_721 = "ERC-721"
523
+ }
524
+ }
525
+
526
+ type ListCollectibleBalancesResponse = {
527
+ /**
528
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
529
+ */
530
+ nextPageToken?: string;
531
+ /**
532
+ * The list of ERC-721 and ERC-1155 token balances for the address.
533
+ */
534
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
535
+ };
536
+
537
+ type ListErc1155BalancesResponse = {
538
+ /**
539
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
540
+ */
541
+ nextPageToken?: string;
542
+ /**
543
+ * The list of ERC-1155 token balances for the address.
544
+ */
545
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
257
546
  };
258
547
 
259
548
  type Erc20TokenBalance = {
@@ -631,6 +920,12 @@ declare class EvmBlocksService {
631
920
  }): CancelablePromise<GetEvmBlockResponse>;
632
921
  }
633
922
 
923
+ declare enum ApiFeature {
924
+ NFT_INDEXING = "nftIndexing",
925
+ WEBHOOKS = "webhooks",
926
+ TELEPORTER = "teleporter"
927
+ }
928
+
634
929
  /**
635
930
  * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
931
  */
@@ -686,14 +981,9 @@ type GetChainResponse = {
686
981
  networkToken: NetworkToken;
687
982
  chainLogoUri?: string;
688
983
  private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
984
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
690
985
  };
691
986
 
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
987
  type ChainInfo = {
698
988
  chainId: string;
699
989
  status: ChainStatus;
@@ -711,15 +1001,16 @@ type ChainInfo = {
711
1001
  networkToken: NetworkToken;
712
1002
  chainLogoUri?: string;
713
1003
  private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1004
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
715
1005
  };
716
1006
 
717
1007
  type ListChainsResponse = {
718
1008
  chains: Array<ChainInfo>;
719
1009
  };
720
1010
 
721
- declare enum NetworkType {
1011
+ declare enum Network {
722
1012
  MAINNET = "mainnet",
1013
+ FUJI = "fuji",
723
1014
  TESTNET = "testnet"
724
1015
  }
725
1016
 
@@ -734,13 +1025,13 @@ declare class EvmChainsService {
734
1025
  */
735
1026
  supportedChains({ network, feature, }: {
736
1027
  /**
737
- * mainnet or testnet.
1028
+ * Either mainnet or testnet/fuji.
738
1029
  */
739
- network?: NetworkType;
1030
+ network?: Network;
740
1031
  /**
741
1032
  * Filter by feature.
742
1033
  */
743
- feature?: GlacierApiFeature;
1034
+ feature?: ApiFeature;
744
1035
  }): CancelablePromise<ListChainsResponse>;
745
1036
  /**
746
1037
  * Get chain information
@@ -1309,6 +1600,24 @@ type NetworkTokenDetails = {
1309
1600
  historicalPrice?: Money;
1310
1601
  };
1311
1602
 
1603
+ declare enum TransactionDirectionType {
1604
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
1605
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
1606
+ }
1607
+
1608
+ type TeleporterMessageInfo = {
1609
+ teleporterMessageId: string;
1610
+ direction: TransactionDirectionType;
1611
+ /**
1612
+ * chain id of the source chain. valid only for destination transactions
1613
+ */
1614
+ sourceChainId?: Record<string, any>;
1615
+ /**
1616
+ * chain id of the destination chain. valid only for source transactions
1617
+ */
1618
+ destinationChainId?: Record<string, any>;
1619
+ };
1620
+
1312
1621
  type GetTransactionResponse = {
1313
1622
  /**
1314
1623
  * The list of ERC-20 transfers.
@@ -1328,6 +1637,10 @@ type GetTransactionResponse = {
1328
1637
  internalTransactions?: Array<InternalTransactionDetails>;
1329
1638
  networkTokenDetails: NetworkTokenDetails;
1330
1639
  nativeTransaction: FullNativeTransactionDetails;
1640
+ /**
1641
+ * Corresponding teleporter message info if available.
1642
+ */
1643
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
1644
  };
1332
1645
 
1333
1646
  type ListContractsResponse = {
@@ -1607,197 +1920,7 @@ declare class EvmTransactionsService {
1607
1920
  * @returns ListContractsResponse Successful response
1608
1921
  * @throws ApiError
1609
1922
  */
1610
- listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
- /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
- */
1614
- chainId: string;
1615
- /**
1616
- * A wallet address.
1617
- */
1618
- address: string;
1619
- /**
1620
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1621
- */
1622
- pageToken?: string;
1623
- /**
1624
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1625
- */
1626
- pageSize?: number;
1627
- }): CancelablePromise<ListContractsResponse>;
1628
- /**
1629
- * List ERC transfers
1630
- * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse Successful response
1632
- * @throws ApiError
1633
- */
1634
- listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
- /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
- */
1638
- chainId: string;
1639
- /**
1640
- * A wallet address.
1641
- */
1642
- address: string;
1643
- /**
1644
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1645
- */
1646
- startBlock?: number;
1647
- /**
1648
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1649
- */
1650
- endBlock?: number;
1651
- /**
1652
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1653
- */
1654
- pageToken?: string;
1655
- /**
1656
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
- */
1658
- pageSize?: number;
1659
- }): CancelablePromise<ListTransfersResponse>;
1660
- /**
1661
- * List transactions
1662
- * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1663
- *
1664
- * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse Successful response
1666
- * @throws ApiError
1667
- */
1668
- listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
- /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
- */
1672
- chainId: string;
1673
- /**
1674
- * A wallet address.
1675
- */
1676
- address: string;
1677
- /**
1678
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1679
- */
1680
- pageToken?: string;
1681
- /**
1682
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1683
- */
1684
- pageSize?: number;
1685
- /**
1686
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1687
- */
1688
- startBlock?: number;
1689
- /**
1690
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1691
- */
1692
- endBlock?: number;
1693
- /**
1694
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
1695
- */
1696
- sortOrder?: SortOrder;
1697
- }): CancelablePromise<ListTransactionDetailsResponse>;
1698
- /**
1699
- * List native transactions
1700
- * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse Successful response
1702
- * @throws ApiError
1703
- */
1704
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
- /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
- */
1708
- chainId: string;
1709
- /**
1710
- * A wallet address.
1711
- */
1712
- address: string;
1713
- /**
1714
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1715
- */
1716
- startBlock?: number;
1717
- /**
1718
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1719
- */
1720
- endBlock?: number;
1721
- /**
1722
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1723
- */
1724
- pageToken?: string;
1725
- /**
1726
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
- */
1728
- pageSize?: number;
1729
- }): CancelablePromise<ListNativeTransactionsResponse>;
1730
- /**
1731
- * List ERC-20 transfers
1732
- * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse Successful response
1734
- * @throws ApiError
1735
- */
1736
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
- /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
- */
1740
- chainId: string;
1741
- /**
1742
- * A wallet address.
1743
- */
1744
- address: string;
1745
- /**
1746
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1747
- */
1748
- startBlock?: number;
1749
- /**
1750
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1751
- */
1752
- endBlock?: number;
1753
- /**
1754
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1755
- */
1756
- pageToken?: string;
1757
- /**
1758
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
- */
1760
- pageSize?: number;
1761
- }): CancelablePromise<ListErc20TransactionsResponse>;
1762
- /**
1763
- * List ERC-721 transfers
1764
- * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse Successful response
1766
- * @throws ApiError
1767
- */
1768
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
- /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
- */
1772
- chainId: string;
1773
- /**
1774
- * A wallet address.
1775
- */
1776
- address: string;
1777
- /**
1778
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1779
- */
1780
- startBlock?: number;
1781
- /**
1782
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1783
- */
1784
- endBlock?: number;
1785
- /**
1786
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1787
- */
1788
- pageToken?: string;
1789
- /**
1790
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
- */
1792
- pageSize?: number;
1793
- }): CancelablePromise<ListErc721TransactionsResponse>;
1794
- /**
1795
- * List ERC-1155 transfers
1796
- * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse Successful response
1798
- * @throws ApiError
1799
- */
1800
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1923
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1801
1924
  /**
1802
1925
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
1926
  */
@@ -1806,14 +1929,6 @@ declare class EvmTransactionsService {
1806
1929
  * A wallet address.
1807
1930
  */
1808
1931
  address: string;
1809
- /**
1810
- * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1811
- */
1812
- startBlock?: number;
1813
- /**
1814
- * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1815
- */
1816
- endBlock?: number;
1817
1932
  /**
1818
1933
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1819
1934
  */
@@ -1822,16 +1937,14 @@ declare class EvmTransactionsService {
1822
1937
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
1938
  */
1824
1939
  pageSize?: number;
1825
- }): CancelablePromise<ListErc1155TransactionsResponse>;
1940
+ }): CancelablePromise<ListContractsResponse>;
1826
1941
  /**
1827
- * List internal transactions
1828
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
- *
1830
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1831
- * @returns ListInternalTransactionsResponse Successful response
1942
+ * List ERC transfers
1943
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1944
+ * @returns ListTransfersResponse Successful response
1832
1945
  * @throws ApiError
1833
1946
  */
1834
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1947
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
1948
  /**
1836
1949
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
1950
  */
@@ -1856,50 +1969,24 @@ declare class EvmTransactionsService {
1856
1969
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
1970
  */
1858
1971
  pageSize?: number;
1859
- }): CancelablePromise<ListInternalTransactionsResponse>;
1860
- /**
1861
- * Get transaction
1862
- * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse Successful response
1864
- * @throws ApiError
1865
- */
1866
- getTransaction({ chainId, txHash, }: {
1867
- /**
1868
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1869
- */
1870
- chainId: string;
1871
- /**
1872
- * A transaction hash.
1873
- */
1874
- txHash: string;
1875
- }): CancelablePromise<GetTransactionResponse>;
1972
+ }): CancelablePromise<ListTransfersResponse>;
1876
1973
  /**
1877
- * List transactions for a block
1878
- * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse Successful response
1974
+ * List transactions
1975
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1976
+ *
1977
+ * Filterable by block ranges.
1978
+ * @returns ListTransactionDetailsResponse Successful response
1880
1979
  * @throws ApiError
1881
1980
  */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
1981
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1883
1982
  /**
1884
1983
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
1984
  */
1886
1985
  chainId: string;
1887
1986
  /**
1888
- * A block identifier which is either a block number or the block hash.
1889
- */
1890
- blockId: string;
1891
- }): CancelablePromise<ListNativeTransactionsResponse>;
1892
- /**
1893
- * List latest transactions
1894
- * Lists the latest transactions. Filterable by status.
1895
- * @returns ListNativeTransactionsResponse Successful response
1896
- * @throws ApiError
1897
- */
1898
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1899
- /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1987
+ * A wallet address.
1901
1988
  */
1902
- chainId: string;
1989
+ address: string;
1903
1990
  /**
1904
1991
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1905
1992
  */
@@ -1909,299 +1996,236 @@ declare class EvmTransactionsService {
1909
1996
  */
1910
1997
  pageSize?: number;
1911
1998
  /**
1912
- * A status filter for listed transactions.
1999
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1913
2000
  */
1914
- status?: TransactionStatus;
1915
- }): CancelablePromise<ListNativeTransactionsResponse>;
1916
- }
1917
-
1918
- type LogsFormatMetadata = {
1919
- /**
1920
- * The IP address of the client that made the request.
1921
- */
1922
- ipAddress: string;
1923
- /**
1924
- * The host for the request made by the client.
1925
- */
1926
- host: string;
1927
- /**
1928
- * The user agent of the client that made the request.
1929
- */
1930
- userAgent: string;
1931
- };
1932
-
1933
- /**
1934
- * The type of request made by the client.
1935
- */
1936
- declare enum RequestType {
1937
- GLACIER_API_REQUEST = "Glacier API Request",
1938
- GLACIER_RPC_REQUEST = "Glacier RPC Request"
1939
- }
1940
-
1941
- type LogsFormat = {
1942
- /**
1943
- * The organization id of the request.
1944
- */
1945
- orgId: string;
1946
- /**
1947
- * The unique log id of the request.
1948
- */
1949
- logId: string;
1950
- /**
1951
- * The timestamp of the request.
1952
- */
1953
- eventTimestamp: number;
1954
- /**
1955
- * The apiKey used to make the request.
1956
- */
1957
- apiKeyId: string;
1958
- /**
1959
- * The alias of the apiKey used to make the request.
1960
- */
1961
- apiKeyAlias: string;
1962
- /**
1963
- * The region of the host for the request made by the client.
1964
- */
1965
- hostRegion: string;
1966
- requestType: RequestType;
1967
- /**
1968
- * The path of the request made by the client.
1969
- */
1970
- requestPath: string;
1971
- /**
1972
- * The number of API credits consumed by the request.
1973
- */
1974
- apiCreditsConsumed: number;
1975
- /**
1976
- * The duration of the request in milliseconds.
1977
- */
1978
- requestDurationMsecs: number;
1979
- /**
1980
- * The response code of the request.
1981
- */
1982
- responseCode: number;
1983
- /**
1984
- * The chain id of the request.
1985
- */
1986
- chainId?: string;
1987
- /**
1988
- * The rpc method of the request.
1989
- */
1990
- rpcMethod?: string;
1991
- /**
1992
- * The metadata of the request.
1993
- */
1994
- metadata: LogsFormatMetadata;
1995
- };
1996
-
1997
- type LogsResponseDTO = {
1998
- /**
1999
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2000
- */
2001
- nextPageToken?: string;
2002
- /**
2003
- * The organization id of the request.
2004
- */
2005
- orgId: string;
2006
- /**
2007
- * An array of logs representing the requests made by clients.
2008
- */
2009
- logs: Array<LogsFormat>;
2010
- };
2011
-
2012
- declare enum TimeIntervalGranularityExtended {
2013
- MINUTE = "minute",
2014
- HOURLY = "hourly",
2015
- DAILY = "daily",
2016
- WEEKLY = "weekly",
2017
- MONTHLY = "monthly"
2018
- }
2019
-
2020
- declare enum UsageMetricsGroupByEnum {
2021
- REQUEST_PATH = "requestPath",
2022
- RESPONSE_CODE = "responseCode",
2023
- CHAIN_ID = "chainId",
2024
- API_KEY_ID = "apiKeyId",
2025
- REQUEST_TYPE = "requestType"
2026
- }
2027
-
2028
- type UsageMetricsValueDTO = {
2029
- /**
2030
- * Column name used for data aggregation
2031
- */
2032
- groupedBy: UsageMetricsValueDTO.groupedBy;
2033
- /**
2034
- * The value of the column used for data aggregation
2035
- */
2036
- groupValue?: (string | number);
2037
- /**
2038
- * The total number of requests
2039
- */
2040
- totalRequests: number;
2041
- /**
2042
- * The number of requests per second
2043
- */
2044
- requestsPerSecond: number;
2045
- /**
2046
- * The success rate percentage
2047
- */
2048
- successRatePercent: number;
2049
- /**
2050
- * The median response time in milliseconds
2051
- */
2052
- medianResponseTimeMsecs: number;
2053
- /**
2054
- * The number of invalid requests
2055
- */
2056
- invalidRequests: number;
2057
- /**
2058
- * The number of API credits used
2059
- */
2060
- apiCreditsUsed: number;
2061
- /**
2062
- * The number of API credits wasted on invalid requests
2063
- */
2064
- apiCreditsWasted: number;
2065
- };
2066
- declare namespace UsageMetricsValueDTO {
2067
- /**
2068
- * Column name used for data aggregation
2069
- */
2070
- enum groupedBy {
2071
- REQUEST_PATH = "requestPath",
2072
- RESPONSE_CODE = "responseCode",
2073
- CHAIN_ID = "chainId",
2074
- API_KEY_ID = "apiKeyId",
2075
- REQUEST_TYPE = "requestType",
2076
- NONE = "None"
2077
- }
2078
- }
2079
-
2080
- type Metric = {
2081
- /**
2082
- * The timestamp of the metrics value
2083
- */
2084
- timestamp: number;
2085
- /**
2086
- * The metrics values for the timestamp
2087
- */
2088
- values: Array<UsageMetricsValueDTO>;
2089
- };
2090
-
2091
- type UsageMetricsResponseDTO = {
2092
- /**
2093
- * Duration in which the metrics value is aggregated
2094
- */
2095
- aggregateDuration: string;
2001
+ startBlock?: number;
2002
+ /**
2003
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2004
+ */
2005
+ endBlock?: number;
2006
+ /**
2007
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2008
+ */
2009
+ sortOrder?: SortOrder;
2010
+ }): CancelablePromise<ListTransactionDetailsResponse>;
2096
2011
  /**
2097
- * Org ID for which the metrics are aggregated
2012
+ * List native transactions
2013
+ * Lists native transactions for an address. Filterable by block range.
2014
+ * @returns ListNativeTransactionsResponse Successful response
2015
+ * @throws ApiError
2098
2016
  */
2099
- orgId: string;
2017
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2018
+ /**
2019
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2020
+ */
2021
+ chainId: string;
2022
+ /**
2023
+ * A wallet address.
2024
+ */
2025
+ address: string;
2026
+ /**
2027
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2028
+ */
2029
+ startBlock?: number;
2030
+ /**
2031
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2032
+ */
2033
+ endBlock?: number;
2034
+ /**
2035
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2036
+ */
2037
+ pageToken?: string;
2038
+ /**
2039
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2040
+ */
2041
+ pageSize?: number;
2042
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2100
2043
  /**
2101
- * Metrics values
2044
+ * List ERC-20 transfers
2045
+ * Lists ERC-20 transfers for an address. Filterable by block range.
2046
+ * @returns ListErc20TransactionsResponse Successful response
2047
+ * @throws ApiError
2102
2048
  */
2103
- metrics: Array<Metric>;
2104
- };
2105
-
2106
- declare class GlacierApiUsageMetricsService {
2107
- readonly httpRequest: BaseHttpRequest;
2108
- constructor(httpRequest: BaseHttpRequest);
2049
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2050
+ /**
2051
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2052
+ */
2053
+ chainId: string;
2054
+ /**
2055
+ * A wallet address.
2056
+ */
2057
+ address: string;
2058
+ /**
2059
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2060
+ */
2061
+ startBlock?: number;
2062
+ /**
2063
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2064
+ */
2065
+ endBlock?: number;
2066
+ /**
2067
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2068
+ */
2069
+ pageToken?: string;
2070
+ /**
2071
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2072
+ */
2073
+ pageSize?: number;
2074
+ }): CancelablePromise<ListErc20TransactionsResponse>;
2109
2075
  /**
2110
- * Get usage metrics for the Glacier API
2111
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
2112
- * @returns UsageMetricsResponseDTO Successful response
2076
+ * List ERC-721 transfers
2077
+ * Lists ERC-721 transfers for an address. Filterable by block range.
2078
+ * @returns ListErc721TransactionsResponse Successful response
2113
2079
  * @throws ApiError
2114
2080
  */
2115
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseStatusCode, chainId, apiKeyId, }: {
2081
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2116
2082
  /**
2117
- * Organization ID to fetch usage metrics for
2083
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2118
2084
  */
2119
- orgId?: string;
2085
+ chainId: string;
2120
2086
  /**
2121
- * Query param for retrieving items after a specific timestamp.
2087
+ * A wallet address.
2122
2088
  */
2123
- startTimestamp?: number;
2089
+ address: string;
2124
2090
  /**
2125
- * Query param for retrieving items before a specific timestamp.
2091
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2126
2092
  */
2127
- endTimestamp?: number;
2093
+ startBlock?: number;
2128
2094
  /**
2129
- * Time interval granularity for data aggregation
2095
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2130
2096
  */
2131
- timeInterval?: TimeIntervalGranularityExtended;
2097
+ endBlock?: number;
2132
2098
  /**
2133
- * Query param for the criterion used for grouping metrics
2099
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2134
2100
  */
2135
- groupBy?: UsageMetricsGroupByEnum;
2101
+ pageToken?: string;
2136
2102
  /**
2137
- * Filter data by request path.
2103
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2138
2104
  */
2139
- requestPath?: string;
2105
+ pageSize?: number;
2106
+ }): CancelablePromise<ListErc721TransactionsResponse>;
2107
+ /**
2108
+ * List ERC-1155 transfers
2109
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2110
+ * @returns ListErc1155TransactionsResponse Successful response
2111
+ * @throws ApiError
2112
+ */
2113
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2140
2114
  /**
2141
- * Filter data by request type.
2115
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2142
2116
  */
2143
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
2117
+ chainId: string;
2144
2118
  /**
2145
- * Filter data by response status code.
2119
+ * A wallet address.
2120
+ */
2121
+ address: string;
2122
+ /**
2123
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2146
2124
  */
2147
- responseStatusCode?: string;
2125
+ startBlock?: number;
2148
2126
  /**
2149
- * Filter data by chain ID.
2127
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2150
2128
  */
2151
- chainId?: string;
2129
+ endBlock?: number;
2152
2130
  /**
2153
- * Filter data by API key ID.
2131
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2154
2132
  */
2155
- apiKeyId?: string;
2156
- }): CancelablePromise<UsageMetricsResponseDTO>;
2133
+ pageToken?: string;
2134
+ /**
2135
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2136
+ */
2137
+ pageSize?: number;
2138
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
2157
2139
  /**
2158
- * Get logs for requests made by client
2159
- * Gets logs for requests made by client over a specified time interval for a specific organization.
2160
- * @returns LogsResponseDTO Successful response
2140
+ * List internal transactions
2141
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2142
+ *
2143
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2144
+ * @returns ListInternalTransactionsResponse Successful response
2161
2145
  * @throws ApiError
2162
2146
  */
2163
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseStatusCode, chainId, apiKeyId, pageToken, pageSize, }: {
2147
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2164
2148
  /**
2165
- * Organization ID to fetch usage metrics for
2149
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2166
2150
  */
2167
- orgId?: string;
2151
+ chainId: string;
2168
2152
  /**
2169
- * Query param for retrieving items after a specific timestamp.
2153
+ * A wallet address.
2170
2154
  */
2171
- startTimestamp?: number;
2155
+ address: string;
2172
2156
  /**
2173
- * Query param for retrieving items before a specific timestamp.
2157
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
2174
2158
  */
2175
- endTimestamp?: number;
2159
+ startBlock?: number;
2176
2160
  /**
2177
- * Filter data by request path.
2161
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
2178
2162
  */
2179
- requestPath?: string;
2163
+ endBlock?: number;
2180
2164
  /**
2181
- * Filter data by request type.
2165
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2182
2166
  */
2183
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
2167
+ pageToken?: string;
2184
2168
  /**
2185
- * Filter data by response status code.
2169
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2186
2170
  */
2187
- responseStatusCode?: string;
2171
+ pageSize?: number;
2172
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2173
+ /**
2174
+ * Get transaction
2175
+ * Gets the details of a single transaction.
2176
+ * @returns GetTransactionResponse Successful response
2177
+ * @throws ApiError
2178
+ */
2179
+ getTransaction({ chainId, txHash, }: {
2188
2180
  /**
2189
- * Filter data by chain ID.
2181
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2190
2182
  */
2191
- chainId?: string;
2183
+ chainId: string;
2192
2184
  /**
2193
- * Filter data by API key ID.
2185
+ * A transaction hash.
2194
2186
  */
2195
- apiKeyId?: string;
2187
+ txHash: string;
2188
+ }): CancelablePromise<GetTransactionResponse>;
2189
+ /**
2190
+ * List transactions for a block
2191
+ * Lists the transactions that occured in a given block.
2192
+ * @returns ListNativeTransactionsResponse Successful response
2193
+ * @throws ApiError
2194
+ */
2195
+ getTransactionsForBlock({ chainId, blockId, }: {
2196
+ /**
2197
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2198
+ */
2199
+ chainId: string;
2200
+ /**
2201
+ * A block identifier which is either a block number or the block hash.
2202
+ */
2203
+ blockId: string;
2204
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2205
+ /**
2206
+ * List latest transactions
2207
+ * Lists the latest transactions. Filterable by status.
2208
+ * @returns ListNativeTransactionsResponse Successful response
2209
+ * @throws ApiError
2210
+ */
2211
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2212
+ /**
2213
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2214
+ */
2215
+ chainId: string;
2196
2216
  /**
2197
2217
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2198
2218
  */
2199
2219
  pageToken?: string;
2200
2220
  /**
2201
- * The maximum number of items to return.
2221
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2202
2222
  */
2203
2223
  pageSize?: number;
2204
- }): CancelablePromise<LogsResponseDTO>;
2224
+ /**
2225
+ * A status filter for listed transactions.
2226
+ */
2227
+ status?: TransactionStatus;
2228
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2205
2229
  }
2206
2230
 
2207
2231
  declare class HealthCheckService {
@@ -2212,7 +2236,7 @@ declare class HealthCheckService {
2212
2236
  * @returns any The Health Check is successful
2213
2237
  * @throws ApiError
2214
2238
  */
2215
- glacierHealthCheck(): CancelablePromise<{
2239
+ dataHealthCheck(): CancelablePromise<{
2216
2240
  status?: string;
2217
2241
  info?: Record<string, Record<string, string>> | null;
2218
2242
  error?: Record<string, Record<string, string>> | null;
@@ -2308,8 +2332,8 @@ declare enum EVMOperationType {
2308
2332
 
2309
2333
  type CreateEvmTransactionExportRequest = {
2310
2334
  type: EVMOperationType;
2311
- firstDate: string;
2312
- lastDate: string;
2335
+ firstDate?: string;
2336
+ lastDate?: string;
2313
2337
  /**
2314
2338
  * @deprecated
2315
2339
  */
@@ -2335,8 +2359,8 @@ type PrimaryNetworkOptions = {
2335
2359
 
2336
2360
  type CreatePrimaryNetworkTransactionExportRequest = {
2337
2361
  type: PrimaryNetworkOperationType;
2338
- firstDate: string;
2339
- lastDate: string;
2362
+ firstDate?: string;
2363
+ lastDate?: string;
2340
2364
  /**
2341
2365
  * @deprecated
2342
2366
  */
@@ -2672,6 +2696,7 @@ type CompletedValidatorDetails = {
2672
2696
  */
2673
2697
  blsCredentials?: BlsCredentials;
2674
2698
  delegatorCount: number;
2699
+ amountDelegated?: string;
2675
2700
  rewards: Rewards;
2676
2701
  validationStatus: CompletedValidatorDetails.validationStatus;
2677
2702
  };
@@ -2734,11 +2759,6 @@ type ListValidatorDetailsResponse = {
2734
2759
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2735
2760
  };
2736
2761
 
2737
- declare enum Network {
2738
- MAINNET = "mainnet",
2739
- FUJI = "fuji"
2740
- }
2741
-
2742
2762
  declare enum SortByOption {
2743
2763
  BLOCK_INDEX = "blockIndex",
2744
2764
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2816,7 +2836,7 @@ declare class PrimaryNetworkService {
2816
2836
  */
2817
2837
  blockchainId: XChainId;
2818
2838
  /**
2819
- * Either mainnet or a testnet.
2839
+ * Either mainnet or testnet/fuji.
2820
2840
  */
2821
2841
  network: Network;
2822
2842
  /**
@@ -2836,7 +2856,7 @@ declare class PrimaryNetworkService {
2836
2856
  */
2837
2857
  addresses: string;
2838
2858
  /**
2839
- * Either mainnet or a testnet.
2859
+ * Either mainnet or testnet/fuji.
2840
2860
  */
2841
2861
  network: Network;
2842
2862
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2848,7 +2868,7 @@ declare class PrimaryNetworkService {
2848
2868
  */
2849
2869
  getNetworkDetails({ network, }: {
2850
2870
  /**
2851
- * Either mainnet or a testnet.
2871
+ * Either mainnet or testnet/fuji.
2852
2872
  */
2853
2873
  network: Network;
2854
2874
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2860,7 +2880,7 @@ declare class PrimaryNetworkService {
2860
2880
  */
2861
2881
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2862
2882
  /**
2863
- * Either mainnet or a testnet.
2883
+ * Either mainnet or testnet/fuji.
2864
2884
  */
2865
2885
  network: Network;
2866
2886
  /**
@@ -2884,7 +2904,7 @@ declare class PrimaryNetworkService {
2884
2904
  */
2885
2905
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2886
2906
  /**
2887
- * Either mainnet or a testnet.
2907
+ * Either mainnet or testnet/fuji.
2888
2908
  */
2889
2909
  network: Network;
2890
2910
  /**
@@ -2908,7 +2928,7 @@ declare class PrimaryNetworkService {
2908
2928
  */
2909
2929
  getSubnetById({ network, subnetId, }: {
2910
2930
  /**
2911
- * Either mainnet or a testnet.
2931
+ * Either mainnet or testnet/fuji.
2912
2932
  */
2913
2933
  network: Network;
2914
2934
  /**
@@ -2924,7 +2944,7 @@ declare class PrimaryNetworkService {
2924
2944
  */
2925
2945
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2926
2946
  /**
2927
- * Either mainnet or a testnet.
2947
+ * Either mainnet or testnet/fuji.
2928
2948
  */
2929
2949
  network: Network;
2930
2950
  /**
@@ -2998,7 +3018,7 @@ declare class PrimaryNetworkService {
2998
3018
  */
2999
3019
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3000
3020
  /**
3001
- * Either mainnet or a testnet.
3021
+ * Either mainnet or testnet/fuji.
3002
3022
  */
3003
3023
  network: Network;
3004
3024
  /**
@@ -3030,7 +3050,7 @@ declare class PrimaryNetworkService {
3030
3050
  */
3031
3051
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3032
3052
  /**
3033
- * Either mainnet or a testnet.
3053
+ * Either mainnet or testnet/fuji.
3034
3054
  */
3035
3055
  network: Network;
3036
3056
  /**
@@ -3276,7 +3296,7 @@ declare class PrimaryNetworkBalancesService {
3276
3296
  */
3277
3297
  blockchainId: BlockchainId;
3278
3298
  /**
3279
- * Either mainnet or a testnet.
3299
+ * Either mainnet or testnet/fuji.
3280
3300
  */
3281
3301
  network: Network;
3282
3302
  /**
@@ -3348,7 +3368,7 @@ declare class PrimaryNetworkBlocksService {
3348
3368
  */
3349
3369
  blockchainId: BlockchainId;
3350
3370
  /**
3351
- * Either mainnet or a testnet.
3371
+ * Either mainnet or testnet/fuji.
3352
3372
  */
3353
3373
  network: Network;
3354
3374
  /**
@@ -3368,7 +3388,7 @@ declare class PrimaryNetworkBlocksService {
3368
3388
  */
3369
3389
  blockchainId: BlockchainId;
3370
3390
  /**
3371
- * Either mainnet or a testnet.
3391
+ * Either mainnet or testnet/fuji.
3372
3392
  */
3373
3393
  network: Network;
3374
3394
  /**
@@ -3396,7 +3416,7 @@ declare class PrimaryNetworkBlocksService {
3396
3416
  */
3397
3417
  blockchainId: BlockchainId;
3398
3418
  /**
3399
- * Either mainnet or a testnet.
3419
+ * Either mainnet or testnet/fuji.
3400
3420
  */
3401
3421
  network: Network;
3402
3422
  /**
@@ -3530,7 +3550,7 @@ declare class PrimaryNetworkRewardsService {
3530
3550
  */
3531
3551
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3532
3552
  /**
3533
- * Either mainnet or a testnet.
3553
+ * Either mainnet or testnet/fuji.
3534
3554
  */
3535
3555
  network: Network;
3536
3556
  /**
@@ -3562,7 +3582,7 @@ declare class PrimaryNetworkRewardsService {
3562
3582
  */
3563
3583
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3564
3584
  /**
3565
- * Either mainnet or a testnet.
3585
+ * Either mainnet or testnet/fuji.
3566
3586
  */
3567
3587
  network: Network;
3568
3588
  /**
@@ -4153,7 +4173,7 @@ declare class PrimaryNetworkTransactionsService {
4153
4173
  */
4154
4174
  blockchainId: BlockchainId;
4155
4175
  /**
4156
- * Either mainnet or a testnet.
4176
+ * Either mainnet or testnet/fuji.
4157
4177
  */
4158
4178
  network: Network;
4159
4179
  /**
@@ -4181,7 +4201,7 @@ declare class PrimaryNetworkTransactionsService {
4181
4201
  */
4182
4202
  blockchainId: BlockchainId;
4183
4203
  /**
4184
- * Either mainnet or a testnet.
4204
+ * Either mainnet or testnet/fuji.
4185
4205
  */
4186
4206
  network: Network;
4187
4207
  /**
@@ -4221,7 +4241,7 @@ declare class PrimaryNetworkTransactionsService {
4221
4241
  */
4222
4242
  blockchainId: PChainId;
4223
4243
  /**
4224
- * Either mainnet or a testnet.
4244
+ * Either mainnet or testnet/fuji.
4225
4245
  */
4226
4246
  network: Network;
4227
4247
  /**
@@ -4265,7 +4285,7 @@ declare class PrimaryNetworkTransactionsService {
4265
4285
  */
4266
4286
  blockchainId: XChainId;
4267
4287
  /**
4268
- * Either mainnet or a testnet.
4288
+ * Either mainnet or testnet/fuji.
4269
4289
  */
4270
4290
  network: Network;
4271
4291
  /**
@@ -4328,7 +4348,7 @@ declare class PrimaryNetworkUtxOsService {
4328
4348
  */
4329
4349
  blockchainId: BlockchainId;
4330
4350
  /**
4331
- * Either mainnet or a testnet.
4351
+ * Either mainnet or testnet/fuji.
4332
4352
  */
4333
4353
  network: Network;
4334
4354
  /**
@@ -4393,7 +4413,7 @@ declare class PrimaryNetworkVerticesService {
4393
4413
  */
4394
4414
  blockchainId: XChainId;
4395
4415
  /**
4396
- * Either mainnet or a testnet.
4416
+ * Either mainnet or testnet/fuji.
4397
4417
  */
4398
4418
  network: Network;
4399
4419
  /**
@@ -4421,7 +4441,7 @@ declare class PrimaryNetworkVerticesService {
4421
4441
  */
4422
4442
  blockchainId: XChainId;
4423
4443
  /**
4424
- * Either mainnet or a testnet.
4444
+ * Either mainnet or testnet/fuji.
4425
4445
  */
4426
4446
  network: Network;
4427
4447
  }): CancelablePromise<XChainVertex>;
@@ -4441,7 +4461,7 @@ declare class PrimaryNetworkVerticesService {
4441
4461
  */
4442
4462
  blockchainId: XChainId;
4443
4463
  /**
4444
- * Either mainnet or a testnet.
4464
+ * Either mainnet or testnet/fuji.
4445
4465
  */
4446
4466
  network: Network;
4447
4467
  /**
@@ -4502,6 +4522,31 @@ declare class RpcService {
4502
4522
  }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4503
4523
  }
4504
4524
 
4525
+ type SignatureAggregatorRequest = {
4526
+ /**
4527
+ * Must be defined if justification is not defined
4528
+ */
4529
+ message?: string;
4530
+ /**
4531
+ * Must be defined if message is not defined
4532
+ */
4533
+ justification?: string;
4534
+ signingSubnetId?: string;
4535
+ quorumPercentage?: number;
4536
+ };
4537
+
4538
+ declare class SignatureAggregatorService {
4539
+ readonly httpRequest: BaseHttpRequest;
4540
+ constructor(httpRequest: BaseHttpRequest);
4541
+ /**
4542
+ * @returns any
4543
+ * @throws ApiError
4544
+ */
4545
+ signatureAggregatorControllerAggregateSignatures({ requestBody, }: {
4546
+ requestBody: SignatureAggregatorRequest;
4547
+ }): CancelablePromise<any>;
4548
+ }
4549
+
4505
4550
  type TeleporterDestinationTransaction = {
4506
4551
  txHash: string;
4507
4552
  timestamp: number;
@@ -4687,9 +4732,33 @@ declare class TeleporterService {
4687
4732
  */
4688
4733
  from?: string;
4689
4734
  /**
4690
- * mainnet or testnet.
4735
+ * Either mainnet or testnet/fuji.
4736
+ */
4737
+ network?: Network;
4738
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4739
+ /**
4740
+ * List teleporter messages by address
4741
+ * Lists teleporter messages by address. Ordered by timestamp in descending order.
4742
+ * @returns ListTeleporterMessagesResponse Successful response
4743
+ * @throws ApiError
4744
+ */
4745
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
4746
+ /**
4747
+ * An EVM address.
4748
+ */
4749
+ address: string;
4750
+ /**
4751
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4752
+ */
4753
+ pageToken?: string;
4754
+ /**
4755
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4756
+ */
4757
+ pageSize?: number;
4758
+ /**
4759
+ * Either mainnet or testnet/fuji.
4691
4760
  */
4692
- network?: NetworkType;
4761
+ network?: Network;
4693
4762
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4694
4763
  }
4695
4764
 
@@ -4925,13 +4994,13 @@ declare class WebhooksService {
4925
4994
 
4926
4995
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4927
4996
  declare class Glacier {
4997
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4928
4998
  readonly default: DefaultService;
4929
4999
  readonly evmBalances: EvmBalancesService;
4930
5000
  readonly evmBlocks: EvmBlocksService;
4931
5001
  readonly evmChains: EvmChainsService;
4932
5002
  readonly evmContracts: EvmContractsService;
4933
5003
  readonly evmTransactions: EvmTransactionsService;
4934
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4935
5004
  readonly healthCheck: HealthCheckService;
4936
5005
  readonly nfTs: NfTsService;
4937
5006
  readonly operations: OperationsService;
@@ -4943,6 +5012,7 @@ declare class Glacier {
4943
5012
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4944
5013
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4945
5014
  readonly rpc: RpcService;
5015
+ readonly signatureAggregator: SignatureAggregatorService;
4946
5016
  readonly teleporter: TeleporterService;
4947
5017
  readonly webhooks: WebhooksService;
4948
5018
  readonly request: BaseHttpRequest;
@@ -4996,6 +5066,10 @@ type BadRequest = {
4996
5066
  error: string;
4997
5067
  };
4998
5068
 
5069
+ type DataListChainsResponse = {
5070
+ chains: Array<ChainInfo>;
5071
+ };
5072
+
4999
5073
  type Forbidden = {
5000
5074
  /**
5001
5075
  * The error message describing the reason for the exception
@@ -5093,4 +5167,4 @@ type Unauthorized = {
5093
5167
  error: string;
5094
5168
  };
5095
5169
 
5096
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, GlacierApiUsageMetricsService, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5170
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };