@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.f0743b0.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 (136) hide show
  1. package/dist/index.d.ts +1372 -602
  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/ListErc1155BalancesResponse.d.ts +5 -0
  36. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  37. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  38. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  39. package/esm/generated/models/LogsFormat.d.ts +1 -1
  40. package/esm/generated/models/Metric.d.ts +14 -0
  41. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  42. package/esm/generated/models/Network.d.ts +3 -1
  43. package/esm/generated/models/Network.js +1 -1
  44. package/esm/generated/models/NotFound.d.ts +16 -0
  45. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  46. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  47. package/esm/generated/models/PChainTransactionType.js +1 -1
  48. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  49. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  50. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  51. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  52. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  53. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  54. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  55. package/esm/generated/models/RequestType.d.ts +2 -2
  56. package/esm/generated/models/RequestType.js +1 -1
  57. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  58. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  59. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  60. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  61. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  62. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  63. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  64. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  65. package/esm/generated/models/Subnet.d.ts +13 -0
  66. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  67. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  68. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  69. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  70. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  71. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  72. package/esm/generated/models/TransactionDirectionType.js +1 -0
  73. package/esm/generated/models/Unauthorized.d.ts +16 -0
  74. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  75. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
  76. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
  77. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
  78. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  79. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  80. package/esm/generated/models/XChainId.d.ts +1 -0
  81. package/esm/generated/models/XChainId.js +1 -1
  82. package/esm/generated/services/DataApiUsageMetricsService.d.ts +204 -0
  83. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  84. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  85. package/esm/generated/services/EvmBalancesService.js +1 -1
  86. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  87. package/esm/generated/services/EvmBlocksService.js +1 -1
  88. package/esm/generated/services/EvmChainsService.d.ts +86 -8
  89. package/esm/generated/services/EvmChainsService.js +1 -1
  90. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  91. package/esm/generated/services/EvmContractsService.js +1 -1
  92. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  93. package/esm/generated/services/EvmTransactionsService.js +1 -1
  94. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  95. package/esm/generated/services/HealthCheckService.js +1 -1
  96. package/esm/generated/services/NfTsService.d.ts +6 -6
  97. package/esm/generated/services/NfTsService.js +1 -1
  98. package/esm/generated/services/OperationsService.d.ts +2 -2
  99. package/esm/generated/services/OperationsService.js +1 -1
  100. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  101. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  102. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  103. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  104. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  105. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  106. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  107. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  108. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  109. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  110. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  111. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  112. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  113. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  114. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  115. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  116. package/esm/generated/services/TeleporterService.d.ts +34 -6
  117. package/esm/generated/services/TeleporterService.js +1 -1
  118. package/esm/generated/services/WebhooksService.d.ts +10 -10
  119. package/esm/generated/services/WebhooksService.js +1 -1
  120. package/esm/index.d.ts +30 -9
  121. package/esm/index.js +1 -1
  122. package/package.json +2 -2
  123. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  124. package/esm/generated/models/GlacierApiFeature.js +0 -1
  125. package/esm/generated/models/NetworkType.d.ts +0 -6
  126. package/esm/generated/models/NetworkType.js +0 -1
  127. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  128. package/esm/generated/models/PrimaryNetwork.js +0 -1
  129. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  130. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  131. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  132. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  133. package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
  134. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
  135. package/esm/generated/services/RpcService.d.ts +0 -25
  136. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,489 @@ 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 Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet",
155
+ DEVNET = "devnet"
156
+ }
157
+
158
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum RpcUsageMetricsGroupByEnum {
167
+ RPC_METHOD = "rpcMethod",
168
+ RESPONSE_CODE = "responseCode",
169
+ RL_BYPASS_TOKEN = "rlBypassToken"
170
+ }
171
+
172
+ declare enum SubnetRpcTimeIntervalGranularity {
173
+ HOURLY = "hourly",
174
+ DAILY = "daily",
175
+ WEEKLY = "weekly",
176
+ MONTHLY = "monthly"
177
+ }
178
+
179
+ type RpcUsageMetricsValueAggregated = {
180
+ /**
181
+ * The total number of requests
182
+ */
183
+ totalRequests: number;
184
+ /**
185
+ * The number of API credits used
186
+ */
187
+ apiCreditsUsed: number;
188
+ /**
189
+ * The number of requests per second
190
+ */
191
+ requestsPerSecond: number;
192
+ /**
193
+ * The success rate percentage
194
+ */
195
+ successRatePercent: number;
196
+ /**
197
+ * The median response time in milliseconds
198
+ */
199
+ medianResponseTimeMsecs: number;
200
+ /**
201
+ * The number of invalid requests
202
+ */
203
+ invalidRequests: number;
204
+ /**
205
+ * The number of API credits wasted on invalid requests
206
+ */
207
+ apiCreditsWasted: number;
208
+ /**
209
+ * Column name used for data aggregation
210
+ */
211
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
212
+ /**
213
+ * The value of the column used for data aggregation
214
+ */
215
+ groupValue?: (string | number);
216
+ };
217
+ declare namespace RpcUsageMetricsValueAggregated {
218
+ /**
219
+ * Column name used for data aggregation
220
+ */
221
+ enum groupedBy {
222
+ RPC_METHOD = "rpcMethod",
223
+ RESPONSE_CODE = "responseCode",
224
+ RL_BYPASS_TOKEN = "rlBypassToken",
225
+ NONE = "None"
226
+ }
227
+ }
228
+
229
+ type RpcMetrics = {
230
+ /**
231
+ * The timestamp of the metrics value
232
+ */
233
+ timestamp: number;
234
+ /**
235
+ * The metrics values for the timestamp
236
+ */
237
+ values: Array<RpcUsageMetricsValueAggregated>;
238
+ };
239
+
240
+ type SubnetRpcUsageMetricsResponseDTO = {
241
+ /**
242
+ * Duration in which the metrics value is aggregated
243
+ */
244
+ aggregateDuration: string;
245
+ /**
246
+ * Metrics values
247
+ */
248
+ metrics: Array<RpcMetrics>;
249
+ /**
250
+ * ChainId for which the metrics are aggregated
251
+ */
252
+ chainId: string;
253
+ };
254
+
255
+ declare enum TimeIntervalGranularityExtended {
256
+ MINUTE = "minute",
257
+ HOURLY = "hourly",
258
+ DAILY = "daily",
259
+ WEEKLY = "weekly",
260
+ MONTHLY = "monthly"
261
+ }
262
+
263
+ declare enum UsageMetricsGroupByEnum {
264
+ REQUEST_PATH = "requestPath",
265
+ RESPONSE_CODE = "responseCode",
266
+ CHAIN_ID = "chainId",
267
+ API_KEY_ID = "apiKeyId",
268
+ REQUEST_TYPE = "requestType"
269
+ }
270
+
271
+ type UsageMetricsValueDTO = {
272
+ /**
273
+ * Column name used for data aggregation
274
+ */
275
+ groupedBy: UsageMetricsValueDTO.groupedBy;
276
+ /**
277
+ * The value of the column used for data aggregation
278
+ */
279
+ groupValue?: (string | number);
280
+ /**
281
+ * The total number of requests
282
+ */
283
+ totalRequests: number;
284
+ /**
285
+ * The number of requests per second
286
+ */
287
+ requestsPerSecond: number;
288
+ /**
289
+ * The success rate percentage
290
+ */
291
+ successRatePercent: number;
292
+ /**
293
+ * The median response time in milliseconds
294
+ */
295
+ medianResponseTimeMsecs: number;
296
+ /**
297
+ * The number of invalid requests
298
+ */
299
+ invalidRequests: number;
300
+ /**
301
+ * The number of API credits used
302
+ */
303
+ apiCreditsUsed: number;
304
+ /**
305
+ * The number of API credits wasted on invalid requests
306
+ */
307
+ apiCreditsWasted: number;
308
+ };
309
+ declare namespace UsageMetricsValueDTO {
310
+ /**
311
+ * Column name used for data aggregation
312
+ */
313
+ enum groupedBy {
314
+ REQUEST_PATH = "requestPath",
315
+ RESPONSE_CODE = "responseCode",
316
+ CHAIN_ID = "chainId",
317
+ API_KEY_ID = "apiKeyId",
318
+ REQUEST_TYPE = "requestType",
319
+ NONE = "None"
320
+ }
321
+ }
322
+
323
+ type Metric = {
324
+ /**
325
+ * The timestamp of the metrics value
326
+ */
327
+ timestamp: number;
328
+ /**
329
+ * The metrics values for the timestamp
330
+ */
331
+ values: Array<UsageMetricsValueDTO>;
332
+ };
333
+
334
+ type UsageMetricsResponseDTO = {
335
+ /**
336
+ * Duration in which the metrics value is aggregated
337
+ */
338
+ aggregateDuration: string;
339
+ /**
340
+ * Org ID for which the metrics are aggregated
341
+ */
342
+ orgId: string;
343
+ /**
344
+ * Metrics values
345
+ */
346
+ metrics: Array<Metric>;
347
+ };
348
+
349
+ declare class DataApiUsageMetricsService {
350
+ readonly httpRequest: BaseHttpRequest;
351
+ constructor(httpRequest: BaseHttpRequest);
352
+ /**
353
+ * Get usage metrics for the Data API
354
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
355
+ * @returns UsageMetricsResponseDTO Successful response
356
+ * @throws ApiError
357
+ */
358
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
359
+ /**
360
+ * Organization ID to fetch usage metrics for
361
+ */
362
+ orgId?: string;
363
+ /**
364
+ * 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.
365
+ */
366
+ startTimestamp?: number;
367
+ /**
368
+ * 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.
369
+ */
370
+ endTimestamp?: number;
371
+ /**
372
+ * Time interval granularity for data aggregation
373
+ */
374
+ timeInterval?: TimeIntervalGranularityExtended;
375
+ /**
376
+ * Query param for the criterion used for grouping metrics
377
+ */
378
+ groupBy?: UsageMetricsGroupByEnum;
379
+ /**
380
+ * Filter data by chain ID.
381
+ */
382
+ chainId?: string;
383
+ /**
384
+ * Filter data by response status code.
385
+ */
386
+ responseCode?: string;
387
+ /**
388
+ * Filter data by request type.
389
+ */
390
+ requestType?: 'data' | 'rpc';
391
+ /**
392
+ * Filter data by API key ID.
393
+ */
394
+ apiKeyId?: string;
395
+ /**
396
+ * Filter data by request path.
397
+ */
398
+ requestPath?: string;
399
+ }): CancelablePromise<UsageMetricsResponseDTO>;
400
+ /**
401
+ * Get logs for requests made by client
402
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
403
+ * @returns LogsResponseDTO Successful response
404
+ * @throws ApiError
405
+ */
406
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
407
+ /**
408
+ * Organization ID to fetch usage metrics for
409
+ */
410
+ orgId?: string;
411
+ /**
412
+ * 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.
413
+ */
414
+ startTimestamp?: number;
415
+ /**
416
+ * 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.
417
+ */
418
+ endTimestamp?: number;
419
+ /**
420
+ * Filter data by chain ID.
421
+ */
422
+ chainId?: string;
423
+ /**
424
+ * Filter data by response status code.
425
+ */
426
+ responseCode?: string;
427
+ /**
428
+ * Filter data by request type.
429
+ */
430
+ requestType?: 'data' | 'rpc';
431
+ /**
432
+ * Filter data by API key ID.
433
+ */
434
+ apiKeyId?: string;
435
+ /**
436
+ * Filter data by request path.
437
+ */
438
+ requestPath?: string;
439
+ /**
440
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
441
+ */
442
+ pageToken?: string;
443
+ /**
444
+ * The maximum number of items to return.
445
+ */
446
+ pageSize?: number;
447
+ }): CancelablePromise<LogsResponseDTO>;
448
+ /**
449
+ * Get usage metrics for the Subnet RPC
450
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
451
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
452
+ * @throws ApiError
453
+ */
454
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
455
+ /**
456
+ * Time interval granularity for data aggregation for subnet
457
+ * rpc metrics
458
+ */
459
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
460
+ /**
461
+ * 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.
462
+ */
463
+ startTimestamp?: number;
464
+ /**
465
+ * 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.
466
+ */
467
+ endTimestamp?: number;
468
+ /**
469
+ * Query param for the criterion used for grouping metrics
470
+ */
471
+ groupBy?: RpcUsageMetricsGroupByEnum;
472
+ /**
473
+ * Filter data by chain ID.
474
+ */
475
+ chainId?: string;
476
+ /**
477
+ * Filter data by response status code.
478
+ */
479
+ responseCode?: string;
480
+ /**
481
+ * Filter data by RPC method.
482
+ */
483
+ rpcMethod?: string;
484
+ /**
485
+ * Filter data by Rl Bypass API Token.
486
+ */
487
+ rlBypassApiToken?: string;
488
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
489
+ /**
490
+ * Get usage metrics for the Primary Network RPC
491
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
492
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
493
+ * @throws ApiError
494
+ */
495
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
496
+ /**
497
+ * Either mainnet or testnet/fuji.
498
+ */
499
+ network: Network;
500
+ /**
501
+ * Time interval granularity for data aggregation for subnet
502
+ * rpc metrics
503
+ */
504
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
505
+ /**
506
+ * 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.
507
+ */
508
+ startTimestamp?: number;
509
+ /**
510
+ * 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.
511
+ */
512
+ endTimestamp?: number;
513
+ /**
514
+ * Query param for the criterion used for grouping metrics
515
+ */
516
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
517
+ /**
518
+ * Filter data by response status code.
519
+ */
520
+ responseCode?: string;
521
+ /**
522
+ * Filter data by request path.
523
+ */
524
+ requestPath?: string;
525
+ /**
526
+ * Filter data by Country.
527
+ */
528
+ country?: string;
529
+ /**
530
+ * Filter data by Continent.
531
+ */
532
+ continent?: string;
533
+ /**
534
+ * Filter data by User Agent.
535
+ */
536
+ userAgent?: string;
537
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
538
+ }
539
+
57
540
  declare class DefaultService {
58
541
  readonly httpRequest: BaseHttpRequest;
59
542
  constructor(httpRequest: BaseHttpRequest);
@@ -250,6 +733,10 @@ type ListErc1155BalancesResponse = {
250
733
  * 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.
251
734
  */
252
735
  nextPageToken?: string;
736
+ /**
737
+ * The native token balance for the address.
738
+ */
739
+ nativeTokenBalance: NativeTokenBalance;
253
740
  /**
254
741
  * The list of ERC-1155 token balances for the address.
255
742
  */
@@ -294,11 +781,22 @@ type Erc20TokenBalance = {
294
781
  * The monetary value of the balance, if a price is available for the token.
295
782
  */
296
783
  balanceValue?: Money;
784
+ /**
785
+ * 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.
786
+ */
787
+ tokenReputation: Erc20TokenBalance.tokenReputation | null;
297
788
  };
298
789
  declare namespace Erc20TokenBalance {
299
790
  enum ercType {
300
791
  ERC_20 = "ERC-20"
301
792
  }
793
+ /**
794
+ * 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.
795
+ */
796
+ enum tokenReputation {
797
+ MALICIOUS = "Malicious",
798
+ BENIGN = "Benign"
799
+ }
302
800
  }
303
801
 
304
802
  type ListErc20BalancesResponse = {
@@ -306,6 +804,10 @@ type ListErc20BalancesResponse = {
306
804
  * 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.
307
805
  */
308
806
  nextPageToken?: string;
807
+ /**
808
+ * The native token balance for the address.
809
+ */
810
+ nativeTokenBalance: NativeTokenBalance;
309
811
  /**
310
812
  * The list of ERC-20 token balances for the address.
311
813
  */
@@ -317,6 +819,10 @@ type ListErc721BalancesResponse = {
317
819
  * 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.
318
820
  */
319
821
  nextPageToken?: string;
822
+ /**
823
+ * The native token balance for the address.
824
+ */
825
+ nativeTokenBalance: NativeTokenBalance;
320
826
  /**
321
827
  * The list of ERC-721 token balances for the address.
322
828
  */
@@ -331,12 +837,12 @@ declare class EvmBalancesService {
331
837
  * Gets native token balance of a wallet address.
332
838
  *
333
839
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
334
- * @returns GetNativeBalanceResponse
840
+ * @returns GetNativeBalanceResponse Successful response
335
841
  * @throws ApiError
336
842
  */
337
843
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
338
844
  /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
845
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
340
846
  */
341
847
  chainId: string;
342
848
  /**
@@ -359,12 +865,12 @@ declare class EvmBalancesService {
359
865
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
360
866
  *
361
867
  * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
362
- * @returns ListErc20BalancesResponse
868
+ * @returns ListErc20BalancesResponse Successful response
363
869
  * @throws ApiError
364
870
  */
365
871
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
366
872
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
873
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
368
874
  */
369
875
  chainId: string;
370
876
  /**
@@ -401,12 +907,12 @@ declare class EvmBalancesService {
401
907
  * Lists ERC-721 token balances of a wallet address.
402
908
  *
403
909
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
404
- * @returns ListErc721BalancesResponse
910
+ * @returns ListErc721BalancesResponse Successful response
405
911
  * @throws ApiError
406
912
  */
407
913
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
408
914
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
915
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
410
916
  */
411
917
  chainId: string;
412
918
  /**
@@ -433,12 +939,12 @@ declare class EvmBalancesService {
433
939
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
940
  *
435
941
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
436
- * @returns ListErc1155BalancesResponse
942
+ * @returns ListErc1155BalancesResponse Successful response
437
943
  * @throws ApiError
438
944
  */
439
945
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
440
946
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
947
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
442
948
  */
443
949
  chainId: string;
444
950
  /**
@@ -467,12 +973,12 @@ declare class EvmBalancesService {
467
973
  * Lists ERC-721 and ERC-1155 token balances of a wallet address.
468
974
  *
469
975
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
470
- * @returns ListCollectibleBalancesResponse
976
+ * @returns ListCollectibleBalancesResponse Successful response
471
977
  * @throws ApiError
472
978
  */
473
979
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
980
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
981
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
982
  */
477
983
  chainId: string;
478
984
  /**
@@ -495,6 +1001,10 @@ declare class EvmBalancesService {
495
1001
  }
496
1002
 
497
1003
  type GetEvmBlockResponse = {
1004
+ /**
1005
+ * The EVM chain ID on which the block was created.
1006
+ */
1007
+ chainId: string;
498
1008
  /**
499
1009
  * The block number on the chain.
500
1010
  */
@@ -539,6 +1049,10 @@ type GetEvmBlockResponse = {
539
1049
  };
540
1050
 
541
1051
  type EvmBlock = {
1052
+ /**
1053
+ * The EVM chain ID on which the block was created.
1054
+ */
1055
+ chainId: string;
542
1056
  /**
543
1057
  * The block number on the chain.
544
1058
  */
@@ -593,15 +1107,35 @@ type ListEvmBlocksResponse = {
593
1107
  declare class EvmBlocksService {
594
1108
  readonly httpRequest: BaseHttpRequest;
595
1109
  constructor(httpRequest: BaseHttpRequest);
1110
+ /**
1111
+ * List latest blocks across all supported EVM chains
1112
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1113
+ * @returns ListEvmBlocksResponse Successful response
1114
+ * @throws ApiError
1115
+ */
1116
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1117
+ /**
1118
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1119
+ */
1120
+ pageToken?: string;
1121
+ /**
1122
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1123
+ */
1124
+ pageSize?: number;
1125
+ /**
1126
+ * Either mainnet or testnet/fuji.
1127
+ */
1128
+ network?: Network;
1129
+ }): CancelablePromise<ListEvmBlocksResponse>;
596
1130
  /**
597
1131
  * List latest blocks
598
1132
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
599
- * @returns ListEvmBlocksResponse
1133
+ * @returns ListEvmBlocksResponse Successful response
600
1134
  * @throws ApiError
601
1135
  */
602
1136
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
1137
  /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1138
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
1139
  */
606
1140
  chainId: string;
607
1141
  /**
@@ -616,12 +1150,12 @@ declare class EvmBlocksService {
616
1150
  /**
617
1151
  * Get block
618
1152
  * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse
1153
+ * @returns GetEvmBlockResponse Successful response
620
1154
  * @throws ApiError
621
1155
  */
622
1156
  getBlock({ chainId, blockId, }: {
623
1157
  /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1158
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
1159
  */
626
1160
  chainId: string;
627
1161
  /**
@@ -631,6 +1165,12 @@ declare class EvmBlocksService {
631
1165
  }): CancelablePromise<GetEvmBlockResponse>;
632
1166
  }
633
1167
 
1168
+ declare enum ApiFeature {
1169
+ NFT_INDEXING = "nftIndexing",
1170
+ WEBHOOKS = "webhooks",
1171
+ TELEPORTER = "teleporter"
1172
+ }
1173
+
634
1174
  /**
635
1175
  * 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
1176
  */
@@ -647,113 +1187,294 @@ type NetworkToken = {
647
1187
  /**
648
1188
  * The contract symbol.
649
1189
  */
650
- symbol: string;
1190
+ symbol: string;
1191
+ /**
1192
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1193
+ */
1194
+ decimals: number;
1195
+ /**
1196
+ * The logo uri for the address.
1197
+ */
1198
+ logoUri?: string;
1199
+ description?: string;
1200
+ };
1201
+
1202
+ type UtilityAddresses = {
1203
+ multicall?: string;
1204
+ };
1205
+
1206
+ declare enum VmName {
1207
+ EVM = "EVM",
1208
+ BITCOIN = "BITCOIN",
1209
+ ETHEREUM = "ETHEREUM"
1210
+ }
1211
+
1212
+ type GetChainResponse = {
1213
+ chainId: string;
1214
+ status: ChainStatus;
1215
+ chainName: string;
1216
+ description: string;
1217
+ platformChainId?: string;
1218
+ subnetId?: string;
1219
+ vmId?: string;
1220
+ vmName: VmName;
1221
+ explorerUrl?: string;
1222
+ rpcUrl: string;
1223
+ wsUrl?: string;
1224
+ isTestnet: boolean;
1225
+ utilityAddresses?: UtilityAddresses;
1226
+ networkToken: NetworkToken;
1227
+ chainLogoUri?: string;
1228
+ private?: boolean;
1229
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1230
+ };
1231
+
1232
+ type ChainInfo = {
1233
+ chainId: string;
1234
+ status: ChainStatus;
1235
+ chainName: string;
1236
+ description: string;
1237
+ platformChainId?: string;
1238
+ subnetId?: string;
1239
+ vmId?: string;
1240
+ vmName: VmName;
1241
+ explorerUrl?: string;
1242
+ rpcUrl: string;
1243
+ wsUrl?: string;
1244
+ isTestnet: boolean;
1245
+ utilityAddresses?: UtilityAddresses;
1246
+ networkToken: NetworkToken;
1247
+ chainLogoUri?: string;
1248
+ private?: boolean;
1249
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1250
+ };
1251
+
1252
+ type ListAddressChainsResponse = {
1253
+ indexedChains?: Array<ChainInfo>;
1254
+ unindexedChains?: Array<string>;
1255
+ };
1256
+
1257
+ type ListChainsResponse = {
1258
+ chains: Array<ChainInfo>;
1259
+ };
1260
+
1261
+ /**
1262
+ * 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.
1263
+ */
1264
+ declare enum TransactionMethodType {
1265
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1266
+ CONTRACT_CALL = "CONTRACT_CALL",
1267
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1268
+ }
1269
+
1270
+ type Method = {
1271
+ callType: TransactionMethodType;
1272
+ /**
1273
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1274
+ */
1275
+ methodHash: string;
1276
+ /**
1277
+ * 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'.
1278
+ */
1279
+ methodName?: string;
1280
+ };
1281
+
1282
+ type RichAddress = {
1283
+ /**
1284
+ * The contract name.
1285
+ */
1286
+ name?: string;
1287
+ /**
1288
+ * The contract symbol.
1289
+ */
1290
+ symbol?: string;
1291
+ /**
1292
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1293
+ */
1294
+ decimals?: number;
1295
+ /**
1296
+ * The logo uri for the address.
1297
+ */
1298
+ logoUri?: string;
1299
+ /**
1300
+ * A wallet or contract address in mixed-case checksum encoding.
1301
+ */
1302
+ address: string;
1303
+ };
1304
+
1305
+ type NativeTransaction = {
1306
+ /**
1307
+ * The block number on the chain.
1308
+ */
1309
+ blockNumber: string;
1310
+ /**
1311
+ * The block finality timestamp.
1312
+ */
1313
+ blockTimestamp: number;
1314
+ /**
1315
+ * The block hash identifier.
1316
+ */
1317
+ blockHash: string;
1318
+ /**
1319
+ * The EVM chain ID on which the transaction occured.
1320
+ */
1321
+ chainId: string;
1322
+ /**
1323
+ * The index at which the transaction occured in the block (0-indexed).
1324
+ */
1325
+ blockIndex: number;
1326
+ /**
1327
+ * The transaction hash identifier.
1328
+ */
1329
+ txHash: string;
1330
+ /**
1331
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1332
+ */
1333
+ txStatus: string;
1334
+ /**
1335
+ * The transaction type.
1336
+ */
1337
+ txType: number;
1338
+ /**
1339
+ * The gas limit set for the transaction.
1340
+ */
1341
+ gasLimit: string;
1342
+ /**
1343
+ * The amount of gas used.
1344
+ */
1345
+ gasUsed: string;
651
1346
  /**
652
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1347
+ * The gas price denominated by the number of decimals of the native token.
653
1348
  */
654
- decimals: number;
1349
+ gasPrice: string;
655
1350
  /**
656
- * The logo uri for the address.
1351
+ * The nonce used by the sender of the transaction.
657
1352
  */
658
- logoUri?: string;
659
- description?: string;
660
- };
661
-
662
- type UtilityAddresses = {
663
- multicall?: string;
664
- };
665
-
666
- declare enum VmName {
667
- EVM = "EVM",
668
- BITCOIN = "BITCOIN",
669
- ETHEREUM = "ETHEREUM"
670
- }
671
-
672
- type GetChainResponse = {
673
- chainId: string;
674
- status: ChainStatus;
675
- chainName: string;
676
- description: string;
677
- platformChainId?: string;
678
- subnetId?: string;
679
- vmId?: string;
680
- vmName: VmName;
681
- explorerUrl?: string;
682
- rpcUrl: string;
683
- wsUrl?: string;
684
- isTestnet: boolean;
685
- utilityAddresses?: UtilityAddresses;
686
- networkToken: NetworkToken;
687
- chainLogoUri?: string;
688
- private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
690
- };
691
-
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
- type ChainInfo = {
698
- chainId: string;
699
- status: ChainStatus;
700
- chainName: string;
701
- description: string;
702
- platformChainId?: string;
703
- subnetId?: string;
704
- vmId?: string;
705
- vmName: VmName;
706
- explorerUrl?: string;
707
- rpcUrl: string;
708
- wsUrl?: string;
709
- isTestnet: boolean;
710
- utilityAddresses?: UtilityAddresses;
711
- networkToken: NetworkToken;
712
- chainLogoUri?: string;
713
- private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1353
+ nonce: string;
1354
+ from: RichAddress;
1355
+ to: RichAddress;
1356
+ method?: Method;
1357
+ value: string;
715
1358
  };
716
1359
 
717
- type ListChainsResponse = {
718
- chains: Array<ChainInfo>;
1360
+ type ListNativeTransactionsResponse = {
1361
+ /**
1362
+ * 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.
1363
+ */
1364
+ nextPageToken?: string;
1365
+ transactions: Array<NativeTransaction>;
719
1366
  };
720
1367
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
1368
+ declare enum TransactionStatus {
1369
+ FAILED = "failed",
1370
+ SUCCESS = "success"
724
1371
  }
725
1372
 
726
1373
  declare class EvmChainsService {
727
1374
  readonly httpRequest: BaseHttpRequest;
728
1375
  constructor(httpRequest: BaseHttpRequest);
1376
+ /**
1377
+ * List all chains associated with a given address
1378
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1379
+ * @returns ListAddressChainsResponse Successful response
1380
+ * @throws ApiError
1381
+ */
1382
+ listAddressChains({ address, }: {
1383
+ /**
1384
+ * A wallet address.
1385
+ */
1386
+ address: string;
1387
+ }): CancelablePromise<ListAddressChainsResponse>;
729
1388
  /**
730
1389
  * List chains
731
1390
  * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse
1391
+ * @returns ListChainsResponse Successful response
733
1392
  * @throws ApiError
734
1393
  */
735
1394
  supportedChains({ network, feature, }: {
736
1395
  /**
737
- * mainnet or testnet.
1396
+ * Either mainnet or testnet/fuji.
738
1397
  */
739
- network?: NetworkType;
1398
+ network?: Network;
740
1399
  /**
741
1400
  * Filter by feature.
742
1401
  */
743
- feature?: GlacierApiFeature;
1402
+ feature?: ApiFeature;
744
1403
  }): CancelablePromise<ListChainsResponse>;
745
1404
  /**
746
1405
  * Get chain information
747
1406
  * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse
1407
+ * @returns GetChainResponse Successful response
749
1408
  * @throws ApiError
750
1409
  */
751
1410
  getChainInfo({ chainId, }: {
752
1411
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1412
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
1413
  */
755
1414
  chainId: string;
756
1415
  }): CancelablePromise<GetChainResponse>;
1416
+ /**
1417
+ * @deprecated
1418
+ * **[Deprecated]** 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.
1419
+ *
1420
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1421
+ * @returns ListAddressChainsResponse Successful response
1422
+ * @throws ApiError
1423
+ */
1424
+ getAddressChains({ address, }: {
1425
+ /**
1426
+ * A wallet address.
1427
+ */
1428
+ address: string;
1429
+ }): CancelablePromise<ListAddressChainsResponse>;
1430
+ /**
1431
+ * @deprecated
1432
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1433
+ *
1434
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1435
+ * @returns ListNativeTransactionsResponse Successful response
1436
+ * @throws ApiError
1437
+ */
1438
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1439
+ /**
1440
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1441
+ */
1442
+ pageToken?: string;
1443
+ /**
1444
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1445
+ */
1446
+ pageSize?: number;
1447
+ /**
1448
+ * Either mainnet or testnet/fuji.
1449
+ */
1450
+ network?: Network;
1451
+ /**
1452
+ * A status filter for listed transactions.
1453
+ */
1454
+ status?: TransactionStatus;
1455
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1456
+ /**
1457
+ * @deprecated
1458
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1459
+ *
1460
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1461
+ * @returns ListEvmBlocksResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1465
+ /**
1466
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1467
+ */
1468
+ pageToken?: string;
1469
+ /**
1470
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1471
+ */
1472
+ pageSize?: number;
1473
+ /**
1474
+ * Either mainnet or testnet/fuji.
1475
+ */
1476
+ network?: Network;
1477
+ }): CancelablePromise<ListEvmBlocksResponse>;
757
1478
  }
758
1479
 
759
1480
  type ImageAsset = {
@@ -1040,12 +1761,12 @@ declare class EvmContractsService {
1040
1761
  /**
1041
1762
  * Get contract metadata
1042
1763
  * Gets metadata about the contract at the given address.
1043
- * @returns any
1764
+ * @returns any Successful response
1044
1765
  * @throws ApiError
1045
1766
  */
1046
1767
  getContractMetadata({ chainId, address, }: {
1047
1768
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1769
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1770
  */
1050
1771
  chainId: string;
1051
1772
  /**
@@ -1056,12 +1777,12 @@ declare class EvmContractsService {
1056
1777
  /**
1057
1778
  * Update contract information
1058
1779
  * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
- * @returns UpdateContractResponse
1780
+ * @returns UpdateContractResponse Successful response
1060
1781
  * @throws ApiError
1061
1782
  */
1062
1783
  updateContractInfo({ chainId, address, requestBody, }: {
1063
1784
  /**
1064
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1785
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
1786
  */
1066
1787
  chainId: string;
1067
1788
  /**
@@ -1088,29 +1809,6 @@ declare namespace Erc1155Token {
1088
1809
  }
1089
1810
  }
1090
1811
 
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
1812
  type Erc1155TransferDetails = {
1115
1813
  from: RichAddress;
1116
1814
  to: RichAddress;
@@ -1195,27 +1893,6 @@ type Erc721TransferDetails = {
1195
1893
  erc721Token: Erc721Token;
1196
1894
  };
1197
1895
 
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
1896
  type FullNativeTransactionDetails = {
1220
1897
  /**
1221
1898
  * The block number on the chain.
@@ -1229,6 +1906,10 @@ type FullNativeTransactionDetails = {
1229
1906
  * The block hash identifier.
1230
1907
  */
1231
1908
  blockHash: string;
1909
+ /**
1910
+ * The EVM chain ID on which the transaction occured.
1911
+ */
1912
+ chainId: string;
1232
1913
  /**
1233
1914
  * The index at which the transaction occured in the block (0-indexed).
1234
1915
  */
@@ -1309,6 +1990,24 @@ type NetworkTokenDetails = {
1309
1990
  historicalPrice?: Money;
1310
1991
  };
1311
1992
 
1993
+ declare enum TransactionDirectionType {
1994
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
1995
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
1996
+ }
1997
+
1998
+ type TeleporterMessageInfo = {
1999
+ teleporterMessageId: string;
2000
+ direction: TransactionDirectionType;
2001
+ /**
2002
+ * chain id of the source chain. valid only for destination transactions
2003
+ */
2004
+ sourceChainId?: Record<string, any>;
2005
+ /**
2006
+ * chain id of the destination chain. valid only for source transactions
2007
+ */
2008
+ destinationChainId?: Record<string, any>;
2009
+ };
2010
+
1312
2011
  type GetTransactionResponse = {
1313
2012
  /**
1314
2013
  * The list of ERC-20 transfers.
@@ -1328,6 +2027,10 @@ type GetTransactionResponse = {
1328
2027
  internalTransactions?: Array<InternalTransactionDetails>;
1329
2028
  networkTokenDetails: NetworkTokenDetails;
1330
2029
  nativeTransaction: FullNativeTransactionDetails;
2030
+ /**
2031
+ * Corresponding teleporter message info if available.
2032
+ */
2033
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
2034
  };
1332
2035
 
1333
2036
  type ListContractsResponse = {
@@ -1419,114 +2122,55 @@ type Erc721Transfer = {
1419
2122
  * The transaction hash identifier.
1420
2123
  */
1421
2124
  txHash: string;
1422
- from: RichAddress;
1423
- to: RichAddress;
1424
- logIndex: number;
1425
- erc721Token: Erc721Token;
1426
- };
1427
-
1428
- type ListErc721TransactionsResponse = {
1429
- /**
1430
- * 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.
1431
- */
1432
- nextPageToken?: string;
1433
- transactions: Array<Erc721Transfer>;
1434
- };
1435
-
1436
- type InternalTransaction = {
1437
- /**
1438
- * The block number on the chain.
1439
- */
1440
- blockNumber: string;
1441
- /**
1442
- * The block finality timestamp.
1443
- */
1444
- blockTimestamp: number;
1445
- /**
1446
- * The block hash identifier.
1447
- */
1448
- blockHash: string;
1449
- /**
1450
- * The transaction hash identifier.
1451
- */
1452
- txHash: string;
1453
- from: RichAddress;
1454
- to: RichAddress;
1455
- internalTxType: InternalTransactionOpCall;
1456
- value: string;
1457
- /**
1458
- * True if the internal transaction was reverted.
1459
- */
1460
- isReverted: boolean;
1461
- gasUsed: string;
1462
- gasLimit: string;
1463
- };
1464
-
1465
- type ListInternalTransactionsResponse = {
1466
- /**
1467
- * 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.
1468
- */
1469
- nextPageToken?: string;
1470
- transactions: Array<InternalTransaction>;
1471
- };
1472
-
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;
2125
+ from: RichAddress;
2126
+ to: RichAddress;
2127
+ logIndex: number;
2128
+ erc721Token: Erc721Token;
2129
+ };
2130
+
2131
+ type ListErc721TransactionsResponse = {
1498
2132
  /**
1499
- * The transaction type.
2133
+ * 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.
1500
2134
  */
1501
- txType: number;
2135
+ nextPageToken?: string;
2136
+ transactions: Array<Erc721Transfer>;
2137
+ };
2138
+
2139
+ type InternalTransaction = {
1502
2140
  /**
1503
- * The gas limit set for the transaction.
2141
+ * The block number on the chain.
1504
2142
  */
1505
- gasLimit: string;
2143
+ blockNumber: string;
1506
2144
  /**
1507
- * The amount of gas used.
2145
+ * The block finality timestamp.
1508
2146
  */
1509
- gasUsed: string;
2147
+ blockTimestamp: number;
1510
2148
  /**
1511
- * The gas price denominated by the number of decimals of the native token.
2149
+ * The block hash identifier.
1512
2150
  */
1513
- gasPrice: string;
2151
+ blockHash: string;
1514
2152
  /**
1515
- * The nonce used by the sender of the transaction.
2153
+ * The transaction hash identifier.
1516
2154
  */
1517
- nonce: string;
2155
+ txHash: string;
1518
2156
  from: RichAddress;
1519
2157
  to: RichAddress;
1520
- method?: Method;
2158
+ internalTxType: InternalTransactionOpCall;
1521
2159
  value: string;
2160
+ /**
2161
+ * True if the internal transaction was reverted.
2162
+ */
2163
+ isReverted: boolean;
2164
+ gasUsed: string;
2165
+ gasLimit: string;
1522
2166
  };
1523
2167
 
1524
- type ListNativeTransactionsResponse = {
2168
+ type ListInternalTransactionsResponse = {
1525
2169
  /**
1526
2170
  * 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
2171
  */
1528
2172
  nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
2173
+ transactions: Array<InternalTransaction>;
1530
2174
  };
1531
2175
 
1532
2176
  type TransactionDetails = {
@@ -1573,23 +2217,42 @@ declare enum SortOrder {
1573
2217
  DESC = "desc"
1574
2218
  }
1575
2219
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2220
  declare class EvmTransactionsService {
1582
2221
  readonly httpRequest: BaseHttpRequest;
1583
2222
  constructor(httpRequest: BaseHttpRequest);
2223
+ /**
2224
+ * List the latest transactions across all supported EVM chains
2225
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2226
+ * @returns ListNativeTransactionsResponse Successful response
2227
+ * @throws ApiError
2228
+ */
2229
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2230
+ /**
2231
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2232
+ */
2233
+ pageToken?: string;
2234
+ /**
2235
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2236
+ */
2237
+ pageSize?: number;
2238
+ /**
2239
+ * Either mainnet or testnet/fuji.
2240
+ */
2241
+ network?: Network;
2242
+ /**
2243
+ * A status filter for listed transactions.
2244
+ */
2245
+ status?: TransactionStatus;
2246
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1584
2247
  /**
1585
2248
  * Get deployment transaction
1586
2249
  * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse
2250
+ * @returns GetTransactionResponse Successful response
1588
2251
  * @throws ApiError
1589
2252
  */
1590
2253
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2254
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2255
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
2256
  */
1594
2257
  chainId: string;
1595
2258
  /**
@@ -1604,12 +2267,12 @@ declare class EvmTransactionsService {
1604
2267
  /**
1605
2268
  * List deployed contracts
1606
2269
  * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse
2270
+ * @returns ListContractsResponse Successful response
1608
2271
  * @throws ApiError
1609
2272
  */
1610
2273
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
2274
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2275
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2276
  */
1614
2277
  chainId: string;
1615
2278
  /**
@@ -1628,12 +2291,12 @@ declare class EvmTransactionsService {
1628
2291
  /**
1629
2292
  * List ERC transfers
1630
2293
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse
2294
+ * @returns ListTransfersResponse Successful response
1632
2295
  * @throws ApiError
1633
2296
  */
1634
2297
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2298
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2299
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2300
  */
1638
2301
  chainId: string;
1639
2302
  /**
@@ -1662,12 +2325,12 @@ declare class EvmTransactionsService {
1662
2325
  * 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
2326
  *
1664
2327
  * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse
2328
+ * @returns ListTransactionDetailsResponse Successful response
1666
2329
  * @throws ApiError
1667
2330
  */
1668
2331
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
2332
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2333
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2334
  */
1672
2335
  chainId: string;
1673
2336
  /**
@@ -1698,12 +2361,12 @@ declare class EvmTransactionsService {
1698
2361
  /**
1699
2362
  * List native transactions
1700
2363
  * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse
2364
+ * @returns ListNativeTransactionsResponse Successful response
1702
2365
  * @throws ApiError
1703
2366
  */
1704
2367
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2368
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2369
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2370
  */
1708
2371
  chainId: string;
1709
2372
  /**
@@ -1730,12 +2393,12 @@ declare class EvmTransactionsService {
1730
2393
  /**
1731
2394
  * List ERC-20 transfers
1732
2395
  * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse
2396
+ * @returns ListErc20TransactionsResponse Successful response
1734
2397
  * @throws ApiError
1735
2398
  */
1736
2399
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
2400
  /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2401
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
2402
  */
1740
2403
  chainId: string;
1741
2404
  /**
@@ -1762,12 +2425,12 @@ declare class EvmTransactionsService {
1762
2425
  /**
1763
2426
  * List ERC-721 transfers
1764
2427
  * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse
2428
+ * @returns ListErc721TransactionsResponse Successful response
1766
2429
  * @throws ApiError
1767
2430
  */
1768
2431
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
2432
  /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2433
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
2434
  */
1772
2435
  chainId: string;
1773
2436
  /**
@@ -1794,12 +2457,12 @@ declare class EvmTransactionsService {
1794
2457
  /**
1795
2458
  * List ERC-1155 transfers
1796
2459
  * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse
2460
+ * @returns ListErc1155TransactionsResponse Successful response
1798
2461
  * @throws ApiError
1799
2462
  */
1800
2463
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
2464
  /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2465
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
2466
  */
1804
2467
  chainId: string;
1805
2468
  /**
@@ -1828,12 +2491,12 @@ declare class EvmTransactionsService {
1828
2491
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
2492
  *
1830
2493
  * 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
2494
+ * @returns ListInternalTransactionsResponse Successful response
1832
2495
  * @throws ApiError
1833
2496
  */
1834
2497
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
2498
  /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2499
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
2500
  */
1838
2501
  chainId: string;
1839
2502
  /**
@@ -1860,260 +2523,67 @@ declare class EvmTransactionsService {
1860
2523
  /**
1861
2524
  * Get transaction
1862
2525
  * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse
2526
+ * @returns GetTransactionResponse Successful response
1864
2527
  * @throws ApiError
1865
2528
  */
1866
2529
  getTransaction({ chainId, txHash, }: {
1867
2530
  /**
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.
2531
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
2532
  */
1902
2533
  chainId: string;
1903
2534
  /**
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
2066
- */
2067
- timeInterval?: TimeIntervalGranularityExtended;
2068
- /**
2069
- * Query param for the criterion used for grouping metrics
2535
+ * A transaction hash.
2070
2536
  */
2071
- groupBy?: UsageMetricsGroupByEnum;
2537
+ txHash: string;
2538
+ }): CancelablePromise<GetTransactionResponse>;
2539
+ /**
2540
+ * List transactions for a block
2541
+ * Lists the transactions that occured in a given block.
2542
+ * @returns ListNativeTransactionsResponse Successful response
2543
+ * @throws ApiError
2544
+ */
2545
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2072
2546
  /**
2073
- * Filter aggregated usage metrics by request path.
2547
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2074
2548
  */
2075
- requestPath?: string;
2549
+ chainId: string;
2076
2550
  /**
2077
- * Filter aggregated usage metrics by response status code.
2551
+ * A block identifier which is either a block number or the block hash.
2078
2552
  */
2079
- responseStatusCode?: string;
2553
+ blockId: string;
2080
2554
  /**
2081
- * Filter aggregated usage metrics by chain ID.
2555
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2082
2556
  */
2083
- chainId?: string;
2557
+ pageToken?: string;
2084
2558
  /**
2085
- * Filter aggregated usage metrics by API key ID.
2559
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2086
2560
  */
2087
- apiKeyId?: string;
2088
- }): CancelablePromise<UsageMetricsResponseDTO>;
2561
+ pageSize?: number;
2562
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2089
2563
  /**
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
2564
+ * List latest transactions
2565
+ * Lists the latest transactions. Filterable by status.
2566
+ * @returns ListNativeTransactionsResponse Successful response
2093
2567
  * @throws ApiError
2094
2568
  */
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;
2569
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2104
2570
  /**
2105
- * Query param for retrieving items before a specific timestamp.
2571
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2106
2572
  */
2107
- endTimestamp?: number;
2573
+ chainId: string;
2108
2574
  /**
2109
2575
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2110
2576
  */
2111
2577
  pageToken?: string;
2112
2578
  /**
2113
- * The maximum number of items to return.
2579
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2114
2580
  */
2115
2581
  pageSize?: number;
2116
- }): CancelablePromise<LogsResponseDTO>;
2582
+ /**
2583
+ * A status filter for listed transactions.
2584
+ */
2585
+ status?: TransactionStatus;
2586
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2117
2587
  }
2118
2588
 
2119
2589
  declare class HealthCheckService {
@@ -2124,7 +2594,7 @@ declare class HealthCheckService {
2124
2594
  * @returns any The Health Check is successful
2125
2595
  * @throws ApiError
2126
2596
  */
2127
- healthCheck(): CancelablePromise<{
2597
+ dataHealthCheck(): CancelablePromise<{
2128
2598
  status?: string;
2129
2599
  info?: Record<string, Record<string, string>> | null;
2130
2600
  error?: Record<string, Record<string, string>> | null;
@@ -2146,12 +2616,12 @@ declare class NfTsService {
2146
2616
  /**
2147
2617
  * Reindex NFT metadata
2148
2618
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2149
- * @returns any
2619
+ * @returns any Successful response
2150
2620
  * @throws ApiError
2151
2621
  */
2152
2622
  reindexNft({ chainId, address, tokenId, }: {
2153
2623
  /**
2154
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2624
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2155
2625
  */
2156
2626
  chainId: string;
2157
2627
  /**
@@ -2166,12 +2636,12 @@ declare class NfTsService {
2166
2636
  /**
2167
2637
  * List tokens
2168
2638
  * Lists tokens for an NFT contract.
2169
- * @returns ListNftTokens
2639
+ * @returns ListNftTokens Successful response
2170
2640
  * @throws ApiError
2171
2641
  */
2172
2642
  listTokens({ chainId, address, pageToken, pageSize, }: {
2173
2643
  /**
2174
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2644
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2175
2645
  */
2176
2646
  chainId: string;
2177
2647
  /**
@@ -2190,12 +2660,12 @@ declare class NfTsService {
2190
2660
  /**
2191
2661
  * Get token details
2192
2662
  * Gets token details for a specific token of an NFT contract.
2193
- * @returns any
2663
+ * @returns any Successful response
2194
2664
  * @throws ApiError
2195
2665
  */
2196
2666
  getTokenDetails({ chainId, address, tokenId, }: {
2197
2667
  /**
2198
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2668
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2199
2669
  */
2200
2670
  chainId: string;
2201
2671
  /**
@@ -2220,16 +2690,16 @@ declare enum EVMOperationType {
2220
2690
 
2221
2691
  type CreateEvmTransactionExportRequest = {
2222
2692
  type: EVMOperationType;
2223
- firstDate: string;
2224
- lastDate: string;
2693
+ firstDate?: string;
2694
+ lastDate?: string;
2225
2695
  /**
2226
2696
  * @deprecated
2227
2697
  */
2228
- startDate: string;
2698
+ startDate?: string;
2229
2699
  /**
2230
2700
  * @deprecated
2231
2701
  */
2232
- endDate: string;
2702
+ endDate?: string;
2233
2703
  options: EvmNetworkOptions;
2234
2704
  };
2235
2705
 
@@ -2242,21 +2712,21 @@ declare enum PrimaryNetworkOperationType {
2242
2712
  type PrimaryNetworkOptions = {
2243
2713
  addresses?: Array<string>;
2244
2714
  cChainEvmAddresses?: Array<string>;
2245
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2715
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2246
2716
  };
2247
2717
 
2248
2718
  type CreatePrimaryNetworkTransactionExportRequest = {
2249
2719
  type: PrimaryNetworkOperationType;
2250
- firstDate: string;
2251
- lastDate: string;
2720
+ firstDate?: string;
2721
+ lastDate?: string;
2252
2722
  /**
2253
2723
  * @deprecated
2254
2724
  */
2255
- startDate: string;
2725
+ startDate?: string;
2256
2726
  /**
2257
2727
  * @deprecated
2258
2728
  */
2259
- endDate: string;
2729
+ endDate?: string;
2260
2730
  options: PrimaryNetworkOptions;
2261
2731
  };
2262
2732
 
@@ -2308,7 +2778,7 @@ declare class OperationsService {
2308
2778
  /**
2309
2779
  * Get operation
2310
2780
  * Gets operation details for the given operation id.
2311
- * @returns OperationStatusResponse
2781
+ * @returns OperationStatusResponse Successful response
2312
2782
  * @throws ApiError
2313
2783
  */
2314
2784
  getOperationResult({ operationId, }: {
@@ -2322,7 +2792,7 @@ declare class OperationsService {
2322
2792
  * Trigger a transaction export operation with given parameters.
2323
2793
  *
2324
2794
  * 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
2795
+ * @returns OperationStatusResponse Successful response
2326
2796
  * @throws ApiError
2327
2797
  */
2328
2798
  postTransactionExportJob({ requestBody, }: {
@@ -2334,8 +2804,10 @@ declare enum BlockchainIds {
2334
2804
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2335
2805
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2336
2806
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2807
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2337
2808
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2338
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2809
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2810
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2339
2811
  }
2340
2812
 
2341
2813
  type ChainAddressChainIdMap = {
@@ -2459,10 +2931,61 @@ type ListDelegatorDetailsResponse = {
2459
2931
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2460
2932
  };
2461
2933
 
2934
+ type BalanceOwner = {
2935
+ addresses: Array<string>;
2936
+ threshold: number;
2937
+ };
2938
+
2939
+ type L1ValidatorDetailsFull = {
2940
+ /**
2941
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2942
+ */
2943
+ validationId: string;
2944
+ nodeId: string;
2945
+ subnetId: string;
2946
+ /**
2947
+ * 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
2948
+ */
2949
+ weight: number;
2950
+ /**
2951
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2952
+ */
2953
+ remainingBalance: number;
2954
+ /**
2955
+ * The timestamp of the transaction which created this L1 validator
2956
+ */
2957
+ creationTimestamp: number;
2958
+ blsCredentials: Record<string, any>;
2959
+ /**
2960
+ * The L1 validator owner's balance, returned after it's disabled or removed
2961
+ */
2962
+ remainingBalanceOwner: BalanceOwner;
2963
+ /**
2964
+ * Owner ddresses details which can disable or remove the L1 validator
2965
+ */
2966
+ deactivationOwner: BalanceOwner;
2967
+ };
2968
+
2969
+ type ListL1ValidatorsResponse = {
2970
+ /**
2971
+ * 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.
2972
+ */
2973
+ nextPageToken?: string;
2974
+ /**
2975
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2976
+ */
2977
+ validators: Array<L1ValidatorDetailsFull>;
2978
+ };
2979
+
2462
2980
  type BlockchainInfo = {
2463
2981
  blockchainId: string;
2464
2982
  };
2465
2983
 
2984
+ type L1ValidatorManagerDetails = {
2985
+ blockchainId: string;
2986
+ contractAddress: string;
2987
+ };
2988
+
2466
2989
  type SubnetOwnershipInfo = {
2467
2990
  /**
2468
2991
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2501,6 +3024,18 @@ type Subnet = {
2501
3024
  * Latest subnet owner details for this Subnet.
2502
3025
  */
2503
3026
  subnetOwnershipInfo: SubnetOwnershipInfo;
3027
+ /**
3028
+ * Whether the subnet is an L1 or not.
3029
+ */
3030
+ isL1: boolean;
3031
+ /**
3032
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3033
+ */
3034
+ l1ConversionTransactionHash?: string;
3035
+ /**
3036
+ * L1 validator manager details.
3037
+ */
3038
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2504
3039
  blockchains: Array<BlockchainInfo>;
2505
3040
  };
2506
3041
 
@@ -2584,6 +3119,7 @@ type CompletedValidatorDetails = {
2584
3119
  */
2585
3120
  blsCredentials?: BlsCredentials;
2586
3121
  delegatorCount: number;
3122
+ amountDelegated?: string;
2587
3123
  rewards: Rewards;
2588
3124
  validationStatus: CompletedValidatorDetails.validationStatus;
2589
3125
  };
@@ -2646,11 +3182,6 @@ type ListValidatorDetailsResponse = {
2646
3182
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2647
3183
  };
2648
3184
 
2649
- declare enum Network {
2650
- MAINNET = "mainnet",
2651
- FUJI = "fuji"
2652
- }
2653
-
2654
3185
  declare enum SortByOption {
2655
3186
  BLOCK_INDEX = "blockIndex",
2656
3187
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2710,6 +3241,7 @@ type XChainAssetDetails = {
2710
3241
  declare enum XChainId {
2711
3242
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2712
3243
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3244
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2713
3245
  X_CHAIN = "x-chain"
2714
3246
  }
2715
3247
 
@@ -2719,7 +3251,7 @@ declare class PrimaryNetworkService {
2719
3251
  /**
2720
3252
  * Get asset details
2721
3253
  * Gets asset details corresponding to the given asset id on the X-Chain.
2722
- * @returns XChainAssetDetails
3254
+ * @returns XChainAssetDetails Successful response
2723
3255
  * @throws ApiError
2724
3256
  */
2725
3257
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2728,7 +3260,7 @@ declare class PrimaryNetworkService {
2728
3260
  */
2729
3261
  blockchainId: XChainId;
2730
3262
  /**
2731
- * Either mainnet or a testnet.
3263
+ * Either mainnet or testnet/fuji.
2732
3264
  */
2733
3265
  network: Network;
2734
3266
  /**
@@ -2739,7 +3271,7 @@ declare class PrimaryNetworkService {
2739
3271
  /**
2740
3272
  * Get chain interactions for addresses
2741
3273
  * 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
3274
+ * @returns ChainAddressChainIdMapListResponse Successful response
2743
3275
  * @throws ApiError
2744
3276
  */
2745
3277
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2748,31 +3280,31 @@ declare class PrimaryNetworkService {
2748
3280
  */
2749
3281
  addresses: string;
2750
3282
  /**
2751
- * Either mainnet or a testnet.
3283
+ * Either mainnet or testnet/fuji.
2752
3284
  */
2753
3285
  network: Network;
2754
3286
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2755
3287
  /**
2756
3288
  * Get network details
2757
3289
  * Gets network details such as validator and delegator stats.
2758
- * @returns GetNetworkDetailsResponse
3290
+ * @returns GetNetworkDetailsResponse Successful response
2759
3291
  * @throws ApiError
2760
3292
  */
2761
3293
  getNetworkDetails({ network, }: {
2762
3294
  /**
2763
- * Either mainnet or a testnet.
3295
+ * Either mainnet or testnet/fuji.
2764
3296
  */
2765
3297
  network: Network;
2766
3298
  }): CancelablePromise<GetNetworkDetailsResponse>;
2767
3299
  /**
2768
3300
  * List blockchains
2769
3301
  * Lists all blockchains registered on the network.
2770
- * @returns ListBlockchainsResponse
3302
+ * @returns ListBlockchainsResponse Successful response
2771
3303
  * @throws ApiError
2772
3304
  */
2773
3305
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2774
3306
  /**
2775
- * Either mainnet or a testnet.
3307
+ * Either mainnet or testnet/fuji.
2776
3308
  */
2777
3309
  network: Network;
2778
3310
  /**
@@ -2791,12 +3323,12 @@ declare class PrimaryNetworkService {
2791
3323
  /**
2792
3324
  * List subnets
2793
3325
  * Lists all subnets registered on the network.
2794
- * @returns ListSubnetsResponse
3326
+ * @returns ListSubnetsResponse Successful response
2795
3327
  * @throws ApiError
2796
3328
  */
2797
3329
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2798
3330
  /**
2799
- * Either mainnet or a testnet.
3331
+ * Either mainnet or testnet/fuji.
2800
3332
  */
2801
3333
  network: Network;
2802
3334
  /**
@@ -2815,12 +3347,12 @@ declare class PrimaryNetworkService {
2815
3347
  /**
2816
3348
  * Get Subnet details by ID
2817
3349
  * Get details of the Subnet registered on the network.
2818
- * @returns Subnet
3350
+ * @returns Subnet Successful response
2819
3351
  * @throws ApiError
2820
3352
  */
2821
3353
  getSubnetById({ network, subnetId, }: {
2822
3354
  /**
2823
- * Either mainnet or a testnet.
3355
+ * Either mainnet or testnet/fuji.
2824
3356
  */
2825
3357
  network: Network;
2826
3358
  /**
@@ -2831,12 +3363,12 @@ declare class PrimaryNetworkService {
2831
3363
  /**
2832
3364
  * List validators
2833
3365
  * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2834
- * @returns ListValidatorDetailsResponse
3366
+ * @returns ListValidatorDetailsResponse Successful response
2835
3367
  * @throws ApiError
2836
3368
  */
2837
3369
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2838
3370
  /**
2839
- * Either mainnet or a testnet.
3371
+ * Either mainnet or testnet/fuji.
2840
3372
  */
2841
3373
  network: Network;
2842
3374
  /**
@@ -2905,12 +3437,12 @@ declare class PrimaryNetworkService {
2905
3437
  /**
2906
3438
  * Get single validator details
2907
3439
  * List validator details for a single validator. Filterable by validation status.
2908
- * @returns ListValidatorDetailsResponse
3440
+ * @returns ListValidatorDetailsResponse Successful response
2909
3441
  * @throws ApiError
2910
3442
  */
2911
3443
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2912
3444
  /**
2913
- * Either mainnet or a testnet.
3445
+ * Either mainnet or testnet/fuji.
2914
3446
  */
2915
3447
  network: Network;
2916
3448
  /**
@@ -2937,12 +3469,12 @@ declare class PrimaryNetworkService {
2937
3469
  /**
2938
3470
  * List delegators
2939
3471
  * Lists details for delegators.
2940
- * @returns ListDelegatorDetailsResponse
3472
+ * @returns ListDelegatorDetailsResponse Successful response
2941
3473
  * @throws ApiError
2942
3474
  */
2943
3475
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2944
3476
  /**
2945
- * Either mainnet or a testnet.
3477
+ * Either mainnet or testnet/fuji.
2946
3478
  */
2947
3479
  network: Network;
2948
3480
  /**
@@ -2970,14 +3502,49 @@ declare class PrimaryNetworkService {
2970
3502
  */
2971
3503
  nodeIds?: string;
2972
3504
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3505
+ /**
3506
+ * List L1 validators
3507
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3508
+ * @returns ListL1ValidatorsResponse Successful response
3509
+ * @throws ApiError
3510
+ */
3511
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3512
+ /**
3513
+ * Either mainnet or testnet/fuji.
3514
+ */
3515
+ network: Network;
3516
+ /**
3517
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3518
+ */
3519
+ pageToken?: string;
3520
+ /**
3521
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3522
+ */
3523
+ pageSize?: number;
3524
+ /**
3525
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3526
+ */
3527
+ l1ValidationId?: any;
3528
+ includeInactiveL1Validators?: boolean;
3529
+ /**
3530
+ * A valid node ID in format 'NodeID-HASH'.
3531
+ */
3532
+ nodeId?: string;
3533
+ /**
3534
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3535
+ */
3536
+ subnetId?: any;
3537
+ }): CancelablePromise<ListL1ValidatorsResponse>;
2973
3538
  }
2974
3539
 
2975
3540
  declare enum BlockchainId {
2976
3541
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2977
3542
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2978
3543
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3544
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2979
3545
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2980
3546
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3547
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2981
3548
  P_CHAIN = "p-chain",
2982
3549
  X_CHAIN = "x-chain",
2983
3550
  C_CHAIN = "c-chain"
@@ -3014,11 +3581,6 @@ type CChainAtomicBalances = {
3014
3581
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3015
3582
  };
3016
3583
 
3017
- declare enum PrimaryNetwork {
3018
- MAINNET = "mainnet",
3019
- FUJI = "fuji"
3020
- }
3021
-
3022
3584
  declare enum PrimaryNetworkChainName {
3023
3585
  P_CHAIN = "p-chain",
3024
3586
  X_CHAIN = "x-chain",
@@ -3027,7 +3589,7 @@ declare enum PrimaryNetworkChainName {
3027
3589
 
3028
3590
  type PrimaryNetworkChainInfo = {
3029
3591
  chainName: PrimaryNetworkChainName;
3030
- network: PrimaryNetwork;
3592
+ network: Network;
3031
3593
  };
3032
3594
 
3033
3595
  type ListCChainAtomicBalancesResponse = {
@@ -3179,7 +3741,7 @@ declare class PrimaryNetworkBalancesService {
3179
3741
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
3180
3742
  *
3181
3743
  * 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
3744
+ * @returns any Successful response
3183
3745
  * @throws ApiError
3184
3746
  */
3185
3747
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -3188,7 +3750,7 @@ declare class PrimaryNetworkBalancesService {
3188
3750
  */
3189
3751
  blockchainId: BlockchainId;
3190
3752
  /**
3191
- * Either mainnet or a testnet.
3753
+ * Either mainnet or testnet/fuji.
3192
3754
  */
3193
3755
  network: Network;
3194
3756
  /**
@@ -3219,6 +3781,8 @@ type GetPrimaryNetworkBlockResponse = {
3219
3781
  txCount: number;
3220
3782
  transactions: Array<string>;
3221
3783
  blockSizeBytes: number;
3784
+ l1ValidatorsAccruedFees?: number;
3785
+ activeL1Validators?: number;
3222
3786
  currentSupply?: string;
3223
3787
  proposerDetails?: ProposerDetails;
3224
3788
  };
@@ -3232,6 +3796,8 @@ type PrimaryNetworkBlock = {
3232
3796
  txCount: number;
3233
3797
  transactions: Array<string>;
3234
3798
  blockSizeBytes: number;
3799
+ l1ValidatorsAccruedFees?: number;
3800
+ activeL1Validators?: number;
3235
3801
  currentSupply?: string;
3236
3802
  proposerDetails?: ProposerDetails;
3237
3803
  };
@@ -3251,7 +3817,7 @@ declare class PrimaryNetworkBlocksService {
3251
3817
  /**
3252
3818
  * Get block
3253
3819
  * Gets a block by block height or block hash on one of the Primary Network chains.
3254
- * @returns GetPrimaryNetworkBlockResponse
3820
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3255
3821
  * @throws ApiError
3256
3822
  */
3257
3823
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3260,7 +3826,7 @@ declare class PrimaryNetworkBlocksService {
3260
3826
  */
3261
3827
  blockchainId: BlockchainId;
3262
3828
  /**
3263
- * Either mainnet or a testnet.
3829
+ * Either mainnet or testnet/fuji.
3264
3830
  */
3265
3831
  network: Network;
3266
3832
  /**
@@ -3271,22 +3837,30 @@ declare class PrimaryNetworkBlocksService {
3271
3837
  /**
3272
3838
  * List blocks proposed by node
3273
3839
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3274
- * @returns ListPrimaryNetworkBlocksResponse
3840
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3275
3841
  * @throws ApiError
3276
3842
  */
3277
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3843
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3278
3844
  /**
3279
3845
  * A primary network blockchain id or alias.
3280
3846
  */
3281
3847
  blockchainId: BlockchainId;
3282
3848
  /**
3283
- * Either mainnet or a testnet.
3849
+ * Either mainnet or testnet/fuji.
3284
3850
  */
3285
3851
  network: Network;
3286
3852
  /**
3287
3853
  * A primary network (P or X chain) nodeId.
3288
3854
  */
3289
3855
  nodeId: string;
3856
+ /**
3857
+ * Query param for retrieving items after a specific timestamp.
3858
+ */
3859
+ startTimestamp?: number;
3860
+ /**
3861
+ * Query param for retrieving items before a specific timestamp.
3862
+ */
3863
+ endTimestamp?: number;
3290
3864
  /**
3291
3865
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3292
3866
  */
@@ -3299,18 +3873,26 @@ declare class PrimaryNetworkBlocksService {
3299
3873
  /**
3300
3874
  * List latest blocks
3301
3875
  * Lists latest blocks on one of the Primary Network chains.
3302
- * @returns ListPrimaryNetworkBlocksResponse
3876
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3303
3877
  * @throws ApiError
3304
3878
  */
3305
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3879
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3306
3880
  /**
3307
3881
  * A primary network blockchain id or alias.
3308
3882
  */
3309
3883
  blockchainId: BlockchainId;
3310
3884
  /**
3311
- * Either mainnet or a testnet.
3885
+ * Either mainnet or testnet/fuji.
3312
3886
  */
3313
3887
  network: Network;
3888
+ /**
3889
+ * Query param for retrieving items after a specific timestamp.
3890
+ */
3891
+ startTimestamp?: number;
3892
+ /**
3893
+ * Query param for retrieving items before a specific timestamp.
3894
+ */
3895
+ endTimestamp?: number;
3314
3896
  /**
3315
3897
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3316
3898
  */
@@ -3437,12 +4019,12 @@ declare class PrimaryNetworkRewardsService {
3437
4019
  /**
3438
4020
  * List pending rewards
3439
4021
  * Lists pending rewards on the Primary Network for the supplied addresses.
3440
- * @returns ListPendingRewardsResponse
4022
+ * @returns ListPendingRewardsResponse Successful response
3441
4023
  * @throws ApiError
3442
4024
  */
3443
4025
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3444
4026
  /**
3445
- * Either mainnet or a testnet.
4027
+ * Either mainnet or testnet/fuji.
3446
4028
  */
3447
4029
  network: Network;
3448
4030
  /**
@@ -3469,12 +4051,12 @@ declare class PrimaryNetworkRewardsService {
3469
4051
  /**
3470
4052
  * List historical rewards
3471
4053
  * Lists historical rewards on the Primary Network for the supplied addresses.
3472
- * @returns ListHistoricalRewardsResponse
4054
+ * @returns ListHistoricalRewardsResponse Successful response
3473
4055
  * @throws ApiError
3474
4056
  */
3475
4057
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3476
4058
  /**
3477
- * Either mainnet or a testnet.
4059
+ * Either mainnet or testnet/fuji.
3478
4060
  */
3479
4061
  network: Network;
3480
4062
  /**
@@ -3720,6 +4302,28 @@ type ListCChainAtomicTransactionsResponse = {
3720
4302
  chainInfo: PrimaryNetworkChainInfo;
3721
4303
  };
3722
4304
 
4305
+ type L1ValidatorDetailsTransaction = {
4306
+ /**
4307
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4308
+ */
4309
+ validationId: string;
4310
+ nodeId: string;
4311
+ subnetId: string;
4312
+ /**
4313
+ * 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
4314
+ */
4315
+ weight: number;
4316
+ /**
4317
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4318
+ */
4319
+ remainingBalance: number;
4320
+ /**
4321
+ * 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
4322
+ */
4323
+ balanceChange?: number;
4324
+ blsCredentials?: Record<string, any>;
4325
+ };
4326
+
3723
4327
  declare enum PChainTransactionType {
3724
4328
  ADD_VALIDATOR_TX = "AddValidatorTx",
3725
4329
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3736,6 +4340,11 @@ declare enum PChainTransactionType {
3736
4340
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3737
4341
  BASE_TX = "BaseTx",
3738
4342
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4343
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4344
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4345
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4346
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4347
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3739
4348
  UNKNOWN = "UNKNOWN"
3740
4349
  }
3741
4350
 
@@ -3824,6 +4433,10 @@ type PChainTransaction = {
3824
4433
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3825
4434
  */
3826
4435
  amountStaked: Array<AssetAmount>;
4436
+ /**
4437
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4438
+ */
4439
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3827
4440
  /**
3828
4441
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3829
4442
  */
@@ -3844,6 +4457,14 @@ type PChainTransaction = {
3844
4457
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
3845
4458
  */
3846
4459
  subnetId?: string;
4460
+ /**
4461
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4462
+ */
4463
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4464
+ /**
4465
+ * 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
4466
+ */
4467
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
3847
4468
  /**
3848
4469
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3849
4470
  */
@@ -4045,6 +4666,11 @@ declare enum PrimaryNetworkTxType {
4045
4666
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4046
4667
  BASE_TX = "BaseTx",
4047
4668
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4669
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4670
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4671
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4672
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4673
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4048
4674
  UNKNOWN = "UNKNOWN",
4049
4675
  CREATE_ASSET_TX = "CreateAssetTx",
4050
4676
  OPERATION_TX = "OperationTx"
@@ -4056,7 +4682,7 @@ declare class PrimaryNetworkTransactionsService {
4056
4682
  /**
4057
4683
  * Get transaction
4058
4684
  * Gets the details of a single transaction on one of the Primary Network chains.
4059
- * @returns any
4685
+ * @returns any Successful response
4060
4686
  * @throws ApiError
4061
4687
  */
4062
4688
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -4065,7 +4691,7 @@ declare class PrimaryNetworkTransactionsService {
4065
4691
  */
4066
4692
  blockchainId: BlockchainId;
4067
4693
  /**
4068
- * Either mainnet or a testnet.
4694
+ * Either mainnet or testnet/fuji.
4069
4695
  */
4070
4696
  network: Network;
4071
4697
  /**
@@ -4079,23 +4705,26 @@ declare class PrimaryNetworkTransactionsService {
4079
4705
  *
4080
4706
  * 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
4707
  *
4708
+ * 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.
4709
+ *
4082
4710
  * 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
4711
+ * @returns any Successful response
4084
4712
  * @throws ApiError
4085
4713
  */
4086
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4714
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4087
4715
  /**
4088
4716
  * A primary network blockchain id or alias.
4089
4717
  */
4090
4718
  blockchainId: BlockchainId;
4091
4719
  /**
4092
- * Either mainnet or a testnet.
4720
+ * Either mainnet or testnet/fuji.
4093
4721
  */
4094
4722
  network: Network;
4095
4723
  /**
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".
4724
+ * 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
4725
  */
4098
4726
  addresses?: string;
4727
+ l1ValidationId?: string;
4099
4728
  /**
4100
4729
  * Query param for filtering items based on transaction types.
4101
4730
  */
@@ -4124,7 +4753,7 @@ declare class PrimaryNetworkTransactionsService {
4124
4753
  /**
4125
4754
  * List staking transactions
4126
4755
  * Lists active staking transactions on the P-Chain for the supplied addresses.
4127
- * @returns ListPChainTransactionsResponse
4756
+ * @returns ListPChainTransactionsResponse Successful response
4128
4757
  * @throws ApiError
4129
4758
  */
4130
4759
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -4133,7 +4762,7 @@ declare class PrimaryNetworkTransactionsService {
4133
4762
  */
4134
4763
  blockchainId: PChainId;
4135
4764
  /**
4136
- * Either mainnet or a testnet.
4765
+ * Either mainnet or testnet/fuji.
4137
4766
  */
4138
4767
  network: Network;
4139
4768
  /**
@@ -4168,7 +4797,7 @@ declare class PrimaryNetworkTransactionsService {
4168
4797
  /**
4169
4798
  * List asset transactions
4170
4799
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
4171
- * @returns ListXChainTransactionsResponse
4800
+ * @returns ListXChainTransactionsResponse Successful response
4172
4801
  * @throws ApiError
4173
4802
  */
4174
4803
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -4177,7 +4806,7 @@ declare class PrimaryNetworkTransactionsService {
4177
4806
  */
4178
4807
  blockchainId: XChainId;
4179
4808
  /**
4180
- * Either mainnet or a testnet.
4809
+ * Either mainnet or testnet/fuji.
4181
4810
  */
4182
4811
  network: Network;
4183
4812
  /**
@@ -4231,7 +4860,7 @@ declare class PrimaryNetworkUtxOsService {
4231
4860
  /**
4232
4861
  * List UTXOs
4233
4862
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4234
- * @returns any
4863
+ * @returns any Successful response
4235
4864
  * @throws ApiError
4236
4865
  */
4237
4866
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4240,7 +4869,7 @@ declare class PrimaryNetworkUtxOsService {
4240
4869
  */
4241
4870
  blockchainId: BlockchainId;
4242
4871
  /**
4243
- * Either mainnet or a testnet.
4872
+ * Either mainnet or testnet/fuji.
4244
4873
  */
4245
4874
  network: Network;
4246
4875
  /**
@@ -4296,7 +4925,7 @@ declare class PrimaryNetworkVerticesService {
4296
4925
  /**
4297
4926
  * List vertices
4298
4927
  * Lists latest vertices on the X-Chain.
4299
- * @returns ListXChainVerticesResponse
4928
+ * @returns ListXChainVerticesResponse Successful response
4300
4929
  * @throws ApiError
4301
4930
  */
4302
4931
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4305,7 +4934,7 @@ declare class PrimaryNetworkVerticesService {
4305
4934
  */
4306
4935
  blockchainId: XChainId;
4307
4936
  /**
4308
- * Either mainnet or a testnet.
4937
+ * Either mainnet or testnet/fuji.
4309
4938
  */
4310
4939
  network: Network;
4311
4940
  /**
@@ -4320,7 +4949,7 @@ declare class PrimaryNetworkVerticesService {
4320
4949
  /**
4321
4950
  * Get vertex
4322
4951
  * Gets a single vertex on the X-Chain.
4323
- * @returns XChainVertex
4952
+ * @returns XChainVertex Successful response
4324
4953
  * @throws ApiError
4325
4954
  */
4326
4955
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4333,14 +4962,14 @@ declare class PrimaryNetworkVerticesService {
4333
4962
  */
4334
4963
  blockchainId: XChainId;
4335
4964
  /**
4336
- * Either mainnet or a testnet.
4965
+ * Either mainnet or testnet/fuji.
4337
4966
  */
4338
4967
  network: Network;
4339
4968
  }): CancelablePromise<XChainVertex>;
4340
4969
  /**
4341
4970
  * List vertices by height
4342
4971
  * Lists vertices at the given vertex height on the X-Chain.
4343
- * @returns ListXChainVerticesResponse
4972
+ * @returns ListXChainVerticesResponse Successful response
4344
4973
  * @throws ApiError
4345
4974
  */
4346
4975
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4353,7 +4982,7 @@ declare class PrimaryNetworkVerticesService {
4353
4982
  */
4354
4983
  blockchainId: XChainId;
4355
4984
  /**
4356
- * Either mainnet or a testnet.
4985
+ * Either mainnet or testnet/fuji.
4357
4986
  */
4358
4987
  network: Network;
4359
4988
  /**
@@ -4371,47 +5000,33 @@ declare class PrimaryNetworkVerticesService {
4371
5000
  }): CancelablePromise<ListXChainVerticesResponse>;
4372
5001
  }
4373
5002
 
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;
5003
+ type SignatureAggregationResponse = {
5004
+ signedMessage: string;
4391
5005
  };
4392
5006
 
4393
- type RpcSuccessResponseDto = {
4394
- jsonrpc: string;
4395
- id?: (string | number);
4396
- result: Record<string, any>;
5007
+ type SignatureAggregatorRequest = {
5008
+ message: string;
5009
+ justification?: string;
5010
+ signingSubnetId?: string;
5011
+ quorumPercentage?: number;
4397
5012
  };
4398
5013
 
4399
- declare class RpcService {
5014
+ declare class SignatureAggregatorService {
4400
5015
  readonly httpRequest: BaseHttpRequest;
4401
5016
  constructor(httpRequest: BaseHttpRequest);
4402
5017
  /**
4403
- * Calls JSON-RPC method
4404
- * Calls JSON-RPC method.
4405
- * @returns any
5018
+ * Aggregate Signatures
5019
+ * Aggregates Signatures for a Warp message from Subnet validators.
5020
+ * @returns SignatureAggregationResponse Successful response
4406
5021
  * @throws ApiError
4407
5022
  */
4408
- rpc({ chainId, requestBody, }: {
5023
+ aggregateSignatures({ network, requestBody, }: {
4409
5024
  /**
4410
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5025
+ * Either mainnet or testnet/fuji.
4411
5026
  */
4412
- chainId: string;
4413
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4414
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5027
+ network: Network;
5028
+ requestBody: SignatureAggregatorRequest;
5029
+ }): CancelablePromise<SignatureAggregationResponse>;
4415
5030
  }
4416
5031
 
4417
5032
  type TeleporterDestinationTransaction = {
@@ -4554,7 +5169,7 @@ declare class TeleporterService {
4554
5169
  /**
4555
5170
  * Get a teleporter message
4556
5171
  * Gets a teleporter message by message ID.
4557
- * @returns any
5172
+ * @returns any Successful response
4558
5173
  * @throws ApiError
4559
5174
  */
4560
5175
  getTeleporterMessage({ messageId, }: {
@@ -4566,10 +5181,10 @@ declare class TeleporterService {
4566
5181
  /**
4567
5182
  * List teleporter messages
4568
5183
  * Lists teleporter messages. Ordered by timestamp in descending order.
4569
- * @returns ListTeleporterMessagesResponse
5184
+ * @returns ListTeleporterMessagesResponse Successful response
4570
5185
  * @throws ApiError
4571
5186
  */
4572
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
5187
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
4573
5188
  /**
4574
5189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4575
5190
  */
@@ -4586,6 +5201,10 @@ declare class TeleporterService {
4586
5201
  * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4587
5202
  */
4588
5203
  destinationBlockchainId?: string;
5204
+ /**
5205
+ * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
5206
+ */
5207
+ blockchainId?: string;
4589
5208
  /**
4590
5209
  * The address of the recipient of the teleporter message.
4591
5210
  */
@@ -4595,9 +5214,33 @@ declare class TeleporterService {
4595
5214
  */
4596
5215
  from?: string;
4597
5216
  /**
4598
- * mainnet or testnet.
5217
+ * Either mainnet or testnet/fuji.
5218
+ */
5219
+ network?: Network;
5220
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5221
+ /**
5222
+ * List teleporter messages by address
5223
+ * Lists teleporter messages by address. Ordered by timestamp in descending order.
5224
+ * @returns ListTeleporterMessagesResponse Successful response
5225
+ * @throws ApiError
5226
+ */
5227
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5228
+ /**
5229
+ * An EVM address.
5230
+ */
5231
+ address: string;
5232
+ /**
5233
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5234
+ */
5235
+ pageToken?: string;
5236
+ /**
5237
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5238
+ */
5239
+ pageSize?: number;
5240
+ /**
5241
+ * Either mainnet or testnet/fuji.
4599
5242
  */
4600
- network?: NetworkType;
5243
+ network?: Network;
4601
5244
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4602
5245
  }
4603
5246
 
@@ -4605,7 +5248,7 @@ type AddressesChangeRequest = {
4605
5248
  /**
4606
5249
  * Ethereum address(es) for the address_activity event type
4607
5250
  */
4608
- addresses: Array<any[]>;
5251
+ addresses: Array<string>;
4609
5252
  };
4610
5253
 
4611
5254
  type AddressActivityMetadata = {
@@ -4631,7 +5274,7 @@ type CreateWebhookRequest = {
4631
5274
  name?: string;
4632
5275
  description?: string;
4633
5276
  /**
4634
- * Whether to include traces in the webhook payload.
5277
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4635
5278
  */
4636
5279
  includeInternalTxs?: boolean;
4637
5280
  /**
@@ -4691,6 +5334,9 @@ type UpdateWebhookRequest = {
4691
5334
  description?: string;
4692
5335
  url?: string;
4693
5336
  status?: WebhookStatusType;
5337
+ /**
5338
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5339
+ */
4694
5340
  includeInternalTxs?: boolean;
4695
5341
  includeLogs?: boolean;
4696
5342
  };
@@ -4706,7 +5352,7 @@ declare class WebhooksService {
4706
5352
  /**
4707
5353
  * Create a webhook
4708
5354
  * Create a new webhook.
4709
- * @returns WebhookResponse
5355
+ * @returns WebhookResponse Successful response
4710
5356
  * @throws ApiError
4711
5357
  */
4712
5358
  createWebhook({ requestBody, }: {
@@ -4715,7 +5361,7 @@ declare class WebhooksService {
4715
5361
  /**
4716
5362
  * List webhooks
4717
5363
  * Lists webhooks for the user.
4718
- * @returns ListWebhooksResponse
5364
+ * @returns ListWebhooksResponse Successful response
4719
5365
  * @throws ApiError
4720
5366
  */
4721
5367
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4735,7 +5381,7 @@ declare class WebhooksService {
4735
5381
  /**
4736
5382
  * Get a webhook by ID
4737
5383
  * Retrieves a webhook by ID.
4738
- * @returns WebhookResponse
5384
+ * @returns WebhookResponse Successful response
4739
5385
  * @throws ApiError
4740
5386
  */
4741
5387
  getWebhook({ id, }: {
@@ -4747,7 +5393,7 @@ declare class WebhooksService {
4747
5393
  /**
4748
5394
  * Deactivate a webhook
4749
5395
  * Deactivates a webhook by ID.
4750
- * @returns WebhookResponse
5396
+ * @returns WebhookResponse Successful response
4751
5397
  * @throws ApiError
4752
5398
  */
4753
5399
  deactivateWebhook({ id, }: {
@@ -4759,7 +5405,7 @@ declare class WebhooksService {
4759
5405
  /**
4760
5406
  * Update a webhook
4761
5407
  * Updates an existing webhook.
4762
- * @returns WebhookResponse
5408
+ * @returns WebhookResponse Successful response
4763
5409
  * @throws ApiError
4764
5410
  */
4765
5411
  updateWebhook({ id, requestBody, }: {
@@ -4772,21 +5418,21 @@ declare class WebhooksService {
4772
5418
  /**
4773
5419
  * Generate a shared secret
4774
5420
  * Generates a new shared secret.
4775
- * @returns SharedSecretsResponse
5421
+ * @returns SharedSecretsResponse Successful response
4776
5422
  * @throws ApiError
4777
5423
  */
4778
5424
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4779
5425
  /**
4780
5426
  * Get a shared secret
4781
5427
  * Get a previously generated shared secret.
4782
- * @returns SharedSecretsResponse
5428
+ * @returns SharedSecretsResponse Successful response
4783
5429
  * @throws ApiError
4784
5430
  */
4785
5431
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4786
5432
  /**
4787
5433
  * Add addresses to webhook
4788
5434
  * Add addresses to webhook.
4789
- * @returns WebhookResponse
5435
+ * @returns WebhookResponse Successful response
4790
5436
  * @throws ApiError
4791
5437
  */
4792
5438
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4799,7 +5445,7 @@ declare class WebhooksService {
4799
5445
  /**
4800
5446
  * Remove addresses from webhook
4801
5447
  * Remove addresses from webhook.
4802
- * @returns WebhookResponse
5448
+ * @returns WebhookResponse Successful response
4803
5449
  * @throws ApiError
4804
5450
  */
4805
5451
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4812,7 +5458,7 @@ declare class WebhooksService {
4812
5458
  /**
4813
5459
  * List adresses by webhook
4814
5460
  * List adresses by webhook.
4815
- * @returns ListWebhookAddressesResponse
5461
+ * @returns ListWebhookAddressesResponse Successful response
4816
5462
  * @throws ApiError
4817
5463
  */
4818
5464
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4833,13 +5479,13 @@ declare class WebhooksService {
4833
5479
 
4834
5480
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4835
5481
  declare class Glacier {
5482
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4836
5483
  readonly default: DefaultService;
4837
5484
  readonly evmBalances: EvmBalancesService;
4838
5485
  readonly evmBlocks: EvmBlocksService;
4839
5486
  readonly evmChains: EvmChainsService;
4840
5487
  readonly evmContracts: EvmContractsService;
4841
5488
  readonly evmTransactions: EvmTransactionsService;
4842
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4843
5489
  readonly healthCheck: HealthCheckService;
4844
5490
  readonly nfTs: NfTsService;
4845
5491
  readonly operations: OperationsService;
@@ -4850,7 +5496,7 @@ declare class Glacier {
4850
5496
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4851
5497
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4852
5498
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4853
- readonly rpc: RpcService;
5499
+ readonly signatureAggregator: SignatureAggregatorService;
4854
5500
  readonly teleporter: TeleporterService;
4855
5501
  readonly webhooks: WebhooksService;
4856
5502
  readonly request: BaseHttpRequest;
@@ -4874,6 +5520,70 @@ declare class ApiError extends Error {
4874
5520
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4875
5521
  }
4876
5522
 
5523
+ type BadGateway = {
5524
+ /**
5525
+ * The error message describing the reason for the exception
5526
+ */
5527
+ message: (string | Array<string>);
5528
+ /**
5529
+ * The HTTP status code of the response
5530
+ */
5531
+ statusCode: number;
5532
+ /**
5533
+ * The type of error
5534
+ */
5535
+ error: string;
5536
+ };
5537
+
5538
+ type BadRequest = {
5539
+ /**
5540
+ * The error message describing the reason for the exception
5541
+ */
5542
+ message: (string | Array<string>);
5543
+ /**
5544
+ * The HTTP status code of the response
5545
+ */
5546
+ statusCode: number;
5547
+ /**
5548
+ * The type of error
5549
+ */
5550
+ error: string;
5551
+ };
5552
+
5553
+ type DataListChainsResponse = {
5554
+ chains: Array<ChainInfo>;
5555
+ };
5556
+
5557
+ type Forbidden = {
5558
+ /**
5559
+ * The error message describing the reason for the exception
5560
+ */
5561
+ message: (string | Array<string>);
5562
+ /**
5563
+ * The HTTP status code of the response
5564
+ */
5565
+ statusCode: number;
5566
+ /**
5567
+ * The type of error
5568
+ */
5569
+ error: string;
5570
+ };
5571
+
5572
+ type InternalServerError = {
5573
+ /**
5574
+ * The error message describing the reason for the exception
5575
+ */
5576
+ message: (string | Array<string>);
5577
+ /**
5578
+ * The HTTP status code of the response
5579
+ */
5580
+ statusCode: number;
5581
+ /**
5582
+ * The type of error
5583
+ */
5584
+ error: string;
5585
+ };
5586
+
4877
5587
  type NextPageToken = {
4878
5588
  /**
4879
5589
  * 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 +5591,64 @@ type NextPageToken = {
4881
5591
  nextPageToken?: string;
4882
5592
  };
4883
5593
 
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 };
5594
+ type NotFound = {
5595
+ /**
5596
+ * The error message describing the reason for the exception
5597
+ */
5598
+ message: (string | Array<string>);
5599
+ /**
5600
+ * The HTTP status code of the response
5601
+ */
5602
+ statusCode: number;
5603
+ /**
5604
+ * The type of error
5605
+ */
5606
+ error: string;
5607
+ };
5608
+
5609
+ type ServiceUnavailable = {
5610
+ /**
5611
+ * The error message describing the reason for the exception
5612
+ */
5613
+ message: (string | Array<string>);
5614
+ /**
5615
+ * The HTTP status code of the response
5616
+ */
5617
+ statusCode: number;
5618
+ /**
5619
+ * The type of error
5620
+ */
5621
+ error: string;
5622
+ };
5623
+
5624
+ type TooManyRequests = {
5625
+ /**
5626
+ * The error message describing the reason for the exception
5627
+ */
5628
+ message: (string | Array<string>);
5629
+ /**
5630
+ * The HTTP status code of the response
5631
+ */
5632
+ statusCode: number;
5633
+ /**
5634
+ * The type of error
5635
+ */
5636
+ error: string;
5637
+ };
5638
+
5639
+ type Unauthorized = {
5640
+ /**
5641
+ * The error message describing the reason for the exception
5642
+ */
5643
+ message: (string | Array<string>);
5644
+ /**
5645
+ * The HTTP status code of the response
5646
+ */
5647
+ statusCode: number;
5648
+ /**
5649
+ * The type of error
5650
+ */
5651
+ error: string;
5652
+ };
5653
+
5654
+ 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, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, 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 };