@avalabs/glacier-sdk 3.1.0-canary.5b3df0e.0 → 3.1.0-canary.5dba689.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 (145) hide show
  1. package/dist/index.d.ts +1446 -575
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -4
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/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 +1 -1
  42. package/esm/generated/models/Metric.d.ts +14 -0
  43. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  44. package/esm/generated/models/Network.d.ts +3 -1
  45. package/esm/generated/models/Network.js +1 -1
  46. package/esm/generated/models/NotFound.d.ts +16 -0
  47. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  48. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  49. package/esm/generated/models/PChainTransactionType.js +1 -1
  50. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  51. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  52. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  53. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  54. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  55. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  56. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  57. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  58. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  59. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  60. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  61. package/esm/generated/models/RequestType.d.ts +2 -2
  62. package/esm/generated/models/RequestType.js +1 -1
  63. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  64. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  65. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  66. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  67. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  68. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  69. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  70. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  71. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  72. package/esm/generated/models/Subnet.d.ts +13 -0
  73. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  74. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  75. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  76. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  77. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  78. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  79. package/esm/generated/models/TransactionDirectionType.js +1 -0
  80. package/esm/generated/models/Unauthorized.d.ts +16 -0
  81. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  82. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
  83. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
  84. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
  85. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  86. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  87. package/esm/generated/models/UtxoType.d.ts +3 -0
  88. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  89. package/esm/generated/models/XChainId.d.ts +1 -0
  90. package/esm/generated/models/XChainId.js +1 -1
  91. package/esm/generated/services/DataApiUsageMetricsService.d.ts +204 -0
  92. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  93. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  94. package/esm/generated/services/EvmBalancesService.js +1 -1
  95. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  96. package/esm/generated/services/EvmBlocksService.js +1 -1
  97. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  98. package/esm/generated/services/EvmChainsService.js +1 -1
  99. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  100. package/esm/generated/services/EvmContractsService.js +1 -1
  101. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  102. package/esm/generated/services/EvmTransactionsService.js +1 -1
  103. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  104. package/esm/generated/services/HealthCheckService.js +1 -1
  105. package/esm/generated/services/NfTsService.d.ts +6 -6
  106. package/esm/generated/services/NfTsService.js +1 -1
  107. package/esm/generated/services/OperationsService.d.ts +2 -2
  108. package/esm/generated/services/OperationsService.js +1 -1
  109. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  110. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  111. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  112. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  113. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  114. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  115. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  116. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  117. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  118. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  119. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  120. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  121. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  122. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  123. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  124. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  125. package/esm/generated/services/TeleporterService.d.ts +29 -5
  126. package/esm/generated/services/TeleporterService.js +1 -1
  127. package/esm/generated/services/WebhooksService.d.ts +10 -10
  128. package/esm/generated/services/WebhooksService.js +1 -1
  129. package/esm/index.d.ts +30 -9
  130. package/esm/index.js +1 -1
  131. package/package.json +2 -2
  132. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  133. package/esm/generated/models/GlacierApiFeature.js +0 -1
  134. package/esm/generated/models/NetworkType.d.ts +0 -6
  135. package/esm/generated/models/NetworkType.js +0 -1
  136. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  137. package/esm/generated/models/PrimaryNetwork.js +0 -1
  138. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  139. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  140. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  141. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  142. package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
  143. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
  144. package/esm/generated/services/RpcService.d.ts +0 -25
  145. 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
  */
@@ -641,119 +1181,300 @@ declare enum ChainStatus {
641
1181
 
642
1182
  type NetworkToken = {
643
1183
  /**
644
- * The contract name.
1184
+ * The contract name.
1185
+ */
1186
+ name: string;
1187
+ /**
1188
+ * The contract symbol.
1189
+ */
1190
+ symbol: string;
1191
+ /**
1192
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1193
+ */
1194
+ decimals: number;
1195
+ /**
1196
+ * The logo uri for the address.
1197
+ */
1198
+ logoUri?: string;
1199
+ description?: string;
1200
+ };
1201
+
1202
+ type UtilityAddresses = {
1203
+ multicall?: string;
1204
+ };
1205
+
1206
+ declare enum VmName {
1207
+ EVM = "EVM",
1208
+ BITCOIN = "BITCOIN",
1209
+ ETHEREUM = "ETHEREUM"
1210
+ }
1211
+
1212
+ type GetChainResponse = {
1213
+ chainId: string;
1214
+ status: ChainStatus;
1215
+ chainName: string;
1216
+ description: string;
1217
+ platformChainId?: string;
1218
+ subnetId?: string;
1219
+ vmId?: string;
1220
+ vmName: VmName;
1221
+ explorerUrl?: string;
1222
+ rpcUrl: string;
1223
+ wsUrl?: string;
1224
+ isTestnet: boolean;
1225
+ utilityAddresses?: UtilityAddresses;
1226
+ networkToken: NetworkToken;
1227
+ chainLogoUri?: string;
1228
+ private?: boolean;
1229
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1230
+ };
1231
+
1232
+ type ChainInfo = {
1233
+ chainId: string;
1234
+ status: ChainStatus;
1235
+ chainName: string;
1236
+ description: string;
1237
+ platformChainId?: string;
1238
+ subnetId?: string;
1239
+ vmId?: string;
1240
+ vmName: VmName;
1241
+ explorerUrl?: string;
1242
+ rpcUrl: string;
1243
+ wsUrl?: string;
1244
+ isTestnet: boolean;
1245
+ utilityAddresses?: UtilityAddresses;
1246
+ networkToken: NetworkToken;
1247
+ chainLogoUri?: string;
1248
+ private?: boolean;
1249
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1250
+ };
1251
+
1252
+ type ListAddressChainsResponse = {
1253
+ indexedChains?: Array<ChainInfo>;
1254
+ unindexedChains?: Array<string>;
1255
+ };
1256
+
1257
+ type ListChainsResponse = {
1258
+ chains: Array<ChainInfo>;
1259
+ };
1260
+
1261
+ /**
1262
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1263
+ */
1264
+ declare enum TransactionMethodType {
1265
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1266
+ CONTRACT_CALL = "CONTRACT_CALL",
1267
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1268
+ }
1269
+
1270
+ type Method = {
1271
+ callType: TransactionMethodType;
1272
+ /**
1273
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1274
+ */
1275
+ methodHash: string;
1276
+ /**
1277
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1278
+ */
1279
+ methodName?: string;
1280
+ };
1281
+
1282
+ type RichAddress = {
1283
+ /**
1284
+ * The contract name.
1285
+ */
1286
+ name?: string;
1287
+ /**
1288
+ * The contract symbol.
1289
+ */
1290
+ symbol?: string;
1291
+ /**
1292
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1293
+ */
1294
+ decimals?: number;
1295
+ /**
1296
+ * The logo uri for the address.
1297
+ */
1298
+ logoUri?: string;
1299
+ /**
1300
+ * A wallet or contract address in mixed-case checksum encoding.
1301
+ */
1302
+ address: string;
1303
+ };
1304
+
1305
+ type NativeTransaction = {
1306
+ /**
1307
+ * The block number on the chain.
1308
+ */
1309
+ blockNumber: string;
1310
+ /**
1311
+ * The block finality timestamp.
1312
+ */
1313
+ blockTimestamp: number;
1314
+ /**
1315
+ * The block hash identifier.
1316
+ */
1317
+ blockHash: string;
1318
+ /**
1319
+ * The EVM chain ID on which the transaction occured.
1320
+ */
1321
+ chainId: string;
1322
+ /**
1323
+ * The index at which the transaction occured in the block (0-indexed).
1324
+ */
1325
+ blockIndex: number;
1326
+ /**
1327
+ * The transaction hash identifier.
1328
+ */
1329
+ txHash: string;
1330
+ /**
1331
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1332
+ */
1333
+ txStatus: string;
1334
+ /**
1335
+ * The transaction type.
1336
+ */
1337
+ txType: number;
1338
+ /**
1339
+ * The gas limit set for the transaction.
645
1340
  */
646
- name: string;
1341
+ gasLimit: string;
647
1342
  /**
648
- * The contract symbol.
1343
+ * The amount of gas used.
649
1344
  */
650
- symbol: string;
1345
+ gasUsed: string;
651
1346
  /**
652
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1347
+ * The gas price denominated by the number of decimals of the native token.
653
1348
  */
654
- decimals: number;
1349
+ gasPrice: string;
655
1350
  /**
656
- * The logo uri for the address.
1351
+ * The nonce used by the sender of the transaction.
657
1352
  */
658
- logoUri?: string;
659
- description?: string;
660
- };
661
-
662
- type UtilityAddresses = {
663
- multicall?: string;
664
- };
665
-
666
- declare enum VmName {
667
- EVM = "EVM",
668
- BITCOIN = "BITCOIN",
669
- ETHEREUM = "ETHEREUM"
670
- }
671
-
672
- type GetChainResponse = {
673
- chainId: string;
674
- status: ChainStatus;
675
- chainName: string;
676
- description: string;
677
- platformChainId?: string;
678
- subnetId?: string;
679
- vmId?: string;
680
- vmName: VmName;
681
- explorerUrl?: string;
682
- rpcUrl: string;
683
- wsUrl?: string;
684
- isTestnet: boolean;
685
- utilityAddresses?: UtilityAddresses;
686
- networkToken: NetworkToken;
687
- chainLogoUri?: string;
688
- private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
690
- };
691
-
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
- type ChainInfo = {
698
- chainId: string;
699
- status: ChainStatus;
700
- chainName: string;
701
- description: string;
702
- platformChainId?: string;
703
- subnetId?: string;
704
- vmId?: string;
705
- vmName: VmName;
706
- explorerUrl?: string;
707
- rpcUrl: string;
708
- wsUrl?: string;
709
- isTestnet: boolean;
710
- utilityAddresses?: UtilityAddresses;
711
- networkToken: NetworkToken;
712
- chainLogoUri?: string;
713
- private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1353
+ nonce: string;
1354
+ from: RichAddress;
1355
+ to: RichAddress;
1356
+ method?: Method;
1357
+ value: string;
715
1358
  };
716
1359
 
717
- type ListChainsResponse = {
718
- chains: Array<ChainInfo>;
1360
+ type ListNativeTransactionsResponse = {
1361
+ /**
1362
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1363
+ */
1364
+ nextPageToken?: string;
1365
+ transactions: Array<NativeTransaction>;
719
1366
  };
720
1367
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
1368
+ declare enum TransactionStatus {
1369
+ FAILED = "failed",
1370
+ SUCCESS = "success"
724
1371
  }
725
1372
 
726
1373
  declare class EvmChainsService {
727
1374
  readonly httpRequest: BaseHttpRequest;
728
1375
  constructor(httpRequest: BaseHttpRequest);
1376
+ /**
1377
+ * List all chains associated with a given address
1378
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1379
+ * @returns ListAddressChainsResponse Successful response
1380
+ * @throws ApiError
1381
+ */
1382
+ listAddressChains({ address, }: {
1383
+ /**
1384
+ * A wallet address.
1385
+ */
1386
+ address: string;
1387
+ }): CancelablePromise<ListAddressChainsResponse>;
729
1388
  /**
730
1389
  * List chains
731
- * 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 = {
@@ -1462,71 +2165,12 @@ type InternalTransaction = {
1462
2165
  gasLimit: string;
1463
2166
  };
1464
2167
 
1465
- type ListInternalTransactionsResponse = {
1466
- /**
1467
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1468
- */
1469
- nextPageToken?: string;
1470
- transactions: Array<InternalTransaction>;
1471
- };
1472
-
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
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 = {
2168
+ type ListInternalTransactionsResponse = {
1525
2169
  /**
1526
2170
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1527
2171
  */
1528
2172
  nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
2173
+ transactions: Array<InternalTransaction>;
1530
2174
  };
1531
2175
 
1532
2176
  type TransactionDetails = {
@@ -1573,23 +2217,42 @@ declare enum SortOrder {
1573
2217
  DESC = "desc"
1574
2218
  }
1575
2219
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2220
  declare class EvmTransactionsService {
1582
2221
  readonly httpRequest: BaseHttpRequest;
1583
2222
  constructor(httpRequest: BaseHttpRequest);
2223
+ /**
2224
+ * List the latest transactions across all supported EVM chains
2225
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2226
+ * @returns ListNativeTransactionsResponse Successful response
2227
+ * @throws ApiError
2228
+ */
2229
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2230
+ /**
2231
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2232
+ */
2233
+ pageToken?: string;
2234
+ /**
2235
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2236
+ */
2237
+ pageSize?: number;
2238
+ /**
2239
+ * Either mainnet or testnet/fuji.
2240
+ */
2241
+ network?: Network;
2242
+ /**
2243
+ * A status filter for listed transactions.
2244
+ */
2245
+ status?: TransactionStatus;
2246
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1584
2247
  /**
1585
2248
  * Get deployment transaction
1586
2249
  * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse
2250
+ * @returns GetTransactionResponse Successful response
1588
2251
  * @throws ApiError
1589
2252
  */
1590
2253
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2254
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2255
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
2256
  */
1594
2257
  chainId: string;
1595
2258
  /**
@@ -1604,12 +2267,12 @@ declare class EvmTransactionsService {
1604
2267
  /**
1605
2268
  * List deployed contracts
1606
2269
  * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse
2270
+ * @returns ListContractsResponse Successful response
1608
2271
  * @throws ApiError
1609
2272
  */
1610
2273
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
2274
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2275
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2276
  */
1614
2277
  chainId: string;
1615
2278
  /**
@@ -1628,12 +2291,12 @@ declare class EvmTransactionsService {
1628
2291
  /**
1629
2292
  * List ERC transfers
1630
2293
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse
2294
+ * @returns ListTransfersResponse Successful response
1632
2295
  * @throws ApiError
1633
2296
  */
1634
2297
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2298
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2299
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2300
  */
1638
2301
  chainId: string;
1639
2302
  /**
@@ -1662,12 +2325,12 @@ declare class EvmTransactionsService {
1662
2325
  * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1663
2326
  *
1664
2327
  * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse
2328
+ * @returns ListTransactionDetailsResponse Successful response
1666
2329
  * @throws ApiError
1667
2330
  */
1668
2331
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
2332
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2333
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2334
  */
1672
2335
  chainId: string;
1673
2336
  /**
@@ -1698,12 +2361,12 @@ declare class EvmTransactionsService {
1698
2361
  /**
1699
2362
  * List native transactions
1700
2363
  * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse
2364
+ * @returns ListNativeTransactionsResponse Successful response
1702
2365
  * @throws ApiError
1703
2366
  */
1704
2367
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2368
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2369
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2370
  */
1708
2371
  chainId: string;
1709
2372
  /**
@@ -1730,12 +2393,12 @@ declare class EvmTransactionsService {
1730
2393
  /**
1731
2394
  * List ERC-20 transfers
1732
2395
  * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse
2396
+ * @returns ListErc20TransactionsResponse Successful response
1734
2397
  * @throws ApiError
1735
2398
  */
1736
2399
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
2400
  /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2401
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
2402
  */
1740
2403
  chainId: string;
1741
2404
  /**
@@ -1762,12 +2425,12 @@ declare class EvmTransactionsService {
1762
2425
  /**
1763
2426
  * List ERC-721 transfers
1764
2427
  * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse
2428
+ * @returns ListErc721TransactionsResponse Successful response
1766
2429
  * @throws ApiError
1767
2430
  */
1768
2431
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
2432
  /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2433
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
2434
  */
1772
2435
  chainId: string;
1773
2436
  /**
@@ -1794,12 +2457,12 @@ declare class EvmTransactionsService {
1794
2457
  /**
1795
2458
  * List ERC-1155 transfers
1796
2459
  * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse
2460
+ * @returns ListErc1155TransactionsResponse Successful response
1798
2461
  * @throws ApiError
1799
2462
  */
1800
2463
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
2464
  /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2465
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
2466
  */
1804
2467
  chainId: string;
1805
2468
  /**
@@ -1828,12 +2491,12 @@ declare class EvmTransactionsService {
1828
2491
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
2492
  *
1830
2493
  * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1831
- * @returns ListInternalTransactionsResponse
2494
+ * @returns ListInternalTransactionsResponse Successful response
1832
2495
  * @throws ApiError
1833
2496
  */
1834
2497
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
2498
  /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2499
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
2500
  */
1838
2501
  chainId: string;
1839
2502
  /**
@@ -1860,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
  /**
@@ -1915,207 +2586,6 @@ declare class EvmTransactionsService {
1915
2586
  }): CancelablePromise<ListNativeTransactionsResponse>;
1916
2587
  }
1917
2588
 
1918
- type LogsFormatMetadata = {
1919
- /**
1920
- * The IP address of the client that made the request.
1921
- */
1922
- ipAddress: string;
1923
- /**
1924
- * The host for the request made by the client.
1925
- */
1926
- host: string;
1927
- /**
1928
- * The user agent of the client that made the request.
1929
- */
1930
- userAgent: string;
1931
- };
1932
-
1933
- /**
1934
- * The type of request made by the client.
1935
- */
1936
- declare enum RequestType {
1937
- GLACIER_API_REQUEST = "Glacier API Request",
1938
- GLACIER_RPC_REQUEST = "Glacier RPC Request"
1939
- }
1940
-
1941
- type LogsFormat = {
1942
- /**
1943
- * The organization id of the request.
1944
- */
1945
- orgId: string;
1946
- /**
1947
- * The unique log id of the request.
1948
- */
1949
- logId: string;
1950
- /**
1951
- * The timestamp of the request.
1952
- */
1953
- eventTimestamp: number;
1954
- /**
1955
- * The apiKey used to make the request.
1956
- */
1957
- apiKeyId: string;
1958
- /**
1959
- * The alias of the apiKey used to make the request.
1960
- */
1961
- apiKeyAlias: string;
1962
- /**
1963
- * The region of the host for the request made by the client.
1964
- */
1965
- hostRegion: string;
1966
- requestType: RequestType;
1967
- /**
1968
- * The path of the request made by the client.
1969
- */
1970
- requestPath: string;
1971
- /**
1972
- * The number of API credits consumed by the request.
1973
- */
1974
- apiCreditsConsumed: number;
1975
- /**
1976
- * The duration of the request in milliseconds.
1977
- */
1978
- requestDurationMsecs: number;
1979
- /**
1980
- * The response code of the request.
1981
- */
1982
- responseCode: number;
1983
- /**
1984
- * The chain id of the request.
1985
- */
1986
- chainId?: number;
1987
- /**
1988
- * The rpc method of the request.
1989
- */
1990
- rpcMethod?: string;
1991
- /**
1992
- * The metadata of the request.
1993
- */
1994
- metadata: LogsFormatMetadata;
1995
- };
1996
-
1997
- type LogsResponseDTO = {
1998
- /**
1999
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2000
- */
2001
- nextPageToken?: string;
2002
- /**
2003
- * The organization id of the request.
2004
- */
2005
- orgId: string;
2006
- /**
2007
- * An array of logs representing the requests made by clients.
2008
- */
2009
- logs: Array<LogsFormat>;
2010
- };
2011
-
2012
- declare enum TimeIntervalGranularityExtended {
2013
- MINUTE = "minute",
2014
- HOURLY = "hourly",
2015
- DAILY = "daily",
2016
- WEEKLY = "weekly",
2017
- MONTHLY = "monthly"
2018
- }
2019
-
2020
- declare enum UsageMetricsGroupByEnum {
2021
- REQUEST_PATH = "requestPath",
2022
- RESPONSE_CODE = "responseCode",
2023
- CHAIN_ID = "chainId",
2024
- API_KEY_ID = "apiKeyId"
2025
- }
2026
-
2027
- type UsageMetricsResponseDTO = {
2028
- /**
2029
- * Duration in which the metrics value is aggregated
2030
- */
2031
- aggregateDuration: string;
2032
- /**
2033
- * Org ID for which the metrics are aggregated
2034
- */
2035
- orgId: string;
2036
- /**
2037
- * Metrics values
2038
- */
2039
- metrics: Array<string>;
2040
- };
2041
-
2042
- declare class GlacierApiUsageMetricsService {
2043
- readonly httpRequest: BaseHttpRequest;
2044
- constructor(httpRequest: BaseHttpRequest);
2045
- /**
2046
- * Get usage metrics for the Glacier API
2047
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
2048
- * @returns UsageMetricsResponseDTO
2049
- * @throws ApiError
2050
- */
2051
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, responseStatusCode, chainId, apiKeyId, }: {
2052
- /**
2053
- * Organization ID to fetch usage metrics for
2054
- */
2055
- orgId?: string;
2056
- /**
2057
- * Query param for retrieving items after a specific timestamp.
2058
- */
2059
- startTimestamp?: number;
2060
- /**
2061
- * Query param for retrieving items before a specific timestamp.
2062
- */
2063
- endTimestamp?: number;
2064
- /**
2065
- * Time interval granularity for data aggregation
2066
- */
2067
- timeInterval?: TimeIntervalGranularityExtended;
2068
- /**
2069
- * Query param for the criterion used for grouping metrics
2070
- */
2071
- groupBy?: UsageMetricsGroupByEnum;
2072
- /**
2073
- * Filter aggregated usage metrics by request path.
2074
- */
2075
- requestPath?: string;
2076
- /**
2077
- * Filter aggregated usage metrics by response status code.
2078
- */
2079
- responseStatusCode?: string;
2080
- /**
2081
- * Filter aggregated usage metrics by chain ID.
2082
- */
2083
- chainId?: string;
2084
- /**
2085
- * Filter aggregated usage metrics by API key ID.
2086
- */
2087
- apiKeyId?: string;
2088
- }): CancelablePromise<UsageMetricsResponseDTO>;
2089
- /**
2090
- * Get logs for requests made by client
2091
- * Gets logs for requests made by client over a specified time interval for a specific organization.
2092
- * @returns LogsResponseDTO
2093
- * @throws ApiError
2094
- */
2095
- getApiLogss({ orgId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
2096
- /**
2097
- * Organization ID to fetch usage metrics for
2098
- */
2099
- orgId?: string;
2100
- /**
2101
- * Query param for retrieving items after a specific timestamp.
2102
- */
2103
- startTimestamp?: number;
2104
- /**
2105
- * Query param for retrieving items before a specific timestamp.
2106
- */
2107
- endTimestamp?: number;
2108
- /**
2109
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2110
- */
2111
- pageToken?: string;
2112
- /**
2113
- * The maximum number of items to return.
2114
- */
2115
- pageSize?: number;
2116
- }): CancelablePromise<LogsResponseDTO>;
2117
- }
2118
-
2119
2589
  declare class HealthCheckService {
2120
2590
  readonly httpRequest: BaseHttpRequest;
2121
2591
  constructor(httpRequest: BaseHttpRequest);
@@ -2124,7 +2594,7 @@ declare class HealthCheckService {
2124
2594
  * @returns any The Health Check is successful
2125
2595
  * @throws ApiError
2126
2596
  */
2127
- healthCheck(): CancelablePromise<{
2597
+ dataHealthCheck(): CancelablePromise<{
2128
2598
  status?: string;
2129
2599
  info?: Record<string, Record<string, string>> | null;
2130
2600
  error?: Record<string, Record<string, string>> | null;
@@ -2146,12 +2616,12 @@ declare class NfTsService {
2146
2616
  /**
2147
2617
  * Reindex NFT metadata
2148
2618
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2149
- * @returns any
2619
+ * @returns any Successful response
2150
2620
  * @throws ApiError
2151
2621
  */
2152
2622
  reindexNft({ chainId, address, tokenId, }: {
2153
2623
  /**
2154
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2624
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2155
2625
  */
2156
2626
  chainId: string;
2157
2627
  /**
@@ -2166,12 +2636,12 @@ declare class NfTsService {
2166
2636
  /**
2167
2637
  * List tokens
2168
2638
  * Lists tokens for an NFT contract.
2169
- * @returns ListNftTokens
2639
+ * @returns ListNftTokens Successful response
2170
2640
  * @throws ApiError
2171
2641
  */
2172
2642
  listTokens({ chainId, address, pageToken, pageSize, }: {
2173
2643
  /**
2174
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2644
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2175
2645
  */
2176
2646
  chainId: string;
2177
2647
  /**
@@ -2190,12 +2660,12 @@ declare class NfTsService {
2190
2660
  /**
2191
2661
  * Get token details
2192
2662
  * Gets token details for a specific token of an NFT contract.
2193
- * @returns any
2663
+ * @returns any Successful response
2194
2664
  * @throws ApiError
2195
2665
  */
2196
2666
  getTokenDetails({ chainId, address, tokenId, }: {
2197
2667
  /**
2198
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2668
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2199
2669
  */
2200
2670
  chainId: string;
2201
2671
  /**
@@ -2220,16 +2690,16 @@ declare enum EVMOperationType {
2220
2690
 
2221
2691
  type CreateEvmTransactionExportRequest = {
2222
2692
  type: EVMOperationType;
2223
- firstDate: string;
2224
- lastDate: string;
2693
+ firstDate?: string;
2694
+ lastDate?: string;
2225
2695
  /**
2226
2696
  * @deprecated
2227
2697
  */
2228
- startDate: string;
2698
+ startDate?: string;
2229
2699
  /**
2230
2700
  * @deprecated
2231
2701
  */
2232
- endDate: string;
2702
+ endDate?: string;
2233
2703
  options: EvmNetworkOptions;
2234
2704
  };
2235
2705
 
@@ -2242,21 +2712,21 @@ declare enum PrimaryNetworkOperationType {
2242
2712
  type PrimaryNetworkOptions = {
2243
2713
  addresses?: Array<string>;
2244
2714
  cChainEvmAddresses?: Array<string>;
2245
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2715
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2246
2716
  };
2247
2717
 
2248
2718
  type CreatePrimaryNetworkTransactionExportRequest = {
2249
2719
  type: PrimaryNetworkOperationType;
2250
- firstDate: string;
2251
- lastDate: string;
2720
+ firstDate?: string;
2721
+ lastDate?: string;
2252
2722
  /**
2253
2723
  * @deprecated
2254
2724
  */
2255
- startDate: string;
2725
+ startDate?: string;
2256
2726
  /**
2257
2727
  * @deprecated
2258
2728
  */
2259
- endDate: string;
2729
+ endDate?: string;
2260
2730
  options: PrimaryNetworkOptions;
2261
2731
  };
2262
2732
 
@@ -2308,7 +2778,7 @@ declare class OperationsService {
2308
2778
  /**
2309
2779
  * Get operation
2310
2780
  * Gets operation details for the given operation id.
2311
- * @returns OperationStatusResponse
2781
+ * @returns OperationStatusResponse Successful response
2312
2782
  * @throws ApiError
2313
2783
  */
2314
2784
  getOperationResult({ operationId, }: {
@@ -2322,7 +2792,7 @@ declare class OperationsService {
2322
2792
  * Trigger a transaction export operation with given parameters.
2323
2793
  *
2324
2794
  * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2325
- * @returns OperationStatusResponse
2795
+ * @returns OperationStatusResponse Successful response
2326
2796
  * @throws ApiError
2327
2797
  */
2328
2798
  postTransactionExportJob({ requestBody, }: {
@@ -2334,8 +2804,10 @@ declare enum BlockchainIds {
2334
2804
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2335
2805
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2336
2806
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2807
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2337
2808
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2338
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2809
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2810
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2339
2811
  }
2340
2812
 
2341
2813
  type ChainAddressChainIdMap = {
@@ -2359,16 +2831,31 @@ type DelegatorsDetails = {
2359
2831
  };
2360
2832
 
2361
2833
  type StakingDistribution = {
2834
+ /**
2835
+ * AvalancheGo version for the validator node.
2836
+ */
2362
2837
  version: string;
2838
+ /**
2839
+ * The total amount staked by validators using this version.
2840
+ */
2363
2841
  amountStaked: string;
2842
+ /**
2843
+ * The number of validators using this version.
2844
+ */
2364
2845
  validatorCount: number;
2365
2846
  };
2366
2847
 
2367
2848
  type ValidatorsDetails = {
2368
2849
  validatorCount: number;
2369
2850
  totalAmountStaked: string;
2851
+ /**
2852
+ * Total potential rewards from currently active validations and delegations.
2853
+ */
2370
2854
  estimatedAnnualStakingReward: string;
2371
2855
  stakingDistributionByVersion: Array<StakingDistribution>;
2856
+ /**
2857
+ * Ratio of total active stake amount to the current supply.
2858
+ */
2372
2859
  stakingRatio: string;
2373
2860
  };
2374
2861
 
@@ -2420,7 +2907,13 @@ type CompletedDelegatorDetails = {
2420
2907
  delegationFee: string;
2421
2908
  startTimestamp: number;
2422
2909
  endTimestamp: number;
2910
+ /**
2911
+ * Total rewards distributed for the successful delegation.
2912
+ */
2423
2913
  grossReward: string;
2914
+ /**
2915
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
2916
+ */
2424
2917
  netReward: string;
2425
2918
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2426
2919
  };
@@ -2438,31 +2931,88 @@ type PendingDelegatorDetails = {
2438
2931
  delegationFee: string;
2439
2932
  startTimestamp: number;
2440
2933
  endTimestamp: number;
2934
+ /**
2935
+ * Estimated total rewards that will be distributed for the successful delegation.
2936
+ */
2441
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
+ */
2442
2941
  estimatedNetReward: string;
2443
2942
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2444
2943
  };
2445
- declare namespace PendingDelegatorDetails {
2446
- enum delegationStatus {
2447
- PENDING = "pending"
2448
- }
2449
- }
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
+ };
2450
2965
 
2451
- 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 = {
2452
2997
  /**
2453
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.
2454
2999
  */
2455
3000
  nextPageToken?: string;
2456
3001
  /**
2457
- * The list of Delegator Details.
3002
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2458
3003
  */
2459
- delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
3004
+ validators: Array<L1ValidatorDetailsFull>;
2460
3005
  };
2461
3006
 
2462
3007
  type BlockchainInfo = {
2463
3008
  blockchainId: string;
2464
3009
  };
2465
3010
 
3011
+ type L1ValidatorManagerDetails = {
3012
+ blockchainId: string;
3013
+ contractAddress: string;
3014
+ };
3015
+
2466
3016
  type SubnetOwnershipInfo = {
2467
3017
  /**
2468
3018
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2501,6 +3051,18 @@ type Subnet = {
2501
3051
  * Latest subnet owner details for this Subnet.
2502
3052
  */
2503
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;
2504
3066
  blockchains: Array<BlockchainInfo>;
2505
3067
  };
2506
3068
 
@@ -2548,6 +3110,9 @@ type ActiveValidatorDetails = {
2548
3110
  nodeId: string;
2549
3111
  subnetId: string;
2550
3112
  amountStaked: string;
3113
+ /**
3114
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3115
+ */
2551
3116
  delegationFee?: string;
2552
3117
  startTimestamp: number;
2553
3118
  endTimestamp: number;
@@ -2555,12 +3120,30 @@ type ActiveValidatorDetails = {
2555
3120
  * Present for AddPermissionlessValidatorTx
2556
3121
  */
2557
3122
  blsCredentials?: BlsCredentials;
3123
+ /**
3124
+ * The percentage of this validator's stake amount to the total active stake.
3125
+ */
2558
3126
  stakePercentage: number;
3127
+ /**
3128
+ * The number of delegators linked to the validator.
3129
+ */
2559
3130
  delegatorCount: number;
3131
+ /**
3132
+ * The total amount in nAVAX delegated to the validator.
3133
+ */
2560
3134
  amountDelegated?: string;
3135
+ /**
3136
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3137
+ */
2561
3138
  uptimePerformance: number;
2562
3139
  avalancheGoVersion?: string;
3140
+ /**
3141
+ * The amount of stake in nAVAX that can be delegated to this validator.
3142
+ */
2563
3143
  delegationCapacity?: string;
3144
+ /**
3145
+ * Estimated rewards for the validator if the validation is successful.
3146
+ */
2564
3147
  potentialRewards: Rewards;
2565
3148
  validationStatus: ActiveValidatorDetails.validationStatus;
2566
3149
  validatorHealth: ValidatorHealthDetails;
@@ -2576,6 +3159,9 @@ type CompletedValidatorDetails = {
2576
3159
  nodeId: string;
2577
3160
  subnetId: string;
2578
3161
  amountStaked: string;
3162
+ /**
3163
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3164
+ */
2579
3165
  delegationFee?: string;
2580
3166
  startTimestamp: number;
2581
3167
  endTimestamp: number;
@@ -2584,6 +3170,7 @@ type CompletedValidatorDetails = {
2584
3170
  */
2585
3171
  blsCredentials?: BlsCredentials;
2586
3172
  delegatorCount: number;
3173
+ amountDelegated?: string;
2587
3174
  rewards: Rewards;
2588
3175
  validationStatus: CompletedValidatorDetails.validationStatus;
2589
3176
  };
@@ -2598,6 +3185,9 @@ type PendingValidatorDetails = {
2598
3185
  nodeId: string;
2599
3186
  subnetId: string;
2600
3187
  amountStaked: string;
3188
+ /**
3189
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3190
+ */
2601
3191
  delegationFee?: string;
2602
3192
  startTimestamp: number;
2603
3193
  endTimestamp: number;
@@ -2618,6 +3208,9 @@ type RemovedValidatorDetails = {
2618
3208
  nodeId: string;
2619
3209
  subnetId: string;
2620
3210
  amountStaked: string;
3211
+ /**
3212
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3213
+ */
2621
3214
  delegationFee?: string;
2622
3215
  startTimestamp: number;
2623
3216
  endTimestamp: number;
@@ -2625,7 +3218,13 @@ type RemovedValidatorDetails = {
2625
3218
  * Present for AddPermissionlessValidatorTx
2626
3219
  */
2627
3220
  blsCredentials?: BlsCredentials;
3221
+ /**
3222
+ * The transaction hash that removed the permissioned subnet validator.
3223
+ */
2628
3224
  removeTxHash: string;
3225
+ /**
3226
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3227
+ */
2629
3228
  removeTimestamp: number;
2630
3229
  validationStatus: RemovedValidatorDetails.validationStatus;
2631
3230
  };
@@ -2646,11 +3245,6 @@ type ListValidatorDetailsResponse = {
2646
3245
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2647
3246
  };
2648
3247
 
2649
- declare enum Network {
2650
- MAINNET = "mainnet",
2651
- FUJI = "fuji"
2652
- }
2653
-
2654
3248
  declare enum SortByOption {
2655
3249
  BLOCK_INDEX = "blockIndex",
2656
3250
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2710,6 +3304,7 @@ type XChainAssetDetails = {
2710
3304
  declare enum XChainId {
2711
3305
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2712
3306
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3307
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2713
3308
  X_CHAIN = "x-chain"
2714
3309
  }
2715
3310
 
@@ -2719,7 +3314,7 @@ declare class PrimaryNetworkService {
2719
3314
  /**
2720
3315
  * Get asset details
2721
3316
  * Gets asset details corresponding to the given asset id on the X-Chain.
2722
- * @returns XChainAssetDetails
3317
+ * @returns XChainAssetDetails Successful response
2723
3318
  * @throws ApiError
2724
3319
  */
2725
3320
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2728,7 +3323,7 @@ declare class PrimaryNetworkService {
2728
3323
  */
2729
3324
  blockchainId: XChainId;
2730
3325
  /**
2731
- * Either mainnet or a testnet.
3326
+ * Either mainnet or testnet/fuji.
2732
3327
  */
2733
3328
  network: Network;
2734
3329
  /**
@@ -2739,7 +3334,7 @@ declare class PrimaryNetworkService {
2739
3334
  /**
2740
3335
  * Get chain interactions for addresses
2741
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.
2742
- * @returns ChainAddressChainIdMapListResponse
3337
+ * @returns ChainAddressChainIdMapListResponse Successful response
2743
3338
  * @throws ApiError
2744
3339
  */
2745
3340
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2748,31 +3343,31 @@ declare class PrimaryNetworkService {
2748
3343
  */
2749
3344
  addresses: string;
2750
3345
  /**
2751
- * Either mainnet or a testnet.
3346
+ * Either mainnet or testnet/fuji.
2752
3347
  */
2753
3348
  network: Network;
2754
3349
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2755
3350
  /**
2756
3351
  * Get network details
2757
3352
  * Gets network details such as validator and delegator stats.
2758
- * @returns GetNetworkDetailsResponse
3353
+ * @returns GetNetworkDetailsResponse Successful response
2759
3354
  * @throws ApiError
2760
3355
  */
2761
3356
  getNetworkDetails({ network, }: {
2762
3357
  /**
2763
- * Either mainnet or a testnet.
3358
+ * Either mainnet or testnet/fuji.
2764
3359
  */
2765
3360
  network: Network;
2766
3361
  }): CancelablePromise<GetNetworkDetailsResponse>;
2767
3362
  /**
2768
3363
  * List blockchains
2769
3364
  * Lists all blockchains registered on the network.
2770
- * @returns ListBlockchainsResponse
3365
+ * @returns ListBlockchainsResponse Successful response
2771
3366
  * @throws ApiError
2772
3367
  */
2773
3368
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2774
3369
  /**
2775
- * Either mainnet or a testnet.
3370
+ * Either mainnet or testnet/fuji.
2776
3371
  */
2777
3372
  network: Network;
2778
3373
  /**
@@ -2791,12 +3386,12 @@ declare class PrimaryNetworkService {
2791
3386
  /**
2792
3387
  * List subnets
2793
3388
  * Lists all subnets registered on the network.
2794
- * @returns ListSubnetsResponse
3389
+ * @returns ListSubnetsResponse Successful response
2795
3390
  * @throws ApiError
2796
3391
  */
2797
3392
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2798
3393
  /**
2799
- * Either mainnet or a testnet.
3394
+ * Either mainnet or testnet/fuji.
2800
3395
  */
2801
3396
  network: Network;
2802
3397
  /**
@@ -2815,12 +3410,12 @@ declare class PrimaryNetworkService {
2815
3410
  /**
2816
3411
  * Get Subnet details by ID
2817
3412
  * Get details of the Subnet registered on the network.
2818
- * @returns Subnet
3413
+ * @returns Subnet Successful response
2819
3414
  * @throws ApiError
2820
3415
  */
2821
3416
  getSubnetById({ network, subnetId, }: {
2822
3417
  /**
2823
- * Either mainnet or a testnet.
3418
+ * Either mainnet or testnet/fuji.
2824
3419
  */
2825
3420
  network: Network;
2826
3421
  /**
@@ -2831,12 +3426,12 @@ declare class PrimaryNetworkService {
2831
3426
  /**
2832
3427
  * List validators
2833
3428
  * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2834
- * @returns ListValidatorDetailsResponse
3429
+ * @returns ListValidatorDetailsResponse Successful response
2835
3430
  * @throws ApiError
2836
3431
  */
2837
3432
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2838
3433
  /**
2839
- * Either mainnet or a testnet.
3434
+ * Either mainnet or testnet/fuji.
2840
3435
  */
2841
3436
  network: Network;
2842
3437
  /**
@@ -2905,12 +3500,12 @@ declare class PrimaryNetworkService {
2905
3500
  /**
2906
3501
  * Get single validator details
2907
3502
  * List validator details for a single validator. Filterable by validation status.
2908
- * @returns ListValidatorDetailsResponse
3503
+ * @returns ListValidatorDetailsResponse Successful response
2909
3504
  * @throws ApiError
2910
3505
  */
2911
3506
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2912
3507
  /**
2913
- * Either mainnet or a testnet.
3508
+ * Either mainnet or testnet/fuji.
2914
3509
  */
2915
3510
  network: Network;
2916
3511
  /**
@@ -2937,12 +3532,12 @@ declare class PrimaryNetworkService {
2937
3532
  /**
2938
3533
  * List delegators
2939
3534
  * Lists details for delegators.
2940
- * @returns ListDelegatorDetailsResponse
3535
+ * @returns ListDelegatorDetailsResponse Successful response
2941
3536
  * @throws ApiError
2942
3537
  */
2943
3538
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2944
3539
  /**
2945
- * Either mainnet or a testnet.
3540
+ * Either mainnet or testnet/fuji.
2946
3541
  */
2947
3542
  network: Network;
2948
3543
  /**
@@ -2970,14 +3565,49 @@ declare class PrimaryNetworkService {
2970
3565
  */
2971
3566
  nodeIds?: string;
2972
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>;
2973
3601
  }
2974
3602
 
2975
3603
  declare enum BlockchainId {
2976
3604
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2977
3605
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2978
3606
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3607
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2979
3608
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2980
3609
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3610
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2981
3611
  P_CHAIN = "p-chain",
2982
3612
  X_CHAIN = "x-chain",
2983
3613
  C_CHAIN = "c-chain"
@@ -3014,11 +3644,6 @@ type CChainAtomicBalances = {
3014
3644
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3015
3645
  };
3016
3646
 
3017
- declare enum PrimaryNetwork {
3018
- MAINNET = "mainnet",
3019
- FUJI = "fuji"
3020
- }
3021
-
3022
3647
  declare enum PrimaryNetworkChainName {
3023
3648
  P_CHAIN = "p-chain",
3024
3649
  X_CHAIN = "x-chain",
@@ -3027,7 +3652,7 @@ declare enum PrimaryNetworkChainName {
3027
3652
 
3028
3653
  type PrimaryNetworkChainInfo = {
3029
3654
  chainName: PrimaryNetworkChainName;
3030
- network: PrimaryNetwork;
3655
+ network: Network;
3031
3656
  };
3032
3657
 
3033
3658
  type ListCChainAtomicBalancesResponse = {
@@ -3179,7 +3804,7 @@ declare class PrimaryNetworkBalancesService {
3179
3804
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
3180
3805
  *
3181
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.
3182
- * @returns any
3807
+ * @returns any Successful response
3183
3808
  * @throws ApiError
3184
3809
  */
3185
3810
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -3188,7 +3813,7 @@ declare class PrimaryNetworkBalancesService {
3188
3813
  */
3189
3814
  blockchainId: BlockchainId;
3190
3815
  /**
3191
- * Either mainnet or a testnet.
3816
+ * Either mainnet or testnet/fuji.
3192
3817
  */
3193
3818
  network: Network;
3194
3819
  /**
@@ -3219,6 +3844,8 @@ type GetPrimaryNetworkBlockResponse = {
3219
3844
  txCount: number;
3220
3845
  transactions: Array<string>;
3221
3846
  blockSizeBytes: number;
3847
+ l1ValidatorsAccruedFees?: number;
3848
+ activeL1Validators?: number;
3222
3849
  currentSupply?: string;
3223
3850
  proposerDetails?: ProposerDetails;
3224
3851
  };
@@ -3232,6 +3859,8 @@ type PrimaryNetworkBlock = {
3232
3859
  txCount: number;
3233
3860
  transactions: Array<string>;
3234
3861
  blockSizeBytes: number;
3862
+ l1ValidatorsAccruedFees?: number;
3863
+ activeL1Validators?: number;
3235
3864
  currentSupply?: string;
3236
3865
  proposerDetails?: ProposerDetails;
3237
3866
  };
@@ -3251,7 +3880,7 @@ declare class PrimaryNetworkBlocksService {
3251
3880
  /**
3252
3881
  * Get block
3253
3882
  * Gets a block by block height or block hash on one of the Primary Network chains.
3254
- * @returns GetPrimaryNetworkBlockResponse
3883
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3255
3884
  * @throws ApiError
3256
3885
  */
3257
3886
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3260,7 +3889,7 @@ declare class PrimaryNetworkBlocksService {
3260
3889
  */
3261
3890
  blockchainId: BlockchainId;
3262
3891
  /**
3263
- * Either mainnet or a testnet.
3892
+ * Either mainnet or testnet/fuji.
3264
3893
  */
3265
3894
  network: Network;
3266
3895
  /**
@@ -3271,22 +3900,30 @@ declare class PrimaryNetworkBlocksService {
3271
3900
  /**
3272
3901
  * List blocks proposed by node
3273
3902
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3274
- * @returns ListPrimaryNetworkBlocksResponse
3903
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3275
3904
  * @throws ApiError
3276
3905
  */
3277
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3906
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3278
3907
  /**
3279
3908
  * A primary network blockchain id or alias.
3280
3909
  */
3281
3910
  blockchainId: BlockchainId;
3282
3911
  /**
3283
- * Either mainnet or a testnet.
3912
+ * Either mainnet or testnet/fuji.
3284
3913
  */
3285
3914
  network: Network;
3286
3915
  /**
3287
3916
  * A primary network (P or X chain) nodeId.
3288
3917
  */
3289
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;
3290
3927
  /**
3291
3928
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3292
3929
  */
@@ -3299,18 +3936,26 @@ declare class PrimaryNetworkBlocksService {
3299
3936
  /**
3300
3937
  * List latest blocks
3301
3938
  * Lists latest blocks on one of the Primary Network chains.
3302
- * @returns ListPrimaryNetworkBlocksResponse
3939
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3303
3940
  * @throws ApiError
3304
3941
  */
3305
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3942
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3306
3943
  /**
3307
3944
  * A primary network blockchain id or alias.
3308
3945
  */
3309
3946
  blockchainId: BlockchainId;
3310
3947
  /**
3311
- * Either mainnet or a testnet.
3948
+ * Either mainnet or testnet/fuji.
3312
3949
  */
3313
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;
3314
3959
  /**
3315
3960
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3316
3961
  */
@@ -3437,12 +4082,12 @@ declare class PrimaryNetworkRewardsService {
3437
4082
  /**
3438
4083
  * List pending rewards
3439
4084
  * Lists pending rewards on the Primary Network for the supplied addresses.
3440
- * @returns ListPendingRewardsResponse
4085
+ * @returns ListPendingRewardsResponse Successful response
3441
4086
  * @throws ApiError
3442
4087
  */
3443
4088
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3444
4089
  /**
3445
- * Either mainnet or a testnet.
4090
+ * Either mainnet or testnet/fuji.
3446
4091
  */
3447
4092
  network: Network;
3448
4093
  /**
@@ -3469,12 +4114,12 @@ declare class PrimaryNetworkRewardsService {
3469
4114
  /**
3470
4115
  * List historical rewards
3471
4116
  * Lists historical rewards on the Primary Network for the supplied addresses.
3472
- * @returns ListHistoricalRewardsResponse
4117
+ * @returns ListHistoricalRewardsResponse Successful response
3473
4118
  * @throws ApiError
3474
4119
  */
3475
4120
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3476
4121
  /**
3477
- * Either mainnet or a testnet.
4122
+ * Either mainnet or testnet/fuji.
3478
4123
  */
3479
4124
  network: Network;
3480
4125
  /**
@@ -3720,6 +4365,28 @@ type ListCChainAtomicTransactionsResponse = {
3720
4365
  chainInfo: PrimaryNetworkChainInfo;
3721
4366
  };
3722
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
+
3723
4390
  declare enum PChainTransactionType {
3724
4391
  ADD_VALIDATOR_TX = "AddValidatorTx",
3725
4392
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3736,9 +4403,17 @@ declare enum PChainTransactionType {
3736
4403
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3737
4404
  BASE_TX = "BaseTx",
3738
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",
3739
4411
  UNKNOWN = "UNKNOWN"
3740
4412
  }
3741
4413
 
4414
+ /**
4415
+ * Indicates whether the UTXO is staked or transferable
4416
+ */
3742
4417
  declare enum UtxoType {
3743
4418
  STAKE = "STAKE",
3744
4419
  TRANSFER = "TRANSFER"
@@ -3776,16 +4451,43 @@ type PChainUtxo = {
3776
4451
  assetId: string;
3777
4452
  blockNumber: string;
3778
4453
  blockTimestamp: number;
4454
+ /**
4455
+ * Block height in which the transaction consuming this UTXO was included
4456
+ */
3779
4457
  consumingBlockNumber?: string;
4458
+ /**
4459
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4460
+ */
3780
4461
  consumingBlockTimestamp?: number;
4462
+ /**
4463
+ * Timestamp in seconds after which this UTXO can be consumed
4464
+ */
3781
4465
  platformLocktime?: number;
4466
+ /**
4467
+ * The index of the UTXO in the transaction
4468
+ */
3782
4469
  outputIndex: number;
3783
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
+ */
3784
4474
  stakeableLocktime?: number;
3785
4475
  staked?: boolean;
4476
+ /**
4477
+ * The minimum number of signatures required to spend this UTXO
4478
+ */
3786
4479
  threshold?: number;
4480
+ /**
4481
+ * The hash of the transaction that created this UTXO
4482
+ */
3787
4483
  txHash: string;
4484
+ /**
4485
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4486
+ */
3788
4487
  utxoEndTimestamp?: number;
4488
+ /**
4489
+ * Timestamp in seconds at which the staked UTXO was locked.
4490
+ */
3789
4491
  utxoStartTimestamp?: number;
3790
4492
  utxoType: UtxoType;
3791
4493
  };
@@ -3800,9 +4502,18 @@ type PChainTransaction = {
3800
4502
  * The block finality timestamp.
3801
4503
  */
3802
4504
  blockTimestamp: number;
4505
+ /**
4506
+ * The height of the block in which the transaction was included
4507
+ */
3803
4508
  blockNumber: string;
3804
4509
  blockHash: string;
4510
+ /**
4511
+ * The consumed UTXOs of the transaction
4512
+ */
3805
4513
  consumedUtxos: Array<PChainUtxo>;
4514
+ /**
4515
+ * The newly created UTXOs of the transaction
4516
+ */
3806
4517
  emittedUtxos: Array<PChainUtxo>;
3807
4518
  /**
3808
4519
  * Source chain for an atomic transaction.
@@ -3813,17 +4524,21 @@ type PChainTransaction = {
3813
4524
  */
3814
4525
  destinationChain?: string;
3815
4526
  /**
3816
- * 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
3817
4528
  */
3818
4529
  value: Array<AssetAmount>;
3819
4530
  /**
3820
- * 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
3821
4532
  */
3822
4533
  amountBurned: Array<AssetAmount>;
3823
4534
  /**
3824
4535
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3825
4536
  */
3826
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>;
3827
4542
  /**
3828
4543
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3829
4544
  */
@@ -3833,11 +4548,11 @@ type PChainTransaction = {
3833
4548
  */
3834
4549
  endTimestamp?: number;
3835
4550
  /**
3836
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4551
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3837
4552
  */
3838
4553
  delegationFeePercent?: string;
3839
4554
  /**
3840
- * 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
3841
4556
  */
3842
4557
  nodeId?: string;
3843
4558
  /**
@@ -3845,14 +4560,25 @@ type PChainTransaction = {
3845
4560
  */
3846
4561
  subnetId?: string;
3847
4562
  /**
3848
- * 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
3849
4572
  */
3850
4573
  estimatedReward?: string;
4574
+ /**
4575
+ * Reward transaction hash for the completed validations or delegations
4576
+ */
3851
4577
  rewardTxHash?: string;
3852
4578
  rewardAddresses?: Array<string>;
3853
4579
  memo?: string;
3854
4580
  /**
3855
- * Present for RewardValidatorTx
4581
+ * Staking transaction corresponding to the RewardValidatorTx
3856
4582
  */
3857
4583
  stakingTxHash?: string;
3858
4584
  /**
@@ -3860,7 +4586,7 @@ type PChainTransaction = {
3860
4586
  */
3861
4587
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3862
4588
  /**
3863
- * Present for AddPermissionlessValidatorTx
4589
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3864
4590
  */
3865
4591
  blsCredentials?: BlsCredentials;
3866
4592
  };
@@ -4045,6 +4771,11 @@ declare enum PrimaryNetworkTxType {
4045
4771
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4046
4772
  BASE_TX = "BaseTx",
4047
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",
4048
4779
  UNKNOWN = "UNKNOWN",
4049
4780
  CREATE_ASSET_TX = "CreateAssetTx",
4050
4781
  OPERATION_TX = "OperationTx"
@@ -4056,7 +4787,7 @@ declare class PrimaryNetworkTransactionsService {
4056
4787
  /**
4057
4788
  * Get transaction
4058
4789
  * Gets the details of a single transaction on one of the Primary Network chains.
4059
- * @returns any
4790
+ * @returns any Successful response
4060
4791
  * @throws ApiError
4061
4792
  */
4062
4793
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -4065,7 +4796,7 @@ declare class PrimaryNetworkTransactionsService {
4065
4796
  */
4066
4797
  blockchainId: BlockchainId;
4067
4798
  /**
4068
- * Either mainnet or a testnet.
4799
+ * Either mainnet or testnet/fuji.
4069
4800
  */
4070
4801
  network: Network;
4071
4802
  /**
@@ -4079,23 +4810,26 @@ declare class PrimaryNetworkTransactionsService {
4079
4810
  *
4080
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.
4081
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
+ *
4082
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.
4083
- * @returns any
4816
+ * @returns any Successful response
4084
4817
  * @throws ApiError
4085
4818
  */
4086
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4819
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4087
4820
  /**
4088
4821
  * A primary network blockchain id or alias.
4089
4822
  */
4090
4823
  blockchainId: BlockchainId;
4091
4824
  /**
4092
- * Either mainnet or a testnet.
4825
+ * Either mainnet or testnet/fuji.
4093
4826
  */
4094
4827
  network: Network;
4095
4828
  /**
4096
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
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.
4097
4830
  */
4098
4831
  addresses?: string;
4832
+ l1ValidationId?: string;
4099
4833
  /**
4100
4834
  * Query param for filtering items based on transaction types.
4101
4835
  */
@@ -4124,7 +4858,7 @@ declare class PrimaryNetworkTransactionsService {
4124
4858
  /**
4125
4859
  * List staking transactions
4126
4860
  * Lists active staking transactions on the P-Chain for the supplied addresses.
4127
- * @returns ListPChainTransactionsResponse
4861
+ * @returns ListPChainTransactionsResponse Successful response
4128
4862
  * @throws ApiError
4129
4863
  */
4130
4864
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -4133,7 +4867,7 @@ declare class PrimaryNetworkTransactionsService {
4133
4867
  */
4134
4868
  blockchainId: PChainId;
4135
4869
  /**
4136
- * Either mainnet or a testnet.
4870
+ * Either mainnet or testnet/fuji.
4137
4871
  */
4138
4872
  network: Network;
4139
4873
  /**
@@ -4168,7 +4902,7 @@ declare class PrimaryNetworkTransactionsService {
4168
4902
  /**
4169
4903
  * List asset transactions
4170
4904
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
4171
- * @returns ListXChainTransactionsResponse
4905
+ * @returns ListXChainTransactionsResponse Successful response
4172
4906
  * @throws ApiError
4173
4907
  */
4174
4908
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -4177,7 +4911,7 @@ declare class PrimaryNetworkTransactionsService {
4177
4911
  */
4178
4912
  blockchainId: XChainId;
4179
4913
  /**
4180
- * Either mainnet or a testnet.
4914
+ * Either mainnet or testnet/fuji.
4181
4915
  */
4182
4916
  network: Network;
4183
4917
  /**
@@ -4231,7 +4965,7 @@ declare class PrimaryNetworkUtxOsService {
4231
4965
  /**
4232
4966
  * List UTXOs
4233
4967
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4234
- * @returns any
4968
+ * @returns any Successful response
4235
4969
  * @throws ApiError
4236
4970
  */
4237
4971
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4240,7 +4974,7 @@ declare class PrimaryNetworkUtxOsService {
4240
4974
  */
4241
4975
  blockchainId: BlockchainId;
4242
4976
  /**
4243
- * Either mainnet or a testnet.
4977
+ * Either mainnet or testnet/fuji.
4244
4978
  */
4245
4979
  network: Network;
4246
4980
  /**
@@ -4296,7 +5030,7 @@ declare class PrimaryNetworkVerticesService {
4296
5030
  /**
4297
5031
  * List vertices
4298
5032
  * Lists latest vertices on the X-Chain.
4299
- * @returns ListXChainVerticesResponse
5033
+ * @returns ListXChainVerticesResponse Successful response
4300
5034
  * @throws ApiError
4301
5035
  */
4302
5036
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4305,7 +5039,7 @@ declare class PrimaryNetworkVerticesService {
4305
5039
  */
4306
5040
  blockchainId: XChainId;
4307
5041
  /**
4308
- * Either mainnet or a testnet.
5042
+ * Either mainnet or testnet/fuji.
4309
5043
  */
4310
5044
  network: Network;
4311
5045
  /**
@@ -4320,7 +5054,7 @@ declare class PrimaryNetworkVerticesService {
4320
5054
  /**
4321
5055
  * Get vertex
4322
5056
  * Gets a single vertex on the X-Chain.
4323
- * @returns XChainVertex
5057
+ * @returns XChainVertex Successful response
4324
5058
  * @throws ApiError
4325
5059
  */
4326
5060
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4333,14 +5067,14 @@ declare class PrimaryNetworkVerticesService {
4333
5067
  */
4334
5068
  blockchainId: XChainId;
4335
5069
  /**
4336
- * Either mainnet or a testnet.
5070
+ * Either mainnet or testnet/fuji.
4337
5071
  */
4338
5072
  network: Network;
4339
5073
  }): CancelablePromise<XChainVertex>;
4340
5074
  /**
4341
5075
  * List vertices by height
4342
5076
  * Lists vertices at the given vertex height on the X-Chain.
4343
- * @returns ListXChainVerticesResponse
5077
+ * @returns ListXChainVerticesResponse Successful response
4344
5078
  * @throws ApiError
4345
5079
  */
4346
5080
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4353,7 +5087,7 @@ declare class PrimaryNetworkVerticesService {
4353
5087
  */
4354
5088
  blockchainId: XChainId;
4355
5089
  /**
4356
- * Either mainnet or a testnet.
5090
+ * Either mainnet or testnet/fuji.
4357
5091
  */
4358
5092
  network: Network;
4359
5093
  /**
@@ -4371,47 +5105,33 @@ declare class PrimaryNetworkVerticesService {
4371
5105
  }): CancelablePromise<ListXChainVerticesResponse>;
4372
5106
  }
4373
5107
 
4374
- type RpcErrorDto = {
4375
- code: number;
4376
- message: string;
4377
- data?: Record<string, any>;
4378
- };
4379
-
4380
- type RpcErrorResponseDto = {
4381
- jsonrpc: string;
4382
- id?: (string | number);
4383
- error: RpcErrorDto;
4384
- };
4385
-
4386
- type RpcRequestBodyDto = {
4387
- method: string;
4388
- params?: Record<string, any>;
4389
- id?: (string | number);
4390
- jsonrpc?: string;
5108
+ type SignatureAggregationResponse = {
5109
+ signedMessage: string;
4391
5110
  };
4392
5111
 
4393
- type RpcSuccessResponseDto = {
4394
- jsonrpc: string;
4395
- id?: (string | number);
4396
- result: Record<string, any>;
5112
+ type SignatureAggregatorRequest = {
5113
+ message: string;
5114
+ justification?: string;
5115
+ signingSubnetId?: string;
5116
+ quorumPercentage?: number;
4397
5117
  };
4398
5118
 
4399
- declare class RpcService {
5119
+ declare class SignatureAggregatorService {
4400
5120
  readonly httpRequest: BaseHttpRequest;
4401
5121
  constructor(httpRequest: BaseHttpRequest);
4402
5122
  /**
4403
- * Calls JSON-RPC method
4404
- * Calls JSON-RPC method.
4405
- * @returns any
5123
+ * Aggregate Signatures
5124
+ * Aggregates Signatures for a Warp message from Subnet validators.
5125
+ * @returns SignatureAggregationResponse Successful response
4406
5126
  * @throws ApiError
4407
5127
  */
4408
- rpc({ chainId, requestBody, }: {
5128
+ aggregateSignatures({ network, requestBody, }: {
4409
5129
  /**
4410
- * 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.
4411
5131
  */
4412
- chainId: string;
4413
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4414
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5132
+ network: Network;
5133
+ requestBody: SignatureAggregatorRequest;
5134
+ }): CancelablePromise<SignatureAggregationResponse>;
4415
5135
  }
4416
5136
 
4417
5137
  type TeleporterDestinationTransaction = {
@@ -4554,7 +5274,7 @@ declare class TeleporterService {
4554
5274
  /**
4555
5275
  * Get a teleporter message
4556
5276
  * Gets a teleporter message by message ID.
4557
- * @returns any
5277
+ * @returns any Successful response
4558
5278
  * @throws ApiError
4559
5279
  */
4560
5280
  getTeleporterMessage({ messageId, }: {
@@ -4566,7 +5286,7 @@ declare class TeleporterService {
4566
5286
  /**
4567
5287
  * List teleporter messages
4568
5288
  * Lists teleporter messages. Ordered by timestamp in descending order.
4569
- * @returns ListTeleporterMessagesResponse
5289
+ * @returns ListTeleporterMessagesResponse Successful response
4570
5290
  * @throws ApiError
4571
5291
  */
4572
5292
  listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
@@ -4599,9 +5319,33 @@ declare class TeleporterService {
4599
5319
  */
4600
5320
  from?: string;
4601
5321
  /**
4602
- * 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.
4603
5347
  */
4604
- network?: NetworkType;
5348
+ network?: Network;
4605
5349
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4606
5350
  }
4607
5351
 
@@ -4609,7 +5353,7 @@ type AddressesChangeRequest = {
4609
5353
  /**
4610
5354
  * Ethereum address(es) for the address_activity event type
4611
5355
  */
4612
- addresses: Array<any[]>;
5356
+ addresses: Array<string>;
4613
5357
  };
4614
5358
 
4615
5359
  type AddressActivityMetadata = {
@@ -4635,7 +5379,7 @@ type CreateWebhookRequest = {
4635
5379
  name?: string;
4636
5380
  description?: string;
4637
5381
  /**
4638
- * 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.
4639
5383
  */
4640
5384
  includeInternalTxs?: boolean;
4641
5385
  /**
@@ -4695,6 +5439,9 @@ type UpdateWebhookRequest = {
4695
5439
  description?: string;
4696
5440
  url?: string;
4697
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
+ */
4698
5445
  includeInternalTxs?: boolean;
4699
5446
  includeLogs?: boolean;
4700
5447
  };
@@ -4710,7 +5457,7 @@ declare class WebhooksService {
4710
5457
  /**
4711
5458
  * Create a webhook
4712
5459
  * Create a new webhook.
4713
- * @returns WebhookResponse
5460
+ * @returns WebhookResponse Successful response
4714
5461
  * @throws ApiError
4715
5462
  */
4716
5463
  createWebhook({ requestBody, }: {
@@ -4719,7 +5466,7 @@ declare class WebhooksService {
4719
5466
  /**
4720
5467
  * List webhooks
4721
5468
  * Lists webhooks for the user.
4722
- * @returns ListWebhooksResponse
5469
+ * @returns ListWebhooksResponse Successful response
4723
5470
  * @throws ApiError
4724
5471
  */
4725
5472
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4739,7 +5486,7 @@ declare class WebhooksService {
4739
5486
  /**
4740
5487
  * Get a webhook by ID
4741
5488
  * Retrieves a webhook by ID.
4742
- * @returns WebhookResponse
5489
+ * @returns WebhookResponse Successful response
4743
5490
  * @throws ApiError
4744
5491
  */
4745
5492
  getWebhook({ id, }: {
@@ -4751,7 +5498,7 @@ declare class WebhooksService {
4751
5498
  /**
4752
5499
  * Deactivate a webhook
4753
5500
  * Deactivates a webhook by ID.
4754
- * @returns WebhookResponse
5501
+ * @returns WebhookResponse Successful response
4755
5502
  * @throws ApiError
4756
5503
  */
4757
5504
  deactivateWebhook({ id, }: {
@@ -4763,7 +5510,7 @@ declare class WebhooksService {
4763
5510
  /**
4764
5511
  * Update a webhook
4765
5512
  * Updates an existing webhook.
4766
- * @returns WebhookResponse
5513
+ * @returns WebhookResponse Successful response
4767
5514
  * @throws ApiError
4768
5515
  */
4769
5516
  updateWebhook({ id, requestBody, }: {
@@ -4776,21 +5523,21 @@ declare class WebhooksService {
4776
5523
  /**
4777
5524
  * Generate a shared secret
4778
5525
  * Generates a new shared secret.
4779
- * @returns SharedSecretsResponse
5526
+ * @returns SharedSecretsResponse Successful response
4780
5527
  * @throws ApiError
4781
5528
  */
4782
5529
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4783
5530
  /**
4784
5531
  * Get a shared secret
4785
5532
  * Get a previously generated shared secret.
4786
- * @returns SharedSecretsResponse
5533
+ * @returns SharedSecretsResponse Successful response
4787
5534
  * @throws ApiError
4788
5535
  */
4789
5536
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4790
5537
  /**
4791
5538
  * Add addresses to webhook
4792
5539
  * Add addresses to webhook.
4793
- * @returns WebhookResponse
5540
+ * @returns WebhookResponse Successful response
4794
5541
  * @throws ApiError
4795
5542
  */
4796
5543
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4803,7 +5550,7 @@ declare class WebhooksService {
4803
5550
  /**
4804
5551
  * Remove addresses from webhook
4805
5552
  * Remove addresses from webhook.
4806
- * @returns WebhookResponse
5553
+ * @returns WebhookResponse Successful response
4807
5554
  * @throws ApiError
4808
5555
  */
4809
5556
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4816,7 +5563,7 @@ declare class WebhooksService {
4816
5563
  /**
4817
5564
  * List adresses by webhook
4818
5565
  * List adresses by webhook.
4819
- * @returns ListWebhookAddressesResponse
5566
+ * @returns ListWebhookAddressesResponse Successful response
4820
5567
  * @throws ApiError
4821
5568
  */
4822
5569
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4837,13 +5584,13 @@ declare class WebhooksService {
4837
5584
 
4838
5585
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4839
5586
  declare class Glacier {
5587
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4840
5588
  readonly default: DefaultService;
4841
5589
  readonly evmBalances: EvmBalancesService;
4842
5590
  readonly evmBlocks: EvmBlocksService;
4843
5591
  readonly evmChains: EvmChainsService;
4844
5592
  readonly evmContracts: EvmContractsService;
4845
5593
  readonly evmTransactions: EvmTransactionsService;
4846
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4847
5594
  readonly healthCheck: HealthCheckService;
4848
5595
  readonly nfTs: NfTsService;
4849
5596
  readonly operations: OperationsService;
@@ -4854,7 +5601,7 @@ declare class Glacier {
4854
5601
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4855
5602
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4856
5603
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4857
- readonly rpc: RpcService;
5604
+ readonly signatureAggregator: SignatureAggregatorService;
4858
5605
  readonly teleporter: TeleporterService;
4859
5606
  readonly webhooks: WebhooksService;
4860
5607
  readonly request: BaseHttpRequest;
@@ -4878,6 +5625,70 @@ declare class ApiError extends Error {
4878
5625
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4879
5626
  }
4880
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
+
4881
5692
  type NextPageToken = {
4882
5693
  /**
4883
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.
@@ -4885,4 +5696,64 @@ type NextPageToken = {
4885
5696
  nextPageToken?: string;
4886
5697
  };
4887
5698
 
4888
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, GlacierApiUsageMetricsService, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
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 };