@avalabs/glacier-sdk 3.1.0-canary.39b63c9.0 → 3.1.0-canary.3a7aa19.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 (139) hide show
  1. package/dist/index.d.ts +1723 -333
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessListData.d.ts +12 -0
  6. package/esm/generated/models/AccessRequest.d.ts +12 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  8. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  9. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  10. package/esm/generated/models/CommonBalanceType.js +1 -0
  11. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  12. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  13. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  14. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  15. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  16. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  17. package/esm/generated/models/ERCToken.d.ts +24 -0
  18. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  19. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  20. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  21. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  22. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  23. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  24. package/esm/generated/models/EventType.d.ts +3 -1
  25. package/esm/generated/models/EventType.js +1 -1
  26. package/esm/generated/models/EvmBlock.d.ts +4 -0
  27. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  28. package/esm/generated/models/Geolocation.d.ts +24 -0
  29. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  31. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  32. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  33. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  34. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  35. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  36. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  37. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  38. package/esm/generated/models/IcmRewardDetails.js +1 -0
  39. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  40. package/esm/generated/models/InternalTransaction.d.ts +15 -16
  41. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  42. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  43. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  44. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  45. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  46. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  47. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  48. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  49. package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
  50. package/esm/generated/models/Log.d.ts +40 -0
  51. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  52. package/esm/generated/models/Network.d.ts +1 -2
  53. package/esm/generated/models/Network.js +1 -1
  54. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  55. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  56. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  57. package/esm/generated/models/PChainTransaction.d.ts +27 -14
  58. package/esm/generated/models/PChainTransactionType.d.ts +5 -5
  59. package/esm/generated/models/PChainTransactionType.js +1 -1
  60. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  61. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  62. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  63. package/esm/generated/models/PendingIcmMessage.js +1 -0
  64. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  65. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  66. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  67. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  68. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  69. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  70. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  71. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  72. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  73. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  74. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  75. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  76. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  77. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  78. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  79. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  80. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  81. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  82. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
  83. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  84. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  85. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  86. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  87. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  88. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  89. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  90. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  91. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  92. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  93. package/esm/generated/models/Subnet.d.ts +15 -2
  94. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  95. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  96. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  97. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  98. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  99. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  100. package/esm/generated/models/Transaction.d.ts +121 -0
  101. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  102. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  103. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  104. package/esm/generated/models/UtxoType.d.ts +3 -0
  105. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  106. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  107. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  108. package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
  109. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  110. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  111. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  112. package/esm/generated/services/EvmBlocksService.js +1 -1
  113. package/esm/generated/services/EvmChainsService.d.ts +69 -4
  114. package/esm/generated/services/EvmChainsService.js +1 -1
  115. package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
  116. package/esm/generated/services/EvmTransactionsService.js +1 -1
  117. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  118. package/esm/generated/services/HealthCheckService.js +1 -1
  119. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  120. package/esm/generated/services/InterchainMessagingService.js +1 -0
  121. package/esm/generated/services/NotificationsService.d.ts +51 -0
  122. package/esm/generated/services/NotificationsService.js +1 -0
  123. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  124. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  125. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -0
  126. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  127. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  128. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  129. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  130. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  131. package/esm/generated/services/TeleporterService.d.ts +12 -6
  132. package/esm/generated/services/WebhooksService.d.ts +26 -24
  133. package/esm/generated/services/WebhooksService.js +1 -1
  134. package/esm/index.d.ts +49 -5
  135. package/esm/index.js +1 -1
  136. package/package.json +2 -2
  137. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
  138. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  139. package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
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
  */
@@ -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
  */
@@ -388,10 +455,6 @@ declare class DataApiUsageMetricsService {
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,15 +482,16 @@ 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
  */
@@ -435,15 +503,54 @@ declare class DataApiUsageMetricsService {
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.
@@ -1129,64 +1340,231 @@ type ListChainsResponse = {
1129
1340
  chains: Array<ChainInfo>;
1130
1341
  };
1131
1342
 
1132
- declare enum Network {
1133
- MAINNET = "mainnet",
1134
- FUJI = "fuji",
1135
- TESTNET = "testnet",
1136
- 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"
1137
1350
  }
1138
1351
 
1139
- declare class EvmChainsService {
1140
- readonly httpRequest: BaseHttpRequest;
1141
- constructor(httpRequest: BaseHttpRequest);
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1142
1354
  /**
1143
- * List chains
1144
- * Lists the supported EVM-compatible chains. Filterable by network.
1145
- * @returns ListChainsResponse Successful response
1146
- * @throws ApiError
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1147
1356
  */
1148
- supportedChains({ network, feature, }: {
1149
- /**
1150
- * Either mainnet or testnet/fuji.
1151
- */
1152
- network?: Network;
1153
- /**
1154
- * Filter by feature.
1155
- */
1156
- feature?: ApiFeature;
1157
- }): CancelablePromise<ListChainsResponse>;
1357
+ methodHash: string;
1158
1358
  /**
1159
- * Get chain information
1160
- * Gets chain information for the EVM-compatible chain if supported by the api.
1161
- * @returns GetChainResponse Successful response
1162
- * @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'.
1163
1360
  */
1164
- getChainInfo({ chainId, }: {
1165
- /**
1166
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
- */
1168
- chainId: string;
1169
- }): CancelablePromise<GetChainResponse>;
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1170
1365
  /**
1171
- * Get chains for address
1172
- * Gets the list of chains an address has interacted with.
1173
- * @returns ListAddressChainsResponse Successful response
1174
- * @throws ApiError
1366
+ * The contract name.
1175
1367
  */
1176
- getAddressChains({ address, }: {
1177
- /**
1178
- * A wallet address.
1179
- */
1180
- address: string;
1181
- }): CancelablePromise<ListAddressChainsResponse>;
1182
- }
1183
-
1184
- type ImageAsset = {
1185
- assetId?: string;
1368
+ name?: string;
1186
1369
  /**
1187
- * OUTPUT ONLY
1370
+ * The contract symbol.
1188
1371
  */
1189
- 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;
1190
1568
  };
1191
1569
 
1192
1570
  type PricingProviders = {
@@ -1513,29 +1891,6 @@ declare namespace Erc1155Token {
1513
1891
  }
1514
1892
  }
1515
1893
 
1516
- type RichAddress = {
1517
- /**
1518
- * The contract name.
1519
- */
1520
- name?: string;
1521
- /**
1522
- * The contract symbol.
1523
- */
1524
- symbol?: string;
1525
- /**
1526
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1527
- */
1528
- decimals?: number;
1529
- /**
1530
- * The logo uri for the address.
1531
- */
1532
- logoUri?: string;
1533
- /**
1534
- * A wallet or contract address in mixed-case checksum encoding.
1535
- */
1536
- address: string;
1537
- };
1538
-
1539
1894
  type Erc1155TransferDetails = {
1540
1895
  from: RichAddress;
1541
1896
  to: RichAddress;
@@ -1620,27 +1975,6 @@ type Erc721TransferDetails = {
1620
1975
  erc721Token: Erc721Token;
1621
1976
  };
1622
1977
 
1623
- /**
1624
- * 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.
1625
- */
1626
- declare enum TransactionMethodType {
1627
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1628
- CONTRACT_CALL = "CONTRACT_CALL",
1629
- CONTRACT_CREATION = "CONTRACT_CREATION"
1630
- }
1631
-
1632
- type Method = {
1633
- callType: TransactionMethodType;
1634
- /**
1635
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1636
- */
1637
- methodHash: string;
1638
- /**
1639
- * 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'.
1640
- */
1641
- methodName?: string;
1642
- };
1643
-
1644
1978
  type FullNativeTransactionDetails = {
1645
1979
  /**
1646
1980
  * The block number on the chain.
@@ -1654,6 +1988,10 @@ type FullNativeTransactionDetails = {
1654
1988
  * The block hash identifier.
1655
1989
  */
1656
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1657
1995
  /**
1658
1996
  * The index at which the transaction occured in the block (0-indexed).
1659
1997
  */
@@ -1882,31 +2220,33 @@ type ListErc721TransactionsResponse = {
1882
2220
 
1883
2221
  type InternalTransaction = {
1884
2222
  /**
1885
- * The block number on the chain.
2223
+ * Sender address
1886
2224
  */
1887
- blockNumber: string;
2225
+ from: string;
1888
2226
  /**
1889
- * The block finality timestamp.
2227
+ * Recipient address
1890
2228
  */
1891
- blockTimestamp: number;
2229
+ to: string;
1892
2230
  /**
1893
- * The block hash identifier.
2231
+ * Internal transaction type
1894
2232
  */
1895
- blockHash: string;
2233
+ internalTxType: string;
1896
2234
  /**
1897
- * The transaction hash identifier.
2235
+ * Value transferred
1898
2236
  */
1899
- txHash: string;
1900
- from: RichAddress;
1901
- to: RichAddress;
1902
- internalTxType: InternalTransactionOpCall;
1903
2237
  value: string;
1904
2238
  /**
1905
- * True if the internal transaction was reverted.
2239
+ * Gas used
1906
2240
  */
1907
- isReverted: boolean;
1908
2241
  gasUsed: string;
2242
+ /**
2243
+ * Gas limit
2244
+ */
1909
2245
  gasLimit: string;
2246
+ /**
2247
+ * Transaction hash
2248
+ */
2249
+ transactionHash: string;
1910
2250
  };
1911
2251
 
1912
2252
  type ListInternalTransactionsResponse = {
@@ -1917,84 +2257,25 @@ type ListInternalTransactionsResponse = {
1917
2257
  transactions: Array<InternalTransaction>;
1918
2258
  };
1919
2259
 
1920
- type NativeTransaction = {
2260
+ type TransactionDetails = {
1921
2261
  /**
1922
- * The block number on the chain.
2262
+ * The native (top-level) transaction details.
1923
2263
  */
1924
- blockNumber: string;
2264
+ nativeTransaction: NativeTransaction;
1925
2265
  /**
1926
- * The block finality timestamp.
2266
+ * The list of ERC-20 transfers.
1927
2267
  */
1928
- blockTimestamp: number;
2268
+ erc20Transfers?: Array<Erc20TransferDetails>;
1929
2269
  /**
1930
- * The block hash identifier.
2270
+ * The list of ERC-721 transfers.
1931
2271
  */
1932
- blockHash: string;
2272
+ erc721Transfers?: Array<Erc721TransferDetails>;
1933
2273
  /**
1934
- * The index at which the transaction occured in the block (0-indexed).
2274
+ * The list of ERC-1155 transfers.
1935
2275
  */
1936
- blockIndex: number;
2276
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1937
2277
  /**
1938
- * The transaction hash identifier.
1939
- */
1940
- txHash: string;
1941
- /**
1942
- * The transaction status, which is either 0 (failed) or 1 (successful).
1943
- */
1944
- txStatus: string;
1945
- /**
1946
- * The transaction type.
1947
- */
1948
- txType: number;
1949
- /**
1950
- * The gas limit set for the transaction.
1951
- */
1952
- gasLimit: string;
1953
- /**
1954
- * The amount of gas used.
1955
- */
1956
- gasUsed: string;
1957
- /**
1958
- * The gas price denominated by the number of decimals of the native token.
1959
- */
1960
- gasPrice: string;
1961
- /**
1962
- * The nonce used by the sender of the transaction.
1963
- */
1964
- nonce: string;
1965
- from: RichAddress;
1966
- to: RichAddress;
1967
- method?: Method;
1968
- value: string;
1969
- };
1970
-
1971
- type ListNativeTransactionsResponse = {
1972
- /**
1973
- * 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.
1974
- */
1975
- nextPageToken?: string;
1976
- transactions: Array<NativeTransaction>;
1977
- };
1978
-
1979
- type TransactionDetails = {
1980
- /**
1981
- * The native (top-level) transaction details.
1982
- */
1983
- nativeTransaction: NativeTransaction;
1984
- /**
1985
- * The list of ERC-20 transfers.
1986
- */
1987
- erc20Transfers?: Array<Erc20TransferDetails>;
1988
- /**
1989
- * The list of ERC-721 transfers.
1990
- */
1991
- erc721Transfers?: Array<Erc721TransferDetails>;
1992
- /**
1993
- * The list of ERC-1155 transfers.
1994
- */
1995
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1996
- /**
1997
- * 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.
2278
+ * 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.
1998
2279
  */
1999
2280
  internalTransactions?: Array<InternalTransactionDetails>;
2000
2281
  };
@@ -2020,14 +2301,33 @@ declare enum SortOrder {
2020
2301
  DESC = "desc"
2021
2302
  }
2022
2303
 
2023
- declare enum TransactionStatus {
2024
- FAILED = "failed",
2025
- SUCCESS = "success"
2026
- }
2027
-
2028
2304
  declare class EvmTransactionsService {
2029
2305
  readonly httpRequest: BaseHttpRequest;
2030
2306
  constructor(httpRequest: BaseHttpRequest);
2307
+ /**
2308
+ * List the latest transactions across all supported EVM chains
2309
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2310
+ * @returns ListNativeTransactionsResponse Successful response
2311
+ * @throws ApiError
2312
+ */
2313
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2314
+ /**
2315
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2316
+ */
2317
+ pageToken?: string;
2318
+ /**
2319
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2320
+ */
2321
+ pageSize?: number;
2322
+ /**
2323
+ * Either mainnet or testnet/fuji.
2324
+ */
2325
+ network?: Network;
2326
+ /**
2327
+ * A status filter for listed transactions.
2328
+ */
2329
+ status?: TransactionStatus;
2330
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2031
2331
  /**
2032
2332
  * Get deployment transaction
2033
2333
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2326,7 +2626,7 @@ declare class EvmTransactionsService {
2326
2626
  * @returns ListNativeTransactionsResponse Successful response
2327
2627
  * @throws ApiError
2328
2628
  */
2329
- getTransactionsForBlock({ chainId, blockId, }: {
2629
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2330
2630
  /**
2331
2631
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2332
2632
  */
@@ -2335,6 +2635,14 @@ declare class EvmTransactionsService {
2335
2635
  * A block identifier which is either a block number or the block hash.
2336
2636
  */
2337
2637
  blockId: string;
2638
+ /**
2639
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2640
+ */
2641
+ pageToken?: string;
2642
+ /**
2643
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2644
+ */
2645
+ pageSize?: number;
2338
2646
  }): CancelablePromise<ListNativeTransactionsResponse>;
2339
2647
  /**
2340
2648
  * List latest transactions
@@ -2362,66 +2670,246 @@ declare class EvmTransactionsService {
2362
2670
  }): CancelablePromise<ListNativeTransactionsResponse>;
2363
2671
  }
2364
2672
 
2673
+ type HealthIndicatorResultDto = {
2674
+ /**
2675
+ * Status of the health indicator.
2676
+ */
2677
+ status?: HealthIndicatorResultDto.status;
2678
+ };
2679
+ declare namespace HealthIndicatorResultDto {
2680
+ /**
2681
+ * Status of the health indicator.
2682
+ */
2683
+ enum status {
2684
+ UP = "up",
2685
+ DOWN = "down"
2686
+ }
2687
+ }
2688
+
2689
+ type HealthCheckResultDto = {
2690
+ status?: HealthCheckResultDto.status;
2691
+ info?: any | null;
2692
+ error?: any | null;
2693
+ details?: Record<string, HealthIndicatorResultDto>;
2694
+ };
2695
+ declare namespace HealthCheckResultDto {
2696
+ enum status {
2697
+ ERROR = "error",
2698
+ OK = "ok",
2699
+ SHUTTING_DOWN = "shutting_down"
2700
+ }
2701
+ }
2702
+
2365
2703
  declare class HealthCheckService {
2366
2704
  readonly httpRequest: BaseHttpRequest;
2367
2705
  constructor(httpRequest: BaseHttpRequest);
2368
2706
  /**
2369
2707
  * Get the health of the service
2370
- * @returns any The Health Check is successful
2708
+ * Check the health of the service.
2709
+ * @returns HealthCheckResultDto The health of the service
2371
2710
  * @throws ApiError
2372
2711
  */
2373
- dataHealthCheck(): CancelablePromise<{
2374
- status?: string;
2375
- info?: Record<string, Record<string, string>> | null;
2376
- error?: Record<string, Record<string, string>> | null;
2377
- details?: Record<string, Record<string, string>>;
2378
- }>;
2712
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2379
2713
  }
2380
2714
 
2381
- type ListNftTokens = {
2715
+ type IcmDestinationTransaction = {
2716
+ txHash: string;
2717
+ timestamp: number;
2718
+ gasSpent: string;
2719
+ rewardRedeemer: string;
2720
+ delivererAddress: string;
2721
+ };
2722
+
2723
+ type IcmReceipt = {
2724
+ receivedMessageNonce: string;
2725
+ relayerRewardAddress: string;
2726
+ };
2727
+
2728
+ type IcmRewardDetails = {
2729
+ /**
2730
+ * A wallet or contract address in mixed-case checksum encoding.
2731
+ */
2732
+ address: string;
2733
+ /**
2734
+ * The contract name.
2735
+ */
2736
+ name: string;
2737
+ /**
2738
+ * The contract symbol.
2739
+ */
2740
+ symbol: string;
2741
+ /**
2742
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2743
+ */
2744
+ decimals: number;
2745
+ /**
2746
+ * The logo uri for the address.
2747
+ */
2748
+ logoUri?: string;
2749
+ ercType: IcmRewardDetails.ercType;
2750
+ /**
2751
+ * The token price, if available.
2752
+ */
2753
+ price?: Money;
2754
+ value: string;
2755
+ };
2756
+ declare namespace IcmRewardDetails {
2757
+ enum ercType {
2758
+ ERC_20 = "ERC-20"
2759
+ }
2760
+ }
2761
+
2762
+ type IcmSourceTransaction = {
2763
+ txHash: string;
2764
+ timestamp: number;
2765
+ gasSpent: string;
2766
+ };
2767
+
2768
+ type DeliveredIcmMessage = {
2769
+ messageId: string;
2770
+ icmContractAddress: string;
2771
+ sourceBlockchainId: string;
2772
+ destinationBlockchainId: string;
2773
+ sourceEvmChainId: string;
2774
+ destinationEvmChainId: string;
2775
+ messageNonce: string;
2776
+ from: string;
2777
+ to: string;
2778
+ data?: string;
2779
+ messageExecuted: boolean;
2780
+ receipts: Array<IcmReceipt>;
2781
+ receiptDelivered: boolean;
2782
+ rewardDetails: IcmRewardDetails;
2783
+ sourceTransaction: IcmSourceTransaction;
2784
+ destinationTransaction: IcmDestinationTransaction;
2785
+ status: DeliveredIcmMessage.status;
2786
+ };
2787
+ declare namespace DeliveredIcmMessage {
2788
+ enum status {
2789
+ DELIVERED = "delivered"
2790
+ }
2791
+ }
2792
+
2793
+ type DeliveredSourceNotIndexedIcmMessage = {
2794
+ messageId: string;
2795
+ icmContractAddress: string;
2796
+ sourceBlockchainId: string;
2797
+ destinationBlockchainId: string;
2798
+ sourceEvmChainId: string;
2799
+ destinationEvmChainId: string;
2800
+ messageNonce: string;
2801
+ from: string;
2802
+ to: string;
2803
+ data?: string;
2804
+ messageExecuted: boolean;
2805
+ receipts: Array<IcmReceipt>;
2806
+ receiptDelivered: boolean;
2807
+ rewardDetails: IcmRewardDetails;
2808
+ destinationTransaction: IcmDestinationTransaction;
2809
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2810
+ };
2811
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2812
+ enum status {
2813
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2814
+ }
2815
+ }
2816
+
2817
+ type PendingIcmMessage = {
2818
+ messageId: string;
2819
+ icmContractAddress: string;
2820
+ sourceBlockchainId: string;
2821
+ destinationBlockchainId: string;
2822
+ sourceEvmChainId: string;
2823
+ destinationEvmChainId: string;
2824
+ messageNonce: string;
2825
+ from: string;
2826
+ to: string;
2827
+ data?: string;
2828
+ messageExecuted: boolean;
2829
+ receipts: Array<IcmReceipt>;
2830
+ receiptDelivered: boolean;
2831
+ rewardDetails: IcmRewardDetails;
2832
+ sourceTransaction: IcmSourceTransaction;
2833
+ status: PendingIcmMessage.status;
2834
+ };
2835
+ declare namespace PendingIcmMessage {
2836
+ enum status {
2837
+ PENDING = "pending"
2838
+ }
2839
+ }
2840
+
2841
+ type ListIcmMessagesResponse = {
2382
2842
  /**
2383
2843
  * 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.
2384
2844
  */
2385
2845
  nextPageToken?: string;
2386
- tokens: Array<(Erc721Token | Erc1155Token)>;
2846
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2387
2847
  };
2388
2848
 
2389
- declare class NfTsService {
2849
+ declare class InterchainMessagingService {
2390
2850
  readonly httpRequest: BaseHttpRequest;
2391
2851
  constructor(httpRequest: BaseHttpRequest);
2392
2852
  /**
2393
- * Reindex NFT metadata
2394
- * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2853
+ * Get an ICM message
2854
+ * Gets an ICM message by teleporter message ID.
2395
2855
  * @returns any Successful response
2396
2856
  * @throws ApiError
2397
2857
  */
2398
- reindexNft({ chainId, address, tokenId, }: {
2858
+ getIcmMessage({ messageId, }: {
2399
2859
  /**
2400
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2860
+ * The teleporter message ID of the ICM message.
2401
2861
  */
2402
- chainId: string;
2862
+ messageId: string;
2863
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2864
+ /**
2865
+ * List ICM messages
2866
+ * Lists ICM messages. Ordered by timestamp in descending order.
2867
+ * @returns ListIcmMessagesResponse Successful response
2868
+ * @throws ApiError
2869
+ */
2870
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2403
2871
  /**
2404
- * Contract address on the relevant chain.
2872
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2405
2873
  */
2406
- address: string;
2874
+ pageToken?: string;
2407
2875
  /**
2408
- * TokenId on the contract
2876
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2409
2877
  */
2410
- tokenId: string;
2411
- }): CancelablePromise<any>;
2878
+ pageSize?: number;
2879
+ /**
2880
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2881
+ */
2882
+ sourceBlockchainId?: string;
2883
+ /**
2884
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2885
+ */
2886
+ destinationBlockchainId?: string;
2887
+ /**
2888
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2889
+ */
2890
+ blockchainId?: string;
2891
+ /**
2892
+ * The address of the recipient of the ICM message.
2893
+ */
2894
+ to?: string;
2895
+ /**
2896
+ * The address of the sender of the ICM message.
2897
+ */
2898
+ from?: string;
2899
+ /**
2900
+ * Either mainnet or testnet/fuji.
2901
+ */
2902
+ network?: Network;
2903
+ }): CancelablePromise<ListIcmMessagesResponse>;
2412
2904
  /**
2413
- * List tokens
2414
- * Lists tokens for an NFT contract.
2415
- * @returns ListNftTokens Successful response
2905
+ * List ICM messages by address
2906
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2907
+ * @returns ListIcmMessagesResponse Successful response
2416
2908
  * @throws ApiError
2417
2909
  */
2418
- listTokens({ chainId, address, pageToken, pageSize, }: {
2910
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2419
2911
  /**
2420
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2421
- */
2422
- chainId: string;
2423
- /**
2424
- * Contract address on the relevant chain.
2912
+ * An EVM address.
2425
2913
  */
2426
2914
  address: string;
2427
2915
  /**
@@ -2432,8 +2920,69 @@ declare class NfTsService {
2432
2920
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2433
2921
  */
2434
2922
  pageSize?: number;
2435
- }): CancelablePromise<ListNftTokens>;
2436
- /**
2923
+ /**
2924
+ * Either mainnet or testnet/fuji.
2925
+ */
2926
+ network?: Network;
2927
+ }): CancelablePromise<ListIcmMessagesResponse>;
2928
+ }
2929
+
2930
+ type ListNftTokens = {
2931
+ /**
2932
+ * 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.
2933
+ */
2934
+ nextPageToken?: string;
2935
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2936
+ };
2937
+
2938
+ declare class NfTsService {
2939
+ readonly httpRequest: BaseHttpRequest;
2940
+ constructor(httpRequest: BaseHttpRequest);
2941
+ /**
2942
+ * Reindex NFT metadata
2943
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2944
+ * @returns any Successful response
2945
+ * @throws ApiError
2946
+ */
2947
+ reindexNft({ chainId, address, tokenId, }: {
2948
+ /**
2949
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2950
+ */
2951
+ chainId: string;
2952
+ /**
2953
+ * Contract address on the relevant chain.
2954
+ */
2955
+ address: string;
2956
+ /**
2957
+ * TokenId on the contract
2958
+ */
2959
+ tokenId: string;
2960
+ }): CancelablePromise<any>;
2961
+ /**
2962
+ * List tokens
2963
+ * Lists tokens for an NFT contract.
2964
+ * @returns ListNftTokens Successful response
2965
+ * @throws ApiError
2966
+ */
2967
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2968
+ /**
2969
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2970
+ */
2971
+ chainId: string;
2972
+ /**
2973
+ * Contract address on the relevant chain.
2974
+ */
2975
+ address: string;
2976
+ /**
2977
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2978
+ */
2979
+ pageToken?: string;
2980
+ /**
2981
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2982
+ */
2983
+ pageSize?: number;
2984
+ }): CancelablePromise<ListNftTokens>;
2985
+ /**
2437
2986
  * Get token details
2438
2987
  * Gets token details for a specific token of an NFT contract.
2439
2988
  * @returns any Successful response
@@ -2455,6 +3004,108 @@ declare class NfTsService {
2455
3004
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2456
3005
  }
2457
3006
 
3007
+ type AccessRequest = {
3008
+ /**
3009
+ * The email address to send the access token to
3010
+ */
3011
+ email: string;
3012
+ /**
3013
+ * The captcha to verify the user
3014
+ */
3015
+ captcha: string;
3016
+ };
3017
+
3018
+ type NotificationsResponse = {
3019
+ message: string;
3020
+ };
3021
+
3022
+ type SubscribeRequest = {
3023
+ /**
3024
+ * The access token to use for authentication
3025
+ */
3026
+ accessToken: string;
3027
+ /**
3028
+ * The node ID to subscribe to
3029
+ */
3030
+ nodeId: string;
3031
+ /**
3032
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3033
+ */
3034
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3035
+ };
3036
+
3037
+ type SubscriptionsRequest = {
3038
+ /**
3039
+ * The access token to use for authentication
3040
+ */
3041
+ accessToken: string;
3042
+ };
3043
+
3044
+ type SubscriptionsResponse = {
3045
+ /**
3046
+ * The email address of the user
3047
+ */
3048
+ email: string;
3049
+ /**
3050
+ * The subscriptions of the user
3051
+ */
3052
+ subscriptions: Record<string, {
3053
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3054
+ }>;
3055
+ };
3056
+
3057
+ type UnsubscribeRequest = {
3058
+ /**
3059
+ * The access token to use for authentication
3060
+ */
3061
+ accessToken: string;
3062
+ /**
3063
+ * The node ID to subscribe to
3064
+ */
3065
+ nodeId: string;
3066
+ };
3067
+
3068
+ declare class NotificationsService {
3069
+ readonly httpRequest: BaseHttpRequest;
3070
+ constructor(httpRequest: BaseHttpRequest);
3071
+ /**
3072
+ * Access Notifications
3073
+ * Access notifications.
3074
+ * @returns NotificationsResponse Successful response
3075
+ * @throws ApiError
3076
+ */
3077
+ access({ requestBody, }: {
3078
+ requestBody: AccessRequest;
3079
+ }): CancelablePromise<NotificationsResponse>;
3080
+ /**
3081
+ * Subscribe to Notifications
3082
+ * Subscribe to receive notifications.
3083
+ * @returns NotificationsResponse Successful response
3084
+ * @throws ApiError
3085
+ */
3086
+ subscribe({ requestBody, }: {
3087
+ requestBody: SubscribeRequest;
3088
+ }): CancelablePromise<NotificationsResponse>;
3089
+ /**
3090
+ * Unsubscribe from Notifications
3091
+ * Unsubscribe from receiving notifications.
3092
+ * @returns NotificationsResponse Successful response
3093
+ * @throws ApiError
3094
+ */
3095
+ unsubscribe({ requestBody, }: {
3096
+ requestBody: UnsubscribeRequest;
3097
+ }): CancelablePromise<NotificationsResponse>;
3098
+ /**
3099
+ * Get Subscriptions
3100
+ * Get subscriptions.
3101
+ * @returns SubscriptionsResponse Successful response
3102
+ * @throws ApiError
3103
+ */
3104
+ subscriptions({ requestBody, }: {
3105
+ requestBody: SubscriptionsRequest;
3106
+ }): CancelablePromise<SubscriptionsResponse>;
3107
+ }
3108
+
2458
3109
  type EvmNetworkOptions = {
2459
3110
  addresses: Array<string>;
2460
3111
  includeChains: Array<string>;
@@ -2543,7 +3194,7 @@ type OperationStatusResponse = {
2543
3194
  operationType: OperationType;
2544
3195
  operationStatus: OperationStatus;
2545
3196
  message?: string;
2546
- metadata: TransactionExportMetadata;
3197
+ metadata?: TransactionExportMetadata;
2547
3198
  createdAtTimestamp: number;
2548
3199
  updatedAtTimestamp: number;
2549
3200
  };
@@ -2576,6 +3227,15 @@ declare class OperationsService {
2576
3227
  }): CancelablePromise<OperationStatusResponse>;
2577
3228
  }
2578
3229
 
3230
+ type Blockchain = {
3231
+ createBlockTimestamp: number;
3232
+ createBlockNumber: string;
3233
+ blockchainId: string;
3234
+ vmId: string;
3235
+ subnetId: string;
3236
+ blockchainName: string;
3237
+ };
3238
+
2579
3239
  declare enum BlockchainIds {
2580
3240
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2581
3241
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
@@ -2607,16 +3267,31 @@ type DelegatorsDetails = {
2607
3267
  };
2608
3268
 
2609
3269
  type StakingDistribution = {
3270
+ /**
3271
+ * AvalancheGo version for the validator node.
3272
+ */
2610
3273
  version: string;
3274
+ /**
3275
+ * The total amount staked by validators using this version.
3276
+ */
2611
3277
  amountStaked: string;
3278
+ /**
3279
+ * The number of validators using this version.
3280
+ */
2612
3281
  validatorCount: number;
2613
3282
  };
2614
3283
 
2615
3284
  type ValidatorsDetails = {
2616
3285
  validatorCount: number;
2617
3286
  totalAmountStaked: string;
3287
+ /**
3288
+ * Total potential rewards from currently active validations and delegations.
3289
+ */
2618
3290
  estimatedAnnualStakingReward: string;
2619
3291
  stakingDistributionByVersion: Array<StakingDistribution>;
3292
+ /**
3293
+ * Ratio of total active stake amount to the current supply.
3294
+ */
2620
3295
  stakingRatio: string;
2621
3296
  };
2622
3297
 
@@ -2625,15 +3300,6 @@ type GetNetworkDetailsResponse = {
2625
3300
  delegatorDetails: DelegatorsDetails;
2626
3301
  };
2627
3302
 
2628
- type Blockchain = {
2629
- createBlockTimestamp: number;
2630
- createBlockNumber: string;
2631
- blockchainId: string;
2632
- vmId: string;
2633
- subnetId: string;
2634
- blockchainName: string;
2635
- };
2636
-
2637
3303
  type ListBlockchainsResponse = {
2638
3304
  /**
2639
3305
  * 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.
@@ -2668,7 +3334,13 @@ type CompletedDelegatorDetails = {
2668
3334
  delegationFee: string;
2669
3335
  startTimestamp: number;
2670
3336
  endTimestamp: number;
3337
+ /**
3338
+ * Total rewards distributed for the successful delegation.
3339
+ */
2671
3340
  grossReward: string;
3341
+ /**
3342
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3343
+ */
2672
3344
  netReward: string;
2673
3345
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2674
3346
  };
@@ -2686,7 +3358,13 @@ type PendingDelegatorDetails = {
2686
3358
  delegationFee: string;
2687
3359
  startTimestamp: number;
2688
3360
  endTimestamp: number;
3361
+ /**
3362
+ * Estimated total rewards that will be distributed for the successful delegation.
3363
+ */
2689
3364
  estimatedGrossReward: string;
3365
+ /**
3366
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3367
+ */
2690
3368
  estimatedNetReward: string;
2691
3369
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2692
3370
  };
@@ -2707,8 +3385,59 @@ type ListDelegatorDetailsResponse = {
2707
3385
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2708
3386
  };
2709
3387
 
2710
- type BlockchainInfo = {
3388
+ type BalanceOwner = {
3389
+ addresses: Array<string>;
3390
+ threshold: number;
3391
+ };
3392
+
3393
+ type L1ValidatorDetailsFull = {
3394
+ /**
3395
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3396
+ */
3397
+ validationId: string;
3398
+ /**
3399
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3400
+ */
3401
+ validationIdHex: string;
3402
+ nodeId: string;
3403
+ subnetId: string;
3404
+ /**
3405
+ * 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
3406
+ */
3407
+ weight: number;
3408
+ /**
3409
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3410
+ */
3411
+ remainingBalance: number;
3412
+ /**
3413
+ * The timestamp of the transaction which created this L1 validator
3414
+ */
3415
+ creationTimestamp: number;
3416
+ blsCredentials: Record<string, any>;
3417
+ /**
3418
+ * The L1 validator owner's balance, returned after it's disabled or removed
3419
+ */
3420
+ remainingBalanceOwner: BalanceOwner;
3421
+ /**
3422
+ * Owner ddresses details which can disable or remove the L1 validator
3423
+ */
3424
+ deactivationOwner: BalanceOwner;
3425
+ };
3426
+
3427
+ type ListL1ValidatorsResponse = {
3428
+ /**
3429
+ * 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.
3430
+ */
3431
+ nextPageToken?: string;
3432
+ /**
3433
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3434
+ */
3435
+ validators: Array<L1ValidatorDetailsFull>;
3436
+ };
3437
+
3438
+ type L1ValidatorManagerDetails = {
2711
3439
  blockchainId: string;
3440
+ contractAddress: string;
2712
3441
  };
2713
3442
 
2714
3443
  type SubnetOwnershipInfo = {
@@ -2749,7 +3478,19 @@ type Subnet = {
2749
3478
  * Latest subnet owner details for this Subnet.
2750
3479
  */
2751
3480
  subnetOwnershipInfo: SubnetOwnershipInfo;
2752
- blockchains: Array<BlockchainInfo>;
3481
+ /**
3482
+ * Whether the subnet is an L1 or not.
3483
+ */
3484
+ isL1: boolean;
3485
+ /**
3486
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3487
+ */
3488
+ l1ConversionTransactionHash?: string;
3489
+ /**
3490
+ * L1 validator manager details.
3491
+ */
3492
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3493
+ blockchains: Array<Blockchain>;
2753
3494
  };
2754
3495
 
2755
3496
  type ListSubnetsResponse = {
@@ -2765,6 +3506,29 @@ type BlsCredentials = {
2765
3506
  proofOfPossession: string;
2766
3507
  };
2767
3508
 
3509
+ type Geolocation = {
3510
+ /**
3511
+ * The name of the validator node.
3512
+ */
3513
+ city: string;
3514
+ /**
3515
+ * The city of the validator node.
3516
+ */
3517
+ country: string;
3518
+ /**
3519
+ * The country code of the validator node.
3520
+ */
3521
+ countryCode: string;
3522
+ /**
3523
+ * The latitude of the validator node.
3524
+ */
3525
+ latitude: number;
3526
+ /**
3527
+ * The longitude of the validator node.
3528
+ */
3529
+ longitude: number;
3530
+ };
3531
+
2768
3532
  type Rewards = {
2769
3533
  validationRewardAmount: string;
2770
3534
  delegationRewardAmount: string;
@@ -2796,6 +3560,9 @@ type ActiveValidatorDetails = {
2796
3560
  nodeId: string;
2797
3561
  subnetId: string;
2798
3562
  amountStaked: string;
3563
+ /**
3564
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3565
+ */
2799
3566
  delegationFee?: string;
2800
3567
  startTimestamp: number;
2801
3568
  endTimestamp: number;
@@ -2803,15 +3570,37 @@ type ActiveValidatorDetails = {
2803
3570
  * Present for AddPermissionlessValidatorTx
2804
3571
  */
2805
3572
  blsCredentials?: BlsCredentials;
3573
+ /**
3574
+ * The percentage of this validator's stake amount to the total active stake.
3575
+ */
2806
3576
  stakePercentage: number;
3577
+ /**
3578
+ * The number of delegators linked to the validator.
3579
+ */
2807
3580
  delegatorCount: number;
3581
+ /**
3582
+ * The total amount in nAVAX delegated to the validator.
3583
+ */
2808
3584
  amountDelegated?: string;
3585
+ /**
3586
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3587
+ */
2809
3588
  uptimePerformance: number;
2810
3589
  avalancheGoVersion?: string;
3590
+ /**
3591
+ * The amount of stake in nAVAX that can be delegated to this validator.
3592
+ */
2811
3593
  delegationCapacity?: string;
3594
+ /**
3595
+ * Estimated rewards for the validator if the validation is successful.
3596
+ */
2812
3597
  potentialRewards: Rewards;
2813
3598
  validationStatus: ActiveValidatorDetails.validationStatus;
2814
3599
  validatorHealth: ValidatorHealthDetails;
3600
+ /**
3601
+ * The geographical location of the validator node, if available.
3602
+ */
3603
+ geolocation: Geolocation | null;
2815
3604
  };
2816
3605
  declare namespace ActiveValidatorDetails {
2817
3606
  enum validationStatus {
@@ -2824,6 +3613,9 @@ type CompletedValidatorDetails = {
2824
3613
  nodeId: string;
2825
3614
  subnetId: string;
2826
3615
  amountStaked: string;
3616
+ /**
3617
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3618
+ */
2827
3619
  delegationFee?: string;
2828
3620
  startTimestamp: number;
2829
3621
  endTimestamp: number;
@@ -2847,6 +3639,9 @@ type PendingValidatorDetails = {
2847
3639
  nodeId: string;
2848
3640
  subnetId: string;
2849
3641
  amountStaked: string;
3642
+ /**
3643
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3644
+ */
2850
3645
  delegationFee?: string;
2851
3646
  startTimestamp: number;
2852
3647
  endTimestamp: number;
@@ -2867,6 +3662,9 @@ type RemovedValidatorDetails = {
2867
3662
  nodeId: string;
2868
3663
  subnetId: string;
2869
3664
  amountStaked: string;
3665
+ /**
3666
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3667
+ */
2870
3668
  delegationFee?: string;
2871
3669
  startTimestamp: number;
2872
3670
  endTimestamp: number;
@@ -2874,7 +3672,13 @@ type RemovedValidatorDetails = {
2874
3672
  * Present for AddPermissionlessValidatorTx
2875
3673
  */
2876
3674
  blsCredentials?: BlsCredentials;
3675
+ /**
3676
+ * The transaction hash that removed the permissioned subnet validator.
3677
+ */
2877
3678
  removeTxHash: string;
3679
+ /**
3680
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3681
+ */
2878
3682
  removeTimestamp: number;
2879
3683
  validationStatus: RemovedValidatorDetails.validationStatus;
2880
3684
  };
@@ -3033,6 +3837,22 @@ declare class PrimaryNetworkService {
3033
3837
  */
3034
3838
  sortOrder?: SortOrder;
3035
3839
  }): CancelablePromise<ListBlockchainsResponse>;
3840
+ /**
3841
+ * Get blockchain details by ID
3842
+ * Get details of the blockchain registered on the network.
3843
+ * @returns Blockchain Successful response
3844
+ * @throws ApiError
3845
+ */
3846
+ getBlockchainById({ blockchainId, network, }: {
3847
+ /**
3848
+ * The blockchain ID of the blockchain to retrieve.
3849
+ */
3850
+ blockchainId: string;
3851
+ /**
3852
+ * Either mainnet or testnet/fuji.
3853
+ */
3854
+ network: Network;
3855
+ }): CancelablePromise<Blockchain>;
3036
3856
  /**
3037
3857
  * List subnets
3038
3858
  * Lists all subnets registered on the network.
@@ -3215,6 +4035,39 @@ declare class PrimaryNetworkService {
3215
4035
  */
3216
4036
  nodeIds?: string;
3217
4037
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4038
+ /**
4039
+ * List L1 validators
4040
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4041
+ * @returns ListL1ValidatorsResponse Successful response
4042
+ * @throws ApiError
4043
+ */
4044
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4045
+ /**
4046
+ * Either mainnet or testnet/fuji.
4047
+ */
4048
+ network: Network;
4049
+ /**
4050
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4051
+ */
4052
+ pageToken?: string;
4053
+ /**
4054
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4055
+ */
4056
+ pageSize?: number;
4057
+ /**
4058
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4059
+ */
4060
+ l1ValidationId?: string;
4061
+ includeInactiveL1Validators?: boolean;
4062
+ /**
4063
+ * A valid node ID in format 'NodeID-HASH'.
4064
+ */
4065
+ nodeId?: string;
4066
+ /**
4067
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4068
+ */
4069
+ subnetId?: any;
4070
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3218
4071
  }
3219
4072
 
3220
4073
  declare enum BlockchainId {
@@ -3461,6 +4314,8 @@ type GetPrimaryNetworkBlockResponse = {
3461
4314
  txCount: number;
3462
4315
  transactions: Array<string>;
3463
4316
  blockSizeBytes: number;
4317
+ l1ValidatorsAccruedFees?: number;
4318
+ activeL1Validators?: number;
3464
4319
  currentSupply?: string;
3465
4320
  proposerDetails?: ProposerDetails;
3466
4321
  };
@@ -3474,6 +4329,8 @@ type PrimaryNetworkBlock = {
3474
4329
  txCount: number;
3475
4330
  transactions: Array<string>;
3476
4331
  blockSizeBytes: number;
4332
+ l1ValidatorsAccruedFees?: number;
4333
+ activeL1Validators?: number;
3477
4334
  currentSupply?: string;
3478
4335
  proposerDetails?: ProposerDetails;
3479
4336
  };
@@ -3516,7 +4373,7 @@ declare class PrimaryNetworkBlocksService {
3516
4373
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3517
4374
  * @throws ApiError
3518
4375
  */
3519
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4376
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3520
4377
  /**
3521
4378
  * A primary network blockchain id or alias.
3522
4379
  */
@@ -3529,6 +4386,14 @@ declare class PrimaryNetworkBlocksService {
3529
4386
  * A primary network (P or X chain) nodeId.
3530
4387
  */
3531
4388
  nodeId: string;
4389
+ /**
4390
+ * Query param for retrieving items after a specific timestamp.
4391
+ */
4392
+ startTimestamp?: number;
4393
+ /**
4394
+ * Query param for retrieving items before a specific timestamp.
4395
+ */
4396
+ endTimestamp?: number;
3532
4397
  /**
3533
4398
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3534
4399
  */
@@ -3544,7 +4409,7 @@ declare class PrimaryNetworkBlocksService {
3544
4409
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3545
4410
  * @throws ApiError
3546
4411
  */
3547
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4412
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3548
4413
  /**
3549
4414
  * A primary network blockchain id or alias.
3550
4415
  */
@@ -3553,6 +4418,14 @@ declare class PrimaryNetworkBlocksService {
3553
4418
  * Either mainnet or testnet/fuji.
3554
4419
  */
3555
4420
  network: Network;
4421
+ /**
4422
+ * Query param for retrieving items after a specific timestamp.
4423
+ */
4424
+ startTimestamp?: number;
4425
+ /**
4426
+ * Query param for retrieving items before a specific timestamp.
4427
+ */
4428
+ endTimestamp?: number;
3556
4429
  /**
3557
4430
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3558
4431
  */
@@ -3962,6 +4835,32 @@ type ListCChainAtomicTransactionsResponse = {
3962
4835
  chainInfo: PrimaryNetworkChainInfo;
3963
4836
  };
3964
4837
 
4838
+ type L1ValidatorDetailsTransaction = {
4839
+ /**
4840
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4841
+ */
4842
+ validationId: string;
4843
+ /**
4844
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4845
+ */
4846
+ validationIdHex: string;
4847
+ nodeId: string;
4848
+ subnetId: string;
4849
+ /**
4850
+ * 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
4851
+ */
4852
+ weight: number;
4853
+ /**
4854
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4855
+ */
4856
+ remainingBalance: number;
4857
+ /**
4858
+ * 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
4859
+ */
4860
+ balanceChange?: number;
4861
+ blsCredentials?: Record<string, any>;
4862
+ };
4863
+
3965
4864
  declare enum PChainTransactionType {
3966
4865
  ADD_VALIDATOR_TX = "AddValidatorTx",
3967
4866
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3978,14 +4877,17 @@ declare enum PChainTransactionType {
3978
4877
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3979
4878
  BASE_TX = "BaseTx",
3980
4879
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3981
- CONVERT_SUBNET_TX = "ConvertSubnetTx",
3982
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
3983
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
3984
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
3985
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
4880
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4881
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4882
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4883
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4884
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3986
4885
  UNKNOWN = "UNKNOWN"
3987
4886
  }
3988
4887
 
4888
+ /**
4889
+ * Indicates whether the UTXO is staked or transferable
4890
+ */
3989
4891
  declare enum UtxoType {
3990
4892
  STAKE = "STAKE",
3991
4893
  TRANSFER = "TRANSFER"
@@ -4023,25 +4925,47 @@ type PChainUtxo = {
4023
4925
  assetId: string;
4024
4926
  blockNumber: string;
4025
4927
  blockTimestamp: number;
4928
+ /**
4929
+ * Block height in which the transaction consuming this UTXO was included
4930
+ */
4026
4931
  consumingBlockNumber?: string;
4932
+ /**
4933
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4934
+ */
4027
4935
  consumingBlockTimestamp?: number;
4936
+ /**
4937
+ * Timestamp in seconds after which this UTXO can be consumed
4938
+ */
4028
4939
  platformLocktime?: number;
4940
+ /**
4941
+ * The index of the UTXO in the transaction
4942
+ */
4029
4943
  outputIndex: number;
4030
4944
  rewardType?: RewardType;
4945
+ /**
4946
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4947
+ */
4031
4948
  stakeableLocktime?: number;
4032
4949
  staked?: boolean;
4950
+ /**
4951
+ * The minimum number of signatures required to spend this UTXO
4952
+ */
4033
4953
  threshold?: number;
4954
+ /**
4955
+ * The hash of the transaction that created this UTXO
4956
+ */
4034
4957
  txHash: string;
4958
+ /**
4959
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4960
+ */
4035
4961
  utxoEndTimestamp?: number;
4962
+ /**
4963
+ * Timestamp in seconds at which the staked UTXO was locked.
4964
+ */
4036
4965
  utxoStartTimestamp?: number;
4037
4966
  utxoType: UtxoType;
4038
4967
  };
4039
4968
 
4040
- type SubnetValidatorManagerDetails = {
4041
- blockchainId: string;
4042
- evmContractAddress: string;
4043
- };
4044
-
4045
4969
  type PChainTransaction = {
4046
4970
  /**
4047
4971
  * A P-Chain transaction hash.
@@ -4052,9 +4976,18 @@ type PChainTransaction = {
4052
4976
  * The block finality timestamp.
4053
4977
  */
4054
4978
  blockTimestamp: number;
4979
+ /**
4980
+ * The height of the block in which the transaction was included
4981
+ */
4055
4982
  blockNumber: string;
4056
4983
  blockHash: string;
4984
+ /**
4985
+ * The consumed UTXOs of the transaction
4986
+ */
4057
4987
  consumedUtxos: Array<PChainUtxo>;
4988
+ /**
4989
+ * The newly created UTXOs of the transaction
4990
+ */
4058
4991
  emittedUtxos: Array<PChainUtxo>;
4059
4992
  /**
4060
4993
  * Source chain for an atomic transaction.
@@ -4065,11 +4998,11 @@ type PChainTransaction = {
4065
4998
  */
4066
4999
  destinationChain?: string;
4067
5000
  /**
4068
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5001
+ * 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
4069
5002
  */
4070
5003
  value: Array<AssetAmount>;
4071
5004
  /**
4072
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5005
+ * 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
4073
5006
  */
4074
5007
  amountBurned: Array<AssetAmount>;
4075
5008
  /**
@@ -4077,9 +5010,9 @@ type PChainTransaction = {
4077
5010
  */
4078
5011
  amountStaked: Array<AssetAmount>;
4079
5012
  /**
4080
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5013
+ * 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.
4081
5014
  */
4082
- amountSovBalanceBurned: Array<AssetAmount>;
5015
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4083
5016
  /**
4084
5017
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4085
5018
  */
@@ -4089,11 +5022,11 @@ type PChainTransaction = {
4089
5022
  */
4090
5023
  endTimestamp?: number;
4091
5024
  /**
4092
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5025
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4093
5026
  */
4094
5027
  delegationFeePercent?: string;
4095
5028
  /**
4096
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5029
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4097
5030
  */
4098
5031
  nodeId?: string;
4099
5032
  /**
@@ -4101,22 +5034,25 @@ type PChainTransaction = {
4101
5034
  */
4102
5035
  subnetId?: string;
4103
5036
  /**
4104
- * Present for ConvertSubnetTx
5037
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4105
5038
  */
4106
- subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
5039
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4107
5040
  /**
4108
- * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
5041
+ * 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
4109
5042
  */
4110
- subnetOnlyValidatorDetails?: Array<string>;
5043
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4111
5044
  /**
4112
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5045
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4113
5046
  */
4114
5047
  estimatedReward?: string;
5048
+ /**
5049
+ * Reward transaction hash for the completed validations or delegations
5050
+ */
4115
5051
  rewardTxHash?: string;
4116
5052
  rewardAddresses?: Array<string>;
4117
5053
  memo?: string;
4118
5054
  /**
4119
- * Present for RewardValidatorTx
5055
+ * Staking transaction corresponding to the RewardValidatorTx
4120
5056
  */
4121
5057
  stakingTxHash?: string;
4122
5058
  /**
@@ -4124,7 +5060,7 @@ type PChainTransaction = {
4124
5060
  */
4125
5061
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4126
5062
  /**
4127
- * Present for AddPermissionlessValidatorTx
5063
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4128
5064
  */
4129
5065
  blsCredentials?: BlsCredentials;
4130
5066
  };
@@ -4309,11 +5245,11 @@ declare enum PrimaryNetworkTxType {
4309
5245
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4310
5246
  BASE_TX = "BaseTx",
4311
5247
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4312
- CONVERT_SUBNET_TX = "ConvertSubnetTx",
4313
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
4314
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
4315
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
4316
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
5248
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5249
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5250
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5251
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5252
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4317
5253
  UNKNOWN = "UNKNOWN",
4318
5254
  CREATE_ASSET_TX = "CreateAssetTx",
4319
5255
  OPERATION_TX = "OperationTx"
@@ -4348,11 +5284,13 @@ declare class PrimaryNetworkTransactionsService {
4348
5284
  *
4349
5285
  * 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.
4350
5286
  *
5287
+ * 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.
5288
+ *
4351
5289
  * 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.
4352
5290
  * @returns any Successful response
4353
5291
  * @throws ApiError
4354
5292
  */
4355
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5293
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4356
5294
  /**
4357
5295
  * A primary network blockchain id or alias.
4358
5296
  */
@@ -4365,6 +5303,7 @@ declare class PrimaryNetworkTransactionsService {
4365
5303
  * 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.
4366
5304
  */
4367
5305
  addresses?: string;
5306
+ l1ValidationId?: string;
4368
5307
  /**
4369
5308
  * Query param for filtering items based on transaction types.
4370
5309
  */
@@ -4645,13 +5584,7 @@ type SignatureAggregationResponse = {
4645
5584
  };
4646
5585
 
4647
5586
  type SignatureAggregatorRequest = {
4648
- /**
4649
- * Must be defined if justification is not defined
4650
- */
4651
- message?: string;
4652
- /**
4653
- * Must be defined if message is not defined
4654
- */
5587
+ message: string;
4655
5588
  justification?: string;
4656
5589
  signingSubnetId?: string;
4657
5590
  quorumPercentage?: number;
@@ -4666,9 +5599,29 @@ declare class SignatureAggregatorService {
4666
5599
  * @returns SignatureAggregationResponse Successful response
4667
5600
  * @throws ApiError
4668
5601
  */
4669
- aggregateSignatures({ requestBody, }: {
5602
+ aggregateSignatures({ network, requestBody, }: {
5603
+ /**
5604
+ * Either mainnet or testnet/fuji.
5605
+ */
5606
+ network: Network;
4670
5607
  requestBody: SignatureAggregatorRequest;
4671
5608
  }): CancelablePromise<SignatureAggregationResponse>;
5609
+ /**
5610
+ * Get Aggregated Signatures
5611
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5612
+ * @returns SignatureAggregationResponse Successful response
5613
+ * @throws ApiError
5614
+ */
5615
+ getAggregatedSignatures({ network, txHash, }: {
5616
+ /**
5617
+ * Either mainnet or testnet/fuji.
5618
+ */
5619
+ network: Network;
5620
+ /**
5621
+ * A primary network (P or X chain) transaction hash.
5622
+ */
5623
+ txHash: string;
5624
+ }): CancelablePromise<SignatureAggregationResponse>;
4672
5625
  }
4673
5626
 
4674
5627
  type TeleporterDestinationTransaction = {
@@ -4809,8 +5762,10 @@ declare class TeleporterService {
4809
5762
  readonly httpRequest: BaseHttpRequest;
4810
5763
  constructor(httpRequest: BaseHttpRequest);
4811
5764
  /**
4812
- * Get a teleporter message
4813
- * Gets a teleporter message by message ID.
5765
+ * @deprecated
5766
+ * **[Deprecated]** Gets a teleporter message by message ID.
5767
+ *
5768
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4814
5769
  * @returns any Successful response
4815
5770
  * @throws ApiError
4816
5771
  */
@@ -4821,8 +5776,10 @@ declare class TeleporterService {
4821
5776
  messageId: string;
4822
5777
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4823
5778
  /**
4824
- * List teleporter messages
4825
- * Lists teleporter messages. Ordered by timestamp in descending order.
5779
+ * @deprecated
5780
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5781
+ *
5782
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4826
5783
  * @returns ListTeleporterMessagesResponse Successful response
4827
5784
  * @throws ApiError
4828
5785
  */
@@ -4861,8 +5818,10 @@ declare class TeleporterService {
4861
5818
  network?: Network;
4862
5819
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4863
5820
  /**
4864
- * List teleporter messages by address
4865
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5821
+ * @deprecated
5822
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5823
+ *
5824
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4866
5825
  * @returns ListTeleporterMessagesResponse Successful response
4867
5826
  * @throws ApiError
4868
5827
  */
@@ -4904,44 +5863,54 @@ type AddressActivityMetadata = {
4904
5863
  eventSignatures?: Array<string>;
4905
5864
  };
4906
5865
 
4907
- declare enum EventType {
4908
- ADDRESS_ACTIVITY = "address_activity"
5866
+ declare enum PrimaryNetworkType {
5867
+ MAINNET = "mainnet",
5868
+ FUJI = "fuji"
4909
5869
  }
4910
5870
 
4911
- type CreateWebhookRequest = {
5871
+ type EVMAddressActivityRequest = {
5872
+ eventType: EVMAddressActivityRequest.eventType;
4912
5873
  url: string;
4913
5874
  chainId: string;
4914
- eventType: EventType;
4915
- metadata: AddressActivityMetadata;
5875
+ network?: PrimaryNetworkType;
4916
5876
  name?: string;
4917
5877
  description?: string;
4918
5878
  /**
4919
- * Whether to include traces in the webhook payload.
5879
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4920
5880
  */
4921
5881
  includeInternalTxs?: boolean;
4922
5882
  /**
4923
5883
  * Whether to include logs in the webhook payload.
4924
5884
  */
4925
5885
  includeLogs?: boolean;
5886
+ metadata: AddressActivityMetadata;
4926
5887
  };
5888
+ declare namespace EVMAddressActivityRequest {
5889
+ enum eventType {
5890
+ ADDRESS_ACTIVITY = "address_activity"
5891
+ }
5892
+ }
4927
5893
 
4928
- type ListWebhookAddressesResponse = {
4929
- /**
4930
- * 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.
4931
- */
4932
- nextPageToken?: string;
4933
- addresses: Array<string>;
4934
- totalAddresses: number;
4935
- };
5894
+ declare enum EventType {
5895
+ ADDRESS_ACTIVITY = "address_activity",
5896
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5897
+ VALIDATOR_ACTIVITY = "validator_activity"
5898
+ }
4936
5899
 
4937
5900
  declare enum WebhookStatusType {
4938
5901
  ACTIVE = "active",
4939
5902
  INACTIVE = "inactive"
4940
5903
  }
4941
5904
 
4942
- type WebhookResponse = {
5905
+ type EVMAddressActivityResponse = {
4943
5906
  id: string;
4944
5907
  eventType: EventType;
5908
+ url: string;
5909
+ chainId: string;
5910
+ status: WebhookStatusType;
5911
+ createdAt: number;
5912
+ name: string;
5913
+ description: string;
4945
5914
  metadata: AddressActivityMetadata;
4946
5915
  /**
4947
5916
  * Whether to include traces in the webhook payload.
@@ -4951,12 +5920,109 @@ type WebhookResponse = {
4951
5920
  * Whether to include logs in the webhook payload.
4952
5921
  */
4953
5922
  includeLogs?: boolean;
5923
+ };
5924
+
5925
+ type ListWebhookAddressesResponse = {
5926
+ /**
5927
+ * 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.
5928
+ */
5929
+ nextPageToken?: string;
5930
+ addresses: Array<string>;
5931
+ totalAddresses: number;
5932
+ };
5933
+
5934
+ /**
5935
+ * The type of key for platform activity depending on the event type
5936
+ */
5937
+ declare enum PlatformActivityKeyType {
5938
+ ADDRESSES = "addresses",
5939
+ NODE_ID = "nodeId",
5940
+ SUBNET_ID = "subnetId"
5941
+ }
5942
+
5943
+ /**
5944
+ * Array of address activity sub-event types
5945
+ */
5946
+ declare enum PlatformAddressActivitySubEventType {
5947
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5948
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
5949
+ REWARD_DISTRIBUTION = "reward_distribution"
5950
+ }
5951
+
5952
+ type PlatformActivitySubEvents = {
5953
+ /**
5954
+ * Array of validator activity sub-event types
5955
+ */
5956
+ validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5957
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5958
+ };
5959
+
5960
+ /**
5961
+ * Type of balance to monitor
5962
+ */
5963
+ declare enum CommonBalanceType {
5964
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5965
+ UNLOCKED_STAKED = "unlockedStaked",
5966
+ LOCKED_PLATFORM = "lockedPlatform",
5967
+ LOCKED_STAKEABLE = "lockedStakeable",
5968
+ LOCKED_STAKED = "lockedStaked",
5969
+ PENDING_STAKED = "pendingStaked",
5970
+ UNLOCKED = "unlocked",
5971
+ LOCKED = "locked",
5972
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5973
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
5974
+ }
5975
+
5976
+ type PlatformBalanceThresholdFilter = {
5977
+ balanceType: CommonBalanceType;
5978
+ /**
5979
+ * Threshold for balance corresponding to balanceType in nAVAX
5980
+ */
5981
+ balanceThreshold: string;
5982
+ };
5983
+
5984
+ type PlatformActivityMetadata = {
5985
+ keyType: PlatformActivityKeyType;
5986
+ /**
5987
+ * 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
5988
+ */
5989
+ keys: Array<string>;
5990
+ /**
5991
+ * Sub-events to monitor
5992
+ */
5993
+ subEvents?: PlatformActivitySubEvents;
5994
+ /**
5995
+ * Array of hexadecimal strings of the event signatures.
5996
+ */
5997
+ eventSignatures?: Array<string>;
5998
+ /**
5999
+ * Array of node IDs to filter the events
6000
+ */
6001
+ nodeIds?: Array<string>;
6002
+ /**
6003
+ * Array of subnet IDs to filter the events
6004
+ */
6005
+ subnetIds?: Array<string>;
6006
+ /**
6007
+ * Balance threshold filter
6008
+ */
6009
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
6010
+ /**
6011
+ * L1 validator fee balance threshold in nAVAX
6012
+ */
6013
+ l1ValidatorFeeBalanceThreshold?: string;
6014
+ };
6015
+
6016
+ type PlatformActivityResponse = {
6017
+ id: string;
6018
+ eventType: EventType;
4954
6019
  url: string;
4955
6020
  chainId: string;
4956
6021
  status: WebhookStatusType;
4957
6022
  createdAt: number;
4958
6023
  name: string;
4959
6024
  description: string;
6025
+ metadata: PlatformActivityMetadata;
4960
6026
  };
4961
6027
 
4962
6028
  type ListWebhooksResponse = {
@@ -4964,9 +6030,36 @@ type ListWebhooksResponse = {
4964
6030
  * 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.
4965
6031
  */
4966
6032
  nextPageToken?: string;
4967
- webhooks: Array<WebhookResponse>;
6033
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4968
6034
  };
4969
6035
 
6036
+ type PlatformActivityRequest = {
6037
+ eventType: PlatformActivityRequest.eventType;
6038
+ url: string;
6039
+ chainId: string;
6040
+ network?: PrimaryNetworkType;
6041
+ name?: string;
6042
+ description?: string;
6043
+ /**
6044
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6045
+ */
6046
+ includeInternalTxs?: boolean;
6047
+ /**
6048
+ * Whether to include logs in the webhook payload.
6049
+ */
6050
+ includeLogs?: boolean;
6051
+ /**
6052
+ * Metadata for platform activity
6053
+ */
6054
+ metadata: PlatformActivityMetadata;
6055
+ };
6056
+ declare namespace PlatformActivityRequest {
6057
+ enum eventType {
6058
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6059
+ VALIDATOR_ACTIVITY = "validator_activity"
6060
+ }
6061
+ }
6062
+
4970
6063
  type SharedSecretsResponse = {
4971
6064
  secret: string;
4972
6065
  };
@@ -4976,6 +6069,9 @@ type UpdateWebhookRequest = {
4976
6069
  description?: string;
4977
6070
  url?: string;
4978
6071
  status?: WebhookStatusType;
6072
+ /**
6073
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6074
+ */
4979
6075
  includeInternalTxs?: boolean;
4980
6076
  includeLogs?: boolean;
4981
6077
  };
@@ -4991,12 +6087,12 @@ declare class WebhooksService {
4991
6087
  /**
4992
6088
  * Create a webhook
4993
6089
  * Create a new webhook.
4994
- * @returns WebhookResponse Successful response
6090
+ * @returns any Successful response
4995
6091
  * @throws ApiError
4996
6092
  */
4997
6093
  createWebhook({ requestBody, }: {
4998
- requestBody: CreateWebhookRequest;
4999
- }): CancelablePromise<WebhookResponse>;
6094
+ requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6095
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5000
6096
  /**
5001
6097
  * List webhooks
5002
6098
  * Lists webhooks for the user.
@@ -5020,7 +6116,7 @@ declare class WebhooksService {
5020
6116
  /**
5021
6117
  * Get a webhook by ID
5022
6118
  * Retrieves a webhook by ID.
5023
- * @returns WebhookResponse Successful response
6119
+ * @returns any Successful response
5024
6120
  * @throws ApiError
5025
6121
  */
5026
6122
  getWebhook({ id, }: {
@@ -5028,11 +6124,11 @@ declare class WebhooksService {
5028
6124
  * The webhook identifier.
5029
6125
  */
5030
6126
  id: string;
5031
- }): CancelablePromise<WebhookResponse>;
6127
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5032
6128
  /**
5033
6129
  * Deactivate a webhook
5034
6130
  * Deactivates a webhook by ID.
5035
- * @returns WebhookResponse Successful response
6131
+ * @returns any Successful response
5036
6132
  * @throws ApiError
5037
6133
  */
5038
6134
  deactivateWebhook({ id, }: {
@@ -5040,11 +6136,11 @@ declare class WebhooksService {
5040
6136
  * The webhook identifier.
5041
6137
  */
5042
6138
  id: string;
5043
- }): CancelablePromise<WebhookResponse>;
6139
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5044
6140
  /**
5045
6141
  * Update a webhook
5046
6142
  * Updates an existing webhook.
5047
- * @returns WebhookResponse Successful response
6143
+ * @returns any Successful response
5048
6144
  * @throws ApiError
5049
6145
  */
5050
6146
  updateWebhook({ id, requestBody, }: {
@@ -5053,14 +6149,14 @@ declare class WebhooksService {
5053
6149
  */
5054
6150
  id: string;
5055
6151
  requestBody: UpdateWebhookRequest;
5056
- }): CancelablePromise<WebhookResponse>;
6152
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5057
6153
  /**
5058
- * Generate a shared secret
5059
- * Generates a new shared secret.
6154
+ * Generate or rotate a shared secret
6155
+ * Generates a new shared secret or rotate an existing one.
5060
6156
  * @returns SharedSecretsResponse Successful response
5061
6157
  * @throws ApiError
5062
6158
  */
5063
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6159
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5064
6160
  /**
5065
6161
  * Get a shared secret
5066
6162
  * Get a previously generated shared secret.
@@ -5069,9 +6165,9 @@ declare class WebhooksService {
5069
6165
  */
5070
6166
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5071
6167
  /**
5072
- * Add addresses to webhook
5073
- * Add addresses to webhook.
5074
- * @returns WebhookResponse Successful response
6168
+ * Add addresses to EVM activity webhook
6169
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6170
+ * @returns EVMAddressActivityResponse Successful response
5075
6171
  * @throws ApiError
5076
6172
  */
5077
6173
  addAddressesToWebhook({ id, requestBody, }: {
@@ -5080,11 +6176,11 @@ declare class WebhooksService {
5080
6176
  */
5081
6177
  id: string;
5082
6178
  requestBody: AddressesChangeRequest;
5083
- }): CancelablePromise<WebhookResponse>;
6179
+ }): CancelablePromise<EVMAddressActivityResponse>;
5084
6180
  /**
5085
- * Remove addresses from webhook
5086
- * Remove addresses from webhook.
5087
- * @returns WebhookResponse Successful response
6181
+ * Remove addresses from EVM activity webhook
6182
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6183
+ * @returns EVMAddressActivityResponse Successful response
5088
6184
  * @throws ApiError
5089
6185
  */
5090
6186
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -5093,10 +6189,10 @@ declare class WebhooksService {
5093
6189
  */
5094
6190
  id: string;
5095
6191
  requestBody: AddressesChangeRequest;
5096
- }): CancelablePromise<WebhookResponse>;
6192
+ }): CancelablePromise<EVMAddressActivityResponse>;
5097
6193
  /**
5098
- * List adresses by webhook
5099
- * List adresses by webhook.
6194
+ * List adresses by EVM activity webhooks
6195
+ * List adresses by webhook. Only valid for EVM activity webhooks.
5100
6196
  * @returns ListWebhookAddressesResponse Successful response
5101
6197
  * @throws ApiError
5102
6198
  */
@@ -5126,7 +6222,9 @@ declare class Glacier {
5126
6222
  readonly evmContracts: EvmContractsService;
5127
6223
  readonly evmTransactions: EvmTransactionsService;
5128
6224
  readonly healthCheck: HealthCheckService;
6225
+ readonly interchainMessaging: InterchainMessagingService;
5129
6226
  readonly nfTs: NfTsService;
6227
+ readonly notifications: NotificationsService;
5130
6228
  readonly operations: OperationsService;
5131
6229
  readonly primaryNetwork: PrimaryNetworkService;
5132
6230
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -5159,6 +6257,17 @@ declare class ApiError extends Error {
5159
6257
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5160
6258
  }
5161
6259
 
6260
+ type AccessListData = {
6261
+ /**
6262
+ * Access Address
6263
+ */
6264
+ accessAddresses: string;
6265
+ /**
6266
+ * Storage keys
6267
+ */
6268
+ storageKeys: Array<string>;
6269
+ };
6270
+
5162
6271
  type BadGateway = {
5163
6272
  /**
5164
6273
  * The error message describing the reason for the exception
@@ -5193,6 +6302,76 @@ type DataListChainsResponse = {
5193
6302
  chains: Array<ChainInfo>;
5194
6303
  };
5195
6304
 
6305
+ type ERCToken = {
6306
+ /**
6307
+ * Token contract address
6308
+ */
6309
+ address: string;
6310
+ /**
6311
+ * Token name
6312
+ */
6313
+ name: string;
6314
+ /**
6315
+ * Token symbol
6316
+ */
6317
+ symbol: string;
6318
+ /**
6319
+ * Token decimals
6320
+ */
6321
+ decimals: number;
6322
+ /**
6323
+ * Value including decimals
6324
+ */
6325
+ valueWithDecimals: string;
6326
+ };
6327
+
6328
+ type ERCTransfer = {
6329
+ /**
6330
+ * Transaction hash
6331
+ */
6332
+ transactionHash: string;
6333
+ /**
6334
+ * Transfer type
6335
+ */
6336
+ type: string;
6337
+ /**
6338
+ * Sender address
6339
+ */
6340
+ from: string;
6341
+ /**
6342
+ * Recipient address
6343
+ */
6344
+ to: string;
6345
+ /**
6346
+ * Amount transferred
6347
+ */
6348
+ value: string;
6349
+ /**
6350
+ * Token Id
6351
+ */
6352
+ tokenId?: string;
6353
+ /**
6354
+ * Block timestamp
6355
+ */
6356
+ blockTimestamp: number;
6357
+ /**
6358
+ * Log index
6359
+ */
6360
+ logIndex: number;
6361
+ /**
6362
+ * erc20 Token details
6363
+ */
6364
+ erc20Token?: ERCToken;
6365
+ /**
6366
+ * erc721 Token details
6367
+ */
6368
+ erc721Token?: ERCToken;
6369
+ /**
6370
+ * erc1155 Token details
6371
+ */
6372
+ erc1155Token?: ERCToken;
6373
+ };
6374
+
5196
6375
  type Forbidden = {
5197
6376
  /**
5198
6377
  * The error message describing the reason for the exception
@@ -5223,6 +6402,64 @@ type InternalServerError = {
5223
6402
  error: string;
5224
6403
  };
5225
6404
 
6405
+ type Log = {
6406
+ /**
6407
+ * Contract address
6408
+ */
6409
+ address: string;
6410
+ /**
6411
+ * First topic
6412
+ */
6413
+ topic0: string;
6414
+ /**
6415
+ * Second topic (optional)
6416
+ */
6417
+ topic1?: string;
6418
+ /**
6419
+ * Third topic (optional)
6420
+ */
6421
+ topic2?: string;
6422
+ /**
6423
+ * Fourth topic (optional)
6424
+ */
6425
+ topic3?: string;
6426
+ /**
6427
+ * Event data
6428
+ */
6429
+ data: string;
6430
+ /**
6431
+ * Transaction index
6432
+ */
6433
+ transactionIndex: number;
6434
+ /**
6435
+ * Log index
6436
+ */
6437
+ logIndex: number;
6438
+ /**
6439
+ * Indicates if the log was removed
6440
+ */
6441
+ removed: boolean;
6442
+ };
6443
+
6444
+ type NetworkTokenInfo = {
6445
+ /**
6446
+ * Token name
6447
+ */
6448
+ tokenName?: string;
6449
+ /**
6450
+ * Token symbol
6451
+ */
6452
+ tokenSymbol?: string;
6453
+ /**
6454
+ * Token decimals
6455
+ */
6456
+ tokenDecimals?: number;
6457
+ /**
6458
+ * Value including decimals
6459
+ */
6460
+ valueWithDecimals?: string;
6461
+ };
6462
+
5226
6463
  type NextPageToken = {
5227
6464
  /**
5228
6465
  * 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.
@@ -5275,6 +6512,132 @@ type TooManyRequests = {
5275
6512
  error: string;
5276
6513
  };
5277
6514
 
6515
+ type Transaction = {
6516
+ /**
6517
+ * Block hash of the transaction
6518
+ */
6519
+ blockHash: string;
6520
+ /**
6521
+ * Block number of the transaction
6522
+ */
6523
+ blockNumber: string;
6524
+ /**
6525
+ * Sender address
6526
+ */
6527
+ from: string;
6528
+ /**
6529
+ * Gas limit for the transaction
6530
+ */
6531
+ gas: string;
6532
+ /**
6533
+ * Gas price used
6534
+ */
6535
+ gasPrice: string;
6536
+ /**
6537
+ * Maximum fee per gas
6538
+ */
6539
+ maxFeePerGas: string;
6540
+ /**
6541
+ * Maximum priority fee per gas
6542
+ */
6543
+ maxPriorityFeePerGas: string;
6544
+ /**
6545
+ * Transaction hash
6546
+ */
6547
+ txHash: string;
6548
+ /**
6549
+ * Transaction status
6550
+ */
6551
+ txStatus: string;
6552
+ /**
6553
+ * Input data
6554
+ */
6555
+ input: string;
6556
+ /**
6557
+ * Nonce value
6558
+ */
6559
+ nonce: string;
6560
+ /**
6561
+ * Recipient address
6562
+ */
6563
+ to: string;
6564
+ /**
6565
+ * Transaction index
6566
+ */
6567
+ transactionIndex: number;
6568
+ /**
6569
+ * Value transferred in the transaction
6570
+ */
6571
+ value: string;
6572
+ /**
6573
+ * Transaction type
6574
+ */
6575
+ type: number;
6576
+ /**
6577
+ * Chain ID of the network
6578
+ */
6579
+ chainId: string;
6580
+ /**
6581
+ * Cumulative gas used
6582
+ */
6583
+ receiptCumulativeGasUsed: string;
6584
+ /**
6585
+ * Gas used
6586
+ */
6587
+ receiptGasUsed: string;
6588
+ /**
6589
+ * Effective gas price
6590
+ */
6591
+ receiptEffectiveGasPrice: string;
6592
+ /**
6593
+ * Receipt root
6594
+ */
6595
+ receiptRoot: string;
6596
+ /**
6597
+ * Block timestamp
6598
+ */
6599
+ blockTimestamp: number;
6600
+ /**
6601
+ * Contract address (optional)
6602
+ */
6603
+ contractAddress?: string;
6604
+ /**
6605
+ * ERC20 transfers
6606
+ */
6607
+ erc20Transfers: Array<ERCTransfer>;
6608
+ /**
6609
+ * ERC721 transfers
6610
+ */
6611
+ erc721Transfers: Array<ERCTransfer>;
6612
+ /**
6613
+ * ERC1155 transfers
6614
+ */
6615
+ erc1155Transfers: Array<ERCTransfer>;
6616
+ /**
6617
+ * Internal transactions (optional)
6618
+ */
6619
+ internalTransactions?: Array<InternalTransaction>;
6620
+ /**
6621
+ * Access list (optional)
6622
+ */
6623
+ accessList?: Array<AccessListData>;
6624
+ /**
6625
+ * Network token info (optional)
6626
+ */
6627
+ networkToken?: NetworkTokenInfo;
6628
+ };
6629
+
6630
+ type TransactionEvent = {
6631
+ /**
6632
+ * Transaction details
6633
+ */
6634
+ transaction: Transaction;
6635
+ /**
6636
+ * Array of log events
6637
+ */
6638
+ logs?: Array<Log>;
6639
+ };
6640
+
5278
6641
  type Unauthorized = {
5279
6642
  /**
5280
6643
  * The error message describing the reason for the exception
@@ -5290,4 +6653,31 @@ type Unauthorized = {
5290
6653
  error: string;
5291
6654
  };
5292
6655
 
5293
- 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, ListAddressChainsResponse, 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, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetValidatorManagerDetails, 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 };
6656
+ type WebhookAddressActivityResponse = {
6657
+ /**
6658
+ * Webhook ID
6659
+ */
6660
+ webhookId: string;
6661
+ /**
6662
+ * Event type
6663
+ */
6664
+ eventType: WebhookAddressActivityResponse.eventType;
6665
+ /**
6666
+ * Message ID
6667
+ */
6668
+ messageId: string;
6669
+ /**
6670
+ * Event details
6671
+ */
6672
+ event: TransactionEvent;
6673
+ };
6674
+ declare namespace WebhookAddressActivityResponse {
6675
+ /**
6676
+ * Event type
6677
+ */
6678
+ enum eventType {
6679
+ ADDRESS_ACTIVITY = "address_activity"
6680
+ }
6681
+ }
6682
+
6683
+ export { AccessListData, AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, ERCToken, ERCTransfer, 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, Geolocation, 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, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, 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, Transaction, TransactionDetails, TransactionDirectionType, TransactionEvent, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };