@avalabs/glacier-sdk 3.1.0-canary.0be52fe.0 → 3.1.0-canary.0cb77a4.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 (147) hide show
  1. package/dist/index.d.ts +1392 -315
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  6. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  7. package/esm/generated/models/ApiFeature.d.ts +7 -0
  8. package/esm/generated/models/ApiFeature.js +1 -0
  9. package/esm/generated/models/BadGateway.d.ts +16 -0
  10. package/esm/generated/models/BadRequest.d.ts +16 -0
  11. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  12. package/esm/generated/models/BlockchainId.d.ts +2 -0
  13. package/esm/generated/models/BlockchainId.js +1 -1
  14. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  15. package/esm/generated/models/BlockchainIds.js +1 -1
  16. package/esm/generated/models/ChainInfo.d.ts +1 -1
  17. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  18. package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
  19. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  20. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  21. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  22. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  23. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  24. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  25. package/esm/generated/models/EvmBlock.d.ts +4 -0
  26. package/esm/generated/models/Forbidden.d.ts +16 -0
  27. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  28. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  29. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  31. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  32. package/esm/generated/models/InternalServerError.d.ts +16 -0
  33. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  34. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  35. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  36. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  37. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  38. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  39. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  40. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  41. package/esm/generated/models/LogsFormat.d.ts +60 -0
  42. package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
  43. package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
  44. package/esm/generated/models/Metric.d.ts +14 -0
  45. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  46. package/esm/generated/models/Network.d.ts +3 -1
  47. package/esm/generated/models/Network.js +1 -1
  48. package/esm/generated/models/NotFound.d.ts +16 -0
  49. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  50. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  51. package/esm/generated/models/PChainTransactionType.js +1 -1
  52. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  53. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  54. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  55. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  56. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  57. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  58. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  59. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  60. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  61. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  62. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  63. package/esm/generated/models/RequestType.d.ts +9 -0
  64. package/esm/generated/models/RequestType.js +1 -0
  65. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  66. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  67. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  68. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  69. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  70. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  71. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  72. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  73. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  74. package/esm/generated/models/Subnet.d.ts +13 -0
  75. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  76. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  77. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  78. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  79. package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
  80. package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
  81. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  82. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  83. package/esm/generated/models/TransactionDirectionType.js +1 -0
  84. package/esm/generated/models/Unauthorized.d.ts +16 -0
  85. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  86. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
  87. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
  88. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
  89. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  90. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  91. package/esm/generated/models/UtxoType.d.ts +3 -0
  92. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  93. package/esm/generated/models/XChainId.d.ts +1 -0
  94. package/esm/generated/models/XChainId.js +1 -1
  95. package/esm/generated/services/DataApiUsageMetricsService.d.ts +204 -0
  96. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  97. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  98. package/esm/generated/services/EvmBalancesService.js +1 -1
  99. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  100. package/esm/generated/services/EvmBlocksService.js +1 -1
  101. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  102. package/esm/generated/services/EvmChainsService.js +1 -1
  103. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  104. package/esm/generated/services/EvmContractsService.js +1 -1
  105. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  106. package/esm/generated/services/EvmTransactionsService.js +1 -1
  107. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  108. package/esm/generated/services/HealthCheckService.js +1 -1
  109. package/esm/generated/services/NfTsService.d.ts +6 -6
  110. package/esm/generated/services/NfTsService.js +1 -1
  111. package/esm/generated/services/OperationsService.d.ts +2 -2
  112. package/esm/generated/services/OperationsService.js +1 -1
  113. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  114. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  115. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  116. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  117. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  118. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  119. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  120. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  121. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  122. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  123. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  124. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  125. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  126. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  127. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  128. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  129. package/esm/generated/services/TeleporterService.d.ts +34 -6
  130. package/esm/generated/services/TeleporterService.js +1 -1
  131. package/esm/generated/services/WebhooksService.d.ts +10 -10
  132. package/esm/generated/services/WebhooksService.js +1 -1
  133. package/esm/index.d.ts +37 -8
  134. package/esm/index.js +1 -1
  135. package/package.json +2 -2
  136. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  137. package/esm/generated/models/GlacierApiFeature.js +0 -1
  138. package/esm/generated/models/NetworkType.d.ts +0 -6
  139. package/esm/generated/models/NetworkType.js +0 -1
  140. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  141. package/esm/generated/models/PrimaryNetwork.js +0 -1
  142. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  143. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  144. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  145. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  146. package/esm/generated/services/RpcService.d.ts +0 -25
  147. 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
  */
@@ -686,14 +1226,9 @@ type GetChainResponse = {
686
1226
  networkToken: NetworkToken;
687
1227
  chainLogoUri?: string;
688
1228
  private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1229
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
690
1230
  };
691
1231
 
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
1232
  type ChainInfo = {
698
1233
  chainId: string;
699
1234
  status: ChainStatus;
@@ -711,49 +1246,235 @@ type ChainInfo = {
711
1246
  networkToken: NetworkToken;
712
1247
  chainLogoUri?: string;
713
1248
  private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
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;
1346
+ /**
1347
+ * The gas price denominated by the number of decimals of the native token.
1348
+ */
1349
+ gasPrice: string;
1350
+ /**
1351
+ * The nonce used by the sender of the transaction.
1352
+ */
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
- * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse
1390
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
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
- * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse
1406
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
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 = {
@@ -1470,65 +2173,6 @@ type ListInternalTransactionsResponse = {
1470
2173
  transactions: Array<InternalTransaction>;
1471
2174
  };
1472
2175
 
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
1498
- /**
1499
- * The transaction type.
1500
- */
1501
- txType: number;
1502
- /**
1503
- * The gas limit set for the transaction.
1504
- */
1505
- gasLimit: string;
1506
- /**
1507
- * The amount of gas used.
1508
- */
1509
- gasUsed: string;
1510
- /**
1511
- * The gas price denominated by the number of decimals of the native token.
1512
- */
1513
- gasPrice: string;
1514
- /**
1515
- * The nonce used by the sender of the transaction.
1516
- */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
1522
- };
1523
-
1524
- type ListNativeTransactionsResponse = {
1525
- /**
1526
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1527
- */
1528
- nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
1530
- };
1531
-
1532
2176
  type TransactionDetails = {
1533
2177
  /**
1534
2178
  * The native (top-level) transaction details.
@@ -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,12 +2523,12 @@ 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.
2531
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1869
2532
  */
1870
2533
  chainId: string;
1871
2534
  /**
@@ -1876,28 +2539,36 @@ declare class EvmTransactionsService {
1876
2539
  /**
1877
2540
  * List transactions for a block
1878
2541
  * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse
2542
+ * @returns ListNativeTransactionsResponse Successful response
1880
2543
  * @throws ApiError
1881
2544
  */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
2545
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
1883
2546
  /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2547
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
2548
  */
1886
2549
  chainId: string;
1887
2550
  /**
1888
2551
  * A block identifier which is either a block number or the block hash.
1889
2552
  */
1890
2553
  blockId: string;
2554
+ /**
2555
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2556
+ */
2557
+ pageToken?: string;
2558
+ /**
2559
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2560
+ */
2561
+ pageSize?: number;
1891
2562
  }): CancelablePromise<ListNativeTransactionsResponse>;
1892
2563
  /**
1893
2564
  * List latest transactions
1894
2565
  * Lists the latest transactions. Filterable by status.
1895
- * @returns ListNativeTransactionsResponse
2566
+ * @returns ListNativeTransactionsResponse Successful response
1896
2567
  * @throws ApiError
1897
2568
  */
1898
2569
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1899
2570
  /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2571
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
2572
  */
1902
2573
  chainId: string;
1903
2574
  /**
@@ -1923,7 +2594,7 @@ declare class HealthCheckService {
1923
2594
  * @returns any The Health Check is successful
1924
2595
  * @throws ApiError
1925
2596
  */
1926
- healthCheck(): CancelablePromise<{
2597
+ dataHealthCheck(): CancelablePromise<{
1927
2598
  status?: string;
1928
2599
  info?: Record<string, Record<string, string>> | null;
1929
2600
  error?: Record<string, Record<string, string>> | null;
@@ -1945,12 +2616,12 @@ declare class NfTsService {
1945
2616
  /**
1946
2617
  * Reindex NFT metadata
1947
2618
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1948
- * @returns any
2619
+ * @returns any Successful response
1949
2620
  * @throws ApiError
1950
2621
  */
1951
2622
  reindexNft({ chainId, address, tokenId, }: {
1952
2623
  /**
1953
- * 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.
1954
2625
  */
1955
2626
  chainId: string;
1956
2627
  /**
@@ -1965,12 +2636,12 @@ declare class NfTsService {
1965
2636
  /**
1966
2637
  * List tokens
1967
2638
  * Lists tokens for an NFT contract.
1968
- * @returns ListNftTokens
2639
+ * @returns ListNftTokens Successful response
1969
2640
  * @throws ApiError
1970
2641
  */
1971
2642
  listTokens({ chainId, address, pageToken, pageSize, }: {
1972
2643
  /**
1973
- * 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.
1974
2645
  */
1975
2646
  chainId: string;
1976
2647
  /**
@@ -1989,12 +2660,12 @@ declare class NfTsService {
1989
2660
  /**
1990
2661
  * Get token details
1991
2662
  * Gets token details for a specific token of an NFT contract.
1992
- * @returns any
2663
+ * @returns any Successful response
1993
2664
  * @throws ApiError
1994
2665
  */
1995
2666
  getTokenDetails({ chainId, address, tokenId, }: {
1996
2667
  /**
1997
- * 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.
1998
2669
  */
1999
2670
  chainId: string;
2000
2671
  /**
@@ -2019,16 +2690,16 @@ declare enum EVMOperationType {
2019
2690
 
2020
2691
  type CreateEvmTransactionExportRequest = {
2021
2692
  type: EVMOperationType;
2022
- firstDate: string;
2023
- lastDate: string;
2693
+ firstDate?: string;
2694
+ lastDate?: string;
2024
2695
  /**
2025
2696
  * @deprecated
2026
2697
  */
2027
- startDate: string;
2698
+ startDate?: string;
2028
2699
  /**
2029
2700
  * @deprecated
2030
2701
  */
2031
- endDate: string;
2702
+ endDate?: string;
2032
2703
  options: EvmNetworkOptions;
2033
2704
  };
2034
2705
 
@@ -2041,21 +2712,21 @@ declare enum PrimaryNetworkOperationType {
2041
2712
  type PrimaryNetworkOptions = {
2042
2713
  addresses?: Array<string>;
2043
2714
  cChainEvmAddresses?: Array<string>;
2044
- 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'>;
2045
2716
  };
2046
2717
 
2047
2718
  type CreatePrimaryNetworkTransactionExportRequest = {
2048
2719
  type: PrimaryNetworkOperationType;
2049
- firstDate: string;
2050
- lastDate: string;
2720
+ firstDate?: string;
2721
+ lastDate?: string;
2051
2722
  /**
2052
2723
  * @deprecated
2053
2724
  */
2054
- startDate: string;
2725
+ startDate?: string;
2055
2726
  /**
2056
2727
  * @deprecated
2057
2728
  */
2058
- endDate: string;
2729
+ endDate?: string;
2059
2730
  options: PrimaryNetworkOptions;
2060
2731
  };
2061
2732
 
@@ -2107,7 +2778,7 @@ declare class OperationsService {
2107
2778
  /**
2108
2779
  * Get operation
2109
2780
  * Gets operation details for the given operation id.
2110
- * @returns OperationStatusResponse
2781
+ * @returns OperationStatusResponse Successful response
2111
2782
  * @throws ApiError
2112
2783
  */
2113
2784
  getOperationResult({ operationId, }: {
@@ -2121,7 +2792,7 @@ declare class OperationsService {
2121
2792
  * Trigger a transaction export operation with given parameters.
2122
2793
  *
2123
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.
2124
- * @returns OperationStatusResponse
2795
+ * @returns OperationStatusResponse Successful response
2125
2796
  * @throws ApiError
2126
2797
  */
2127
2798
  postTransactionExportJob({ requestBody, }: {
@@ -2133,8 +2804,10 @@ declare enum BlockchainIds {
2133
2804
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2134
2805
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2135
2806
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2807
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2136
2808
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2137
- 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"
2138
2811
  }
2139
2812
 
2140
2813
  type ChainAddressChainIdMap = {
@@ -2158,16 +2831,31 @@ type DelegatorsDetails = {
2158
2831
  };
2159
2832
 
2160
2833
  type StakingDistribution = {
2834
+ /**
2835
+ * AvalancheGo version for the validator node.
2836
+ */
2161
2837
  version: string;
2838
+ /**
2839
+ * The total amount staked by validators using this version.
2840
+ */
2162
2841
  amountStaked: string;
2842
+ /**
2843
+ * The number of validators using this version.
2844
+ */
2163
2845
  validatorCount: number;
2164
2846
  };
2165
2847
 
2166
2848
  type ValidatorsDetails = {
2167
2849
  validatorCount: number;
2168
2850
  totalAmountStaked: string;
2851
+ /**
2852
+ * Total potential rewards from currently active validations and delegations.
2853
+ */
2169
2854
  estimatedAnnualStakingReward: string;
2170
2855
  stakingDistributionByVersion: Array<StakingDistribution>;
2856
+ /**
2857
+ * Ratio of total active stake amount to the current supply.
2858
+ */
2171
2859
  stakingRatio: string;
2172
2860
  };
2173
2861
 
@@ -2219,7 +2907,13 @@ type CompletedDelegatorDetails = {
2219
2907
  delegationFee: string;
2220
2908
  startTimestamp: number;
2221
2909
  endTimestamp: number;
2910
+ /**
2911
+ * Total rewards distributed for the successful delegation.
2912
+ */
2222
2913
  grossReward: string;
2914
+ /**
2915
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
2916
+ */
2223
2917
  netReward: string;
2224
2918
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2225
2919
  };
@@ -2237,31 +2931,88 @@ type PendingDelegatorDetails = {
2237
2931
  delegationFee: string;
2238
2932
  startTimestamp: number;
2239
2933
  endTimestamp: number;
2934
+ /**
2935
+ * Estimated total rewards that will be distributed for the successful delegation.
2936
+ */
2240
2937
  estimatedGrossReward: string;
2938
+ /**
2939
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
2940
+ */
2241
2941
  estimatedNetReward: string;
2242
2942
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2243
2943
  };
2244
- declare namespace PendingDelegatorDetails {
2245
- enum delegationStatus {
2246
- PENDING = "pending"
2247
- }
2248
- }
2944
+ declare namespace PendingDelegatorDetails {
2945
+ enum delegationStatus {
2946
+ PENDING = "pending"
2947
+ }
2948
+ }
2949
+
2950
+ type ListDelegatorDetailsResponse = {
2951
+ /**
2952
+ * 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.
2953
+ */
2954
+ nextPageToken?: string;
2955
+ /**
2956
+ * The list of Delegator Details.
2957
+ */
2958
+ delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2959
+ };
2960
+
2961
+ type BalanceOwner = {
2962
+ addresses: Array<string>;
2963
+ threshold: number;
2964
+ };
2249
2965
 
2250
- type ListDelegatorDetailsResponse = {
2966
+ type L1ValidatorDetailsFull = {
2967
+ /**
2968
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2969
+ */
2970
+ validationId: string;
2971
+ nodeId: string;
2972
+ subnetId: string;
2973
+ /**
2974
+ * 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
2975
+ */
2976
+ weight: number;
2977
+ /**
2978
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2979
+ */
2980
+ remainingBalance: number;
2981
+ /**
2982
+ * The timestamp of the transaction which created this L1 validator
2983
+ */
2984
+ creationTimestamp: number;
2985
+ blsCredentials: Record<string, any>;
2986
+ /**
2987
+ * The L1 validator owner's balance, returned after it's disabled or removed
2988
+ */
2989
+ remainingBalanceOwner: BalanceOwner;
2990
+ /**
2991
+ * Owner ddresses details which can disable or remove the L1 validator
2992
+ */
2993
+ deactivationOwner: BalanceOwner;
2994
+ };
2995
+
2996
+ type ListL1ValidatorsResponse = {
2251
2997
  /**
2252
2998
  * 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.
2253
2999
  */
2254
3000
  nextPageToken?: string;
2255
3001
  /**
2256
- * The list of Delegator Details.
3002
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2257
3003
  */
2258
- delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
3004
+ validators: Array<L1ValidatorDetailsFull>;
2259
3005
  };
2260
3006
 
2261
3007
  type BlockchainInfo = {
2262
3008
  blockchainId: string;
2263
3009
  };
2264
3010
 
3011
+ type L1ValidatorManagerDetails = {
3012
+ blockchainId: string;
3013
+ contractAddress: string;
3014
+ };
3015
+
2265
3016
  type SubnetOwnershipInfo = {
2266
3017
  /**
2267
3018
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2300,6 +3051,18 @@ type Subnet = {
2300
3051
  * Latest subnet owner details for this Subnet.
2301
3052
  */
2302
3053
  subnetOwnershipInfo: SubnetOwnershipInfo;
3054
+ /**
3055
+ * Whether the subnet is an L1 or not.
3056
+ */
3057
+ isL1: boolean;
3058
+ /**
3059
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3060
+ */
3061
+ l1ConversionTransactionHash?: string;
3062
+ /**
3063
+ * L1 validator manager details.
3064
+ */
3065
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2303
3066
  blockchains: Array<BlockchainInfo>;
2304
3067
  };
2305
3068
 
@@ -2347,6 +3110,9 @@ type ActiveValidatorDetails = {
2347
3110
  nodeId: string;
2348
3111
  subnetId: string;
2349
3112
  amountStaked: string;
3113
+ /**
3114
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3115
+ */
2350
3116
  delegationFee?: string;
2351
3117
  startTimestamp: number;
2352
3118
  endTimestamp: number;
@@ -2354,12 +3120,30 @@ type ActiveValidatorDetails = {
2354
3120
  * Present for AddPermissionlessValidatorTx
2355
3121
  */
2356
3122
  blsCredentials?: BlsCredentials;
3123
+ /**
3124
+ * The percentage of this validator's stake amount to the total active stake.
3125
+ */
2357
3126
  stakePercentage: number;
3127
+ /**
3128
+ * The number of delegators linked to the validator.
3129
+ */
2358
3130
  delegatorCount: number;
3131
+ /**
3132
+ * The total amount in nAVAX delegated to the validator.
3133
+ */
2359
3134
  amountDelegated?: string;
3135
+ /**
3136
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3137
+ */
2360
3138
  uptimePerformance: number;
2361
3139
  avalancheGoVersion?: string;
3140
+ /**
3141
+ * The amount of stake in nAVAX that can be delegated to this validator.
3142
+ */
2362
3143
  delegationCapacity?: string;
3144
+ /**
3145
+ * Estimated rewards for the validator if the validation is successful.
3146
+ */
2363
3147
  potentialRewards: Rewards;
2364
3148
  validationStatus: ActiveValidatorDetails.validationStatus;
2365
3149
  validatorHealth: ValidatorHealthDetails;
@@ -2375,6 +3159,9 @@ type CompletedValidatorDetails = {
2375
3159
  nodeId: string;
2376
3160
  subnetId: string;
2377
3161
  amountStaked: string;
3162
+ /**
3163
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3164
+ */
2378
3165
  delegationFee?: string;
2379
3166
  startTimestamp: number;
2380
3167
  endTimestamp: number;
@@ -2383,6 +3170,7 @@ type CompletedValidatorDetails = {
2383
3170
  */
2384
3171
  blsCredentials?: BlsCredentials;
2385
3172
  delegatorCount: number;
3173
+ amountDelegated?: string;
2386
3174
  rewards: Rewards;
2387
3175
  validationStatus: CompletedValidatorDetails.validationStatus;
2388
3176
  };
@@ -2397,6 +3185,9 @@ type PendingValidatorDetails = {
2397
3185
  nodeId: string;
2398
3186
  subnetId: string;
2399
3187
  amountStaked: string;
3188
+ /**
3189
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3190
+ */
2400
3191
  delegationFee?: string;
2401
3192
  startTimestamp: number;
2402
3193
  endTimestamp: number;
@@ -2417,6 +3208,9 @@ type RemovedValidatorDetails = {
2417
3208
  nodeId: string;
2418
3209
  subnetId: string;
2419
3210
  amountStaked: string;
3211
+ /**
3212
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3213
+ */
2420
3214
  delegationFee?: string;
2421
3215
  startTimestamp: number;
2422
3216
  endTimestamp: number;
@@ -2424,7 +3218,13 @@ type RemovedValidatorDetails = {
2424
3218
  * Present for AddPermissionlessValidatorTx
2425
3219
  */
2426
3220
  blsCredentials?: BlsCredentials;
3221
+ /**
3222
+ * The transaction hash that removed the permissioned subnet validator.
3223
+ */
2427
3224
  removeTxHash: string;
3225
+ /**
3226
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3227
+ */
2428
3228
  removeTimestamp: number;
2429
3229
  validationStatus: RemovedValidatorDetails.validationStatus;
2430
3230
  };
@@ -2445,11 +3245,6 @@ type ListValidatorDetailsResponse = {
2445
3245
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2446
3246
  };
2447
3247
 
2448
- declare enum Network {
2449
- MAINNET = "mainnet",
2450
- FUJI = "fuji"
2451
- }
2452
-
2453
3248
  declare enum SortByOption {
2454
3249
  BLOCK_INDEX = "blockIndex",
2455
3250
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2509,6 +3304,7 @@ type XChainAssetDetails = {
2509
3304
  declare enum XChainId {
2510
3305
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2511
3306
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3307
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2512
3308
  X_CHAIN = "x-chain"
2513
3309
  }
2514
3310
 
@@ -2518,7 +3314,7 @@ declare class PrimaryNetworkService {
2518
3314
  /**
2519
3315
  * Get asset details
2520
3316
  * Gets asset details corresponding to the given asset id on the X-Chain.
2521
- * @returns XChainAssetDetails
3317
+ * @returns XChainAssetDetails Successful response
2522
3318
  * @throws ApiError
2523
3319
  */
2524
3320
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2527,7 +3323,7 @@ declare class PrimaryNetworkService {
2527
3323
  */
2528
3324
  blockchainId: XChainId;
2529
3325
  /**
2530
- * Either mainnet or a testnet.
3326
+ * Either mainnet or testnet/fuji.
2531
3327
  */
2532
3328
  network: Network;
2533
3329
  /**
@@ -2538,7 +3334,7 @@ declare class PrimaryNetworkService {
2538
3334
  /**
2539
3335
  * Get chain interactions for addresses
2540
3336
  * 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.
2541
- * @returns ChainAddressChainIdMapListResponse
3337
+ * @returns ChainAddressChainIdMapListResponse Successful response
2542
3338
  * @throws ApiError
2543
3339
  */
2544
3340
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2547,31 +3343,31 @@ declare class PrimaryNetworkService {
2547
3343
  */
2548
3344
  addresses: string;
2549
3345
  /**
2550
- * Either mainnet or a testnet.
3346
+ * Either mainnet or testnet/fuji.
2551
3347
  */
2552
3348
  network: Network;
2553
3349
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2554
3350
  /**
2555
3351
  * Get network details
2556
3352
  * Gets network details such as validator and delegator stats.
2557
- * @returns GetNetworkDetailsResponse
3353
+ * @returns GetNetworkDetailsResponse Successful response
2558
3354
  * @throws ApiError
2559
3355
  */
2560
3356
  getNetworkDetails({ network, }: {
2561
3357
  /**
2562
- * Either mainnet or a testnet.
3358
+ * Either mainnet or testnet/fuji.
2563
3359
  */
2564
3360
  network: Network;
2565
3361
  }): CancelablePromise<GetNetworkDetailsResponse>;
2566
3362
  /**
2567
3363
  * List blockchains
2568
3364
  * Lists all blockchains registered on the network.
2569
- * @returns ListBlockchainsResponse
3365
+ * @returns ListBlockchainsResponse Successful response
2570
3366
  * @throws ApiError
2571
3367
  */
2572
3368
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2573
3369
  /**
2574
- * Either mainnet or a testnet.
3370
+ * Either mainnet or testnet/fuji.
2575
3371
  */
2576
3372
  network: Network;
2577
3373
  /**
@@ -2590,12 +3386,12 @@ declare class PrimaryNetworkService {
2590
3386
  /**
2591
3387
  * List subnets
2592
3388
  * Lists all subnets registered on the network.
2593
- * @returns ListSubnetsResponse
3389
+ * @returns ListSubnetsResponse Successful response
2594
3390
  * @throws ApiError
2595
3391
  */
2596
3392
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2597
3393
  /**
2598
- * Either mainnet or a testnet.
3394
+ * Either mainnet or testnet/fuji.
2599
3395
  */
2600
3396
  network: Network;
2601
3397
  /**
@@ -2614,12 +3410,12 @@ declare class PrimaryNetworkService {
2614
3410
  /**
2615
3411
  * Get Subnet details by ID
2616
3412
  * Get details of the Subnet registered on the network.
2617
- * @returns Subnet
3413
+ * @returns Subnet Successful response
2618
3414
  * @throws ApiError
2619
3415
  */
2620
3416
  getSubnetById({ network, subnetId, }: {
2621
3417
  /**
2622
- * Either mainnet or a testnet.
3418
+ * Either mainnet or testnet/fuji.
2623
3419
  */
2624
3420
  network: Network;
2625
3421
  /**
@@ -2630,12 +3426,12 @@ declare class PrimaryNetworkService {
2630
3426
  /**
2631
3427
  * List validators
2632
3428
  * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2633
- * @returns ListValidatorDetailsResponse
3429
+ * @returns ListValidatorDetailsResponse Successful response
2634
3430
  * @throws ApiError
2635
3431
  */
2636
3432
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2637
3433
  /**
2638
- * Either mainnet or a testnet.
3434
+ * Either mainnet or testnet/fuji.
2639
3435
  */
2640
3436
  network: Network;
2641
3437
  /**
@@ -2704,12 +3500,12 @@ declare class PrimaryNetworkService {
2704
3500
  /**
2705
3501
  * Get single validator details
2706
3502
  * List validator details for a single validator. Filterable by validation status.
2707
- * @returns ListValidatorDetailsResponse
3503
+ * @returns ListValidatorDetailsResponse Successful response
2708
3504
  * @throws ApiError
2709
3505
  */
2710
3506
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2711
3507
  /**
2712
- * Either mainnet or a testnet.
3508
+ * Either mainnet or testnet/fuji.
2713
3509
  */
2714
3510
  network: Network;
2715
3511
  /**
@@ -2736,12 +3532,12 @@ declare class PrimaryNetworkService {
2736
3532
  /**
2737
3533
  * List delegators
2738
3534
  * Lists details for delegators.
2739
- * @returns ListDelegatorDetailsResponse
3535
+ * @returns ListDelegatorDetailsResponse Successful response
2740
3536
  * @throws ApiError
2741
3537
  */
2742
3538
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
3539
  /**
2744
- * Either mainnet or a testnet.
3540
+ * Either mainnet or testnet/fuji.
2745
3541
  */
2746
3542
  network: Network;
2747
3543
  /**
@@ -2769,14 +3565,49 @@ declare class PrimaryNetworkService {
2769
3565
  */
2770
3566
  nodeIds?: string;
2771
3567
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3568
+ /**
3569
+ * List L1 validators
3570
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3571
+ * @returns ListL1ValidatorsResponse Successful response
3572
+ * @throws ApiError
3573
+ */
3574
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3575
+ /**
3576
+ * Either mainnet or testnet/fuji.
3577
+ */
3578
+ network: Network;
3579
+ /**
3580
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3581
+ */
3582
+ pageToken?: string;
3583
+ /**
3584
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3585
+ */
3586
+ pageSize?: number;
3587
+ /**
3588
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3589
+ */
3590
+ l1ValidationId?: any;
3591
+ includeInactiveL1Validators?: boolean;
3592
+ /**
3593
+ * A valid node ID in format 'NodeID-HASH'.
3594
+ */
3595
+ nodeId?: string;
3596
+ /**
3597
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3598
+ */
3599
+ subnetId?: any;
3600
+ }): CancelablePromise<ListL1ValidatorsResponse>;
2772
3601
  }
2773
3602
 
2774
3603
  declare enum BlockchainId {
2775
3604
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2776
3605
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2777
3606
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3607
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2778
3608
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2779
3609
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3610
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2780
3611
  P_CHAIN = "p-chain",
2781
3612
  X_CHAIN = "x-chain",
2782
3613
  C_CHAIN = "c-chain"
@@ -2813,11 +3644,6 @@ type CChainAtomicBalances = {
2813
3644
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2814
3645
  };
2815
3646
 
2816
- declare enum PrimaryNetwork {
2817
- MAINNET = "mainnet",
2818
- FUJI = "fuji"
2819
- }
2820
-
2821
3647
  declare enum PrimaryNetworkChainName {
2822
3648
  P_CHAIN = "p-chain",
2823
3649
  X_CHAIN = "x-chain",
@@ -2826,7 +3652,7 @@ declare enum PrimaryNetworkChainName {
2826
3652
 
2827
3653
  type PrimaryNetworkChainInfo = {
2828
3654
  chainName: PrimaryNetworkChainName;
2829
- network: PrimaryNetwork;
3655
+ network: Network;
2830
3656
  };
2831
3657
 
2832
3658
  type ListCChainAtomicBalancesResponse = {
@@ -2978,7 +3804,7 @@ declare class PrimaryNetworkBalancesService {
2978
3804
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
2979
3805
  *
2980
3806
  * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
2981
- * @returns any
3807
+ * @returns any Successful response
2982
3808
  * @throws ApiError
2983
3809
  */
2984
3810
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -2987,7 +3813,7 @@ declare class PrimaryNetworkBalancesService {
2987
3813
  */
2988
3814
  blockchainId: BlockchainId;
2989
3815
  /**
2990
- * Either mainnet or a testnet.
3816
+ * Either mainnet or testnet/fuji.
2991
3817
  */
2992
3818
  network: Network;
2993
3819
  /**
@@ -3018,6 +3844,8 @@ type GetPrimaryNetworkBlockResponse = {
3018
3844
  txCount: number;
3019
3845
  transactions: Array<string>;
3020
3846
  blockSizeBytes: number;
3847
+ l1ValidatorsAccruedFees?: number;
3848
+ activeL1Validators?: number;
3021
3849
  currentSupply?: string;
3022
3850
  proposerDetails?: ProposerDetails;
3023
3851
  };
@@ -3031,6 +3859,8 @@ type PrimaryNetworkBlock = {
3031
3859
  txCount: number;
3032
3860
  transactions: Array<string>;
3033
3861
  blockSizeBytes: number;
3862
+ l1ValidatorsAccruedFees?: number;
3863
+ activeL1Validators?: number;
3034
3864
  currentSupply?: string;
3035
3865
  proposerDetails?: ProposerDetails;
3036
3866
  };
@@ -3050,7 +3880,7 @@ declare class PrimaryNetworkBlocksService {
3050
3880
  /**
3051
3881
  * Get block
3052
3882
  * Gets a block by block height or block hash on one of the Primary Network chains.
3053
- * @returns GetPrimaryNetworkBlockResponse
3883
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3054
3884
  * @throws ApiError
3055
3885
  */
3056
3886
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3059,7 +3889,7 @@ declare class PrimaryNetworkBlocksService {
3059
3889
  */
3060
3890
  blockchainId: BlockchainId;
3061
3891
  /**
3062
- * Either mainnet or a testnet.
3892
+ * Either mainnet or testnet/fuji.
3063
3893
  */
3064
3894
  network: Network;
3065
3895
  /**
@@ -3070,22 +3900,30 @@ declare class PrimaryNetworkBlocksService {
3070
3900
  /**
3071
3901
  * List blocks proposed by node
3072
3902
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3073
- * @returns ListPrimaryNetworkBlocksResponse
3903
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3074
3904
  * @throws ApiError
3075
3905
  */
3076
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3906
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3077
3907
  /**
3078
3908
  * A primary network blockchain id or alias.
3079
3909
  */
3080
3910
  blockchainId: BlockchainId;
3081
3911
  /**
3082
- * Either mainnet or a testnet.
3912
+ * Either mainnet or testnet/fuji.
3083
3913
  */
3084
3914
  network: Network;
3085
3915
  /**
3086
3916
  * A primary network (P or X chain) nodeId.
3087
3917
  */
3088
3918
  nodeId: string;
3919
+ /**
3920
+ * Query param for retrieving items after a specific timestamp.
3921
+ */
3922
+ startTimestamp?: number;
3923
+ /**
3924
+ * Query param for retrieving items before a specific timestamp.
3925
+ */
3926
+ endTimestamp?: number;
3089
3927
  /**
3090
3928
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3091
3929
  */
@@ -3098,18 +3936,26 @@ declare class PrimaryNetworkBlocksService {
3098
3936
  /**
3099
3937
  * List latest blocks
3100
3938
  * Lists latest blocks on one of the Primary Network chains.
3101
- * @returns ListPrimaryNetworkBlocksResponse
3939
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3102
3940
  * @throws ApiError
3103
3941
  */
3104
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3942
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3105
3943
  /**
3106
3944
  * A primary network blockchain id or alias.
3107
3945
  */
3108
3946
  blockchainId: BlockchainId;
3109
3947
  /**
3110
- * Either mainnet or a testnet.
3948
+ * Either mainnet or testnet/fuji.
3111
3949
  */
3112
3950
  network: Network;
3951
+ /**
3952
+ * Query param for retrieving items after a specific timestamp.
3953
+ */
3954
+ startTimestamp?: number;
3955
+ /**
3956
+ * Query param for retrieving items before a specific timestamp.
3957
+ */
3958
+ endTimestamp?: number;
3113
3959
  /**
3114
3960
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3115
3961
  */
@@ -3236,12 +4082,12 @@ declare class PrimaryNetworkRewardsService {
3236
4082
  /**
3237
4083
  * List pending rewards
3238
4084
  * Lists pending rewards on the Primary Network for the supplied addresses.
3239
- * @returns ListPendingRewardsResponse
4085
+ * @returns ListPendingRewardsResponse Successful response
3240
4086
  * @throws ApiError
3241
4087
  */
3242
4088
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3243
4089
  /**
3244
- * Either mainnet or a testnet.
4090
+ * Either mainnet or testnet/fuji.
3245
4091
  */
3246
4092
  network: Network;
3247
4093
  /**
@@ -3268,12 +4114,12 @@ declare class PrimaryNetworkRewardsService {
3268
4114
  /**
3269
4115
  * List historical rewards
3270
4116
  * Lists historical rewards on the Primary Network for the supplied addresses.
3271
- * @returns ListHistoricalRewardsResponse
4117
+ * @returns ListHistoricalRewardsResponse Successful response
3272
4118
  * @throws ApiError
3273
4119
  */
3274
4120
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3275
4121
  /**
3276
- * Either mainnet or a testnet.
4122
+ * Either mainnet or testnet/fuji.
3277
4123
  */
3278
4124
  network: Network;
3279
4125
  /**
@@ -3519,6 +4365,28 @@ type ListCChainAtomicTransactionsResponse = {
3519
4365
  chainInfo: PrimaryNetworkChainInfo;
3520
4366
  };
3521
4367
 
4368
+ type L1ValidatorDetailsTransaction = {
4369
+ /**
4370
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4371
+ */
4372
+ validationId: string;
4373
+ nodeId: string;
4374
+ subnetId: string;
4375
+ /**
4376
+ * 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
4377
+ */
4378
+ weight: number;
4379
+ /**
4380
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4381
+ */
4382
+ remainingBalance: number;
4383
+ /**
4384
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4385
+ */
4386
+ balanceChange?: number;
4387
+ blsCredentials?: Record<string, any>;
4388
+ };
4389
+
3522
4390
  declare enum PChainTransactionType {
3523
4391
  ADD_VALIDATOR_TX = "AddValidatorTx",
3524
4392
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3535,9 +4403,17 @@ declare enum PChainTransactionType {
3535
4403
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3536
4404
  BASE_TX = "BaseTx",
3537
4405
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4406
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4407
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4408
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4409
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4410
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3538
4411
  UNKNOWN = "UNKNOWN"
3539
4412
  }
3540
4413
 
4414
+ /**
4415
+ * Indicates whether the UTXO is staked or transferable
4416
+ */
3541
4417
  declare enum UtxoType {
3542
4418
  STAKE = "STAKE",
3543
4419
  TRANSFER = "TRANSFER"
@@ -3575,16 +4451,43 @@ type PChainUtxo = {
3575
4451
  assetId: string;
3576
4452
  blockNumber: string;
3577
4453
  blockTimestamp: number;
4454
+ /**
4455
+ * Block height in which the transaction consuming this UTXO was included
4456
+ */
3578
4457
  consumingBlockNumber?: string;
4458
+ /**
4459
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4460
+ */
3579
4461
  consumingBlockTimestamp?: number;
4462
+ /**
4463
+ * Timestamp in seconds after which this UTXO can be consumed
4464
+ */
3580
4465
  platformLocktime?: number;
4466
+ /**
4467
+ * The index of the UTXO in the transaction
4468
+ */
3581
4469
  outputIndex: number;
3582
4470
  rewardType?: RewardType;
4471
+ /**
4472
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4473
+ */
3583
4474
  stakeableLocktime?: number;
3584
4475
  staked?: boolean;
4476
+ /**
4477
+ * The minimum number of signatures required to spend this UTXO
4478
+ */
3585
4479
  threshold?: number;
4480
+ /**
4481
+ * The hash of the transaction that created this UTXO
4482
+ */
3586
4483
  txHash: string;
4484
+ /**
4485
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4486
+ */
3587
4487
  utxoEndTimestamp?: number;
4488
+ /**
4489
+ * Timestamp in seconds at which the staked UTXO was locked.
4490
+ */
3588
4491
  utxoStartTimestamp?: number;
3589
4492
  utxoType: UtxoType;
3590
4493
  };
@@ -3599,9 +4502,18 @@ type PChainTransaction = {
3599
4502
  * The block finality timestamp.
3600
4503
  */
3601
4504
  blockTimestamp: number;
4505
+ /**
4506
+ * The height of the block in which the transaction was included
4507
+ */
3602
4508
  blockNumber: string;
3603
4509
  blockHash: string;
4510
+ /**
4511
+ * The consumed UTXOs of the transaction
4512
+ */
3604
4513
  consumedUtxos: Array<PChainUtxo>;
4514
+ /**
4515
+ * The newly created UTXOs of the transaction
4516
+ */
3605
4517
  emittedUtxos: Array<PChainUtxo>;
3606
4518
  /**
3607
4519
  * Source chain for an atomic transaction.
@@ -3612,17 +4524,21 @@ type PChainTransaction = {
3612
4524
  */
3613
4525
  destinationChain?: string;
3614
4526
  /**
3615
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4527
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
3616
4528
  */
3617
4529
  value: Array<AssetAmount>;
3618
4530
  /**
3619
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4531
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
3620
4532
  */
3621
4533
  amountBurned: Array<AssetAmount>;
3622
4534
  /**
3623
4535
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3624
4536
  */
3625
4537
  amountStaked: Array<AssetAmount>;
4538
+ /**
4539
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
4540
+ */
4541
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3626
4542
  /**
3627
4543
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3628
4544
  */
@@ -3632,11 +4548,11 @@ type PChainTransaction = {
3632
4548
  */
3633
4549
  endTimestamp?: number;
3634
4550
  /**
3635
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4551
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3636
4552
  */
3637
4553
  delegationFeePercent?: string;
3638
4554
  /**
3639
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4555
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3640
4556
  */
3641
4557
  nodeId?: string;
3642
4558
  /**
@@ -3644,14 +4560,25 @@ type PChainTransaction = {
3644
4560
  */
3645
4561
  subnetId?: string;
3646
4562
  /**
3647
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4563
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4564
+ */
4565
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4566
+ /**
4567
+ * 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
4568
+ */
4569
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4570
+ /**
4571
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3648
4572
  */
3649
4573
  estimatedReward?: string;
4574
+ /**
4575
+ * Reward transaction hash for the completed validations or delegations
4576
+ */
3650
4577
  rewardTxHash?: string;
3651
4578
  rewardAddresses?: Array<string>;
3652
4579
  memo?: string;
3653
4580
  /**
3654
- * Present for RewardValidatorTx
4581
+ * Staking transaction corresponding to the RewardValidatorTx
3655
4582
  */
3656
4583
  stakingTxHash?: string;
3657
4584
  /**
@@ -3659,7 +4586,7 @@ type PChainTransaction = {
3659
4586
  */
3660
4587
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3661
4588
  /**
3662
- * Present for AddPermissionlessValidatorTx
4589
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3663
4590
  */
3664
4591
  blsCredentials?: BlsCredentials;
3665
4592
  };
@@ -3844,6 +4771,11 @@ declare enum PrimaryNetworkTxType {
3844
4771
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3845
4772
  BASE_TX = "BaseTx",
3846
4773
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4774
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4775
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4776
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4777
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4778
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3847
4779
  UNKNOWN = "UNKNOWN",
3848
4780
  CREATE_ASSET_TX = "CreateAssetTx",
3849
4781
  OPERATION_TX = "OperationTx"
@@ -3855,7 +4787,7 @@ declare class PrimaryNetworkTransactionsService {
3855
4787
  /**
3856
4788
  * Get transaction
3857
4789
  * Gets the details of a single transaction on one of the Primary Network chains.
3858
- * @returns any
4790
+ * @returns any Successful response
3859
4791
  * @throws ApiError
3860
4792
  */
3861
4793
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -3864,7 +4796,7 @@ declare class PrimaryNetworkTransactionsService {
3864
4796
  */
3865
4797
  blockchainId: BlockchainId;
3866
4798
  /**
3867
- * Either mainnet or a testnet.
4799
+ * Either mainnet or testnet/fuji.
3868
4800
  */
3869
4801
  network: Network;
3870
4802
  /**
@@ -3878,23 +4810,26 @@ declare class PrimaryNetworkTransactionsService {
3878
4810
  *
3879
4811
  * 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.
3880
4812
  *
4813
+ * 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.
4814
+ *
3881
4815
  * 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.
3882
- * @returns any
4816
+ * @returns any Successful response
3883
4817
  * @throws ApiError
3884
4818
  */
3885
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4819
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3886
4820
  /**
3887
4821
  * A primary network blockchain id or alias.
3888
4822
  */
3889
4823
  blockchainId: BlockchainId;
3890
4824
  /**
3891
- * Either mainnet or a testnet.
4825
+ * Either mainnet or testnet/fuji.
3892
4826
  */
3893
4827
  network: Network;
3894
4828
  /**
3895
- * 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".
4829
+ * 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.
3896
4830
  */
3897
4831
  addresses?: string;
4832
+ l1ValidationId?: string;
3898
4833
  /**
3899
4834
  * Query param for filtering items based on transaction types.
3900
4835
  */
@@ -3923,7 +4858,7 @@ declare class PrimaryNetworkTransactionsService {
3923
4858
  /**
3924
4859
  * List staking transactions
3925
4860
  * Lists active staking transactions on the P-Chain for the supplied addresses.
3926
- * @returns ListPChainTransactionsResponse
4861
+ * @returns ListPChainTransactionsResponse Successful response
3927
4862
  * @throws ApiError
3928
4863
  */
3929
4864
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -3932,7 +4867,7 @@ declare class PrimaryNetworkTransactionsService {
3932
4867
  */
3933
4868
  blockchainId: PChainId;
3934
4869
  /**
3935
- * Either mainnet or a testnet.
4870
+ * Either mainnet or testnet/fuji.
3936
4871
  */
3937
4872
  network: Network;
3938
4873
  /**
@@ -3967,7 +4902,7 @@ declare class PrimaryNetworkTransactionsService {
3967
4902
  /**
3968
4903
  * List asset transactions
3969
4904
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
3970
- * @returns ListXChainTransactionsResponse
4905
+ * @returns ListXChainTransactionsResponse Successful response
3971
4906
  * @throws ApiError
3972
4907
  */
3973
4908
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -3976,7 +4911,7 @@ declare class PrimaryNetworkTransactionsService {
3976
4911
  */
3977
4912
  blockchainId: XChainId;
3978
4913
  /**
3979
- * Either mainnet or a testnet.
4914
+ * Either mainnet or testnet/fuji.
3980
4915
  */
3981
4916
  network: Network;
3982
4917
  /**
@@ -4030,7 +4965,7 @@ declare class PrimaryNetworkUtxOsService {
4030
4965
  /**
4031
4966
  * List UTXOs
4032
4967
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4033
- * @returns any
4968
+ * @returns any Successful response
4034
4969
  * @throws ApiError
4035
4970
  */
4036
4971
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4039,7 +4974,7 @@ declare class PrimaryNetworkUtxOsService {
4039
4974
  */
4040
4975
  blockchainId: BlockchainId;
4041
4976
  /**
4042
- * Either mainnet or a testnet.
4977
+ * Either mainnet or testnet/fuji.
4043
4978
  */
4044
4979
  network: Network;
4045
4980
  /**
@@ -4095,7 +5030,7 @@ declare class PrimaryNetworkVerticesService {
4095
5030
  /**
4096
5031
  * List vertices
4097
5032
  * Lists latest vertices on the X-Chain.
4098
- * @returns ListXChainVerticesResponse
5033
+ * @returns ListXChainVerticesResponse Successful response
4099
5034
  * @throws ApiError
4100
5035
  */
4101
5036
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4104,7 +5039,7 @@ declare class PrimaryNetworkVerticesService {
4104
5039
  */
4105
5040
  blockchainId: XChainId;
4106
5041
  /**
4107
- * Either mainnet or a testnet.
5042
+ * Either mainnet or testnet/fuji.
4108
5043
  */
4109
5044
  network: Network;
4110
5045
  /**
@@ -4119,7 +5054,7 @@ declare class PrimaryNetworkVerticesService {
4119
5054
  /**
4120
5055
  * Get vertex
4121
5056
  * Gets a single vertex on the X-Chain.
4122
- * @returns XChainVertex
5057
+ * @returns XChainVertex Successful response
4123
5058
  * @throws ApiError
4124
5059
  */
4125
5060
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4132,14 +5067,14 @@ declare class PrimaryNetworkVerticesService {
4132
5067
  */
4133
5068
  blockchainId: XChainId;
4134
5069
  /**
4135
- * Either mainnet or a testnet.
5070
+ * Either mainnet or testnet/fuji.
4136
5071
  */
4137
5072
  network: Network;
4138
5073
  }): CancelablePromise<XChainVertex>;
4139
5074
  /**
4140
5075
  * List vertices by height
4141
5076
  * Lists vertices at the given vertex height on the X-Chain.
4142
- * @returns ListXChainVerticesResponse
5077
+ * @returns ListXChainVerticesResponse Successful response
4143
5078
  * @throws ApiError
4144
5079
  */
4145
5080
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4152,7 +5087,7 @@ declare class PrimaryNetworkVerticesService {
4152
5087
  */
4153
5088
  blockchainId: XChainId;
4154
5089
  /**
4155
- * Either mainnet or a testnet.
5090
+ * Either mainnet or testnet/fuji.
4156
5091
  */
4157
5092
  network: Network;
4158
5093
  /**
@@ -4170,47 +5105,33 @@ declare class PrimaryNetworkVerticesService {
4170
5105
  }): CancelablePromise<ListXChainVerticesResponse>;
4171
5106
  }
4172
5107
 
4173
- type RpcErrorDto = {
4174
- code: number;
4175
- message: string;
4176
- data?: Record<string, any>;
4177
- };
4178
-
4179
- type RpcErrorResponseDto = {
4180
- jsonrpc: string;
4181
- id?: (string | number);
4182
- error: RpcErrorDto;
4183
- };
4184
-
4185
- type RpcRequestBodyDto = {
4186
- method: string;
4187
- params?: Record<string, any>;
4188
- id?: (string | number);
4189
- jsonrpc?: string;
5108
+ type SignatureAggregationResponse = {
5109
+ signedMessage: string;
4190
5110
  };
4191
5111
 
4192
- type RpcSuccessResponseDto = {
4193
- jsonrpc: string;
4194
- id?: (string | number);
4195
- result: Record<string, any>;
5112
+ type SignatureAggregatorRequest = {
5113
+ message: string;
5114
+ justification?: string;
5115
+ signingSubnetId?: string;
5116
+ quorumPercentage?: number;
4196
5117
  };
4197
5118
 
4198
- declare class RpcService {
5119
+ declare class SignatureAggregatorService {
4199
5120
  readonly httpRequest: BaseHttpRequest;
4200
5121
  constructor(httpRequest: BaseHttpRequest);
4201
5122
  /**
4202
- * Calls JSON-RPC method
4203
- * Calls JSON-RPC method.
4204
- * @returns any
5123
+ * Aggregate Signatures
5124
+ * Aggregates Signatures for a Warp message from Subnet validators.
5125
+ * @returns SignatureAggregationResponse Successful response
4205
5126
  * @throws ApiError
4206
5127
  */
4207
- rpc({ chainId, requestBody, }: {
5128
+ aggregateSignatures({ network, requestBody, }: {
4208
5129
  /**
4209
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5130
+ * Either mainnet or testnet/fuji.
4210
5131
  */
4211
- chainId: string;
4212
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4213
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5132
+ network: Network;
5133
+ requestBody: SignatureAggregatorRequest;
5134
+ }): CancelablePromise<SignatureAggregationResponse>;
4214
5135
  }
4215
5136
 
4216
5137
  type TeleporterDestinationTransaction = {
@@ -4353,7 +5274,7 @@ declare class TeleporterService {
4353
5274
  /**
4354
5275
  * Get a teleporter message
4355
5276
  * Gets a teleporter message by message ID.
4356
- * @returns any
5277
+ * @returns any Successful response
4357
5278
  * @throws ApiError
4358
5279
  */
4359
5280
  getTeleporterMessage({ messageId, }: {
@@ -4365,10 +5286,10 @@ declare class TeleporterService {
4365
5286
  /**
4366
5287
  * List teleporter messages
4367
5288
  * Lists teleporter messages. Ordered by timestamp in descending order.
4368
- * @returns ListTeleporterMessagesResponse
5289
+ * @returns ListTeleporterMessagesResponse Successful response
4369
5290
  * @throws ApiError
4370
5291
  */
4371
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
5292
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
4372
5293
  /**
4373
5294
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4374
5295
  */
@@ -4385,6 +5306,10 @@ declare class TeleporterService {
4385
5306
  * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4386
5307
  */
4387
5308
  destinationBlockchainId?: string;
5309
+ /**
5310
+ * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
5311
+ */
5312
+ blockchainId?: string;
4388
5313
  /**
4389
5314
  * The address of the recipient of the teleporter message.
4390
5315
  */
@@ -4394,9 +5319,33 @@ declare class TeleporterService {
4394
5319
  */
4395
5320
  from?: string;
4396
5321
  /**
4397
- * mainnet or testnet.
5322
+ * Either mainnet or testnet/fuji.
5323
+ */
5324
+ network?: Network;
5325
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5326
+ /**
5327
+ * List teleporter messages by address
5328
+ * Lists teleporter messages by address. Ordered by timestamp in descending order.
5329
+ * @returns ListTeleporterMessagesResponse Successful response
5330
+ * @throws ApiError
5331
+ */
5332
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5333
+ /**
5334
+ * An EVM address.
5335
+ */
5336
+ address: string;
5337
+ /**
5338
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5339
+ */
5340
+ pageToken?: string;
5341
+ /**
5342
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5343
+ */
5344
+ pageSize?: number;
5345
+ /**
5346
+ * Either mainnet or testnet/fuji.
4398
5347
  */
4399
- network?: NetworkType;
5348
+ network?: Network;
4400
5349
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4401
5350
  }
4402
5351
 
@@ -4404,7 +5353,7 @@ type AddressesChangeRequest = {
4404
5353
  /**
4405
5354
  * Ethereum address(es) for the address_activity event type
4406
5355
  */
4407
- addresses: Array<any[]>;
5356
+ addresses: Array<string>;
4408
5357
  };
4409
5358
 
4410
5359
  type AddressActivityMetadata = {
@@ -4430,7 +5379,7 @@ type CreateWebhookRequest = {
4430
5379
  name?: string;
4431
5380
  description?: string;
4432
5381
  /**
4433
- * Whether to include traces in the webhook payload.
5382
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4434
5383
  */
4435
5384
  includeInternalTxs?: boolean;
4436
5385
  /**
@@ -4490,6 +5439,9 @@ type UpdateWebhookRequest = {
4490
5439
  description?: string;
4491
5440
  url?: string;
4492
5441
  status?: WebhookStatusType;
5442
+ /**
5443
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5444
+ */
4493
5445
  includeInternalTxs?: boolean;
4494
5446
  includeLogs?: boolean;
4495
5447
  };
@@ -4505,7 +5457,7 @@ declare class WebhooksService {
4505
5457
  /**
4506
5458
  * Create a webhook
4507
5459
  * Create a new webhook.
4508
- * @returns WebhookResponse
5460
+ * @returns WebhookResponse Successful response
4509
5461
  * @throws ApiError
4510
5462
  */
4511
5463
  createWebhook({ requestBody, }: {
@@ -4514,7 +5466,7 @@ declare class WebhooksService {
4514
5466
  /**
4515
5467
  * List webhooks
4516
5468
  * Lists webhooks for the user.
4517
- * @returns ListWebhooksResponse
5469
+ * @returns ListWebhooksResponse Successful response
4518
5470
  * @throws ApiError
4519
5471
  */
4520
5472
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4534,7 +5486,7 @@ declare class WebhooksService {
4534
5486
  /**
4535
5487
  * Get a webhook by ID
4536
5488
  * Retrieves a webhook by ID.
4537
- * @returns WebhookResponse
5489
+ * @returns WebhookResponse Successful response
4538
5490
  * @throws ApiError
4539
5491
  */
4540
5492
  getWebhook({ id, }: {
@@ -4546,7 +5498,7 @@ declare class WebhooksService {
4546
5498
  /**
4547
5499
  * Deactivate a webhook
4548
5500
  * Deactivates a webhook by ID.
4549
- * @returns WebhookResponse
5501
+ * @returns WebhookResponse Successful response
4550
5502
  * @throws ApiError
4551
5503
  */
4552
5504
  deactivateWebhook({ id, }: {
@@ -4558,7 +5510,7 @@ declare class WebhooksService {
4558
5510
  /**
4559
5511
  * Update a webhook
4560
5512
  * Updates an existing webhook.
4561
- * @returns WebhookResponse
5513
+ * @returns WebhookResponse Successful response
4562
5514
  * @throws ApiError
4563
5515
  */
4564
5516
  updateWebhook({ id, requestBody, }: {
@@ -4571,21 +5523,21 @@ declare class WebhooksService {
4571
5523
  /**
4572
5524
  * Generate a shared secret
4573
5525
  * Generates a new shared secret.
4574
- * @returns SharedSecretsResponse
5526
+ * @returns SharedSecretsResponse Successful response
4575
5527
  * @throws ApiError
4576
5528
  */
4577
5529
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4578
5530
  /**
4579
5531
  * Get a shared secret
4580
5532
  * Get a previously generated shared secret.
4581
- * @returns SharedSecretsResponse
5533
+ * @returns SharedSecretsResponse Successful response
4582
5534
  * @throws ApiError
4583
5535
  */
4584
5536
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4585
5537
  /**
4586
5538
  * Add addresses to webhook
4587
5539
  * Add addresses to webhook.
4588
- * @returns WebhookResponse
5540
+ * @returns WebhookResponse Successful response
4589
5541
  * @throws ApiError
4590
5542
  */
4591
5543
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4598,7 +5550,7 @@ declare class WebhooksService {
4598
5550
  /**
4599
5551
  * Remove addresses from webhook
4600
5552
  * Remove addresses from webhook.
4601
- * @returns WebhookResponse
5553
+ * @returns WebhookResponse Successful response
4602
5554
  * @throws ApiError
4603
5555
  */
4604
5556
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4611,7 +5563,7 @@ declare class WebhooksService {
4611
5563
  /**
4612
5564
  * List adresses by webhook
4613
5565
  * List adresses by webhook.
4614
- * @returns ListWebhookAddressesResponse
5566
+ * @returns ListWebhookAddressesResponse Successful response
4615
5567
  * @throws ApiError
4616
5568
  */
4617
5569
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4632,6 +5584,7 @@ declare class WebhooksService {
4632
5584
 
4633
5585
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4634
5586
  declare class Glacier {
5587
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4635
5588
  readonly default: DefaultService;
4636
5589
  readonly evmBalances: EvmBalancesService;
4637
5590
  readonly evmBlocks: EvmBlocksService;
@@ -4648,7 +5601,7 @@ declare class Glacier {
4648
5601
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4649
5602
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4650
5603
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4651
- readonly rpc: RpcService;
5604
+ readonly signatureAggregator: SignatureAggregatorService;
4652
5605
  readonly teleporter: TeleporterService;
4653
5606
  readonly webhooks: WebhooksService;
4654
5607
  readonly request: BaseHttpRequest;
@@ -4672,6 +5625,70 @@ declare class ApiError extends Error {
4672
5625
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4673
5626
  }
4674
5627
 
5628
+ type BadGateway = {
5629
+ /**
5630
+ * The error message describing the reason for the exception
5631
+ */
5632
+ message: (string | Array<string>);
5633
+ /**
5634
+ * The HTTP status code of the response
5635
+ */
5636
+ statusCode: number;
5637
+ /**
5638
+ * The type of error
5639
+ */
5640
+ error: string;
5641
+ };
5642
+
5643
+ type BadRequest = {
5644
+ /**
5645
+ * The error message describing the reason for the exception
5646
+ */
5647
+ message: (string | Array<string>);
5648
+ /**
5649
+ * The HTTP status code of the response
5650
+ */
5651
+ statusCode: number;
5652
+ /**
5653
+ * The type of error
5654
+ */
5655
+ error: string;
5656
+ };
5657
+
5658
+ type DataListChainsResponse = {
5659
+ chains: Array<ChainInfo>;
5660
+ };
5661
+
5662
+ type Forbidden = {
5663
+ /**
5664
+ * The error message describing the reason for the exception
5665
+ */
5666
+ message: (string | Array<string>);
5667
+ /**
5668
+ * The HTTP status code of the response
5669
+ */
5670
+ statusCode: number;
5671
+ /**
5672
+ * The type of error
5673
+ */
5674
+ error: string;
5675
+ };
5676
+
5677
+ type InternalServerError = {
5678
+ /**
5679
+ * The error message describing the reason for the exception
5680
+ */
5681
+ message: (string | Array<string>);
5682
+ /**
5683
+ * The HTTP status code of the response
5684
+ */
5685
+ statusCode: number;
5686
+ /**
5687
+ * The type of error
5688
+ */
5689
+ error: string;
5690
+ };
5691
+
4675
5692
  type NextPageToken = {
4676
5693
  /**
4677
5694
  * 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.
@@ -4679,4 +5696,64 @@ type NextPageToken = {
4679
5696
  nextPageToken?: string;
4680
5697
  };
4681
5698
 
4682
- 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, 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, 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, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5699
+ type NotFound = {
5700
+ /**
5701
+ * The error message describing the reason for the exception
5702
+ */
5703
+ message: (string | Array<string>);
5704
+ /**
5705
+ * The HTTP status code of the response
5706
+ */
5707
+ statusCode: number;
5708
+ /**
5709
+ * The type of error
5710
+ */
5711
+ error: string;
5712
+ };
5713
+
5714
+ type ServiceUnavailable = {
5715
+ /**
5716
+ * The error message describing the reason for the exception
5717
+ */
5718
+ message: (string | Array<string>);
5719
+ /**
5720
+ * The HTTP status code of the response
5721
+ */
5722
+ statusCode: number;
5723
+ /**
5724
+ * The type of error
5725
+ */
5726
+ error: string;
5727
+ };
5728
+
5729
+ type TooManyRequests = {
5730
+ /**
5731
+ * The error message describing the reason for the exception
5732
+ */
5733
+ message: (string | Array<string>);
5734
+ /**
5735
+ * The HTTP status code of the response
5736
+ */
5737
+ statusCode: number;
5738
+ /**
5739
+ * The type of error
5740
+ */
5741
+ error: string;
5742
+ };
5743
+
5744
+ type Unauthorized = {
5745
+ /**
5746
+ * The error message describing the reason for the exception
5747
+ */
5748
+ message: (string | Array<string>);
5749
+ /**
5750
+ * The HTTP status code of the response
5751
+ */
5752
+ statusCode: number;
5753
+ /**
5754
+ * The type of error
5755
+ */
5756
+ error: string;
5757
+ };
5758
+
5759
+ 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 };