@avalabs/glacier-sdk 3.1.0-canary.2a667a0.0 → 3.1.0-canary.2c45d78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/index.d.ts +1357 -329
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessRequest.d.ts +12 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  7. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  8. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  9. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  10. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  11. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  12. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  13. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  14. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  15. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  16. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  17. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  18. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  19. package/esm/generated/models/EventType.d.ts +3 -1
  20. package/esm/generated/models/EventType.js +1 -1
  21. package/esm/generated/models/EvmBlock.d.ts +4 -0
  22. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  23. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  24. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  25. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  26. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  27. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  28. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  29. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  30. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  31. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  32. package/esm/generated/models/IcmRewardDetails.js +1 -0
  33. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  34. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  35. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  36. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  37. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  38. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  39. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  40. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  41. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  42. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  43. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  44. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  45. package/esm/generated/models/Network.d.ts +1 -2
  46. package/esm/generated/models/Network.js +1 -1
  47. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  48. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  49. package/esm/generated/models/PChainBalanceType.d.ts +15 -0
  50. package/esm/generated/models/PChainBalanceType.js +1 -0
  51. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  52. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  53. package/esm/generated/models/PChainTransactionType.js +1 -1
  54. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  55. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  56. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  57. package/esm/generated/models/PendingIcmMessage.js +1 -0
  58. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  59. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  60. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  61. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  62. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  63. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  64. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  65. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  66. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +9 -0
  67. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  68. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  69. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  70. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  71. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  72. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  73. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  74. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  75. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  76. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  77. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  78. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  79. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  80. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  81. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  82. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  83. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  84. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  85. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  86. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  87. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  88. package/esm/generated/models/Subnet.d.ts +13 -0
  89. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  90. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  91. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  92. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  93. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  94. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  95. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  96. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  97. package/esm/generated/models/UtxoType.d.ts +3 -0
  98. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  99. package/esm/generated/services/DataApiUsageMetricsService.d.ts +122 -23
  100. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  101. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  102. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  103. package/esm/generated/services/EvmBlocksService.js +1 -1
  104. package/esm/generated/services/EvmChainsService.d.ts +72 -6
  105. package/esm/generated/services/EvmChainsService.js +1 -1
  106. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  107. package/esm/generated/services/EvmTransactionsService.js +1 -1
  108. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  109. package/esm/generated/services/HealthCheckService.js +1 -1
  110. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  111. package/esm/generated/services/InterchainMessagingService.js +1 -0
  112. package/esm/generated/services/NotificationsService.d.ts +51 -0
  113. package/esm/generated/services/NotificationsService.js +1 -0
  114. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  115. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  116. package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
  117. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  118. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  119. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  120. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  121. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  122. package/esm/generated/services/TeleporterService.d.ts +12 -6
  123. package/esm/generated/services/WebhooksService.d.ts +26 -24
  124. package/esm/generated/services/WebhooksService.js +1 -1
  125. package/esm/index.d.ts +41 -9
  126. package/esm/index.js +1 -1
  127. package/package.json +2 -2
  128. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  129. package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
  130. package/esm/generated/models/PrimaryNetwork.js +0 -1
  131. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  132. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  133. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  134. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  135. package/esm/generated/services/RpcService.d.ts +0 -25
  136. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -148,6 +148,28 @@ type LogsResponseDTO = {
148
148
  logs: Array<LogsFormat>;
149
149
  };
150
150
 
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet"
155
+ }
156
+
157
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
158
+ RPC_METHOD = "rpcMethod",
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
167
+ HOURLY = "hourly",
168
+ DAILY = "daily",
169
+ WEEKLY = "weekly",
170
+ MONTHLY = "monthly"
171
+ }
172
+
151
173
  type RpcUsageMetricsValueAggregated = {
152
174
  /**
153
175
  * The total number of requests
@@ -173,6 +195,10 @@ type RpcUsageMetricsValueAggregated = {
173
195
  * The number of invalid requests
174
196
  */
175
197
  invalidRequests: number;
198
+ /**
199
+ * The number of API credits wasted on invalid requests
200
+ */
201
+ apiCreditsWasted: number;
176
202
  /**
177
203
  * Column name used for data aggregation
178
204
  */
@@ -190,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
190
216
  RPC_METHOD = "rpcMethod",
191
217
  RESPONSE_CODE = "responseCode",
192
218
  RL_BYPASS_TOKEN = "rlBypassToken",
219
+ REQUEST_PATH = "requestPath",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent",
193
223
  NONE = "None"
194
224
  }
195
225
  }
@@ -205,19 +235,56 @@ type RpcMetrics = {
205
235
  values: Array<RpcUsageMetricsValueAggregated>;
206
236
  };
207
237
 
208
- type RpcUsageMetricsResponseDTO = {
238
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
209
239
  /**
210
240
  * Duration in which the metrics value is aggregated
211
241
  */
212
242
  aggregateDuration: string;
213
243
  /**
214
- * ChainId for which the metrics are aggregated
244
+ * Metrics values
215
245
  */
216
- chainId: string;
246
+ metrics: Array<RpcMetrics>;
247
+ /**
248
+ * Network type for which the metrics are aggregated
249
+ */
250
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
251
+ };
252
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
253
+ /**
254
+ * Network type for which the metrics are aggregated
255
+ */
256
+ enum network {
257
+ MAINNET = "mainnet",
258
+ TESTNET = "testnet"
259
+ }
260
+ }
261
+
262
+ declare enum RpcUsageMetricsGroupByEnum {
263
+ RPC_METHOD = "rpcMethod",
264
+ RESPONSE_CODE = "responseCode",
265
+ RL_BYPASS_TOKEN = "rlBypassToken"
266
+ }
267
+
268
+ declare enum SubnetRpcTimeIntervalGranularity {
269
+ HOURLY = "hourly",
270
+ DAILY = "daily",
271
+ WEEKLY = "weekly",
272
+ MONTHLY = "monthly"
273
+ }
274
+
275
+ type SubnetRpcUsageMetricsResponseDTO = {
276
+ /**
277
+ * Duration in which the metrics value is aggregated
278
+ */
279
+ aggregateDuration: string;
217
280
  /**
218
281
  * Metrics values
219
282
  */
220
283
  metrics: Array<RpcMetrics>;
284
+ /**
285
+ * ChainId for which the metrics are aggregated
286
+ */
287
+ chainId: string;
221
288
  };
222
289
 
223
290
  declare enum TimeIntervalGranularityExtended {
@@ -323,7 +390,7 @@ declare class DataApiUsageMetricsService {
323
390
  * @returns UsageMetricsResponseDTO Successful response
324
391
  * @throws ApiError
325
392
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
393
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
394
  /**
328
395
  * Organization ID to fetch usage metrics for
329
396
  */
@@ -333,7 +400,7 @@ declare class DataApiUsageMetricsService {
333
400
  */
334
401
  startTimestamp?: number;
335
402
  /**
336
- * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
403
+ * 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.
337
404
  */
338
405
  endTimestamp?: number;
339
406
  /**
@@ -348,10 +415,6 @@ declare class DataApiUsageMetricsService {
348
415
  * Filter data by chain ID.
349
416
  */
350
417
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
418
  /**
356
419
  * Filter data by response status code.
357
420
  */
@@ -364,6 +427,10 @@ declare class DataApiUsageMetricsService {
364
427
  * Filter data by API key ID.
365
428
  */
366
429
  apiKeyId?: string;
430
+ /**
431
+ * Filter data by request path.
432
+ */
433
+ requestPath?: string;
367
434
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
435
  /**
369
436
  * Get logs for requests made by client
@@ -371,7 +438,7 @@ declare class DataApiUsageMetricsService {
371
438
  * @returns LogsResponseDTO Successful response
372
439
  * @throws ApiError
373
440
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
441
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
442
  /**
376
443
  * Organization ID to fetch usage metrics for
377
444
  */
@@ -381,17 +448,13 @@ declare class DataApiUsageMetricsService {
381
448
  */
382
449
  startTimestamp?: number;
383
450
  /**
384
- * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
451
+ * 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.
385
452
  */
386
453
  endTimestamp?: number;
387
454
  /**
388
455
  * Filter data by chain ID.
389
456
  */
390
457
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
458
  /**
396
459
  * Filter data by response status code.
397
460
  */
@@ -404,6 +467,10 @@ declare class DataApiUsageMetricsService {
404
467
  * Filter data by API key ID.
405
468
  */
406
469
  apiKeyId?: string;
470
+ /**
471
+ * Filter data by request path.
472
+ */
473
+ requestPath?: string;
407
474
  /**
408
475
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
476
  */
@@ -415,35 +482,75 @@ declare class DataApiUsageMetricsService {
415
482
  }): CancelablePromise<LogsResponseDTO>;
416
483
  /**
417
484
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
- * @returns RpcUsageMetricsResponseDTO Successful response
485
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
486
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
420
487
  * @throws ApiError
421
488
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
489
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
490
  /**
424
- * Query param for setting time interval of data aggregation.
491
+ * Time interval granularity for data aggregation for subnet
492
+ * rpc metrics
425
493
  */
426
- timeInterval?: string;
494
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
495
  /**
428
496
  * 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.
429
497
  */
430
498
  startTimestamp?: number;
431
499
  /**
432
- * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
500
+ * 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.
433
501
  */
434
502
  endTimestamp?: number;
435
503
  /**
436
504
  * Query param for the criterion used for grouping metrics
437
505
  */
438
- groupBy?: UsageMetricsGroupByEnum;
506
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
507
  /**
440
508
  * Filter data by chain ID.
441
509
  */
442
510
  chainId?: string;
443
511
  /**
444
- * Filter data by request path.
512
+ * Filter data by response status code.
445
513
  */
446
- requestPath?: string;
514
+ responseCode?: string;
515
+ /**
516
+ * Filter data by RPC method.
517
+ */
518
+ rpcMethod?: string;
519
+ /**
520
+ * Filter data by Rl Bypass API Token.
521
+ */
522
+ rlBypassApiToken?: string;
523
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
524
+ /**
525
+ * @deprecated
526
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
527
+ *
528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
529
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
530
+ * @throws ApiError
531
+ */
532
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
533
+ /**
534
+ * Time interval granularity for data aggregation for subnet
535
+ * rpc metrics
536
+ */
537
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
538
+ /**
539
+ * 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.
540
+ */
541
+ startTimestamp?: number;
542
+ /**
543
+ * 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.
544
+ */
545
+ endTimestamp?: number;
546
+ /**
547
+ * Query param for the criterion used for grouping metrics
548
+ */
549
+ groupBy?: RpcUsageMetricsGroupByEnum;
550
+ /**
551
+ * Filter data by chain ID.
552
+ */
553
+ chainId?: string;
447
554
  /**
448
555
  * Filter data by response status code.
449
556
  */
@@ -456,7 +563,60 @@ declare class DataApiUsageMetricsService {
456
563
  * Filter data by Rl Bypass API Token.
457
564
  */
458
565
  rlBypassApiToken?: string;
459
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
566
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
567
+ /**
568
+ * Get usage metrics for the Primary Network RPC
569
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
570
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
571
+ * @throws ApiError
572
+ */
573
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
574
+ /**
575
+ * Either mainnet or testnet/fuji.
576
+ */
577
+ network: Network;
578
+ /**
579
+ * Time interval granularity for data aggregation for subnet
580
+ * rpc metrics
581
+ */
582
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
583
+ /**
584
+ * 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.
585
+ */
586
+ startTimestamp?: number;
587
+ /**
588
+ * 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.
589
+ */
590
+ endTimestamp?: number;
591
+ /**
592
+ * Query param for the criterion used for grouping metrics
593
+ */
594
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
595
+ /**
596
+ * Filter data by response status code.
597
+ */
598
+ responseCode?: string;
599
+ /**
600
+ * Filter data by request path.
601
+ */
602
+ requestPath?: string;
603
+ /**
604
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
605
+ */
606
+ country?: string;
607
+ /**
608
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
609
+ */
610
+ continent?: string;
611
+ /**
612
+ * Filter data by User Agent.
613
+ */
614
+ userAgent?: string;
615
+ /**
616
+ * Filter data by RPC method.
617
+ */
618
+ rpcMethod?: string;
619
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
460
620
  }
461
621
 
462
622
  declare class DefaultService {
@@ -655,6 +815,10 @@ type ListErc1155BalancesResponse = {
655
815
  * 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.
656
816
  */
657
817
  nextPageToken?: string;
818
+ /**
819
+ * The native token balance for the address.
820
+ */
821
+ nativeTokenBalance: NativeTokenBalance;
658
822
  /**
659
823
  * The list of ERC-1155 token balances for the address.
660
824
  */
@@ -699,11 +863,22 @@ type Erc20TokenBalance = {
699
863
  * The monetary value of the balance, if a price is available for the token.
700
864
  */
701
865
  balanceValue?: Money;
866
+ /**
867
+ * 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.
868
+ */
869
+ tokenReputation: Erc20TokenBalance.tokenReputation;
702
870
  };
703
871
  declare namespace Erc20TokenBalance {
704
872
  enum ercType {
705
873
  ERC_20 = "ERC-20"
706
874
  }
875
+ /**
876
+ * 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.
877
+ */
878
+ enum tokenReputation {
879
+ MALICIOUS = "Malicious",
880
+ BENIGN = "Benign"
881
+ }
707
882
  }
708
883
 
709
884
  type ListErc20BalancesResponse = {
@@ -711,6 +886,10 @@ type ListErc20BalancesResponse = {
711
886
  * 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.
712
887
  */
713
888
  nextPageToken?: string;
889
+ /**
890
+ * The native token balance for the address.
891
+ */
892
+ nativeTokenBalance: NativeTokenBalance;
714
893
  /**
715
894
  * The list of ERC-20 token balances for the address.
716
895
  */
@@ -722,6 +901,10 @@ type ListErc721BalancesResponse = {
722
901
  * 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.
723
902
  */
724
903
  nextPageToken?: string;
904
+ /**
905
+ * The native token balance for the address.
906
+ */
907
+ nativeTokenBalance: NativeTokenBalance;
725
908
  /**
726
909
  * The list of ERC-721 token balances for the address.
727
910
  */
@@ -785,7 +968,7 @@ declare class EvmBalancesService {
785
968
  */
786
969
  pageToken?: string;
787
970
  /**
788
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
971
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
789
972
  */
790
973
  pageSize?: number;
791
974
  /**
@@ -823,7 +1006,7 @@ declare class EvmBalancesService {
823
1006
  */
824
1007
  pageToken?: string;
825
1008
  /**
826
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
827
1010
  */
828
1011
  pageSize?: number;
829
1012
  /**
@@ -859,7 +1042,7 @@ declare class EvmBalancesService {
859
1042
  */
860
1043
  pageToken?: string;
861
1044
  /**
862
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1045
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
863
1046
  */
864
1047
  pageSize?: number;
865
1048
  /**
@@ -889,7 +1072,7 @@ declare class EvmBalancesService {
889
1072
  */
890
1073
  pageToken?: string;
891
1074
  /**
892
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
893
1076
  */
894
1077
  pageSize?: number;
895
1078
  /**
@@ -900,6 +1083,10 @@ declare class EvmBalancesService {
900
1083
  }
901
1084
 
902
1085
  type GetEvmBlockResponse = {
1086
+ /**
1087
+ * The EVM chain ID on which the block was created.
1088
+ */
1089
+ chainId: string;
903
1090
  /**
904
1091
  * The block number on the chain.
905
1092
  */
@@ -944,6 +1131,10 @@ type GetEvmBlockResponse = {
944
1131
  };
945
1132
 
946
1133
  type EvmBlock = {
1134
+ /**
1135
+ * The EVM chain ID on which the block was created.
1136
+ */
1137
+ chainId: string;
947
1138
  /**
948
1139
  * The block number on the chain.
949
1140
  */
@@ -998,6 +1189,26 @@ type ListEvmBlocksResponse = {
998
1189
  declare class EvmBlocksService {
999
1190
  readonly httpRequest: BaseHttpRequest;
1000
1191
  constructor(httpRequest: BaseHttpRequest);
1192
+ /**
1193
+ * List latest blocks across all supported EVM chains
1194
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1195
+ * @returns ListEvmBlocksResponse Successful response
1196
+ * @throws ApiError
1197
+ */
1198
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1199
+ /**
1200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1201
+ */
1202
+ pageToken?: string;
1203
+ /**
1204
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1205
+ */
1206
+ pageSize?: number;
1207
+ /**
1208
+ * Either mainnet or testnet/fuji.
1209
+ */
1210
+ network?: Network;
1211
+ }): CancelablePromise<ListEvmBlocksResponse>;
1001
1212
  /**
1002
1213
  * List latest blocks
1003
1214
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1120,68 +1331,240 @@ type ChainInfo = {
1120
1331
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1332
  };
1122
1333
 
1334
+ type ListAddressChainsResponse = {
1335
+ indexedChains?: Array<ChainInfo>;
1336
+ unindexedChains?: Array<string>;
1337
+ };
1338
+
1123
1339
  type ListChainsResponse = {
1124
1340
  chains: Array<ChainInfo>;
1125
1341
  };
1126
1342
 
1127
- declare enum Network {
1128
- MAINNET = "mainnet",
1129
- FUJI = "fuji",
1130
- TESTNET = "testnet",
1131
- DEVNET = "devnet"
1343
+ /**
1344
+ * 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.
1345
+ */
1346
+ declare enum TransactionMethodType {
1347
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1348
+ CONTRACT_CALL = "CONTRACT_CALL",
1349
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1132
1350
  }
1133
1351
 
1134
- declare class EvmChainsService {
1135
- readonly httpRequest: BaseHttpRequest;
1136
- constructor(httpRequest: BaseHttpRequest);
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1137
1354
  /**
1138
- * List chains
1139
- * Lists the supported EVM-compatible chains. Filterable by network.
1140
- * @returns ListChainsResponse Successful response
1141
- * @throws ApiError
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1142
1356
  */
1143
- supportedChains({ network, feature, }: {
1144
- /**
1145
- * Either mainnet or testnet/fuji.
1146
- */
1147
- network?: Network;
1148
- /**
1149
- * Filter by feature.
1150
- */
1151
- feature?: ApiFeature;
1152
- }): CancelablePromise<ListChainsResponse>;
1357
+ methodHash: string;
1153
1358
  /**
1154
- * Get chain information
1155
- * Gets chain information for the EVM-compatible chain if supported by the api.
1156
- * @returns GetChainResponse Successful response
1157
- * @throws ApiError
1359
+ * 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'.
1158
1360
  */
1159
- getChainInfo({ chainId, }: {
1160
- /**
1161
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1162
- */
1163
- chainId: string;
1164
- }): CancelablePromise<GetChainResponse>;
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1165
1365
  /**
1166
- * Get chains for address
1167
- * Gets the list of chains an address has interacted with.
1168
- * @returns ListChainsResponse Successful response
1169
- * @throws ApiError
1366
+ * The contract name.
1170
1367
  */
1171
- getAddressChains({ address, }: {
1172
- /**
1173
- * A wallet address.
1174
- */
1175
- address: string;
1176
- }): CancelablePromise<ListChainsResponse>;
1177
- }
1178
-
1179
- type ImageAsset = {
1180
- assetId?: string;
1368
+ name?: string;
1181
1369
  /**
1182
- * OUTPUT ONLY
1370
+ * The contract symbol.
1183
1371
  */
1184
- imageUri?: string;
1372
+ symbol?: string;
1373
+ /**
1374
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1375
+ */
1376
+ decimals?: number;
1377
+ /**
1378
+ * The logo uri for the address.
1379
+ */
1380
+ logoUri?: string;
1381
+ /**
1382
+ * A wallet or contract address in mixed-case checksum encoding.
1383
+ */
1384
+ address: string;
1385
+ };
1386
+
1387
+ type NativeTransaction = {
1388
+ /**
1389
+ * The block number on the chain.
1390
+ */
1391
+ blockNumber: string;
1392
+ /**
1393
+ * The block finality timestamp.
1394
+ */
1395
+ blockTimestamp: number;
1396
+ /**
1397
+ * The block hash identifier.
1398
+ */
1399
+ blockHash: string;
1400
+ /**
1401
+ * The EVM chain ID on which the transaction occured.
1402
+ */
1403
+ chainId: string;
1404
+ /**
1405
+ * The index at which the transaction occured in the block (0-indexed).
1406
+ */
1407
+ blockIndex: number;
1408
+ /**
1409
+ * The transaction hash identifier.
1410
+ */
1411
+ txHash: string;
1412
+ /**
1413
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1414
+ */
1415
+ txStatus: string;
1416
+ /**
1417
+ * The transaction type.
1418
+ */
1419
+ txType: number;
1420
+ /**
1421
+ * The gas limit set for the transaction.
1422
+ */
1423
+ gasLimit: string;
1424
+ /**
1425
+ * The amount of gas used.
1426
+ */
1427
+ gasUsed: string;
1428
+ /**
1429
+ * The gas price denominated by the number of decimals of the native token.
1430
+ */
1431
+ gasPrice: string;
1432
+ /**
1433
+ * The nonce used by the sender of the transaction.
1434
+ */
1435
+ nonce: string;
1436
+ from: RichAddress;
1437
+ to: RichAddress;
1438
+ method?: Method;
1439
+ value: string;
1440
+ };
1441
+
1442
+ type ListNativeTransactionsResponse = {
1443
+ /**
1444
+ * 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.
1445
+ */
1446
+ nextPageToken?: string;
1447
+ transactions: Array<NativeTransaction>;
1448
+ };
1449
+
1450
+ declare enum TransactionStatus {
1451
+ FAILED = "failed",
1452
+ SUCCESS = "success"
1453
+ }
1454
+
1455
+ declare class EvmChainsService {
1456
+ readonly httpRequest: BaseHttpRequest;
1457
+ constructor(httpRequest: BaseHttpRequest);
1458
+ /**
1459
+ * List all chains associated with a given address
1460
+ * 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.
1461
+ * @returns ListAddressChainsResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAddressChains({ address, }: {
1465
+ /**
1466
+ * A wallet address.
1467
+ */
1468
+ address: string;
1469
+ }): CancelablePromise<ListAddressChainsResponse>;
1470
+ /**
1471
+ * List chains
1472
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1473
+ * @returns ListChainsResponse Successful response
1474
+ * @throws ApiError
1475
+ */
1476
+ supportedChains({ network, feature, }: {
1477
+ /**
1478
+ * Either mainnet or testnet/fuji.
1479
+ */
1480
+ network?: Network;
1481
+ /**
1482
+ * Filter by feature.
1483
+ */
1484
+ feature?: ApiFeature;
1485
+ }): CancelablePromise<ListChainsResponse>;
1486
+ /**
1487
+ * Get chain information
1488
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1489
+ * @returns GetChainResponse Successful response
1490
+ * @throws ApiError
1491
+ */
1492
+ getChainInfo({ chainId, }: {
1493
+ /**
1494
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1495
+ */
1496
+ chainId: string;
1497
+ }): CancelablePromise<GetChainResponse>;
1498
+ /**
1499
+ * @deprecated
1500
+ * **[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.
1501
+ *
1502
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1503
+ * @returns ListAddressChainsResponse Successful response
1504
+ * @throws ApiError
1505
+ */
1506
+ getAddressChains({ address, }: {
1507
+ /**
1508
+ * A wallet address.
1509
+ */
1510
+ address: string;
1511
+ }): CancelablePromise<ListAddressChainsResponse>;
1512
+ /**
1513
+ * @deprecated
1514
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1515
+ *
1516
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1517
+ * @returns ListNativeTransactionsResponse Successful response
1518
+ * @throws ApiError
1519
+ */
1520
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1521
+ /**
1522
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1523
+ */
1524
+ pageToken?: string;
1525
+ /**
1526
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1527
+ */
1528
+ pageSize?: number;
1529
+ /**
1530
+ * Either mainnet or testnet/fuji.
1531
+ */
1532
+ network?: Network;
1533
+ /**
1534
+ * A status filter for listed transactions.
1535
+ */
1536
+ status?: TransactionStatus;
1537
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1538
+ /**
1539
+ * @deprecated
1540
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1541
+ *
1542
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1543
+ * @returns ListEvmBlocksResponse Successful response
1544
+ * @throws ApiError
1545
+ */
1546
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1547
+ /**
1548
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1549
+ */
1550
+ pageToken?: string;
1551
+ /**
1552
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1553
+ */
1554
+ pageSize?: number;
1555
+ /**
1556
+ * Either mainnet or testnet/fuji.
1557
+ */
1558
+ network?: Network;
1559
+ }): CancelablePromise<ListEvmBlocksResponse>;
1560
+ }
1561
+
1562
+ type ImageAsset = {
1563
+ assetId?: string;
1564
+ /**
1565
+ * OUTPUT ONLY
1566
+ */
1567
+ imageUri?: string;
1185
1568
  };
1186
1569
 
1187
1570
  type PricingProviders = {
@@ -1508,29 +1891,6 @@ declare namespace Erc1155Token {
1508
1891
  }
1509
1892
  }
1510
1893
 
1511
- type RichAddress = {
1512
- /**
1513
- * The contract name.
1514
- */
1515
- name?: string;
1516
- /**
1517
- * The contract symbol.
1518
- */
1519
- symbol?: string;
1520
- /**
1521
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1522
- */
1523
- decimals?: number;
1524
- /**
1525
- * The logo uri for the address.
1526
- */
1527
- logoUri?: string;
1528
- /**
1529
- * A wallet or contract address in mixed-case checksum encoding.
1530
- */
1531
- address: string;
1532
- };
1533
-
1534
1894
  type Erc1155TransferDetails = {
1535
1895
  from: RichAddress;
1536
1896
  to: RichAddress;
@@ -1615,27 +1975,6 @@ type Erc721TransferDetails = {
1615
1975
  erc721Token: Erc721Token;
1616
1976
  };
1617
1977
 
1618
- /**
1619
- * 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.
1620
- */
1621
- declare enum TransactionMethodType {
1622
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1623
- CONTRACT_CALL = "CONTRACT_CALL",
1624
- CONTRACT_CREATION = "CONTRACT_CREATION"
1625
- }
1626
-
1627
- type Method = {
1628
- callType: TransactionMethodType;
1629
- /**
1630
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1631
- */
1632
- methodHash: string;
1633
- /**
1634
- * 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'.
1635
- */
1636
- methodName?: string;
1637
- };
1638
-
1639
1978
  type FullNativeTransactionDetails = {
1640
1979
  /**
1641
1980
  * The block number on the chain.
@@ -1649,6 +1988,10 @@ type FullNativeTransactionDetails = {
1649
1988
  * The block hash identifier.
1650
1989
  */
1651
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1652
1995
  /**
1653
1996
  * The index at which the transaction occured in the block (0-indexed).
1654
1997
  */
@@ -1912,99 +2255,40 @@ type ListInternalTransactionsResponse = {
1912
2255
  transactions: Array<InternalTransaction>;
1913
2256
  };
1914
2257
 
1915
- type NativeTransaction = {
1916
- /**
1917
- * The block number on the chain.
1918
- */
1919
- blockNumber: string;
1920
- /**
1921
- * The block finality timestamp.
1922
- */
1923
- blockTimestamp: number;
2258
+ type TransactionDetails = {
1924
2259
  /**
1925
- * The block hash identifier.
2260
+ * The native (top-level) transaction details.
1926
2261
  */
1927
- blockHash: string;
2262
+ nativeTransaction: NativeTransaction;
1928
2263
  /**
1929
- * The index at which the transaction occured in the block (0-indexed).
2264
+ * The list of ERC-20 transfers.
1930
2265
  */
1931
- blockIndex: number;
2266
+ erc20Transfers?: Array<Erc20TransferDetails>;
1932
2267
  /**
1933
- * The transaction hash identifier.
2268
+ * The list of ERC-721 transfers.
1934
2269
  */
1935
- txHash: string;
2270
+ erc721Transfers?: Array<Erc721TransferDetails>;
1936
2271
  /**
1937
- * The transaction status, which is either 0 (failed) or 1 (successful).
2272
+ * The list of ERC-1155 transfers.
1938
2273
  */
1939
- txStatus: string;
2274
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1940
2275
  /**
1941
- * The transaction type.
2276
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1942
2277
  */
1943
- txType: number;
2278
+ internalTransactions?: Array<InternalTransactionDetails>;
2279
+ };
2280
+
2281
+ type ListTransactionDetailsResponse = {
1944
2282
  /**
1945
- * The gas limit set for the transaction.
2283
+ * 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.
1946
2284
  */
1947
- gasLimit: string;
2285
+ nextPageToken?: string;
2286
+ transactions: Array<TransactionDetails>;
2287
+ };
2288
+
2289
+ type ListTransfersResponse = {
1948
2290
  /**
1949
- * The amount of gas used.
1950
- */
1951
- gasUsed: string;
1952
- /**
1953
- * The gas price denominated by the number of decimals of the native token.
1954
- */
1955
- gasPrice: string;
1956
- /**
1957
- * The nonce used by the sender of the transaction.
1958
- */
1959
- nonce: string;
1960
- from: RichAddress;
1961
- to: RichAddress;
1962
- method?: Method;
1963
- value: string;
1964
- };
1965
-
1966
- type ListNativeTransactionsResponse = {
1967
- /**
1968
- * 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.
1969
- */
1970
- nextPageToken?: string;
1971
- transactions: Array<NativeTransaction>;
1972
- };
1973
-
1974
- type TransactionDetails = {
1975
- /**
1976
- * The native (top-level) transaction details.
1977
- */
1978
- nativeTransaction: NativeTransaction;
1979
- /**
1980
- * The list of ERC-20 transfers.
1981
- */
1982
- erc20Transfers?: Array<Erc20TransferDetails>;
1983
- /**
1984
- * The list of ERC-721 transfers.
1985
- */
1986
- erc721Transfers?: Array<Erc721TransferDetails>;
1987
- /**
1988
- * The list of ERC-1155 transfers.
1989
- */
1990
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1991
- /**
1992
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1993
- */
1994
- internalTransactions?: Array<InternalTransactionDetails>;
1995
- };
1996
-
1997
- type ListTransactionDetailsResponse = {
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
- transactions: Array<TransactionDetails>;
2003
- };
2004
-
2005
- type ListTransfersResponse = {
2006
- /**
2007
- * 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.
2291
+ * 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.
2008
2292
  */
2009
2293
  nextPageToken?: string;
2010
2294
  transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
@@ -2015,14 +2299,33 @@ declare enum SortOrder {
2015
2299
  DESC = "desc"
2016
2300
  }
2017
2301
 
2018
- declare enum TransactionStatus {
2019
- FAILED = "failed",
2020
- SUCCESS = "success"
2021
- }
2022
-
2023
2302
  declare class EvmTransactionsService {
2024
2303
  readonly httpRequest: BaseHttpRequest;
2025
2304
  constructor(httpRequest: BaseHttpRequest);
2305
+ /**
2306
+ * List the latest transactions across all supported EVM chains
2307
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2308
+ * @returns ListNativeTransactionsResponse Successful response
2309
+ * @throws ApiError
2310
+ */
2311
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2312
+ /**
2313
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2314
+ */
2315
+ pageToken?: string;
2316
+ /**
2317
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2318
+ */
2319
+ pageSize?: number;
2320
+ /**
2321
+ * Either mainnet or testnet/fuji.
2322
+ */
2323
+ network?: Network;
2324
+ /**
2325
+ * A status filter for listed transactions.
2326
+ */
2327
+ status?: TransactionStatus;
2328
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2026
2329
  /**
2027
2330
  * Get deployment transaction
2028
2331
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2321,7 +2624,7 @@ declare class EvmTransactionsService {
2321
2624
  * @returns ListNativeTransactionsResponse Successful response
2322
2625
  * @throws ApiError
2323
2626
  */
2324
- getTransactionsForBlock({ chainId, blockId, }: {
2627
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2325
2628
  /**
2326
2629
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2327
2630
  */
@@ -2330,6 +2633,14 @@ declare class EvmTransactionsService {
2330
2633
  * A block identifier which is either a block number or the block hash.
2331
2634
  */
2332
2635
  blockId: string;
2636
+ /**
2637
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2638
+ */
2639
+ pageToken?: string;
2640
+ /**
2641
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2642
+ */
2643
+ pageSize?: number;
2333
2644
  }): CancelablePromise<ListNativeTransactionsResponse>;
2334
2645
  /**
2335
2646
  * List latest transactions
@@ -2357,20 +2668,261 @@ declare class EvmTransactionsService {
2357
2668
  }): CancelablePromise<ListNativeTransactionsResponse>;
2358
2669
  }
2359
2670
 
2671
+ type HealthIndicatorResultDto = {
2672
+ /**
2673
+ * Status of the health indicator.
2674
+ */
2675
+ status?: HealthIndicatorResultDto.status;
2676
+ };
2677
+ declare namespace HealthIndicatorResultDto {
2678
+ /**
2679
+ * Status of the health indicator.
2680
+ */
2681
+ enum status {
2682
+ UP = "up",
2683
+ DOWN = "down"
2684
+ }
2685
+ }
2686
+
2687
+ type HealthCheckResultDto = {
2688
+ status?: HealthCheckResultDto.status;
2689
+ info?: any | null;
2690
+ error?: any | null;
2691
+ details?: Record<string, HealthIndicatorResultDto>;
2692
+ };
2693
+ declare namespace HealthCheckResultDto {
2694
+ enum status {
2695
+ ERROR = "error",
2696
+ OK = "ok",
2697
+ SHUTTING_DOWN = "shutting_down"
2698
+ }
2699
+ }
2700
+
2360
2701
  declare class HealthCheckService {
2361
2702
  readonly httpRequest: BaseHttpRequest;
2362
2703
  constructor(httpRequest: BaseHttpRequest);
2363
2704
  /**
2364
2705
  * Get the health of the service
2365
- * @returns any The Health Check is successful
2706
+ * Check the health of the service.
2707
+ * @returns HealthCheckResultDto The health of the service
2366
2708
  * @throws ApiError
2367
2709
  */
2368
- dataHealthCheck(): CancelablePromise<{
2369
- status?: string;
2370
- info?: Record<string, Record<string, string>> | null;
2371
- error?: Record<string, Record<string, string>> | null;
2372
- details?: Record<string, Record<string, string>>;
2373
- }>;
2710
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2711
+ }
2712
+
2713
+ type IcmDestinationTransaction = {
2714
+ txHash: string;
2715
+ timestamp: number;
2716
+ gasSpent: string;
2717
+ rewardRedeemer: string;
2718
+ delivererAddress: string;
2719
+ };
2720
+
2721
+ type IcmReceipt = {
2722
+ receivedMessageNonce: string;
2723
+ relayerRewardAddress: string;
2724
+ };
2725
+
2726
+ type IcmRewardDetails = {
2727
+ /**
2728
+ * A wallet or contract address in mixed-case checksum encoding.
2729
+ */
2730
+ address: string;
2731
+ /**
2732
+ * The contract name.
2733
+ */
2734
+ name: string;
2735
+ /**
2736
+ * The contract symbol.
2737
+ */
2738
+ symbol: string;
2739
+ /**
2740
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2741
+ */
2742
+ decimals: number;
2743
+ /**
2744
+ * The logo uri for the address.
2745
+ */
2746
+ logoUri?: string;
2747
+ ercType: IcmRewardDetails.ercType;
2748
+ /**
2749
+ * The token price, if available.
2750
+ */
2751
+ price?: Money;
2752
+ value: string;
2753
+ };
2754
+ declare namespace IcmRewardDetails {
2755
+ enum ercType {
2756
+ ERC_20 = "ERC-20"
2757
+ }
2758
+ }
2759
+
2760
+ type IcmSourceTransaction = {
2761
+ txHash: string;
2762
+ timestamp: number;
2763
+ gasSpent: string;
2764
+ };
2765
+
2766
+ type DeliveredIcmMessage = {
2767
+ messageId: string;
2768
+ icmContractAddress: string;
2769
+ sourceBlockchainId: string;
2770
+ destinationBlockchainId: string;
2771
+ sourceEvmChainId: string;
2772
+ destinationEvmChainId: string;
2773
+ messageNonce: string;
2774
+ from: string;
2775
+ to: string;
2776
+ data?: string;
2777
+ messageExecuted: boolean;
2778
+ receipts: Array<IcmReceipt>;
2779
+ receiptDelivered: boolean;
2780
+ rewardDetails: IcmRewardDetails;
2781
+ sourceTransaction: IcmSourceTransaction;
2782
+ destinationTransaction: IcmDestinationTransaction;
2783
+ status: DeliveredIcmMessage.status;
2784
+ };
2785
+ declare namespace DeliveredIcmMessage {
2786
+ enum status {
2787
+ DELIVERED = "delivered"
2788
+ }
2789
+ }
2790
+
2791
+ type DeliveredSourceNotIndexedIcmMessage = {
2792
+ messageId: string;
2793
+ icmContractAddress: string;
2794
+ sourceBlockchainId: string;
2795
+ destinationBlockchainId: string;
2796
+ sourceEvmChainId: string;
2797
+ destinationEvmChainId: string;
2798
+ messageNonce: string;
2799
+ from: string;
2800
+ to: string;
2801
+ data?: string;
2802
+ messageExecuted: boolean;
2803
+ receipts: Array<IcmReceipt>;
2804
+ receiptDelivered: boolean;
2805
+ rewardDetails: IcmRewardDetails;
2806
+ destinationTransaction: IcmDestinationTransaction;
2807
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2808
+ };
2809
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2810
+ enum status {
2811
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2812
+ }
2813
+ }
2814
+
2815
+ type PendingIcmMessage = {
2816
+ messageId: string;
2817
+ icmContractAddress: string;
2818
+ sourceBlockchainId: string;
2819
+ destinationBlockchainId: string;
2820
+ sourceEvmChainId: string;
2821
+ destinationEvmChainId: string;
2822
+ messageNonce: string;
2823
+ from: string;
2824
+ to: string;
2825
+ data?: string;
2826
+ messageExecuted: boolean;
2827
+ receipts: Array<IcmReceipt>;
2828
+ receiptDelivered: boolean;
2829
+ rewardDetails: IcmRewardDetails;
2830
+ sourceTransaction: IcmSourceTransaction;
2831
+ status: PendingIcmMessage.status;
2832
+ };
2833
+ declare namespace PendingIcmMessage {
2834
+ enum status {
2835
+ PENDING = "pending"
2836
+ }
2837
+ }
2838
+
2839
+ type ListIcmMessagesResponse = {
2840
+ /**
2841
+ * 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.
2842
+ */
2843
+ nextPageToken?: string;
2844
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2845
+ };
2846
+
2847
+ declare class InterchainMessagingService {
2848
+ readonly httpRequest: BaseHttpRequest;
2849
+ constructor(httpRequest: BaseHttpRequest);
2850
+ /**
2851
+ * Get an ICM message
2852
+ * Gets an ICM message by message ID.
2853
+ * @returns any Successful response
2854
+ * @throws ApiError
2855
+ */
2856
+ getIcmMessage({ messageId, }: {
2857
+ /**
2858
+ * The message ID of the ICM message.
2859
+ */
2860
+ messageId: string;
2861
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2862
+ /**
2863
+ * List ICM messages
2864
+ * Lists ICM messages. Ordered by timestamp in descending order.
2865
+ * @returns ListIcmMessagesResponse Successful response
2866
+ * @throws ApiError
2867
+ */
2868
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2869
+ /**
2870
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2871
+ */
2872
+ pageToken?: string;
2873
+ /**
2874
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2875
+ */
2876
+ pageSize?: number;
2877
+ /**
2878
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2879
+ */
2880
+ sourceBlockchainId?: string;
2881
+ /**
2882
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2883
+ */
2884
+ destinationBlockchainId?: string;
2885
+ /**
2886
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2887
+ */
2888
+ blockchainId?: string;
2889
+ /**
2890
+ * The address of the recipient of the ICM message.
2891
+ */
2892
+ to?: string;
2893
+ /**
2894
+ * The address of the sender of the ICM message.
2895
+ */
2896
+ from?: string;
2897
+ /**
2898
+ * Either mainnet or testnet/fuji.
2899
+ */
2900
+ network?: Network;
2901
+ }): CancelablePromise<ListIcmMessagesResponse>;
2902
+ /**
2903
+ * List ICM messages by address
2904
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2905
+ * @returns ListIcmMessagesResponse Successful response
2906
+ * @throws ApiError
2907
+ */
2908
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2909
+ /**
2910
+ * An EVM address.
2911
+ */
2912
+ address: string;
2913
+ /**
2914
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2915
+ */
2916
+ pageToken?: string;
2917
+ /**
2918
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2919
+ */
2920
+ pageSize?: number;
2921
+ /**
2922
+ * Either mainnet or testnet/fuji.
2923
+ */
2924
+ network?: Network;
2925
+ }): CancelablePromise<ListIcmMessagesResponse>;
2374
2926
  }
2375
2927
 
2376
2928
  type ListNftTokens = {
@@ -2450,6 +3002,108 @@ declare class NfTsService {
2450
3002
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2451
3003
  }
2452
3004
 
3005
+ type AccessRequest = {
3006
+ /**
3007
+ * The email address to send the access token to
3008
+ */
3009
+ email: string;
3010
+ /**
3011
+ * The captcha to verify the user
3012
+ */
3013
+ captcha: string;
3014
+ };
3015
+
3016
+ type NotificationsResponse = {
3017
+ message: string;
3018
+ };
3019
+
3020
+ type SubscribeRequest = {
3021
+ /**
3022
+ * The access token to use for authentication
3023
+ */
3024
+ accessToken: string;
3025
+ /**
3026
+ * The node ID to subscribe to
3027
+ */
3028
+ nodeId: string;
3029
+ /**
3030
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3031
+ */
3032
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3033
+ };
3034
+
3035
+ type SubscriptionsRequest = {
3036
+ /**
3037
+ * The access token to use for authentication
3038
+ */
3039
+ accessToken: string;
3040
+ };
3041
+
3042
+ type SubscriptionsResponse = {
3043
+ /**
3044
+ * The email address of the user
3045
+ */
3046
+ email: string;
3047
+ /**
3048
+ * The subscriptions of the user
3049
+ */
3050
+ subscriptions: Record<string, {
3051
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3052
+ }>;
3053
+ };
3054
+
3055
+ type UnsubscribeRequest = {
3056
+ /**
3057
+ * The access token to use for authentication
3058
+ */
3059
+ accessToken: string;
3060
+ /**
3061
+ * The node ID to subscribe to
3062
+ */
3063
+ nodeId: string;
3064
+ };
3065
+
3066
+ declare class NotificationsService {
3067
+ readonly httpRequest: BaseHttpRequest;
3068
+ constructor(httpRequest: BaseHttpRequest);
3069
+ /**
3070
+ * Access Notifications
3071
+ * Access notifications.
3072
+ * @returns NotificationsResponse Successful response
3073
+ * @throws ApiError
3074
+ */
3075
+ access({ requestBody, }: {
3076
+ requestBody: AccessRequest;
3077
+ }): CancelablePromise<NotificationsResponse>;
3078
+ /**
3079
+ * Subscribe to Notifications
3080
+ * Subscribe to receive notifications.
3081
+ * @returns NotificationsResponse Successful response
3082
+ * @throws ApiError
3083
+ */
3084
+ subscribe({ requestBody, }: {
3085
+ requestBody: SubscribeRequest;
3086
+ }): CancelablePromise<NotificationsResponse>;
3087
+ /**
3088
+ * Unsubscribe from Notifications
3089
+ * Unsubscribe from receiving notifications.
3090
+ * @returns NotificationsResponse Successful response
3091
+ * @throws ApiError
3092
+ */
3093
+ unsubscribe({ requestBody, }: {
3094
+ requestBody: UnsubscribeRequest;
3095
+ }): CancelablePromise<NotificationsResponse>;
3096
+ /**
3097
+ * Get Subscriptions
3098
+ * Get subscriptions.
3099
+ * @returns SubscriptionsResponse Successful response
3100
+ * @throws ApiError
3101
+ */
3102
+ subscriptions({ requestBody, }: {
3103
+ requestBody: SubscriptionsRequest;
3104
+ }): CancelablePromise<SubscriptionsResponse>;
3105
+ }
3106
+
2453
3107
  type EvmNetworkOptions = {
2454
3108
  addresses: Array<string>;
2455
3109
  includeChains: Array<string>;
@@ -2538,7 +3192,7 @@ type OperationStatusResponse = {
2538
3192
  operationType: OperationType;
2539
3193
  operationStatus: OperationStatus;
2540
3194
  message?: string;
2541
- metadata: TransactionExportMetadata;
3195
+ metadata?: TransactionExportMetadata;
2542
3196
  createdAtTimestamp: number;
2543
3197
  updatedAtTimestamp: number;
2544
3198
  };
@@ -2602,16 +3256,31 @@ type DelegatorsDetails = {
2602
3256
  };
2603
3257
 
2604
3258
  type StakingDistribution = {
3259
+ /**
3260
+ * AvalancheGo version for the validator node.
3261
+ */
2605
3262
  version: string;
3263
+ /**
3264
+ * The total amount staked by validators using this version.
3265
+ */
2606
3266
  amountStaked: string;
3267
+ /**
3268
+ * The number of validators using this version.
3269
+ */
2607
3270
  validatorCount: number;
2608
3271
  };
2609
3272
 
2610
3273
  type ValidatorsDetails = {
2611
3274
  validatorCount: number;
2612
3275
  totalAmountStaked: string;
3276
+ /**
3277
+ * Total potential rewards from currently active validations and delegations.
3278
+ */
2613
3279
  estimatedAnnualStakingReward: string;
2614
3280
  stakingDistributionByVersion: Array<StakingDistribution>;
3281
+ /**
3282
+ * Ratio of total active stake amount to the current supply.
3283
+ */
2615
3284
  stakingRatio: string;
2616
3285
  };
2617
3286
 
@@ -2663,7 +3332,13 @@ type CompletedDelegatorDetails = {
2663
3332
  delegationFee: string;
2664
3333
  startTimestamp: number;
2665
3334
  endTimestamp: number;
3335
+ /**
3336
+ * Total rewards distributed for the successful delegation.
3337
+ */
2666
3338
  grossReward: string;
3339
+ /**
3340
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3341
+ */
2667
3342
  netReward: string;
2668
3343
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2669
3344
  };
@@ -2681,7 +3356,13 @@ type PendingDelegatorDetails = {
2681
3356
  delegationFee: string;
2682
3357
  startTimestamp: number;
2683
3358
  endTimestamp: number;
3359
+ /**
3360
+ * Estimated total rewards that will be distributed for the successful delegation.
3361
+ */
2684
3362
  estimatedGrossReward: string;
3363
+ /**
3364
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3365
+ */
2685
3366
  estimatedNetReward: string;
2686
3367
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2687
3368
  };
@@ -2702,10 +3383,61 @@ type ListDelegatorDetailsResponse = {
2702
3383
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2703
3384
  };
2704
3385
 
3386
+ type BalanceOwner = {
3387
+ addresses: Array<string>;
3388
+ threshold: number;
3389
+ };
3390
+
3391
+ type L1ValidatorDetailsFull = {
3392
+ /**
3393
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3394
+ */
3395
+ validationId: string;
3396
+ nodeId: string;
3397
+ subnetId: string;
3398
+ /**
3399
+ * 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
3400
+ */
3401
+ weight: number;
3402
+ /**
3403
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3404
+ */
3405
+ remainingBalance: number;
3406
+ /**
3407
+ * The timestamp of the transaction which created this L1 validator
3408
+ */
3409
+ creationTimestamp: number;
3410
+ blsCredentials: Record<string, any>;
3411
+ /**
3412
+ * The L1 validator owner's balance, returned after it's disabled or removed
3413
+ */
3414
+ remainingBalanceOwner: BalanceOwner;
3415
+ /**
3416
+ * Owner ddresses details which can disable or remove the L1 validator
3417
+ */
3418
+ deactivationOwner: BalanceOwner;
3419
+ };
3420
+
3421
+ type ListL1ValidatorsResponse = {
3422
+ /**
3423
+ * 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.
3424
+ */
3425
+ nextPageToken?: string;
3426
+ /**
3427
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3428
+ */
3429
+ validators: Array<L1ValidatorDetailsFull>;
3430
+ };
3431
+
2705
3432
  type BlockchainInfo = {
2706
3433
  blockchainId: string;
2707
3434
  };
2708
3435
 
3436
+ type L1ValidatorManagerDetails = {
3437
+ blockchainId: string;
3438
+ contractAddress: string;
3439
+ };
3440
+
2709
3441
  type SubnetOwnershipInfo = {
2710
3442
  /**
2711
3443
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2744,6 +3476,18 @@ type Subnet = {
2744
3476
  * Latest subnet owner details for this Subnet.
2745
3477
  */
2746
3478
  subnetOwnershipInfo: SubnetOwnershipInfo;
3479
+ /**
3480
+ * Whether the subnet is an L1 or not.
3481
+ */
3482
+ isL1: boolean;
3483
+ /**
3484
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3485
+ */
3486
+ l1ConversionTransactionHash?: string;
3487
+ /**
3488
+ * L1 validator manager details.
3489
+ */
3490
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2747
3491
  blockchains: Array<BlockchainInfo>;
2748
3492
  };
2749
3493
 
@@ -2791,6 +3535,9 @@ type ActiveValidatorDetails = {
2791
3535
  nodeId: string;
2792
3536
  subnetId: string;
2793
3537
  amountStaked: string;
3538
+ /**
3539
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3540
+ */
2794
3541
  delegationFee?: string;
2795
3542
  startTimestamp: number;
2796
3543
  endTimestamp: number;
@@ -2798,12 +3545,30 @@ type ActiveValidatorDetails = {
2798
3545
  * Present for AddPermissionlessValidatorTx
2799
3546
  */
2800
3547
  blsCredentials?: BlsCredentials;
3548
+ /**
3549
+ * The percentage of this validator's stake amount to the total active stake.
3550
+ */
2801
3551
  stakePercentage: number;
3552
+ /**
3553
+ * The number of delegators linked to the validator.
3554
+ */
2802
3555
  delegatorCount: number;
3556
+ /**
3557
+ * The total amount in nAVAX delegated to the validator.
3558
+ */
2803
3559
  amountDelegated?: string;
3560
+ /**
3561
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3562
+ */
2804
3563
  uptimePerformance: number;
2805
3564
  avalancheGoVersion?: string;
3565
+ /**
3566
+ * The amount of stake in nAVAX that can be delegated to this validator.
3567
+ */
2806
3568
  delegationCapacity?: string;
3569
+ /**
3570
+ * Estimated rewards for the validator if the validation is successful.
3571
+ */
2807
3572
  potentialRewards: Rewards;
2808
3573
  validationStatus: ActiveValidatorDetails.validationStatus;
2809
3574
  validatorHealth: ValidatorHealthDetails;
@@ -2819,6 +3584,9 @@ type CompletedValidatorDetails = {
2819
3584
  nodeId: string;
2820
3585
  subnetId: string;
2821
3586
  amountStaked: string;
3587
+ /**
3588
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3589
+ */
2822
3590
  delegationFee?: string;
2823
3591
  startTimestamp: number;
2824
3592
  endTimestamp: number;
@@ -2842,6 +3610,9 @@ type PendingValidatorDetails = {
2842
3610
  nodeId: string;
2843
3611
  subnetId: string;
2844
3612
  amountStaked: string;
3613
+ /**
3614
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3615
+ */
2845
3616
  delegationFee?: string;
2846
3617
  startTimestamp: number;
2847
3618
  endTimestamp: number;
@@ -2862,6 +3633,9 @@ type RemovedValidatorDetails = {
2862
3633
  nodeId: string;
2863
3634
  subnetId: string;
2864
3635
  amountStaked: string;
3636
+ /**
3637
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3638
+ */
2865
3639
  delegationFee?: string;
2866
3640
  startTimestamp: number;
2867
3641
  endTimestamp: number;
@@ -2869,7 +3643,13 @@ type RemovedValidatorDetails = {
2869
3643
  * Present for AddPermissionlessValidatorTx
2870
3644
  */
2871
3645
  blsCredentials?: BlsCredentials;
3646
+ /**
3647
+ * The transaction hash that removed the permissioned subnet validator.
3648
+ */
2872
3649
  removeTxHash: string;
3650
+ /**
3651
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3652
+ */
2873
3653
  removeTimestamp: number;
2874
3654
  validationStatus: RemovedValidatorDetails.validationStatus;
2875
3655
  };
@@ -3210,6 +3990,39 @@ declare class PrimaryNetworkService {
3210
3990
  */
3211
3991
  nodeIds?: string;
3212
3992
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3993
+ /**
3994
+ * List L1 validators
3995
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3996
+ * @returns ListL1ValidatorsResponse Successful response
3997
+ * @throws ApiError
3998
+ */
3999
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4000
+ /**
4001
+ * Either mainnet or testnet/fuji.
4002
+ */
4003
+ network: Network;
4004
+ /**
4005
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4006
+ */
4007
+ pageToken?: string;
4008
+ /**
4009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4010
+ */
4011
+ pageSize?: number;
4012
+ /**
4013
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4014
+ */
4015
+ l1ValidationId?: any;
4016
+ includeInactiveL1Validators?: boolean;
4017
+ /**
4018
+ * A valid node ID in format 'NodeID-HASH'.
4019
+ */
4020
+ nodeId?: string;
4021
+ /**
4022
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4023
+ */
4024
+ subnetId?: any;
4025
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3213
4026
  }
3214
4027
 
3215
4028
  declare enum BlockchainId {
@@ -3256,12 +4069,6 @@ type CChainAtomicBalances = {
3256
4069
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3257
4070
  };
3258
4071
 
3259
- declare enum PrimaryNetwork {
3260
- MAINNET = "mainnet",
3261
- FUJI = "fuji",
3262
- DEVNET = "devnet"
3263
- }
3264
-
3265
4072
  declare enum PrimaryNetworkChainName {
3266
4073
  P_CHAIN = "p-chain",
3267
4074
  X_CHAIN = "x-chain",
@@ -3270,7 +4077,7 @@ declare enum PrimaryNetworkChainName {
3270
4077
 
3271
4078
  type PrimaryNetworkChainInfo = {
3272
4079
  chainName: PrimaryNetworkChainName;
3273
- network: PrimaryNetwork;
4080
+ network: Network;
3274
4081
  };
3275
4082
 
3276
4083
  type ListCChainAtomicBalancesResponse = {
@@ -3462,6 +4269,8 @@ type GetPrimaryNetworkBlockResponse = {
3462
4269
  txCount: number;
3463
4270
  transactions: Array<string>;
3464
4271
  blockSizeBytes: number;
4272
+ l1ValidatorsAccruedFees?: number;
4273
+ activeL1Validators?: number;
3465
4274
  currentSupply?: string;
3466
4275
  proposerDetails?: ProposerDetails;
3467
4276
  };
@@ -3475,6 +4284,8 @@ type PrimaryNetworkBlock = {
3475
4284
  txCount: number;
3476
4285
  transactions: Array<string>;
3477
4286
  blockSizeBytes: number;
4287
+ l1ValidatorsAccruedFees?: number;
4288
+ activeL1Validators?: number;
3478
4289
  currentSupply?: string;
3479
4290
  proposerDetails?: ProposerDetails;
3480
4291
  };
@@ -3517,7 +4328,7 @@ declare class PrimaryNetworkBlocksService {
3517
4328
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3518
4329
  * @throws ApiError
3519
4330
  */
3520
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4331
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3521
4332
  /**
3522
4333
  * A primary network blockchain id or alias.
3523
4334
  */
@@ -3530,6 +4341,14 @@ declare class PrimaryNetworkBlocksService {
3530
4341
  * A primary network (P or X chain) nodeId.
3531
4342
  */
3532
4343
  nodeId: string;
4344
+ /**
4345
+ * Query param for retrieving items after a specific timestamp.
4346
+ */
4347
+ startTimestamp?: number;
4348
+ /**
4349
+ * Query param for retrieving items before a specific timestamp.
4350
+ */
4351
+ endTimestamp?: number;
3533
4352
  /**
3534
4353
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3535
4354
  */
@@ -3545,7 +4364,7 @@ declare class PrimaryNetworkBlocksService {
3545
4364
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3546
4365
  * @throws ApiError
3547
4366
  */
3548
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4367
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3549
4368
  /**
3550
4369
  * A primary network blockchain id or alias.
3551
4370
  */
@@ -3554,6 +4373,14 @@ declare class PrimaryNetworkBlocksService {
3554
4373
  * Either mainnet or testnet/fuji.
3555
4374
  */
3556
4375
  network: Network;
4376
+ /**
4377
+ * Query param for retrieving items after a specific timestamp.
4378
+ */
4379
+ startTimestamp?: number;
4380
+ /**
4381
+ * Query param for retrieving items before a specific timestamp.
4382
+ */
4383
+ endTimestamp?: number;
3557
4384
  /**
3558
4385
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3559
4386
  */
@@ -3963,6 +4790,28 @@ type ListCChainAtomicTransactionsResponse = {
3963
4790
  chainInfo: PrimaryNetworkChainInfo;
3964
4791
  };
3965
4792
 
4793
+ type L1ValidatorDetailsTransaction = {
4794
+ /**
4795
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4796
+ */
4797
+ validationId: string;
4798
+ nodeId: string;
4799
+ subnetId: string;
4800
+ /**
4801
+ * 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
4802
+ */
4803
+ weight: number;
4804
+ /**
4805
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4806
+ */
4807
+ remainingBalance: number;
4808
+ /**
4809
+ * 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
4810
+ */
4811
+ balanceChange?: number;
4812
+ blsCredentials?: Record<string, any>;
4813
+ };
4814
+
3966
4815
  declare enum PChainTransactionType {
3967
4816
  ADD_VALIDATOR_TX = "AddValidatorTx",
3968
4817
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3979,9 +4828,17 @@ declare enum PChainTransactionType {
3979
4828
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3980
4829
  BASE_TX = "BaseTx",
3981
4830
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4831
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4832
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4833
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4834
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4835
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3982
4836
  UNKNOWN = "UNKNOWN"
3983
4837
  }
3984
4838
 
4839
+ /**
4840
+ * Indicates whether the UTXO is staked or transferable
4841
+ */
3985
4842
  declare enum UtxoType {
3986
4843
  STAKE = "STAKE",
3987
4844
  TRANSFER = "TRANSFER"
@@ -4019,16 +4876,43 @@ type PChainUtxo = {
4019
4876
  assetId: string;
4020
4877
  blockNumber: string;
4021
4878
  blockTimestamp: number;
4879
+ /**
4880
+ * Block height in which the transaction consuming this UTXO was included
4881
+ */
4022
4882
  consumingBlockNumber?: string;
4883
+ /**
4884
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4885
+ */
4023
4886
  consumingBlockTimestamp?: number;
4887
+ /**
4888
+ * Timestamp in seconds after which this UTXO can be consumed
4889
+ */
4024
4890
  platformLocktime?: number;
4891
+ /**
4892
+ * The index of the UTXO in the transaction
4893
+ */
4025
4894
  outputIndex: number;
4026
4895
  rewardType?: RewardType;
4896
+ /**
4897
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4898
+ */
4027
4899
  stakeableLocktime?: number;
4028
4900
  staked?: boolean;
4901
+ /**
4902
+ * The minimum number of signatures required to spend this UTXO
4903
+ */
4029
4904
  threshold?: number;
4905
+ /**
4906
+ * The hash of the transaction that created this UTXO
4907
+ */
4030
4908
  txHash: string;
4909
+ /**
4910
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4911
+ */
4031
4912
  utxoEndTimestamp?: number;
4913
+ /**
4914
+ * Timestamp in seconds at which the staked UTXO was locked.
4915
+ */
4032
4916
  utxoStartTimestamp?: number;
4033
4917
  utxoType: UtxoType;
4034
4918
  };
@@ -4043,9 +4927,18 @@ type PChainTransaction = {
4043
4927
  * The block finality timestamp.
4044
4928
  */
4045
4929
  blockTimestamp: number;
4930
+ /**
4931
+ * The height of the block in which the transaction was included
4932
+ */
4046
4933
  blockNumber: string;
4047
4934
  blockHash: string;
4935
+ /**
4936
+ * The consumed UTXOs of the transaction
4937
+ */
4048
4938
  consumedUtxos: Array<PChainUtxo>;
4939
+ /**
4940
+ * The newly created UTXOs of the transaction
4941
+ */
4049
4942
  emittedUtxos: Array<PChainUtxo>;
4050
4943
  /**
4051
4944
  * Source chain for an atomic transaction.
@@ -4056,17 +4949,21 @@ type PChainTransaction = {
4056
4949
  */
4057
4950
  destinationChain?: string;
4058
4951
  /**
4059
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4952
+ * 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
4060
4953
  */
4061
4954
  value: Array<AssetAmount>;
4062
4955
  /**
4063
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4956
+ * 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
4064
4957
  */
4065
4958
  amountBurned: Array<AssetAmount>;
4066
4959
  /**
4067
4960
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4068
4961
  */
4069
4962
  amountStaked: Array<AssetAmount>;
4963
+ /**
4964
+ * 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.
4965
+ */
4966
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4070
4967
  /**
4071
4968
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4072
4969
  */
@@ -4076,11 +4973,11 @@ type PChainTransaction = {
4076
4973
  */
4077
4974
  endTimestamp?: number;
4078
4975
  /**
4079
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4976
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4080
4977
  */
4081
4978
  delegationFeePercent?: string;
4082
4979
  /**
4083
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4980
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4084
4981
  */
4085
4982
  nodeId?: string;
4086
4983
  /**
@@ -4088,14 +4985,25 @@ type PChainTransaction = {
4088
4985
  */
4089
4986
  subnetId?: string;
4090
4987
  /**
4091
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4988
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4989
+ */
4990
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4991
+ /**
4992
+ * 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
4993
+ */
4994
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4995
+ /**
4996
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4092
4997
  */
4093
4998
  estimatedReward?: string;
4999
+ /**
5000
+ * Reward transaction hash for the completed validations or delegations
5001
+ */
4094
5002
  rewardTxHash?: string;
4095
5003
  rewardAddresses?: Array<string>;
4096
5004
  memo?: string;
4097
5005
  /**
4098
- * Present for RewardValidatorTx
5006
+ * Staking transaction corresponding to the RewardValidatorTx
4099
5007
  */
4100
5008
  stakingTxHash?: string;
4101
5009
  /**
@@ -4103,7 +5011,7 @@ type PChainTransaction = {
4103
5011
  */
4104
5012
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4105
5013
  /**
4106
- * Present for AddPermissionlessValidatorTx
5014
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4107
5015
  */
4108
5016
  blsCredentials?: BlsCredentials;
4109
5017
  };
@@ -4288,6 +5196,11 @@ declare enum PrimaryNetworkTxType {
4288
5196
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4289
5197
  BASE_TX = "BaseTx",
4290
5198
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5199
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5200
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5201
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5202
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5203
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4291
5204
  UNKNOWN = "UNKNOWN",
4292
5205
  CREATE_ASSET_TX = "CreateAssetTx",
4293
5206
  OPERATION_TX = "OperationTx"
@@ -4322,11 +5235,13 @@ declare class PrimaryNetworkTransactionsService {
4322
5235
  *
4323
5236
  * 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.
4324
5237
  *
5238
+ * 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.
5239
+ *
4325
5240
  * 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.
4326
5241
  * @returns any Successful response
4327
5242
  * @throws ApiError
4328
5243
  */
4329
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5244
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4330
5245
  /**
4331
5246
  * A primary network blockchain id or alias.
4332
5247
  */
@@ -4339,6 +5254,7 @@ declare class PrimaryNetworkTransactionsService {
4339
5254
  * 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.
4340
5255
  */
4341
5256
  addresses?: string;
5257
+ l1ValidationId?: string;
4342
5258
  /**
4343
5259
  * Query param for filtering items based on transaction types.
4344
5260
  */
@@ -4614,61 +5530,12 @@ declare class PrimaryNetworkVerticesService {
4614
5530
  }): CancelablePromise<ListXChainVerticesResponse>;
4615
5531
  }
4616
5532
 
4617
- type RpcErrorDto = {
4618
- code: number;
4619
- message: string;
4620
- data?: Record<string, any>;
4621
- };
4622
-
4623
- type RpcErrorResponseDto = {
4624
- jsonrpc: string;
4625
- id?: (string | number);
4626
- error: RpcErrorDto;
4627
- };
4628
-
4629
- type RpcRequestBodyDto = {
4630
- method: string;
4631
- params?: Record<string, any>;
4632
- id?: (string | number);
4633
- jsonrpc?: string;
4634
- };
4635
-
4636
- type RpcSuccessResponseDto = {
4637
- jsonrpc: string;
4638
- id?: (string | number);
4639
- result: Record<string, any>;
4640
- };
4641
-
4642
- declare class RpcService {
4643
- readonly httpRequest: BaseHttpRequest;
4644
- constructor(httpRequest: BaseHttpRequest);
4645
- /**
4646
- * Calls JSON-RPC method
4647
- * Calls JSON-RPC method.
4648
- * @returns any Successful response
4649
- * @throws ApiError
4650
- */
4651
- rpc({ chainId, requestBody, }: {
4652
- /**
4653
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4654
- */
4655
- chainId: string;
4656
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4657
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4658
- }
4659
-
4660
5533
  type SignatureAggregationResponse = {
4661
5534
  signedMessage: string;
4662
5535
  };
4663
5536
 
4664
5537
  type SignatureAggregatorRequest = {
4665
- /**
4666
- * Must be defined if justification is not defined
4667
- */
4668
- message?: string;
4669
- /**
4670
- * Must be defined if message is not defined
4671
- */
5538
+ message: string;
4672
5539
  justification?: string;
4673
5540
  signingSubnetId?: string;
4674
5541
  quorumPercentage?: number;
@@ -4683,9 +5550,29 @@ declare class SignatureAggregatorService {
4683
5550
  * @returns SignatureAggregationResponse Successful response
4684
5551
  * @throws ApiError
4685
5552
  */
4686
- aggregateSignatures({ requestBody, }: {
5553
+ aggregateSignatures({ network, requestBody, }: {
5554
+ /**
5555
+ * Either mainnet or testnet/fuji.
5556
+ */
5557
+ network: Network;
4687
5558
  requestBody: SignatureAggregatorRequest;
4688
5559
  }): CancelablePromise<SignatureAggregationResponse>;
5560
+ /**
5561
+ * Get Aggregated Signatures
5562
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5563
+ * @returns SignatureAggregationResponse Successful response
5564
+ * @throws ApiError
5565
+ */
5566
+ getAggregatedSignatures({ network, txHash, }: {
5567
+ /**
5568
+ * Either mainnet or testnet/fuji.
5569
+ */
5570
+ network: Network;
5571
+ /**
5572
+ * A primary network (P or X chain) transaction hash.
5573
+ */
5574
+ txHash: string;
5575
+ }): CancelablePromise<SignatureAggregationResponse>;
4689
5576
  }
4690
5577
 
4691
5578
  type TeleporterDestinationTransaction = {
@@ -4826,8 +5713,10 @@ declare class TeleporterService {
4826
5713
  readonly httpRequest: BaseHttpRequest;
4827
5714
  constructor(httpRequest: BaseHttpRequest);
4828
5715
  /**
4829
- * Get a teleporter message
4830
- * Gets a teleporter message by message ID.
5716
+ * @deprecated
5717
+ * **[Deprecated]** Gets a teleporter message by message ID.
5718
+ *
5719
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4831
5720
  * @returns any Successful response
4832
5721
  * @throws ApiError
4833
5722
  */
@@ -4838,8 +5727,10 @@ declare class TeleporterService {
4838
5727
  messageId: string;
4839
5728
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4840
5729
  /**
4841
- * List teleporter messages
4842
- * Lists teleporter messages. Ordered by timestamp in descending order.
5730
+ * @deprecated
5731
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5732
+ *
5733
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4843
5734
  * @returns ListTeleporterMessagesResponse Successful response
4844
5735
  * @throws ApiError
4845
5736
  */
@@ -4878,8 +5769,10 @@ declare class TeleporterService {
4878
5769
  network?: Network;
4879
5770
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4880
5771
  /**
4881
- * List teleporter messages by address
4882
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5772
+ * @deprecated
5773
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5774
+ *
5775
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4883
5776
  * @returns ListTeleporterMessagesResponse Successful response
4884
5777
  * @throws ApiError
4885
5778
  */
@@ -4921,44 +5814,54 @@ type AddressActivityMetadata = {
4921
5814
  eventSignatures?: Array<string>;
4922
5815
  };
4923
5816
 
4924
- declare enum EventType {
4925
- ADDRESS_ACTIVITY = "address_activity"
5817
+ declare enum PrimaryNetworkType {
5818
+ MAINNET = "mainnet",
5819
+ FUJI = "fuji"
4926
5820
  }
4927
5821
 
4928
- type CreateWebhookRequest = {
5822
+ type EVMAddressActivityRequest = {
5823
+ eventType: EVMAddressActivityRequest.eventType;
4929
5824
  url: string;
4930
5825
  chainId: string;
4931
- eventType: EventType;
4932
- metadata: AddressActivityMetadata;
5826
+ network?: PrimaryNetworkType;
4933
5827
  name?: string;
4934
5828
  description?: string;
4935
5829
  /**
4936
- * Whether to include traces in the webhook payload.
5830
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4937
5831
  */
4938
5832
  includeInternalTxs?: boolean;
4939
5833
  /**
4940
5834
  * Whether to include logs in the webhook payload.
4941
5835
  */
4942
5836
  includeLogs?: boolean;
5837
+ metadata: AddressActivityMetadata;
4943
5838
  };
5839
+ declare namespace EVMAddressActivityRequest {
5840
+ enum eventType {
5841
+ ADDRESS_ACTIVITY = "address_activity"
5842
+ }
5843
+ }
4944
5844
 
4945
- type ListWebhookAddressesResponse = {
4946
- /**
4947
- * 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.
4948
- */
4949
- nextPageToken?: string;
4950
- addresses: Array<string>;
4951
- totalAddresses: number;
4952
- };
5845
+ declare enum EventType {
5846
+ ADDRESS_ACTIVITY = "address_activity",
5847
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5848
+ VALIDATOR_ACTIVITY = "validator_activity"
5849
+ }
4953
5850
 
4954
5851
  declare enum WebhookStatusType {
4955
5852
  ACTIVE = "active",
4956
5853
  INACTIVE = "inactive"
4957
5854
  }
4958
5855
 
4959
- type WebhookResponse = {
5856
+ type EVMAddressActivityResponse = {
4960
5857
  id: string;
4961
5858
  eventType: EventType;
5859
+ url: string;
5860
+ chainId: string;
5861
+ status: WebhookStatusType;
5862
+ createdAt: number;
5863
+ name: string;
5864
+ description: string;
4962
5865
  metadata: AddressActivityMetadata;
4963
5866
  /**
4964
5867
  * Whether to include traces in the webhook payload.
@@ -4968,12 +5871,106 @@ type WebhookResponse = {
4968
5871
  * Whether to include logs in the webhook payload.
4969
5872
  */
4970
5873
  includeLogs?: boolean;
5874
+ };
5875
+
5876
+ type ListWebhookAddressesResponse = {
5877
+ /**
5878
+ * 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.
5879
+ */
5880
+ nextPageToken?: string;
5881
+ addresses: Array<string>;
5882
+ totalAddresses: number;
5883
+ };
5884
+
5885
+ /**
5886
+ * The type of key for platform activity depending on the event type
5887
+ */
5888
+ declare enum PlatformActivityKeyType {
5889
+ ADDRESSES = "addresses",
5890
+ NODE_ID = "nodeId",
5891
+ SUBNET_ID = "subnetId"
5892
+ }
5893
+
5894
+ /**
5895
+ * Array of address activity sub-event types
5896
+ */
5897
+ declare enum PlatformAddressActivitySubEventType {
5898
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5899
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform"
5900
+ }
5901
+
5902
+ type PlatformActivitySubEvents = {
5903
+ /**
5904
+ * Array of validator activity sub-event types
5905
+ */
5906
+ validatorActivitySubEvents?: Array<'validator_registration' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5907
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5908
+ };
5909
+
5910
+ /**
5911
+ * Type of balance to monitor
5912
+ */
5913
+ declare enum PChainBalanceType {
5914
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5915
+ UNLOCKED_STAKED = "unlockedStaked",
5916
+ LOCKED_PLATFORM = "lockedPlatform",
5917
+ LOCKED_STAKEABLE = "lockedStakeable",
5918
+ LOCKED_STAKED = "lockedStaked",
5919
+ PENDING_STAKED = "pendingStaked",
5920
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5921
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
5922
+ }
5923
+
5924
+ type PlatformBalanceThresholdFilter = {
5925
+ balanceType: PChainBalanceType;
5926
+ /**
5927
+ * Threshold for balance corresponding to balanceType in nAVAX
5928
+ */
5929
+ balanceThreshold: string;
5930
+ };
5931
+
5932
+ type PlatformActivityMetadata = {
5933
+ keyType: PlatformActivityKeyType;
5934
+ /**
5935
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
5936
+ */
5937
+ keys: Array<string>;
5938
+ /**
5939
+ * Sub-events to monitor
5940
+ */
5941
+ subEvents?: PlatformActivitySubEvents;
5942
+ /**
5943
+ * Array of hexadecimal strings of the event signatures.
5944
+ */
5945
+ eventSignatures?: Array<string>;
5946
+ /**
5947
+ * Array of node IDs to filter the events
5948
+ */
5949
+ nodeIds?: Array<string>;
5950
+ /**
5951
+ * Array of subnet IDs to filter the events
5952
+ */
5953
+ subnetIds?: Array<string>;
5954
+ /**
5955
+ * Balance threshold filter
5956
+ */
5957
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
5958
+ /**
5959
+ * L1 validator fee balance threshold in nAVAX
5960
+ */
5961
+ l1ValidatorFeeBalanceThreshold?: string;
5962
+ };
5963
+
5964
+ type PlatformActivityResponse = {
5965
+ id: string;
5966
+ eventType: EventType;
4971
5967
  url: string;
4972
5968
  chainId: string;
4973
5969
  status: WebhookStatusType;
4974
5970
  createdAt: number;
4975
5971
  name: string;
4976
5972
  description: string;
5973
+ metadata: PlatformActivityMetadata;
4977
5974
  };
4978
5975
 
4979
5976
  type ListWebhooksResponse = {
@@ -4981,8 +5978,35 @@ type ListWebhooksResponse = {
4981
5978
  * 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.
4982
5979
  */
4983
5980
  nextPageToken?: string;
4984
- webhooks: Array<WebhookResponse>;
5981
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5982
+ };
5983
+
5984
+ type PlatformActivityRequest = {
5985
+ eventType: PlatformActivityRequest.eventType;
5986
+ url: string;
5987
+ chainId: string;
5988
+ network?: PrimaryNetworkType;
5989
+ name?: string;
5990
+ description?: string;
5991
+ /**
5992
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5993
+ */
5994
+ includeInternalTxs?: boolean;
5995
+ /**
5996
+ * Whether to include logs in the webhook payload.
5997
+ */
5998
+ includeLogs?: boolean;
5999
+ /**
6000
+ * Metadata for platform activity
6001
+ */
6002
+ metadata: PlatformActivityMetadata;
4985
6003
  };
6004
+ declare namespace PlatformActivityRequest {
6005
+ enum eventType {
6006
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6007
+ VALIDATOR_ACTIVITY = "validator_activity"
6008
+ }
6009
+ }
4986
6010
 
4987
6011
  type SharedSecretsResponse = {
4988
6012
  secret: string;
@@ -4993,6 +6017,9 @@ type UpdateWebhookRequest = {
4993
6017
  description?: string;
4994
6018
  url?: string;
4995
6019
  status?: WebhookStatusType;
6020
+ /**
6021
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6022
+ */
4996
6023
  includeInternalTxs?: boolean;
4997
6024
  includeLogs?: boolean;
4998
6025
  };
@@ -5008,12 +6035,12 @@ declare class WebhooksService {
5008
6035
  /**
5009
6036
  * Create a webhook
5010
6037
  * Create a new webhook.
5011
- * @returns WebhookResponse Successful response
6038
+ * @returns any Successful response
5012
6039
  * @throws ApiError
5013
6040
  */
5014
6041
  createWebhook({ requestBody, }: {
5015
- requestBody: CreateWebhookRequest;
5016
- }): CancelablePromise<WebhookResponse>;
6042
+ requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6043
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5017
6044
  /**
5018
6045
  * List webhooks
5019
6046
  * Lists webhooks for the user.
@@ -5037,7 +6064,7 @@ declare class WebhooksService {
5037
6064
  /**
5038
6065
  * Get a webhook by ID
5039
6066
  * Retrieves a webhook by ID.
5040
- * @returns WebhookResponse Successful response
6067
+ * @returns any Successful response
5041
6068
  * @throws ApiError
5042
6069
  */
5043
6070
  getWebhook({ id, }: {
@@ -5045,11 +6072,11 @@ declare class WebhooksService {
5045
6072
  * The webhook identifier.
5046
6073
  */
5047
6074
  id: string;
5048
- }): CancelablePromise<WebhookResponse>;
6075
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5049
6076
  /**
5050
6077
  * Deactivate a webhook
5051
6078
  * Deactivates a webhook by ID.
5052
- * @returns WebhookResponse Successful response
6079
+ * @returns any Successful response
5053
6080
  * @throws ApiError
5054
6081
  */
5055
6082
  deactivateWebhook({ id, }: {
@@ -5057,11 +6084,11 @@ declare class WebhooksService {
5057
6084
  * The webhook identifier.
5058
6085
  */
5059
6086
  id: string;
5060
- }): CancelablePromise<WebhookResponse>;
6087
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5061
6088
  /**
5062
6089
  * Update a webhook
5063
6090
  * Updates an existing webhook.
5064
- * @returns WebhookResponse Successful response
6091
+ * @returns any Successful response
5065
6092
  * @throws ApiError
5066
6093
  */
5067
6094
  updateWebhook({ id, requestBody, }: {
@@ -5070,14 +6097,14 @@ declare class WebhooksService {
5070
6097
  */
5071
6098
  id: string;
5072
6099
  requestBody: UpdateWebhookRequest;
5073
- }): CancelablePromise<WebhookResponse>;
6100
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5074
6101
  /**
5075
- * Generate a shared secret
5076
- * Generates a new shared secret.
6102
+ * Generate or rotate a shared secret
6103
+ * Generates a new shared secret or rotate an existing one.
5077
6104
  * @returns SharedSecretsResponse Successful response
5078
6105
  * @throws ApiError
5079
6106
  */
5080
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6107
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5081
6108
  /**
5082
6109
  * Get a shared secret
5083
6110
  * Get a previously generated shared secret.
@@ -5086,9 +6113,9 @@ declare class WebhooksService {
5086
6113
  */
5087
6114
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5088
6115
  /**
5089
- * Add addresses to webhook
5090
- * Add addresses to webhook.
5091
- * @returns WebhookResponse Successful response
6116
+ * Add addresses to EVM activity webhook
6117
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6118
+ * @returns EVMAddressActivityResponse Successful response
5092
6119
  * @throws ApiError
5093
6120
  */
5094
6121
  addAddressesToWebhook({ id, requestBody, }: {
@@ -5097,11 +6124,11 @@ declare class WebhooksService {
5097
6124
  */
5098
6125
  id: string;
5099
6126
  requestBody: AddressesChangeRequest;
5100
- }): CancelablePromise<WebhookResponse>;
6127
+ }): CancelablePromise<EVMAddressActivityResponse>;
5101
6128
  /**
5102
- * Remove addresses from webhook
5103
- * Remove addresses from webhook.
5104
- * @returns WebhookResponse Successful response
6129
+ * Remove addresses from EVM activity webhook
6130
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6131
+ * @returns EVMAddressActivityResponse Successful response
5105
6132
  * @throws ApiError
5106
6133
  */
5107
6134
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -5110,10 +6137,10 @@ declare class WebhooksService {
5110
6137
  */
5111
6138
  id: string;
5112
6139
  requestBody: AddressesChangeRequest;
5113
- }): CancelablePromise<WebhookResponse>;
6140
+ }): CancelablePromise<EVMAddressActivityResponse>;
5114
6141
  /**
5115
- * List adresses by webhook
5116
- * List adresses by webhook.
6142
+ * List adresses by EVM activity webhooks
6143
+ * List adresses by webhook. Only valid for EVM activity webhooks.
5117
6144
  * @returns ListWebhookAddressesResponse Successful response
5118
6145
  * @throws ApiError
5119
6146
  */
@@ -5143,7 +6170,9 @@ declare class Glacier {
5143
6170
  readonly evmContracts: EvmContractsService;
5144
6171
  readonly evmTransactions: EvmTransactionsService;
5145
6172
  readonly healthCheck: HealthCheckService;
6173
+ readonly interchainMessaging: InterchainMessagingService;
5146
6174
  readonly nfTs: NfTsService;
6175
+ readonly notifications: NotificationsService;
5147
6176
  readonly operations: OperationsService;
5148
6177
  readonly primaryNetwork: PrimaryNetworkService;
5149
6178
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -5152,7 +6181,6 @@ declare class Glacier {
5152
6181
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5153
6182
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5154
6183
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5155
- readonly rpc: RpcService;
5156
6184
  readonly signatureAggregator: SignatureAggregatorService;
5157
6185
  readonly teleporter: TeleporterService;
5158
6186
  readonly webhooks: WebhooksService;
@@ -5308,4 +6336,4 @@ type Unauthorized = {
5308
6336
  error: string;
5309
6337
  };
5310
6338
 
5311
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
6339
+ export { AccessRequest, 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, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMAddressActivityResponse, 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, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, 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, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainBalanceType, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityMetadata, PlatformActivityRequest, PlatformActivityResponse, PlatformActivitySubEvents, PlatformAddressActivitySubEventType, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, 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, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };