@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.f1df87c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/index.d.ts +1155 -524
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -4
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  6. package/esm/generated/models/ApiFeature.d.ts +7 -0
  7. package/esm/generated/models/ApiFeature.js +1 -0
  8. package/esm/generated/models/BadGateway.d.ts +16 -0
  9. package/esm/generated/models/BadRequest.d.ts +16 -0
  10. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  11. package/esm/generated/models/BlockchainId.d.ts +2 -0
  12. package/esm/generated/models/BlockchainId.js +1 -1
  13. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  14. package/esm/generated/models/BlockchainIds.js +1 -1
  15. package/esm/generated/models/ChainInfo.d.ts +1 -1
  16. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  17. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  18. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  19. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  20. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  21. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  22. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  23. package/esm/generated/models/EvmBlock.d.ts +4 -0
  24. package/esm/generated/models/Forbidden.d.ts +16 -0
  25. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  26. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  27. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  28. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  29. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  30. package/esm/generated/models/InternalServerError.d.ts +16 -0
  31. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  32. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  33. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  34. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  35. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  36. package/esm/generated/models/LogsFormat.d.ts +1 -1
  37. package/esm/generated/models/Metric.d.ts +14 -0
  38. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  39. package/esm/generated/models/Network.d.ts +3 -1
  40. package/esm/generated/models/Network.js +1 -1
  41. package/esm/generated/models/NotFound.d.ts +16 -0
  42. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  43. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  44. package/esm/generated/models/PChainTransactionType.js +1 -1
  45. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  46. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  47. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  48. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  49. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  50. package/esm/generated/models/RequestType.d.ts +2 -2
  51. package/esm/generated/models/RequestType.js +1 -1
  52. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  53. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  54. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  55. package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
  56. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  57. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  58. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  59. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  60. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  61. package/esm/generated/models/Subnet.d.ts +9 -0
  62. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  63. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  64. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  65. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  66. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  67. package/esm/generated/models/TransactionDirectionType.js +1 -0
  68. package/esm/generated/models/Unauthorized.d.ts +16 -0
  69. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  70. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
  71. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
  72. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
  73. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  74. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  75. package/esm/generated/models/XChainId.d.ts +1 -0
  76. package/esm/generated/models/XChainId.js +1 -1
  77. package/esm/generated/services/DataApiUsageMetricsService.d.ts +153 -0
  78. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  79. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  80. package/esm/generated/services/EvmBalancesService.js +1 -1
  81. package/esm/generated/services/EvmBlocksService.d.ts +4 -4
  82. package/esm/generated/services/EvmBlocksService.js +1 -1
  83. package/esm/generated/services/EvmChainsService.d.ts +68 -8
  84. package/esm/generated/services/EvmChainsService.js +1 -1
  85. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  86. package/esm/generated/services/EvmContractsService.js +1 -1
  87. package/esm/generated/services/EvmTransactionsService.d.ts +33 -25
  88. package/esm/generated/services/EvmTransactionsService.js +1 -1
  89. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  90. package/esm/generated/services/HealthCheckService.js +1 -1
  91. package/esm/generated/services/NfTsService.d.ts +6 -6
  92. package/esm/generated/services/NfTsService.js +1 -1
  93. package/esm/generated/services/OperationsService.d.ts +2 -2
  94. package/esm/generated/services/OperationsService.js +1 -1
  95. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  96. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  97. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  98. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  99. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  100. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  101. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  102. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  103. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  104. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  105. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  106. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  107. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  108. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  109. package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
  110. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  111. package/esm/generated/services/TeleporterService.d.ts +34 -6
  112. package/esm/generated/services/TeleporterService.js +1 -1
  113. package/esm/generated/services/WebhooksService.d.ts +10 -10
  114. package/esm/generated/services/WebhooksService.js +1 -1
  115. package/esm/index.d.ts +29 -9
  116. package/esm/index.js +1 -1
  117. package/package.json +2 -2
  118. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  119. package/esm/generated/models/GlacierApiFeature.js +0 -1
  120. package/esm/generated/models/NetworkType.d.ts +0 -6
  121. package/esm/generated/models/NetworkType.js +0 -1
  122. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  123. package/esm/generated/models/PrimaryNetwork.js +0 -1
  124. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  125. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  126. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  127. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  128. package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
  129. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
  130. package/esm/generated/services/RpcService.d.ts +0 -25
  131. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,425 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type LogsFormatMetadata = {
58
+ /**
59
+ * The IP address of the client that made the request.
60
+ */
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
+ };
71
+
72
+ /**
73
+ * The type of request made by the client.
74
+ */
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
78
+ }
79
+
80
+ type LogsFormat = {
81
+ /**
82
+ * The organization id of the request.
83
+ */
84
+ orgId: string;
85
+ /**
86
+ * The unique log id of the request.
87
+ */
88
+ logId: string;
89
+ /**
90
+ * The timestamp of the request.
91
+ */
92
+ eventTimestamp: number;
93
+ /**
94
+ * The apiKey used to make the request.
95
+ */
96
+ apiKeyId: string;
97
+ /**
98
+ * The alias of the apiKey used to make the request.
99
+ */
100
+ apiKeyAlias: string;
101
+ /**
102
+ * The region of the host for the request made by the client.
103
+ */
104
+ hostRegion: string;
105
+ requestType: RequestType;
106
+ /**
107
+ * The path of the request made by the client.
108
+ */
109
+ requestPath: string;
110
+ /**
111
+ * The number of API credits consumed by the request.
112
+ */
113
+ apiCreditsConsumed: number;
114
+ /**
115
+ * The duration of the request in milliseconds.
116
+ */
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;
134
+ };
135
+
136
+ type LogsResponseDTO = {
137
+ /**
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.
139
+ */
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>;
149
+ };
150
+
151
+ declare enum RpcUsageMetricsGroupByEnum {
152
+ RPC_METHOD = "rpcMethod",
153
+ RESPONSE_CODE = "responseCode",
154
+ RL_BYPASS_TOKEN = "rlBypassToken"
155
+ }
156
+
157
+ type RpcUsageMetricsValueAggregated = {
158
+ /**
159
+ * The total number of requests
160
+ */
161
+ totalRequests: number;
162
+ /**
163
+ * The number of API credits used
164
+ */
165
+ apiCreditsUsed: number;
166
+ /**
167
+ * The number of requests per second
168
+ */
169
+ requestsPerSecond: number;
170
+ /**
171
+ * The success rate percentage
172
+ */
173
+ successRatePercent: number;
174
+ /**
175
+ * The median response time in milliseconds
176
+ */
177
+ medianResponseTimeMsecs: number;
178
+ /**
179
+ * The number of invalid requests
180
+ */
181
+ invalidRequests: number;
182
+ /**
183
+ * The number of API credits wasted on invalid requests
184
+ */
185
+ apiCreditsWasted: number;
186
+ /**
187
+ * Column name used for data aggregation
188
+ */
189
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
190
+ /**
191
+ * The value of the column used for data aggregation
192
+ */
193
+ groupValue?: (string | number);
194
+ };
195
+ declare namespace RpcUsageMetricsValueAggregated {
196
+ /**
197
+ * Column name used for data aggregation
198
+ */
199
+ enum groupedBy {
200
+ RPC_METHOD = "rpcMethod",
201
+ RESPONSE_CODE = "responseCode",
202
+ RL_BYPASS_TOKEN = "rlBypassToken",
203
+ NONE = "None"
204
+ }
205
+ }
206
+
207
+ type RpcMetrics = {
208
+ /**
209
+ * The timestamp of the metrics value
210
+ */
211
+ timestamp: number;
212
+ /**
213
+ * The metrics values for the timestamp
214
+ */
215
+ values: Array<RpcUsageMetricsValueAggregated>;
216
+ };
217
+
218
+ type RpcUsageMetricsResponseDTO = {
219
+ /**
220
+ * Duration in which the metrics value is aggregated
221
+ */
222
+ aggregateDuration: string;
223
+ /**
224
+ * ChainId for which the metrics are aggregated
225
+ */
226
+ chainId: string;
227
+ /**
228
+ * Metrics values
229
+ */
230
+ metrics: Array<RpcMetrics>;
231
+ };
232
+
233
+ declare enum SubnetRpcTimeIntervalGranularity {
234
+ HOURLY = "hourly",
235
+ DAILY = "daily",
236
+ WEEKLY = "weekly",
237
+ MONTHLY = "monthly"
238
+ }
239
+
240
+ declare enum TimeIntervalGranularityExtended {
241
+ MINUTE = "minute",
242
+ HOURLY = "hourly",
243
+ DAILY = "daily",
244
+ WEEKLY = "weekly",
245
+ MONTHLY = "monthly"
246
+ }
247
+
248
+ declare enum UsageMetricsGroupByEnum {
249
+ REQUEST_PATH = "requestPath",
250
+ RESPONSE_CODE = "responseCode",
251
+ CHAIN_ID = "chainId",
252
+ API_KEY_ID = "apiKeyId",
253
+ REQUEST_TYPE = "requestType"
254
+ }
255
+
256
+ type UsageMetricsValueDTO = {
257
+ /**
258
+ * Column name used for data aggregation
259
+ */
260
+ groupedBy: UsageMetricsValueDTO.groupedBy;
261
+ /**
262
+ * The value of the column used for data aggregation
263
+ */
264
+ groupValue?: (string | number);
265
+ /**
266
+ * The total number of requests
267
+ */
268
+ totalRequests: number;
269
+ /**
270
+ * The number of requests per second
271
+ */
272
+ requestsPerSecond: number;
273
+ /**
274
+ * The success rate percentage
275
+ */
276
+ successRatePercent: number;
277
+ /**
278
+ * The median response time in milliseconds
279
+ */
280
+ medianResponseTimeMsecs: number;
281
+ /**
282
+ * The number of invalid requests
283
+ */
284
+ invalidRequests: number;
285
+ /**
286
+ * The number of API credits used
287
+ */
288
+ apiCreditsUsed: number;
289
+ /**
290
+ * The number of API credits wasted on invalid requests
291
+ */
292
+ apiCreditsWasted: number;
293
+ };
294
+ declare namespace UsageMetricsValueDTO {
295
+ /**
296
+ * Column name used for data aggregation
297
+ */
298
+ enum groupedBy {
299
+ REQUEST_PATH = "requestPath",
300
+ RESPONSE_CODE = "responseCode",
301
+ CHAIN_ID = "chainId",
302
+ API_KEY_ID = "apiKeyId",
303
+ REQUEST_TYPE = "requestType",
304
+ NONE = "None"
305
+ }
306
+ }
307
+
308
+ type Metric = {
309
+ /**
310
+ * The timestamp of the metrics value
311
+ */
312
+ timestamp: number;
313
+ /**
314
+ * The metrics values for the timestamp
315
+ */
316
+ values: Array<UsageMetricsValueDTO>;
317
+ };
318
+
319
+ type UsageMetricsResponseDTO = {
320
+ /**
321
+ * Duration in which the metrics value is aggregated
322
+ */
323
+ aggregateDuration: string;
324
+ /**
325
+ * Org ID for which the metrics are aggregated
326
+ */
327
+ orgId: string;
328
+ /**
329
+ * Metrics values
330
+ */
331
+ metrics: Array<Metric>;
332
+ };
333
+
334
+ declare class DataApiUsageMetricsService {
335
+ readonly httpRequest: BaseHttpRequest;
336
+ constructor(httpRequest: BaseHttpRequest);
337
+ /**
338
+ * Get usage metrics for the Data API
339
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
340
+ * @returns UsageMetricsResponseDTO Successful response
341
+ * @throws ApiError
342
+ */
343
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
344
+ /**
345
+ * Organization ID to fetch usage metrics for
346
+ */
347
+ orgId?: string;
348
+ /**
349
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
350
+ */
351
+ startTimestamp?: number;
352
+ /**
353
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
354
+ */
355
+ endTimestamp?: number;
356
+ /**
357
+ * Time interval granularity for data aggregation
358
+ */
359
+ timeInterval?: TimeIntervalGranularityExtended;
360
+ /**
361
+ * Query param for the criterion used for grouping metrics
362
+ */
363
+ groupBy?: UsageMetricsGroupByEnum;
364
+ /**
365
+ * Filter data by chain ID.
366
+ */
367
+ chainId?: string;
368
+ /**
369
+ * Filter data by response status code.
370
+ */
371
+ responseCode?: string;
372
+ /**
373
+ * Filter data by request type.
374
+ */
375
+ requestType?: 'data' | 'rpc';
376
+ /**
377
+ * Filter data by API key ID.
378
+ */
379
+ apiKeyId?: string;
380
+ /**
381
+ * Filter data by request path.
382
+ */
383
+ requestPath?: string;
384
+ }): CancelablePromise<UsageMetricsResponseDTO>;
385
+ /**
386
+ * Get logs for requests made by client
387
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
388
+ * @returns LogsResponseDTO Successful response
389
+ * @throws ApiError
390
+ */
391
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
392
+ /**
393
+ * Organization ID to fetch usage metrics for
394
+ */
395
+ orgId?: string;
396
+ /**
397
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
398
+ */
399
+ startTimestamp?: number;
400
+ /**
401
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
402
+ */
403
+ endTimestamp?: number;
404
+ /**
405
+ * Filter data by chain ID.
406
+ */
407
+ chainId?: string;
408
+ /**
409
+ * Filter data by response status code.
410
+ */
411
+ responseCode?: string;
412
+ /**
413
+ * Filter data by request type.
414
+ */
415
+ requestType?: 'data' | 'rpc';
416
+ /**
417
+ * Filter data by API key ID.
418
+ */
419
+ apiKeyId?: string;
420
+ /**
421
+ * Filter data by request path.
422
+ */
423
+ requestPath?: string;
424
+ /**
425
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
426
+ */
427
+ pageToken?: string;
428
+ /**
429
+ * The maximum number of items to return.
430
+ */
431
+ pageSize?: number;
432
+ }): CancelablePromise<LogsResponseDTO>;
433
+ /**
434
+ * Get usage metrics for the Subnet RPC
435
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
436
+ * @returns RpcUsageMetricsResponseDTO Successful response
437
+ * @throws ApiError
438
+ */
439
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
440
+ /**
441
+ * Time interval granularity for data aggregation for subnet
442
+ * rpc metrics
443
+ */
444
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
445
+ /**
446
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
447
+ */
448
+ startTimestamp?: number;
449
+ /**
450
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
451
+ */
452
+ endTimestamp?: number;
453
+ /**
454
+ * Query param for the criterion used for grouping metrics
455
+ */
456
+ groupBy?: RpcUsageMetricsGroupByEnum;
457
+ /**
458
+ * Filter data by chain ID.
459
+ */
460
+ chainId?: string;
461
+ /**
462
+ * Filter data by response status code.
463
+ */
464
+ responseCode?: string;
465
+ /**
466
+ * Filter data by RPC method.
467
+ */
468
+ rpcMethod?: string;
469
+ /**
470
+ * Filter data by Rl Bypass API Token.
471
+ */
472
+ rlBypassApiToken?: string;
473
+ }): CancelablePromise<RpcUsageMetricsResponseDTO>;
474
+ }
475
+
57
476
  declare class DefaultService {
58
477
  readonly httpRequest: BaseHttpRequest;
59
478
  constructor(httpRequest: BaseHttpRequest);
@@ -294,11 +713,22 @@ type Erc20TokenBalance = {
294
713
  * The monetary value of the balance, if a price is available for the token.
295
714
  */
296
715
  balanceValue?: Money;
716
+ /**
717
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
718
+ */
719
+ tokenReputation: Erc20TokenBalance.tokenReputation | null;
297
720
  };
298
721
  declare namespace Erc20TokenBalance {
299
722
  enum ercType {
300
723
  ERC_20 = "ERC-20"
301
724
  }
725
+ /**
726
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
727
+ */
728
+ enum tokenReputation {
729
+ MALICIOUS = "Malicious",
730
+ BENIGN = "Benign"
731
+ }
302
732
  }
303
733
 
304
734
  type ListErc20BalancesResponse = {
@@ -331,12 +761,12 @@ declare class EvmBalancesService {
331
761
  * Gets native token balance of a wallet address.
332
762
  *
333
763
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
334
- * @returns GetNativeBalanceResponse
764
+ * @returns GetNativeBalanceResponse Successful response
335
765
  * @throws ApiError
336
766
  */
337
767
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
338
768
  /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
769
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
340
770
  */
341
771
  chainId: string;
342
772
  /**
@@ -359,12 +789,12 @@ declare class EvmBalancesService {
359
789
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
360
790
  *
361
791
  * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
362
- * @returns ListErc20BalancesResponse
792
+ * @returns ListErc20BalancesResponse Successful response
363
793
  * @throws ApiError
364
794
  */
365
795
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
366
796
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
797
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
368
798
  */
369
799
  chainId: string;
370
800
  /**
@@ -401,12 +831,12 @@ declare class EvmBalancesService {
401
831
  * Lists ERC-721 token balances of a wallet address.
402
832
  *
403
833
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
404
- * @returns ListErc721BalancesResponse
834
+ * @returns ListErc721BalancesResponse Successful response
405
835
  * @throws ApiError
406
836
  */
407
837
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
408
838
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
839
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
410
840
  */
411
841
  chainId: string;
412
842
  /**
@@ -433,12 +863,12 @@ declare class EvmBalancesService {
433
863
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
864
  *
435
865
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
436
- * @returns ListErc1155BalancesResponse
866
+ * @returns ListErc1155BalancesResponse Successful response
437
867
  * @throws ApiError
438
868
  */
439
869
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
440
870
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
871
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
442
872
  */
443
873
  chainId: string;
444
874
  /**
@@ -467,12 +897,12 @@ declare class EvmBalancesService {
467
897
  * Lists ERC-721 and ERC-1155 token balances of a wallet address.
468
898
  *
469
899
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
470
- * @returns ListCollectibleBalancesResponse
900
+ * @returns ListCollectibleBalancesResponse Successful response
471
901
  * @throws ApiError
472
902
  */
473
903
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
904
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
905
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
906
  */
477
907
  chainId: string;
478
908
  /**
@@ -495,6 +925,10 @@ declare class EvmBalancesService {
495
925
  }
496
926
 
497
927
  type GetEvmBlockResponse = {
928
+ /**
929
+ * The EVM chain ID on which the block was created.
930
+ */
931
+ chainId: string;
498
932
  /**
499
933
  * The block number on the chain.
500
934
  */
@@ -539,6 +973,10 @@ type GetEvmBlockResponse = {
539
973
  };
540
974
 
541
975
  type EvmBlock = {
976
+ /**
977
+ * The EVM chain ID on which the block was created.
978
+ */
979
+ chainId: string;
542
980
  /**
543
981
  * The block number on the chain.
544
982
  */
@@ -596,12 +1034,12 @@ declare class EvmBlocksService {
596
1034
  /**
597
1035
  * List latest blocks
598
1036
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
599
- * @returns ListEvmBlocksResponse
1037
+ * @returns ListEvmBlocksResponse Successful response
600
1038
  * @throws ApiError
601
1039
  */
602
1040
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
1041
  /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1042
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
1043
  */
606
1044
  chainId: string;
607
1045
  /**
@@ -616,12 +1054,12 @@ declare class EvmBlocksService {
616
1054
  /**
617
1055
  * Get block
618
1056
  * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse
1057
+ * @returns GetEvmBlockResponse Successful response
620
1058
  * @throws ApiError
621
1059
  */
622
1060
  getBlock({ chainId, blockId, }: {
623
1061
  /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1062
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
1063
  */
626
1064
  chainId: string;
627
1065
  /**
@@ -631,6 +1069,12 @@ declare class EvmBlocksService {
631
1069
  }): CancelablePromise<GetEvmBlockResponse>;
632
1070
  }
633
1071
 
1072
+ declare enum ApiFeature {
1073
+ NFT_INDEXING = "nftIndexing",
1074
+ WEBHOOKS = "webhooks",
1075
+ TELEPORTER = "teleporter"
1076
+ }
1077
+
634
1078
  /**
635
1079
  * 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
1080
  */
@@ -686,14 +1130,9 @@ type GetChainResponse = {
686
1130
  networkToken: NetworkToken;
687
1131
  chainLogoUri?: string;
688
1132
  private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1133
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
690
1134
  };
691
1135
 
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
1136
  type ChainInfo = {
698
1137
  chainId: string;
699
1138
  status: ChainStatus;
@@ -711,16 +1150,135 @@ type ChainInfo = {
711
1150
  networkToken: NetworkToken;
712
1151
  chainLogoUri?: string;
713
1152
  private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1153
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1154
+ };
1155
+
1156
+ type ListAddressChainsResponse = {
1157
+ indexedChains?: Array<ChainInfo>;
1158
+ unindexedChains?: Array<string>;
715
1159
  };
716
1160
 
717
1161
  type ListChainsResponse = {
718
1162
  chains: Array<ChainInfo>;
719
1163
  };
720
1164
 
721
- declare enum NetworkType {
1165
+ /**
1166
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1167
+ */
1168
+ declare enum TransactionMethodType {
1169
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1170
+ CONTRACT_CALL = "CONTRACT_CALL",
1171
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1172
+ }
1173
+
1174
+ type Method = {
1175
+ callType: TransactionMethodType;
1176
+ /**
1177
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1178
+ */
1179
+ methodHash: string;
1180
+ /**
1181
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1182
+ */
1183
+ methodName?: string;
1184
+ };
1185
+
1186
+ type RichAddress = {
1187
+ /**
1188
+ * The contract name.
1189
+ */
1190
+ name?: string;
1191
+ /**
1192
+ * The contract symbol.
1193
+ */
1194
+ symbol?: string;
1195
+ /**
1196
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1197
+ */
1198
+ decimals?: number;
1199
+ /**
1200
+ * The logo uri for the address.
1201
+ */
1202
+ logoUri?: string;
1203
+ /**
1204
+ * A wallet or contract address in mixed-case checksum encoding.
1205
+ */
1206
+ address: string;
1207
+ };
1208
+
1209
+ type NativeTransaction = {
1210
+ /**
1211
+ * The block number on the chain.
1212
+ */
1213
+ blockNumber: string;
1214
+ /**
1215
+ * The block finality timestamp.
1216
+ */
1217
+ blockTimestamp: number;
1218
+ /**
1219
+ * The block hash identifier.
1220
+ */
1221
+ blockHash: string;
1222
+ /**
1223
+ * The EVM chain ID on which the transaction occured.
1224
+ */
1225
+ chainId: string;
1226
+ /**
1227
+ * The index at which the transaction occured in the block (0-indexed).
1228
+ */
1229
+ blockIndex: number;
1230
+ /**
1231
+ * The transaction hash identifier.
1232
+ */
1233
+ txHash: string;
1234
+ /**
1235
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1236
+ */
1237
+ txStatus: string;
1238
+ /**
1239
+ * The transaction type.
1240
+ */
1241
+ txType: number;
1242
+ /**
1243
+ * The gas limit set for the transaction.
1244
+ */
1245
+ gasLimit: string;
1246
+ /**
1247
+ * The amount of gas used.
1248
+ */
1249
+ gasUsed: string;
1250
+ /**
1251
+ * The gas price denominated by the number of decimals of the native token.
1252
+ */
1253
+ gasPrice: string;
1254
+ /**
1255
+ * The nonce used by the sender of the transaction.
1256
+ */
1257
+ nonce: string;
1258
+ from: RichAddress;
1259
+ to: RichAddress;
1260
+ method?: Method;
1261
+ value: string;
1262
+ };
1263
+
1264
+ type ListNativeTransactionsResponse = {
1265
+ /**
1266
+ * 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.
1267
+ */
1268
+ nextPageToken?: string;
1269
+ transactions: Array<NativeTransaction>;
1270
+ };
1271
+
1272
+ declare enum Network {
722
1273
  MAINNET = "mainnet",
723
- TESTNET = "testnet"
1274
+ FUJI = "fuji",
1275
+ TESTNET = "testnet",
1276
+ DEVNET = "devnet"
1277
+ }
1278
+
1279
+ declare enum TransactionStatus {
1280
+ FAILED = "failed",
1281
+ SUCCESS = "success"
724
1282
  }
725
1283
 
726
1284
  declare class EvmChainsService {
@@ -729,31 +1287,87 @@ declare class EvmChainsService {
729
1287
  /**
730
1288
  * List chains
731
1289
  * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse
1290
+ * @returns ListChainsResponse Successful response
733
1291
  * @throws ApiError
734
1292
  */
735
1293
  supportedChains({ network, feature, }: {
736
1294
  /**
737
- * mainnet or testnet.
1295
+ * Either mainnet or testnet/fuji.
738
1296
  */
739
- network?: NetworkType;
1297
+ network?: Network;
740
1298
  /**
741
1299
  * Filter by feature.
742
1300
  */
743
- feature?: GlacierApiFeature;
1301
+ feature?: ApiFeature;
744
1302
  }): CancelablePromise<ListChainsResponse>;
745
1303
  /**
746
1304
  * Get chain information
747
1305
  * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse
1306
+ * @returns GetChainResponse Successful response
749
1307
  * @throws ApiError
750
1308
  */
751
1309
  getChainInfo({ chainId, }: {
752
1310
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1311
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
1312
  */
755
1313
  chainId: string;
756
1314
  }): CancelablePromise<GetChainResponse>;
1315
+ /**
1316
+ * Get chains for address
1317
+ * Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1318
+ * @returns ListAddressChainsResponse Successful response
1319
+ * @throws ApiError
1320
+ */
1321
+ getAddressChains({ address, }: {
1322
+ /**
1323
+ * A wallet address.
1324
+ */
1325
+ address: string;
1326
+ }): CancelablePromise<ListAddressChainsResponse>;
1327
+ /**
1328
+ * List latest transactions for all supported EVM chains
1329
+ * Lists the latest transactions for all supported EVM chains. Filterable by status.
1330
+ * @returns ListNativeTransactionsResponse Successful response
1331
+ * @throws ApiError
1332
+ */
1333
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1334
+ /**
1335
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1336
+ */
1337
+ pageToken?: string;
1338
+ /**
1339
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1340
+ */
1341
+ pageSize?: number;
1342
+ /**
1343
+ * Either mainnet or testnet/fuji.
1344
+ */
1345
+ network?: Network;
1346
+ /**
1347
+ * A status filter for listed transactions.
1348
+ */
1349
+ status?: TransactionStatus;
1350
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1351
+ /**
1352
+ * List latest blocks for all supported EVM chains
1353
+ * Lists the latest blocks for all supported EVM chains. Filterable by network.
1354
+ * @returns ListEvmBlocksResponse Successful response
1355
+ * @throws ApiError
1356
+ */
1357
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1358
+ /**
1359
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1360
+ */
1361
+ pageToken?: string;
1362
+ /**
1363
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1364
+ */
1365
+ pageSize?: number;
1366
+ /**
1367
+ * Either mainnet or testnet/fuji.
1368
+ */
1369
+ network?: Network;
1370
+ }): CancelablePromise<ListEvmBlocksResponse>;
757
1371
  }
758
1372
 
759
1373
  type ImageAsset = {
@@ -1040,12 +1654,12 @@ declare class EvmContractsService {
1040
1654
  /**
1041
1655
  * Get contract metadata
1042
1656
  * Gets metadata about the contract at the given address.
1043
- * @returns any
1657
+ * @returns any Successful response
1044
1658
  * @throws ApiError
1045
1659
  */
1046
1660
  getContractMetadata({ chainId, address, }: {
1047
1661
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1662
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1663
  */
1050
1664
  chainId: string;
1051
1665
  /**
@@ -1056,12 +1670,12 @@ declare class EvmContractsService {
1056
1670
  /**
1057
1671
  * Update contract information
1058
1672
  * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
- * @returns UpdateContractResponse
1673
+ * @returns UpdateContractResponse Successful response
1060
1674
  * @throws ApiError
1061
1675
  */
1062
1676
  updateContractInfo({ chainId, address, requestBody, }: {
1063
1677
  /**
1064
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1678
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
1679
  */
1066
1680
  chainId: string;
1067
1681
  /**
@@ -1088,29 +1702,6 @@ declare namespace Erc1155Token {
1088
1702
  }
1089
1703
  }
1090
1704
 
1091
- type RichAddress = {
1092
- /**
1093
- * The contract name.
1094
- */
1095
- name?: string;
1096
- /**
1097
- * The contract symbol.
1098
- */
1099
- symbol?: string;
1100
- /**
1101
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
- */
1103
- decimals?: number;
1104
- /**
1105
- * The logo uri for the address.
1106
- */
1107
- logoUri?: string;
1108
- /**
1109
- * A wallet or contract address in mixed-case checksum encoding.
1110
- */
1111
- address: string;
1112
- };
1113
-
1114
1705
  type Erc1155TransferDetails = {
1115
1706
  from: RichAddress;
1116
1707
  to: RichAddress;
@@ -1195,27 +1786,6 @@ type Erc721TransferDetails = {
1195
1786
  erc721Token: Erc721Token;
1196
1787
  };
1197
1788
 
1198
- /**
1199
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
- */
1201
- declare enum TransactionMethodType {
1202
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
- CONTRACT_CALL = "CONTRACT_CALL",
1204
- CONTRACT_CREATION = "CONTRACT_CREATION"
1205
- }
1206
-
1207
- type Method = {
1208
- callType: TransactionMethodType;
1209
- /**
1210
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1211
- */
1212
- methodHash: string;
1213
- /**
1214
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1215
- */
1216
- methodName?: string;
1217
- };
1218
-
1219
1789
  type FullNativeTransactionDetails = {
1220
1790
  /**
1221
1791
  * The block number on the chain.
@@ -1229,6 +1799,10 @@ type FullNativeTransactionDetails = {
1229
1799
  * The block hash identifier.
1230
1800
  */
1231
1801
  blockHash: string;
1802
+ /**
1803
+ * The EVM chain ID on which the transaction occured.
1804
+ */
1805
+ chainId: string;
1232
1806
  /**
1233
1807
  * The index at which the transaction occured in the block (0-indexed).
1234
1808
  */
@@ -1297,16 +1871,34 @@ type InternalTransactionDetails = {
1297
1871
  gasLimit: string;
1298
1872
  };
1299
1873
 
1300
- type NetworkTokenDetails = {
1301
- networkToken: NetworkToken;
1874
+ type NetworkTokenDetails = {
1875
+ networkToken: NetworkToken;
1876
+ /**
1877
+ * The current token price, if available.
1878
+ */
1879
+ currentPrice?: Money;
1880
+ /**
1881
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1882
+ */
1883
+ historicalPrice?: Money;
1884
+ };
1885
+
1886
+ declare enum TransactionDirectionType {
1887
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
1888
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
1889
+ }
1890
+
1891
+ type TeleporterMessageInfo = {
1892
+ teleporterMessageId: string;
1893
+ direction: TransactionDirectionType;
1302
1894
  /**
1303
- * The current token price, if available.
1895
+ * chain id of the source chain. valid only for destination transactions
1304
1896
  */
1305
- currentPrice?: Money;
1897
+ sourceChainId?: Record<string, any>;
1306
1898
  /**
1307
- * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1899
+ * chain id of the destination chain. valid only for source transactions
1308
1900
  */
1309
- historicalPrice?: Money;
1901
+ destinationChainId?: Record<string, any>;
1310
1902
  };
1311
1903
 
1312
1904
  type GetTransactionResponse = {
@@ -1328,6 +1920,10 @@ type GetTransactionResponse = {
1328
1920
  internalTransactions?: Array<InternalTransactionDetails>;
1329
1921
  networkTokenDetails: NetworkTokenDetails;
1330
1922
  nativeTransaction: FullNativeTransactionDetails;
1923
+ /**
1924
+ * Corresponding teleporter message info if available.
1925
+ */
1926
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
1927
  };
1332
1928
 
1333
1929
  type ListContractsResponse = {
@@ -1470,65 +2066,6 @@ type ListInternalTransactionsResponse = {
1470
2066
  transactions: Array<InternalTransaction>;
1471
2067
  };
1472
2068
 
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
1498
- /**
1499
- * The transaction type.
1500
- */
1501
- txType: number;
1502
- /**
1503
- * The gas limit set for the transaction.
1504
- */
1505
- gasLimit: string;
1506
- /**
1507
- * The amount of gas used.
1508
- */
1509
- gasUsed: string;
1510
- /**
1511
- * The gas price denominated by the number of decimals of the native token.
1512
- */
1513
- gasPrice: string;
1514
- /**
1515
- * The nonce used by the sender of the transaction.
1516
- */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
1522
- };
1523
-
1524
- type ListNativeTransactionsResponse = {
1525
- /**
1526
- * 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.
1527
- */
1528
- nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
1530
- };
1531
-
1532
2069
  type TransactionDetails = {
1533
2070
  /**
1534
2071
  * The native (top-level) transaction details.
@@ -1573,23 +2110,18 @@ declare enum SortOrder {
1573
2110
  DESC = "desc"
1574
2111
  }
1575
2112
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2113
  declare class EvmTransactionsService {
1582
2114
  readonly httpRequest: BaseHttpRequest;
1583
2115
  constructor(httpRequest: BaseHttpRequest);
1584
2116
  /**
1585
2117
  * Get deployment transaction
1586
2118
  * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse
2119
+ * @returns GetTransactionResponse Successful response
1588
2120
  * @throws ApiError
1589
2121
  */
1590
2122
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2123
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2124
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
2125
  */
1594
2126
  chainId: string;
1595
2127
  /**
@@ -1604,12 +2136,12 @@ declare class EvmTransactionsService {
1604
2136
  /**
1605
2137
  * List deployed contracts
1606
2138
  * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse
2139
+ * @returns ListContractsResponse Successful response
1608
2140
  * @throws ApiError
1609
2141
  */
1610
2142
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
2143
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2144
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2145
  */
1614
2146
  chainId: string;
1615
2147
  /**
@@ -1628,12 +2160,12 @@ declare class EvmTransactionsService {
1628
2160
  /**
1629
2161
  * List ERC transfers
1630
2162
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse
2163
+ * @returns ListTransfersResponse Successful response
1632
2164
  * @throws ApiError
1633
2165
  */
1634
2166
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2167
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2168
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2169
  */
1638
2170
  chainId: string;
1639
2171
  /**
@@ -1662,12 +2194,12 @@ declare class EvmTransactionsService {
1662
2194
  * 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
2195
  *
1664
2196
  * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse
2197
+ * @returns ListTransactionDetailsResponse Successful response
1666
2198
  * @throws ApiError
1667
2199
  */
1668
2200
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
2201
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2202
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2203
  */
1672
2204
  chainId: string;
1673
2205
  /**
@@ -1698,12 +2230,12 @@ declare class EvmTransactionsService {
1698
2230
  /**
1699
2231
  * List native transactions
1700
2232
  * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse
2233
+ * @returns ListNativeTransactionsResponse Successful response
1702
2234
  * @throws ApiError
1703
2235
  */
1704
2236
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2237
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2238
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2239
  */
1708
2240
  chainId: string;
1709
2241
  /**
@@ -1730,12 +2262,12 @@ declare class EvmTransactionsService {
1730
2262
  /**
1731
2263
  * List ERC-20 transfers
1732
2264
  * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse
2265
+ * @returns ListErc20TransactionsResponse Successful response
1734
2266
  * @throws ApiError
1735
2267
  */
1736
2268
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
2269
  /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2270
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
2271
  */
1740
2272
  chainId: string;
1741
2273
  /**
@@ -1762,12 +2294,12 @@ declare class EvmTransactionsService {
1762
2294
  /**
1763
2295
  * List ERC-721 transfers
1764
2296
  * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse
2297
+ * @returns ListErc721TransactionsResponse Successful response
1766
2298
  * @throws ApiError
1767
2299
  */
1768
2300
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
2301
  /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2302
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
2303
  */
1772
2304
  chainId: string;
1773
2305
  /**
@@ -1794,12 +2326,12 @@ declare class EvmTransactionsService {
1794
2326
  /**
1795
2327
  * List ERC-1155 transfers
1796
2328
  * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse
2329
+ * @returns ListErc1155TransactionsResponse Successful response
1798
2330
  * @throws ApiError
1799
2331
  */
1800
2332
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
2333
  /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2334
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
2335
  */
1804
2336
  chainId: string;
1805
2337
  /**
@@ -1828,12 +2360,12 @@ declare class EvmTransactionsService {
1828
2360
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
2361
  *
1830
2362
  * 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
2363
+ * @returns ListInternalTransactionsResponse Successful response
1832
2364
  * @throws ApiError
1833
2365
  */
1834
2366
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
2367
  /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2368
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
2369
  */
1838
2370
  chainId: string;
1839
2371
  /**
@@ -1860,260 +2392,67 @@ declare class EvmTransactionsService {
1860
2392
  /**
1861
2393
  * Get transaction
1862
2394
  * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse
2395
+ * @returns GetTransactionResponse Successful response
1864
2396
  * @throws ApiError
1865
2397
  */
1866
2398
  getTransaction({ chainId, txHash, }: {
1867
2399
  /**
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>;
1876
- /**
1877
- * List transactions for a block
1878
- * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse
1880
- * @throws ApiError
1881
- */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
1883
- /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
- */
1886
- chainId: string;
1887
- /**
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
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.
1901
- */
1902
- chainId: string;
1903
- /**
1904
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1905
- */
1906
- pageToken?: string;
1907
- /**
1908
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1909
- */
1910
- pageSize?: number;
1911
- /**
1912
- * A status filter for listed transactions.
1913
- */
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?: number;
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
- }
2026
-
2027
- type UsageMetricsResponseDTO = {
2028
- /**
2029
- * Duration in which the metrics value is aggregated
2030
- */
2031
- aggregateDuration: string;
2032
- /**
2033
- * Org ID for which the metrics are aggregated
2034
- */
2035
- orgId: string;
2036
- /**
2037
- * Metrics values
2038
- */
2039
- metrics: Array<string>;
2040
- };
2041
-
2042
- declare class GlacierApiUsageMetricsService {
2043
- readonly httpRequest: BaseHttpRequest;
2044
- constructor(httpRequest: BaseHttpRequest);
2045
- /**
2046
- * Get usage metrics for the Glacier API
2047
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
2048
- * @returns UsageMetricsResponseDTO
2049
- * @throws ApiError
2050
- */
2051
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, responseStatusCode, chainId, apiKeyId, }: {
2052
- /**
2053
- * Organization ID to fetch usage metrics for
2054
- */
2055
- orgId?: string;
2056
- /**
2057
- * Query param for retrieving items after a specific timestamp.
2058
- */
2059
- startTimestamp?: number;
2060
- /**
2061
- * Query param for retrieving items before a specific timestamp.
2062
- */
2063
- endTimestamp?: number;
2064
- /**
2065
- * Time interval granularity for data aggregation
2400
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2066
2401
  */
2067
- timeInterval?: TimeIntervalGranularityExtended;
2402
+ chainId: string;
2068
2403
  /**
2069
- * Query param for the criterion used for grouping metrics
2404
+ * A transaction hash.
2070
2405
  */
2071
- groupBy?: UsageMetricsGroupByEnum;
2406
+ txHash: string;
2407
+ }): CancelablePromise<GetTransactionResponse>;
2408
+ /**
2409
+ * List transactions for a block
2410
+ * Lists the transactions that occured in a given block.
2411
+ * @returns ListNativeTransactionsResponse Successful response
2412
+ * @throws ApiError
2413
+ */
2414
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2072
2415
  /**
2073
- * Filter aggregated usage metrics by request path.
2416
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2074
2417
  */
2075
- requestPath?: string;
2418
+ chainId: string;
2076
2419
  /**
2077
- * Filter aggregated usage metrics by response status code.
2420
+ * A block identifier which is either a block number or the block hash.
2078
2421
  */
2079
- responseStatusCode?: string;
2422
+ blockId: string;
2080
2423
  /**
2081
- * Filter aggregated usage metrics by chain ID.
2424
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2082
2425
  */
2083
- chainId?: string;
2426
+ pageToken?: string;
2084
2427
  /**
2085
- * Filter aggregated usage metrics by API key ID.
2428
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2086
2429
  */
2087
- apiKeyId?: string;
2088
- }): CancelablePromise<UsageMetricsResponseDTO>;
2430
+ pageSize?: number;
2431
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2089
2432
  /**
2090
- * Get logs for requests made by client
2091
- * Gets logs for requests made by client over a specified time interval for a specific organization.
2092
- * @returns LogsResponseDTO
2433
+ * List latest transactions
2434
+ * Lists the latest transactions. Filterable by status.
2435
+ * @returns ListNativeTransactionsResponse Successful response
2093
2436
  * @throws ApiError
2094
2437
  */
2095
- getApiLogss({ orgId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
2096
- /**
2097
- * Organization ID to fetch usage metrics for
2098
- */
2099
- orgId?: string;
2100
- /**
2101
- * Query param for retrieving items after a specific timestamp.
2102
- */
2103
- startTimestamp?: number;
2438
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2104
2439
  /**
2105
- * Query param for retrieving items before a specific timestamp.
2440
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2106
2441
  */
2107
- endTimestamp?: number;
2442
+ chainId: string;
2108
2443
  /**
2109
2444
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2110
2445
  */
2111
2446
  pageToken?: string;
2112
2447
  /**
2113
- * The maximum number of items to return.
2448
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2114
2449
  */
2115
2450
  pageSize?: number;
2116
- }): CancelablePromise<LogsResponseDTO>;
2451
+ /**
2452
+ * A status filter for listed transactions.
2453
+ */
2454
+ status?: TransactionStatus;
2455
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2117
2456
  }
2118
2457
 
2119
2458
  declare class HealthCheckService {
@@ -2124,7 +2463,7 @@ declare class HealthCheckService {
2124
2463
  * @returns any The Health Check is successful
2125
2464
  * @throws ApiError
2126
2465
  */
2127
- healthCheck(): CancelablePromise<{
2466
+ dataHealthCheck(): CancelablePromise<{
2128
2467
  status?: string;
2129
2468
  info?: Record<string, Record<string, string>> | null;
2130
2469
  error?: Record<string, Record<string, string>> | null;
@@ -2146,12 +2485,12 @@ declare class NfTsService {
2146
2485
  /**
2147
2486
  * Reindex NFT metadata
2148
2487
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2149
- * @returns any
2488
+ * @returns any Successful response
2150
2489
  * @throws ApiError
2151
2490
  */
2152
2491
  reindexNft({ chainId, address, tokenId, }: {
2153
2492
  /**
2154
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2493
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2155
2494
  */
2156
2495
  chainId: string;
2157
2496
  /**
@@ -2166,12 +2505,12 @@ declare class NfTsService {
2166
2505
  /**
2167
2506
  * List tokens
2168
2507
  * Lists tokens for an NFT contract.
2169
- * @returns ListNftTokens
2508
+ * @returns ListNftTokens Successful response
2170
2509
  * @throws ApiError
2171
2510
  */
2172
2511
  listTokens({ chainId, address, pageToken, pageSize, }: {
2173
2512
  /**
2174
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2513
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2175
2514
  */
2176
2515
  chainId: string;
2177
2516
  /**
@@ -2190,12 +2529,12 @@ declare class NfTsService {
2190
2529
  /**
2191
2530
  * Get token details
2192
2531
  * Gets token details for a specific token of an NFT contract.
2193
- * @returns any
2532
+ * @returns any Successful response
2194
2533
  * @throws ApiError
2195
2534
  */
2196
2535
  getTokenDetails({ chainId, address, tokenId, }: {
2197
2536
  /**
2198
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2537
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2199
2538
  */
2200
2539
  chainId: string;
2201
2540
  /**
@@ -2220,16 +2559,16 @@ declare enum EVMOperationType {
2220
2559
 
2221
2560
  type CreateEvmTransactionExportRequest = {
2222
2561
  type: EVMOperationType;
2223
- firstDate: string;
2224
- lastDate: string;
2562
+ firstDate?: string;
2563
+ lastDate?: string;
2225
2564
  /**
2226
2565
  * @deprecated
2227
2566
  */
2228
- startDate: string;
2567
+ startDate?: string;
2229
2568
  /**
2230
2569
  * @deprecated
2231
2570
  */
2232
- endDate: string;
2571
+ endDate?: string;
2233
2572
  options: EvmNetworkOptions;
2234
2573
  };
2235
2574
 
@@ -2242,21 +2581,21 @@ declare enum PrimaryNetworkOperationType {
2242
2581
  type PrimaryNetworkOptions = {
2243
2582
  addresses?: Array<string>;
2244
2583
  cChainEvmAddresses?: Array<string>;
2245
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2584
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2246
2585
  };
2247
2586
 
2248
2587
  type CreatePrimaryNetworkTransactionExportRequest = {
2249
2588
  type: PrimaryNetworkOperationType;
2250
- firstDate: string;
2251
- lastDate: string;
2589
+ firstDate?: string;
2590
+ lastDate?: string;
2252
2591
  /**
2253
2592
  * @deprecated
2254
2593
  */
2255
- startDate: string;
2594
+ startDate?: string;
2256
2595
  /**
2257
2596
  * @deprecated
2258
2597
  */
2259
- endDate: string;
2598
+ endDate?: string;
2260
2599
  options: PrimaryNetworkOptions;
2261
2600
  };
2262
2601
 
@@ -2308,7 +2647,7 @@ declare class OperationsService {
2308
2647
  /**
2309
2648
  * Get operation
2310
2649
  * Gets operation details for the given operation id.
2311
- * @returns OperationStatusResponse
2650
+ * @returns OperationStatusResponse Successful response
2312
2651
  * @throws ApiError
2313
2652
  */
2314
2653
  getOperationResult({ operationId, }: {
@@ -2322,7 +2661,7 @@ declare class OperationsService {
2322
2661
  * Trigger a transaction export operation with given parameters.
2323
2662
  *
2324
2663
  * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2325
- * @returns OperationStatusResponse
2664
+ * @returns OperationStatusResponse Successful response
2326
2665
  * @throws ApiError
2327
2666
  */
2328
2667
  postTransactionExportJob({ requestBody, }: {
@@ -2334,8 +2673,10 @@ declare enum BlockchainIds {
2334
2673
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2335
2674
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2336
2675
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2676
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2337
2677
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2338
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2678
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2679
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2339
2680
  }
2340
2681
 
2341
2682
  type ChainAddressChainIdMap = {
@@ -2459,10 +2800,61 @@ type ListDelegatorDetailsResponse = {
2459
2800
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2460
2801
  };
2461
2802
 
2803
+ type BalanceOwner = {
2804
+ addresses: Array<string>;
2805
+ threshold: number;
2806
+ };
2807
+
2808
+ type L1ValidatorDetailsFull = {
2809
+ /**
2810
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2811
+ */
2812
+ validationId: string;
2813
+ nodeId: string;
2814
+ subnetId: string;
2815
+ /**
2816
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
2817
+ */
2818
+ weight: number;
2819
+ /**
2820
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2821
+ */
2822
+ remainingBalance: number;
2823
+ /**
2824
+ * The timestamp of the transaction which created this L1 validator
2825
+ */
2826
+ creationTimestamp: number;
2827
+ blsCredentials: Record<string, any>;
2828
+ /**
2829
+ * The L1 validator owner's balance, returned after it's disabled or removed
2830
+ */
2831
+ remainingBalanceOwner: BalanceOwner;
2832
+ /**
2833
+ * Owner ddresses details which can disable or remove the L1 validator
2834
+ */
2835
+ deactivationOwner: BalanceOwner;
2836
+ };
2837
+
2838
+ type ListL1ValidatorsResponse = {
2839
+ /**
2840
+ * 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.
2841
+ */
2842
+ nextPageToken?: string;
2843
+ /**
2844
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2845
+ */
2846
+ validators: Array<L1ValidatorDetailsFull>;
2847
+ };
2848
+
2462
2849
  type BlockchainInfo = {
2463
2850
  blockchainId: string;
2464
2851
  };
2465
2852
 
2853
+ type L1ValidatorManagerDetails = {
2854
+ blockchainId: string;
2855
+ contractAddress: string;
2856
+ };
2857
+
2466
2858
  type SubnetOwnershipInfo = {
2467
2859
  /**
2468
2860
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2501,6 +2893,14 @@ type Subnet = {
2501
2893
  * Latest subnet owner details for this Subnet.
2502
2894
  */
2503
2895
  subnetOwnershipInfo: SubnetOwnershipInfo;
2896
+ /**
2897
+ * Whether the subnet is an L1 or not.
2898
+ */
2899
+ isL1: boolean;
2900
+ /**
2901
+ * L1 validator manager details.
2902
+ */
2903
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2504
2904
  blockchains: Array<BlockchainInfo>;
2505
2905
  };
2506
2906
 
@@ -2584,6 +2984,7 @@ type CompletedValidatorDetails = {
2584
2984
  */
2585
2985
  blsCredentials?: BlsCredentials;
2586
2986
  delegatorCount: number;
2987
+ amountDelegated?: string;
2587
2988
  rewards: Rewards;
2588
2989
  validationStatus: CompletedValidatorDetails.validationStatus;
2589
2990
  };
@@ -2646,11 +3047,6 @@ type ListValidatorDetailsResponse = {
2646
3047
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2647
3048
  };
2648
3049
 
2649
- declare enum Network {
2650
- MAINNET = "mainnet",
2651
- FUJI = "fuji"
2652
- }
2653
-
2654
3050
  declare enum SortByOption {
2655
3051
  BLOCK_INDEX = "blockIndex",
2656
3052
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2710,6 +3106,7 @@ type XChainAssetDetails = {
2710
3106
  declare enum XChainId {
2711
3107
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2712
3108
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3109
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2713
3110
  X_CHAIN = "x-chain"
2714
3111
  }
2715
3112
 
@@ -2719,7 +3116,7 @@ declare class PrimaryNetworkService {
2719
3116
  /**
2720
3117
  * Get asset details
2721
3118
  * Gets asset details corresponding to the given asset id on the X-Chain.
2722
- * @returns XChainAssetDetails
3119
+ * @returns XChainAssetDetails Successful response
2723
3120
  * @throws ApiError
2724
3121
  */
2725
3122
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2728,7 +3125,7 @@ declare class PrimaryNetworkService {
2728
3125
  */
2729
3126
  blockchainId: XChainId;
2730
3127
  /**
2731
- * Either mainnet or a testnet.
3128
+ * Either mainnet or testnet/fuji.
2732
3129
  */
2733
3130
  network: Network;
2734
3131
  /**
@@ -2739,7 +3136,7 @@ declare class PrimaryNetworkService {
2739
3136
  /**
2740
3137
  * Get chain interactions for addresses
2741
3138
  * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
2742
- * @returns ChainAddressChainIdMapListResponse
3139
+ * @returns ChainAddressChainIdMapListResponse Successful response
2743
3140
  * @throws ApiError
2744
3141
  */
2745
3142
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2748,31 +3145,31 @@ declare class PrimaryNetworkService {
2748
3145
  */
2749
3146
  addresses: string;
2750
3147
  /**
2751
- * Either mainnet or a testnet.
3148
+ * Either mainnet or testnet/fuji.
2752
3149
  */
2753
3150
  network: Network;
2754
3151
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2755
3152
  /**
2756
3153
  * Get network details
2757
3154
  * Gets network details such as validator and delegator stats.
2758
- * @returns GetNetworkDetailsResponse
3155
+ * @returns GetNetworkDetailsResponse Successful response
2759
3156
  * @throws ApiError
2760
3157
  */
2761
3158
  getNetworkDetails({ network, }: {
2762
3159
  /**
2763
- * Either mainnet or a testnet.
3160
+ * Either mainnet or testnet/fuji.
2764
3161
  */
2765
3162
  network: Network;
2766
3163
  }): CancelablePromise<GetNetworkDetailsResponse>;
2767
3164
  /**
2768
3165
  * List blockchains
2769
3166
  * Lists all blockchains registered on the network.
2770
- * @returns ListBlockchainsResponse
3167
+ * @returns ListBlockchainsResponse Successful response
2771
3168
  * @throws ApiError
2772
3169
  */
2773
3170
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2774
3171
  /**
2775
- * Either mainnet or a testnet.
3172
+ * Either mainnet or testnet/fuji.
2776
3173
  */
2777
3174
  network: Network;
2778
3175
  /**
@@ -2791,12 +3188,12 @@ declare class PrimaryNetworkService {
2791
3188
  /**
2792
3189
  * List subnets
2793
3190
  * Lists all subnets registered on the network.
2794
- * @returns ListSubnetsResponse
3191
+ * @returns ListSubnetsResponse Successful response
2795
3192
  * @throws ApiError
2796
3193
  */
2797
3194
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2798
3195
  /**
2799
- * Either mainnet or a testnet.
3196
+ * Either mainnet or testnet/fuji.
2800
3197
  */
2801
3198
  network: Network;
2802
3199
  /**
@@ -2815,12 +3212,12 @@ declare class PrimaryNetworkService {
2815
3212
  /**
2816
3213
  * Get Subnet details by ID
2817
3214
  * Get details of the Subnet registered on the network.
2818
- * @returns Subnet
3215
+ * @returns Subnet Successful response
2819
3216
  * @throws ApiError
2820
3217
  */
2821
3218
  getSubnetById({ network, subnetId, }: {
2822
3219
  /**
2823
- * Either mainnet or a testnet.
3220
+ * Either mainnet or testnet/fuji.
2824
3221
  */
2825
3222
  network: Network;
2826
3223
  /**
@@ -2831,12 +3228,12 @@ declare class PrimaryNetworkService {
2831
3228
  /**
2832
3229
  * List validators
2833
3230
  * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2834
- * @returns ListValidatorDetailsResponse
3231
+ * @returns ListValidatorDetailsResponse Successful response
2835
3232
  * @throws ApiError
2836
3233
  */
2837
3234
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2838
3235
  /**
2839
- * Either mainnet or a testnet.
3236
+ * Either mainnet or testnet/fuji.
2840
3237
  */
2841
3238
  network: Network;
2842
3239
  /**
@@ -2905,12 +3302,12 @@ declare class PrimaryNetworkService {
2905
3302
  /**
2906
3303
  * Get single validator details
2907
3304
  * List validator details for a single validator. Filterable by validation status.
2908
- * @returns ListValidatorDetailsResponse
3305
+ * @returns ListValidatorDetailsResponse Successful response
2909
3306
  * @throws ApiError
2910
3307
  */
2911
3308
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2912
3309
  /**
2913
- * Either mainnet or a testnet.
3310
+ * Either mainnet or testnet/fuji.
2914
3311
  */
2915
3312
  network: Network;
2916
3313
  /**
@@ -2937,12 +3334,12 @@ declare class PrimaryNetworkService {
2937
3334
  /**
2938
3335
  * List delegators
2939
3336
  * Lists details for delegators.
2940
- * @returns ListDelegatorDetailsResponse
3337
+ * @returns ListDelegatorDetailsResponse Successful response
2941
3338
  * @throws ApiError
2942
3339
  */
2943
3340
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2944
3341
  /**
2945
- * Either mainnet or a testnet.
3342
+ * Either mainnet or testnet/fuji.
2946
3343
  */
2947
3344
  network: Network;
2948
3345
  /**
@@ -2970,14 +3367,49 @@ declare class PrimaryNetworkService {
2970
3367
  */
2971
3368
  nodeIds?: string;
2972
3369
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3370
+ /**
3371
+ * List L1 validators
3372
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3373
+ * @returns ListL1ValidatorsResponse Successful response
3374
+ * @throws ApiError
3375
+ */
3376
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3377
+ /**
3378
+ * Either mainnet or testnet/fuji.
3379
+ */
3380
+ network: Network;
3381
+ /**
3382
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3383
+ */
3384
+ pageToken?: string;
3385
+ /**
3386
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3387
+ */
3388
+ pageSize?: number;
3389
+ /**
3390
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3391
+ */
3392
+ l1ValidationId?: any;
3393
+ includeInactiveL1Validators?: boolean;
3394
+ /**
3395
+ * A valid node ID in format 'NodeID-HASH'.
3396
+ */
3397
+ nodeId?: string;
3398
+ /**
3399
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3400
+ */
3401
+ subnetId?: any;
3402
+ }): CancelablePromise<ListL1ValidatorsResponse>;
2973
3403
  }
2974
3404
 
2975
3405
  declare enum BlockchainId {
2976
3406
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2977
3407
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2978
3408
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3409
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2979
3410
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2980
3411
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3412
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2981
3413
  P_CHAIN = "p-chain",
2982
3414
  X_CHAIN = "x-chain",
2983
3415
  C_CHAIN = "c-chain"
@@ -3014,11 +3446,6 @@ type CChainAtomicBalances = {
3014
3446
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3015
3447
  };
3016
3448
 
3017
- declare enum PrimaryNetwork {
3018
- MAINNET = "mainnet",
3019
- FUJI = "fuji"
3020
- }
3021
-
3022
3449
  declare enum PrimaryNetworkChainName {
3023
3450
  P_CHAIN = "p-chain",
3024
3451
  X_CHAIN = "x-chain",
@@ -3027,7 +3454,7 @@ declare enum PrimaryNetworkChainName {
3027
3454
 
3028
3455
  type PrimaryNetworkChainInfo = {
3029
3456
  chainName: PrimaryNetworkChainName;
3030
- network: PrimaryNetwork;
3457
+ network: Network;
3031
3458
  };
3032
3459
 
3033
3460
  type ListCChainAtomicBalancesResponse = {
@@ -3179,7 +3606,7 @@ declare class PrimaryNetworkBalancesService {
3179
3606
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
3180
3607
  *
3181
3608
  * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
3182
- * @returns any
3609
+ * @returns any Successful response
3183
3610
  * @throws ApiError
3184
3611
  */
3185
3612
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -3188,7 +3615,7 @@ declare class PrimaryNetworkBalancesService {
3188
3615
  */
3189
3616
  blockchainId: BlockchainId;
3190
3617
  /**
3191
- * Either mainnet or a testnet.
3618
+ * Either mainnet or testnet/fuji.
3192
3619
  */
3193
3620
  network: Network;
3194
3621
  /**
@@ -3219,6 +3646,8 @@ type GetPrimaryNetworkBlockResponse = {
3219
3646
  txCount: number;
3220
3647
  transactions: Array<string>;
3221
3648
  blockSizeBytes: number;
3649
+ l1ValidatorsAccruedFees?: number;
3650
+ activeL1Validators?: number;
3222
3651
  currentSupply?: string;
3223
3652
  proposerDetails?: ProposerDetails;
3224
3653
  };
@@ -3232,6 +3661,8 @@ type PrimaryNetworkBlock = {
3232
3661
  txCount: number;
3233
3662
  transactions: Array<string>;
3234
3663
  blockSizeBytes: number;
3664
+ l1ValidatorsAccruedFees?: number;
3665
+ activeL1Validators?: number;
3235
3666
  currentSupply?: string;
3236
3667
  proposerDetails?: ProposerDetails;
3237
3668
  };
@@ -3251,7 +3682,7 @@ declare class PrimaryNetworkBlocksService {
3251
3682
  /**
3252
3683
  * Get block
3253
3684
  * Gets a block by block height or block hash on one of the Primary Network chains.
3254
- * @returns GetPrimaryNetworkBlockResponse
3685
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3255
3686
  * @throws ApiError
3256
3687
  */
3257
3688
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3260,7 +3691,7 @@ declare class PrimaryNetworkBlocksService {
3260
3691
  */
3261
3692
  blockchainId: BlockchainId;
3262
3693
  /**
3263
- * Either mainnet or a testnet.
3694
+ * Either mainnet or testnet/fuji.
3264
3695
  */
3265
3696
  network: Network;
3266
3697
  /**
@@ -3271,22 +3702,30 @@ declare class PrimaryNetworkBlocksService {
3271
3702
  /**
3272
3703
  * List blocks proposed by node
3273
3704
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3274
- * @returns ListPrimaryNetworkBlocksResponse
3705
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3275
3706
  * @throws ApiError
3276
3707
  */
3277
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3708
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3278
3709
  /**
3279
3710
  * A primary network blockchain id or alias.
3280
3711
  */
3281
3712
  blockchainId: BlockchainId;
3282
3713
  /**
3283
- * Either mainnet or a testnet.
3714
+ * Either mainnet or testnet/fuji.
3284
3715
  */
3285
3716
  network: Network;
3286
3717
  /**
3287
3718
  * A primary network (P or X chain) nodeId.
3288
3719
  */
3289
3720
  nodeId: string;
3721
+ /**
3722
+ * Query param for retrieving items after a specific timestamp.
3723
+ */
3724
+ startTimestamp?: number;
3725
+ /**
3726
+ * Query param for retrieving items before a specific timestamp.
3727
+ */
3728
+ endTimestamp?: number;
3290
3729
  /**
3291
3730
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3292
3731
  */
@@ -3299,18 +3738,26 @@ declare class PrimaryNetworkBlocksService {
3299
3738
  /**
3300
3739
  * List latest blocks
3301
3740
  * Lists latest blocks on one of the Primary Network chains.
3302
- * @returns ListPrimaryNetworkBlocksResponse
3741
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3303
3742
  * @throws ApiError
3304
3743
  */
3305
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3744
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3306
3745
  /**
3307
3746
  * A primary network blockchain id or alias.
3308
3747
  */
3309
3748
  blockchainId: BlockchainId;
3310
3749
  /**
3311
- * Either mainnet or a testnet.
3750
+ * Either mainnet or testnet/fuji.
3312
3751
  */
3313
3752
  network: Network;
3753
+ /**
3754
+ * Query param for retrieving items after a specific timestamp.
3755
+ */
3756
+ startTimestamp?: number;
3757
+ /**
3758
+ * Query param for retrieving items before a specific timestamp.
3759
+ */
3760
+ endTimestamp?: number;
3314
3761
  /**
3315
3762
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3316
3763
  */
@@ -3437,12 +3884,12 @@ declare class PrimaryNetworkRewardsService {
3437
3884
  /**
3438
3885
  * List pending rewards
3439
3886
  * Lists pending rewards on the Primary Network for the supplied addresses.
3440
- * @returns ListPendingRewardsResponse
3887
+ * @returns ListPendingRewardsResponse Successful response
3441
3888
  * @throws ApiError
3442
3889
  */
3443
3890
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3444
3891
  /**
3445
- * Either mainnet or a testnet.
3892
+ * Either mainnet or testnet/fuji.
3446
3893
  */
3447
3894
  network: Network;
3448
3895
  /**
@@ -3469,12 +3916,12 @@ declare class PrimaryNetworkRewardsService {
3469
3916
  /**
3470
3917
  * List historical rewards
3471
3918
  * Lists historical rewards on the Primary Network for the supplied addresses.
3472
- * @returns ListHistoricalRewardsResponse
3919
+ * @returns ListHistoricalRewardsResponse Successful response
3473
3920
  * @throws ApiError
3474
3921
  */
3475
3922
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3476
3923
  /**
3477
- * Either mainnet or a testnet.
3924
+ * Either mainnet or testnet/fuji.
3478
3925
  */
3479
3926
  network: Network;
3480
3927
  /**
@@ -3720,6 +4167,28 @@ type ListCChainAtomicTransactionsResponse = {
3720
4167
  chainInfo: PrimaryNetworkChainInfo;
3721
4168
  };
3722
4169
 
4170
+ type L1ValidatorDetailsTransaction = {
4171
+ /**
4172
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4173
+ */
4174
+ validationId: string;
4175
+ nodeId: string;
4176
+ subnetId: string;
4177
+ /**
4178
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
4179
+ */
4180
+ weight: number;
4181
+ /**
4182
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4183
+ */
4184
+ remainingBalance: number;
4185
+ /**
4186
+ * The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4187
+ */
4188
+ balanceChange?: number;
4189
+ blsCredentials?: Record<string, any>;
4190
+ };
4191
+
3723
4192
  declare enum PChainTransactionType {
3724
4193
  ADD_VALIDATOR_TX = "AddValidatorTx",
3725
4194
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3736,6 +4205,11 @@ declare enum PChainTransactionType {
3736
4205
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3737
4206
  BASE_TX = "BaseTx",
3738
4207
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4208
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4209
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4210
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4211
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4212
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3739
4213
  UNKNOWN = "UNKNOWN"
3740
4214
  }
3741
4215
 
@@ -3824,6 +4298,10 @@ type PChainTransaction = {
3824
4298
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3825
4299
  */
3826
4300
  amountStaked: Array<AssetAmount>;
4301
+ /**
4302
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4303
+ */
4304
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3827
4305
  /**
3828
4306
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3829
4307
  */
@@ -3844,6 +4322,14 @@ type PChainTransaction = {
3844
4322
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
3845
4323
  */
3846
4324
  subnetId?: string;
4325
+ /**
4326
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4327
+ */
4328
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4329
+ /**
4330
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
4331
+ */
4332
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
3847
4333
  /**
3848
4334
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3849
4335
  */
@@ -4045,6 +4531,11 @@ declare enum PrimaryNetworkTxType {
4045
4531
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4046
4532
  BASE_TX = "BaseTx",
4047
4533
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4534
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4535
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4536
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4537
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4538
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4048
4539
  UNKNOWN = "UNKNOWN",
4049
4540
  CREATE_ASSET_TX = "CreateAssetTx",
4050
4541
  OPERATION_TX = "OperationTx"
@@ -4056,7 +4547,7 @@ declare class PrimaryNetworkTransactionsService {
4056
4547
  /**
4057
4548
  * Get transaction
4058
4549
  * Gets the details of a single transaction on one of the Primary Network chains.
4059
- * @returns any
4550
+ * @returns any Successful response
4060
4551
  * @throws ApiError
4061
4552
  */
4062
4553
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -4065,7 +4556,7 @@ declare class PrimaryNetworkTransactionsService {
4065
4556
  */
4066
4557
  blockchainId: BlockchainId;
4067
4558
  /**
4068
- * Either mainnet or a testnet.
4559
+ * Either mainnet or testnet/fuji.
4069
4560
  */
4070
4561
  network: Network;
4071
4562
  /**
@@ -4079,23 +4570,26 @@ declare class PrimaryNetworkTransactionsService {
4079
4570
  *
4080
4571
  * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
4081
4572
  *
4573
+ * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
4574
+ *
4082
4575
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
4083
- * @returns any
4576
+ * @returns any Successful response
4084
4577
  * @throws ApiError
4085
4578
  */
4086
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4579
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4087
4580
  /**
4088
4581
  * A primary network blockchain id or alias.
4089
4582
  */
4090
4583
  blockchainId: BlockchainId;
4091
4584
  /**
4092
- * Either mainnet or a testnet.
4585
+ * Either mainnet or testnet/fuji.
4093
4586
  */
4094
4587
  network: Network;
4095
4588
  /**
4096
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
4589
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
4097
4590
  */
4098
4591
  addresses?: string;
4592
+ l1ValidationId?: string;
4099
4593
  /**
4100
4594
  * Query param for filtering items based on transaction types.
4101
4595
  */
@@ -4124,7 +4618,7 @@ declare class PrimaryNetworkTransactionsService {
4124
4618
  /**
4125
4619
  * List staking transactions
4126
4620
  * Lists active staking transactions on the P-Chain for the supplied addresses.
4127
- * @returns ListPChainTransactionsResponse
4621
+ * @returns ListPChainTransactionsResponse Successful response
4128
4622
  * @throws ApiError
4129
4623
  */
4130
4624
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -4133,7 +4627,7 @@ declare class PrimaryNetworkTransactionsService {
4133
4627
  */
4134
4628
  blockchainId: PChainId;
4135
4629
  /**
4136
- * Either mainnet or a testnet.
4630
+ * Either mainnet or testnet/fuji.
4137
4631
  */
4138
4632
  network: Network;
4139
4633
  /**
@@ -4168,7 +4662,7 @@ declare class PrimaryNetworkTransactionsService {
4168
4662
  /**
4169
4663
  * List asset transactions
4170
4664
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
4171
- * @returns ListXChainTransactionsResponse
4665
+ * @returns ListXChainTransactionsResponse Successful response
4172
4666
  * @throws ApiError
4173
4667
  */
4174
4668
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -4177,7 +4671,7 @@ declare class PrimaryNetworkTransactionsService {
4177
4671
  */
4178
4672
  blockchainId: XChainId;
4179
4673
  /**
4180
- * Either mainnet or a testnet.
4674
+ * Either mainnet or testnet/fuji.
4181
4675
  */
4182
4676
  network: Network;
4183
4677
  /**
@@ -4231,7 +4725,7 @@ declare class PrimaryNetworkUtxOsService {
4231
4725
  /**
4232
4726
  * List UTXOs
4233
4727
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4234
- * @returns any
4728
+ * @returns any Successful response
4235
4729
  * @throws ApiError
4236
4730
  */
4237
4731
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4240,7 +4734,7 @@ declare class PrimaryNetworkUtxOsService {
4240
4734
  */
4241
4735
  blockchainId: BlockchainId;
4242
4736
  /**
4243
- * Either mainnet or a testnet.
4737
+ * Either mainnet or testnet/fuji.
4244
4738
  */
4245
4739
  network: Network;
4246
4740
  /**
@@ -4296,7 +4790,7 @@ declare class PrimaryNetworkVerticesService {
4296
4790
  /**
4297
4791
  * List vertices
4298
4792
  * Lists latest vertices on the X-Chain.
4299
- * @returns ListXChainVerticesResponse
4793
+ * @returns ListXChainVerticesResponse Successful response
4300
4794
  * @throws ApiError
4301
4795
  */
4302
4796
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4305,7 +4799,7 @@ declare class PrimaryNetworkVerticesService {
4305
4799
  */
4306
4800
  blockchainId: XChainId;
4307
4801
  /**
4308
- * Either mainnet or a testnet.
4802
+ * Either mainnet or testnet/fuji.
4309
4803
  */
4310
4804
  network: Network;
4311
4805
  /**
@@ -4320,7 +4814,7 @@ declare class PrimaryNetworkVerticesService {
4320
4814
  /**
4321
4815
  * Get vertex
4322
4816
  * Gets a single vertex on the X-Chain.
4323
- * @returns XChainVertex
4817
+ * @returns XChainVertex Successful response
4324
4818
  * @throws ApiError
4325
4819
  */
4326
4820
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4333,14 +4827,14 @@ declare class PrimaryNetworkVerticesService {
4333
4827
  */
4334
4828
  blockchainId: XChainId;
4335
4829
  /**
4336
- * Either mainnet or a testnet.
4830
+ * Either mainnet or testnet/fuji.
4337
4831
  */
4338
4832
  network: Network;
4339
4833
  }): CancelablePromise<XChainVertex>;
4340
4834
  /**
4341
4835
  * List vertices by height
4342
4836
  * Lists vertices at the given vertex height on the X-Chain.
4343
- * @returns ListXChainVerticesResponse
4837
+ * @returns ListXChainVerticesResponse Successful response
4344
4838
  * @throws ApiError
4345
4839
  */
4346
4840
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4353,7 +4847,7 @@ declare class PrimaryNetworkVerticesService {
4353
4847
  */
4354
4848
  blockchainId: XChainId;
4355
4849
  /**
4356
- * Either mainnet or a testnet.
4850
+ * Either mainnet or testnet/fuji.
4357
4851
  */
4358
4852
  network: Network;
4359
4853
  /**
@@ -4371,47 +4865,29 @@ declare class PrimaryNetworkVerticesService {
4371
4865
  }): CancelablePromise<ListXChainVerticesResponse>;
4372
4866
  }
4373
4867
 
4374
- type RpcErrorDto = {
4375
- code: number;
4376
- message: string;
4377
- data?: Record<string, any>;
4378
- };
4379
-
4380
- type RpcErrorResponseDto = {
4381
- jsonrpc: string;
4382
- id?: (string | number);
4383
- error: RpcErrorDto;
4384
- };
4385
-
4386
- type RpcRequestBodyDto = {
4387
- method: string;
4388
- params?: Record<string, any>;
4389
- id?: (string | number);
4390
- jsonrpc?: string;
4868
+ type SignatureAggregationResponse = {
4869
+ signedMessage: string;
4391
4870
  };
4392
4871
 
4393
- type RpcSuccessResponseDto = {
4394
- jsonrpc: string;
4395
- id?: (string | number);
4396
- result: Record<string, any>;
4872
+ type SignatureAggregatorRequest = {
4873
+ message: string;
4874
+ justification?: string;
4875
+ signingSubnetId?: string;
4876
+ quorumPercentage?: number;
4397
4877
  };
4398
4878
 
4399
- declare class RpcService {
4879
+ declare class SignatureAggregatorService {
4400
4880
  readonly httpRequest: BaseHttpRequest;
4401
4881
  constructor(httpRequest: BaseHttpRequest);
4402
4882
  /**
4403
- * Calls JSON-RPC method
4404
- * Calls JSON-RPC method.
4405
- * @returns any
4883
+ * Aggregate Signatures
4884
+ * Aggregates Signatures for a Warp message from Subnet validators.
4885
+ * @returns SignatureAggregationResponse Successful response
4406
4886
  * @throws ApiError
4407
4887
  */
4408
- rpc({ chainId, requestBody, }: {
4409
- /**
4410
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4411
- */
4412
- chainId: string;
4413
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4414
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4888
+ aggregateSignatures({ requestBody, }: {
4889
+ requestBody: SignatureAggregatorRequest;
4890
+ }): CancelablePromise<SignatureAggregationResponse>;
4415
4891
  }
4416
4892
 
4417
4893
  type TeleporterDestinationTransaction = {
@@ -4554,7 +5030,7 @@ declare class TeleporterService {
4554
5030
  /**
4555
5031
  * Get a teleporter message
4556
5032
  * Gets a teleporter message by message ID.
4557
- * @returns any
5033
+ * @returns any Successful response
4558
5034
  * @throws ApiError
4559
5035
  */
4560
5036
  getTeleporterMessage({ messageId, }: {
@@ -4566,10 +5042,10 @@ declare class TeleporterService {
4566
5042
  /**
4567
5043
  * List teleporter messages
4568
5044
  * Lists teleporter messages. Ordered by timestamp in descending order.
4569
- * @returns ListTeleporterMessagesResponse
5045
+ * @returns ListTeleporterMessagesResponse Successful response
4570
5046
  * @throws ApiError
4571
5047
  */
4572
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
5048
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
4573
5049
  /**
4574
5050
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4575
5051
  */
@@ -4586,6 +5062,10 @@ declare class TeleporterService {
4586
5062
  * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4587
5063
  */
4588
5064
  destinationBlockchainId?: string;
5065
+ /**
5066
+ * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
5067
+ */
5068
+ blockchainId?: string;
4589
5069
  /**
4590
5070
  * The address of the recipient of the teleporter message.
4591
5071
  */
@@ -4595,9 +5075,33 @@ declare class TeleporterService {
4595
5075
  */
4596
5076
  from?: string;
4597
5077
  /**
4598
- * mainnet or testnet.
5078
+ * Either mainnet or testnet/fuji.
5079
+ */
5080
+ network?: Network;
5081
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5082
+ /**
5083
+ * List teleporter messages by address
5084
+ * Lists teleporter messages by address. Ordered by timestamp in descending order.
5085
+ * @returns ListTeleporterMessagesResponse Successful response
5086
+ * @throws ApiError
5087
+ */
5088
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5089
+ /**
5090
+ * An EVM address.
5091
+ */
5092
+ address: string;
5093
+ /**
5094
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5095
+ */
5096
+ pageToken?: string;
5097
+ /**
5098
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5099
+ */
5100
+ pageSize?: number;
5101
+ /**
5102
+ * Either mainnet or testnet/fuji.
4599
5103
  */
4600
- network?: NetworkType;
5104
+ network?: Network;
4601
5105
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4602
5106
  }
4603
5107
 
@@ -4605,7 +5109,7 @@ type AddressesChangeRequest = {
4605
5109
  /**
4606
5110
  * Ethereum address(es) for the address_activity event type
4607
5111
  */
4608
- addresses: Array<any[]>;
5112
+ addresses: Array<string>;
4609
5113
  };
4610
5114
 
4611
5115
  type AddressActivityMetadata = {
@@ -4631,7 +5135,7 @@ type CreateWebhookRequest = {
4631
5135
  name?: string;
4632
5136
  description?: string;
4633
5137
  /**
4634
- * Whether to include traces in the webhook payload.
5138
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4635
5139
  */
4636
5140
  includeInternalTxs?: boolean;
4637
5141
  /**
@@ -4691,6 +5195,9 @@ type UpdateWebhookRequest = {
4691
5195
  description?: string;
4692
5196
  url?: string;
4693
5197
  status?: WebhookStatusType;
5198
+ /**
5199
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5200
+ */
4694
5201
  includeInternalTxs?: boolean;
4695
5202
  includeLogs?: boolean;
4696
5203
  };
@@ -4706,7 +5213,7 @@ declare class WebhooksService {
4706
5213
  /**
4707
5214
  * Create a webhook
4708
5215
  * Create a new webhook.
4709
- * @returns WebhookResponse
5216
+ * @returns WebhookResponse Successful response
4710
5217
  * @throws ApiError
4711
5218
  */
4712
5219
  createWebhook({ requestBody, }: {
@@ -4715,7 +5222,7 @@ declare class WebhooksService {
4715
5222
  /**
4716
5223
  * List webhooks
4717
5224
  * Lists webhooks for the user.
4718
- * @returns ListWebhooksResponse
5225
+ * @returns ListWebhooksResponse Successful response
4719
5226
  * @throws ApiError
4720
5227
  */
4721
5228
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4735,7 +5242,7 @@ declare class WebhooksService {
4735
5242
  /**
4736
5243
  * Get a webhook by ID
4737
5244
  * Retrieves a webhook by ID.
4738
- * @returns WebhookResponse
5245
+ * @returns WebhookResponse Successful response
4739
5246
  * @throws ApiError
4740
5247
  */
4741
5248
  getWebhook({ id, }: {
@@ -4747,7 +5254,7 @@ declare class WebhooksService {
4747
5254
  /**
4748
5255
  * Deactivate a webhook
4749
5256
  * Deactivates a webhook by ID.
4750
- * @returns WebhookResponse
5257
+ * @returns WebhookResponse Successful response
4751
5258
  * @throws ApiError
4752
5259
  */
4753
5260
  deactivateWebhook({ id, }: {
@@ -4759,7 +5266,7 @@ declare class WebhooksService {
4759
5266
  /**
4760
5267
  * Update a webhook
4761
5268
  * Updates an existing webhook.
4762
- * @returns WebhookResponse
5269
+ * @returns WebhookResponse Successful response
4763
5270
  * @throws ApiError
4764
5271
  */
4765
5272
  updateWebhook({ id, requestBody, }: {
@@ -4772,21 +5279,21 @@ declare class WebhooksService {
4772
5279
  /**
4773
5280
  * Generate a shared secret
4774
5281
  * Generates a new shared secret.
4775
- * @returns SharedSecretsResponse
5282
+ * @returns SharedSecretsResponse Successful response
4776
5283
  * @throws ApiError
4777
5284
  */
4778
5285
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4779
5286
  /**
4780
5287
  * Get a shared secret
4781
5288
  * Get a previously generated shared secret.
4782
- * @returns SharedSecretsResponse
5289
+ * @returns SharedSecretsResponse Successful response
4783
5290
  * @throws ApiError
4784
5291
  */
4785
5292
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4786
5293
  /**
4787
5294
  * Add addresses to webhook
4788
5295
  * Add addresses to webhook.
4789
- * @returns WebhookResponse
5296
+ * @returns WebhookResponse Successful response
4790
5297
  * @throws ApiError
4791
5298
  */
4792
5299
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4799,7 +5306,7 @@ declare class WebhooksService {
4799
5306
  /**
4800
5307
  * Remove addresses from webhook
4801
5308
  * Remove addresses from webhook.
4802
- * @returns WebhookResponse
5309
+ * @returns WebhookResponse Successful response
4803
5310
  * @throws ApiError
4804
5311
  */
4805
5312
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4812,7 +5319,7 @@ declare class WebhooksService {
4812
5319
  /**
4813
5320
  * List adresses by webhook
4814
5321
  * List adresses by webhook.
4815
- * @returns ListWebhookAddressesResponse
5322
+ * @returns ListWebhookAddressesResponse Successful response
4816
5323
  * @throws ApiError
4817
5324
  */
4818
5325
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4833,13 +5340,13 @@ declare class WebhooksService {
4833
5340
 
4834
5341
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4835
5342
  declare class Glacier {
5343
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4836
5344
  readonly default: DefaultService;
4837
5345
  readonly evmBalances: EvmBalancesService;
4838
5346
  readonly evmBlocks: EvmBlocksService;
4839
5347
  readonly evmChains: EvmChainsService;
4840
5348
  readonly evmContracts: EvmContractsService;
4841
5349
  readonly evmTransactions: EvmTransactionsService;
4842
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4843
5350
  readonly healthCheck: HealthCheckService;
4844
5351
  readonly nfTs: NfTsService;
4845
5352
  readonly operations: OperationsService;
@@ -4850,7 +5357,7 @@ declare class Glacier {
4850
5357
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4851
5358
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4852
5359
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4853
- readonly rpc: RpcService;
5360
+ readonly signatureAggregator: SignatureAggregatorService;
4854
5361
  readonly teleporter: TeleporterService;
4855
5362
  readonly webhooks: WebhooksService;
4856
5363
  readonly request: BaseHttpRequest;
@@ -4874,6 +5381,70 @@ declare class ApiError extends Error {
4874
5381
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4875
5382
  }
4876
5383
 
5384
+ type BadGateway = {
5385
+ /**
5386
+ * The error message describing the reason for the exception
5387
+ */
5388
+ message: (string | Array<string>);
5389
+ /**
5390
+ * The HTTP status code of the response
5391
+ */
5392
+ statusCode: number;
5393
+ /**
5394
+ * The type of error
5395
+ */
5396
+ error: string;
5397
+ };
5398
+
5399
+ type BadRequest = {
5400
+ /**
5401
+ * The error message describing the reason for the exception
5402
+ */
5403
+ message: (string | Array<string>);
5404
+ /**
5405
+ * The HTTP status code of the response
5406
+ */
5407
+ statusCode: number;
5408
+ /**
5409
+ * The type of error
5410
+ */
5411
+ error: string;
5412
+ };
5413
+
5414
+ type DataListChainsResponse = {
5415
+ chains: Array<ChainInfo>;
5416
+ };
5417
+
5418
+ type Forbidden = {
5419
+ /**
5420
+ * The error message describing the reason for the exception
5421
+ */
5422
+ message: (string | Array<string>);
5423
+ /**
5424
+ * The HTTP status code of the response
5425
+ */
5426
+ statusCode: number;
5427
+ /**
5428
+ * The type of error
5429
+ */
5430
+ error: string;
5431
+ };
5432
+
5433
+ type InternalServerError = {
5434
+ /**
5435
+ * The error message describing the reason for the exception
5436
+ */
5437
+ message: (string | Array<string>);
5438
+ /**
5439
+ * The HTTP status code of the response
5440
+ */
5441
+ statusCode: number;
5442
+ /**
5443
+ * The type of error
5444
+ */
5445
+ error: string;
5446
+ };
5447
+
4877
5448
  type NextPageToken = {
4878
5449
  /**
4879
5450
  * 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.
@@ -4881,4 +5452,64 @@ type NextPageToken = {
4881
5452
  nextPageToken?: string;
4882
5453
  };
4883
5454
 
4884
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, 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, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, GlacierApiUsageMetricsService, HealthCheckService, HistoricalReward, ImageAsset, 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, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, 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, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5455
+ type NotFound = {
5456
+ /**
5457
+ * The error message describing the reason for the exception
5458
+ */
5459
+ message: (string | Array<string>);
5460
+ /**
5461
+ * The HTTP status code of the response
5462
+ */
5463
+ statusCode: number;
5464
+ /**
5465
+ * The type of error
5466
+ */
5467
+ error: string;
5468
+ };
5469
+
5470
+ type ServiceUnavailable = {
5471
+ /**
5472
+ * The error message describing the reason for the exception
5473
+ */
5474
+ message: (string | Array<string>);
5475
+ /**
5476
+ * The HTTP status code of the response
5477
+ */
5478
+ statusCode: number;
5479
+ /**
5480
+ * The type of error
5481
+ */
5482
+ error: string;
5483
+ };
5484
+
5485
+ type TooManyRequests = {
5486
+ /**
5487
+ * The error message describing the reason for the exception
5488
+ */
5489
+ message: (string | Array<string>);
5490
+ /**
5491
+ * The HTTP status code of the response
5492
+ */
5493
+ statusCode: number;
5494
+ /**
5495
+ * The type of error
5496
+ */
5497
+ error: string;
5498
+ };
5499
+
5500
+ type Unauthorized = {
5501
+ /**
5502
+ * The error message describing the reason for the exception
5503
+ */
5504
+ message: (string | Array<string>);
5505
+ /**
5506
+ * The HTTP status code of the response
5507
+ */
5508
+ statusCode: number;
5509
+ /**
5510
+ * The type of error
5511
+ */
5512
+ error: string;
5513
+ };
5514
+
5515
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, 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, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, 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, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, 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 };