@avalabs/glacier-sdk 3.1.0-canary.7a21d42.0 → 3.1.0-canary.7c119e2.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 (108) hide show
  1. package/dist/index.d.ts +972 -258
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessRequest.d.ts +12 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  7. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  8. package/esm/generated/models/BlockchainId.d.ts +2 -0
  9. package/esm/generated/models/BlockchainId.js +1 -1
  10. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  11. package/esm/generated/models/BlockchainIds.js +1 -1
  12. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  13. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  14. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  15. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  16. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  17. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  18. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  19. package/esm/generated/models/EvmBlock.d.ts +4 -0
  20. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  21. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  22. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  23. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  24. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  25. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  26. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  27. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  28. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  29. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  30. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  31. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  32. package/esm/generated/models/Network.d.ts +3 -1
  33. package/esm/generated/models/Network.js +1 -1
  34. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  35. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  36. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  37. package/esm/generated/models/PChainTransactionType.js +1 -1
  38. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  39. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  40. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  41. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  42. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  43. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  44. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
  45. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  46. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  47. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  48. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  49. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  50. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  51. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  52. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  53. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  54. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  55. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  56. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  57. package/esm/generated/models/Subnet.d.ts +13 -0
  58. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  59. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  60. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  61. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  62. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  63. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  64. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  65. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  66. package/esm/generated/models/UtxoType.d.ts +3 -0
  67. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  68. package/esm/generated/models/XChainId.d.ts +1 -0
  69. package/esm/generated/models/XChainId.js +1 -1
  70. package/esm/generated/services/DataApiUsageMetricsService.d.ts +117 -22
  71. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  72. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  73. package/esm/generated/services/EvmBlocksService.d.ts +23 -2
  74. package/esm/generated/services/EvmBlocksService.js +1 -1
  75. package/esm/generated/services/EvmChainsService.d.ts +84 -6
  76. package/esm/generated/services/EvmChainsService.js +1 -1
  77. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  78. package/esm/generated/services/EvmTransactionsService.d.ts +46 -13
  79. package/esm/generated/services/EvmTransactionsService.js +1 -1
  80. package/esm/generated/services/NfTsService.d.ts +3 -3
  81. package/esm/generated/services/NotificationsService.d.ts +51 -0
  82. package/esm/generated/services/NotificationsService.js +1 -0
  83. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  84. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
  85. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  86. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  87. package/esm/generated/services/PrimaryNetworkService.d.ts +43 -9
  88. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  89. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
  90. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  91. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  92. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  93. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  94. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  95. package/esm/generated/services/TeleporterService.d.ts +5 -5
  96. package/esm/index.d.ts +22 -7
  97. package/esm/index.js +1 -1
  98. package/package.json +2 -2
  99. package/esm/generated/models/NetworkType.d.ts +0 -6
  100. package/esm/generated/models/NetworkType.js +0 -1
  101. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  102. package/esm/generated/models/PrimaryNetwork.js +0 -1
  103. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  104. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  105. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  106. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  107. package/esm/generated/services/RpcService.d.ts +0 -25
  108. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -148,6 +148,110 @@ 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
+ DEVNET = "devnet"
156
+ }
157
+
158
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum RpcUsageMetricsGroupByEnum {
167
+ RPC_METHOD = "rpcMethod",
168
+ RESPONSE_CODE = "responseCode",
169
+ RL_BYPASS_TOKEN = "rlBypassToken"
170
+ }
171
+
172
+ declare enum SubnetRpcTimeIntervalGranularity {
173
+ HOURLY = "hourly",
174
+ DAILY = "daily",
175
+ WEEKLY = "weekly",
176
+ MONTHLY = "monthly"
177
+ }
178
+
179
+ type RpcUsageMetricsValueAggregated = {
180
+ /**
181
+ * The total number of requests
182
+ */
183
+ totalRequests: number;
184
+ /**
185
+ * The number of API credits used
186
+ */
187
+ apiCreditsUsed: number;
188
+ /**
189
+ * The number of requests per second
190
+ */
191
+ requestsPerSecond: number;
192
+ /**
193
+ * The success rate percentage
194
+ */
195
+ successRatePercent: number;
196
+ /**
197
+ * The median response time in milliseconds
198
+ */
199
+ medianResponseTimeMsecs: number;
200
+ /**
201
+ * The number of invalid requests
202
+ */
203
+ invalidRequests: number;
204
+ /**
205
+ * The number of API credits wasted on invalid requests
206
+ */
207
+ apiCreditsWasted: number;
208
+ /**
209
+ * Column name used for data aggregation
210
+ */
211
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
212
+ /**
213
+ * The value of the column used for data aggregation
214
+ */
215
+ groupValue?: (string | number);
216
+ };
217
+ declare namespace RpcUsageMetricsValueAggregated {
218
+ /**
219
+ * Column name used for data aggregation
220
+ */
221
+ enum groupedBy {
222
+ RPC_METHOD = "rpcMethod",
223
+ RESPONSE_CODE = "responseCode",
224
+ RL_BYPASS_TOKEN = "rlBypassToken",
225
+ NONE = "None"
226
+ }
227
+ }
228
+
229
+ type RpcMetrics = {
230
+ /**
231
+ * The timestamp of the metrics value
232
+ */
233
+ timestamp: number;
234
+ /**
235
+ * The metrics values for the timestamp
236
+ */
237
+ values: Array<RpcUsageMetricsValueAggregated>;
238
+ };
239
+
240
+ type SubnetRpcUsageMetricsResponseDTO = {
241
+ /**
242
+ * Duration in which the metrics value is aggregated
243
+ */
244
+ aggregateDuration: string;
245
+ /**
246
+ * Metrics values
247
+ */
248
+ metrics: Array<RpcMetrics>;
249
+ /**
250
+ * ChainId for which the metrics are aggregated
251
+ */
252
+ chainId: string;
253
+ };
254
+
151
255
  declare enum TimeIntervalGranularityExtended {
152
256
  MINUTE = "minute",
153
257
  HOURLY = "hourly",
@@ -251,17 +355,17 @@ declare class DataApiUsageMetricsService {
251
355
  * @returns UsageMetricsResponseDTO Successful response
252
356
  * @throws ApiError
253
357
  */
254
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
358
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
255
359
  /**
256
360
  * Organization ID to fetch usage metrics for
257
361
  */
258
362
  orgId?: string;
259
363
  /**
260
- * Query param for retrieving items after a specific timestamp.
364
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
261
365
  */
262
366
  startTimestamp?: number;
263
367
  /**
264
- * Query param for retrieving items before a specific timestamp.
368
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
265
369
  */
266
370
  endTimestamp?: number;
267
371
  /**
@@ -273,25 +377,25 @@ declare class DataApiUsageMetricsService {
273
377
  */
274
378
  groupBy?: UsageMetricsGroupByEnum;
275
379
  /**
276
- * Filter data by request path.
277
- */
278
- requestPath?: string;
279
- /**
280
- * Filter data by request type.
380
+ * Filter data by chain ID.
281
381
  */
282
- requestType?: 'data' | 'rpc';
382
+ chainId?: string;
283
383
  /**
284
384
  * Filter data by response status code.
285
385
  */
286
386
  responseCode?: string;
287
387
  /**
288
- * Filter data by chain ID.
388
+ * Filter data by request type.
289
389
  */
290
- chainId?: string;
390
+ requestType?: 'data' | 'rpc';
291
391
  /**
292
392
  * Filter data by API key ID.
293
393
  */
294
394
  apiKeyId?: string;
395
+ /**
396
+ * Filter data by request path.
397
+ */
398
+ requestPath?: string;
295
399
  }): CancelablePromise<UsageMetricsResponseDTO>;
296
400
  /**
297
401
  * Get logs for requests made by client
@@ -299,39 +403,39 @@ declare class DataApiUsageMetricsService {
299
403
  * @returns LogsResponseDTO Successful response
300
404
  * @throws ApiError
301
405
  */
302
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
406
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
303
407
  /**
304
408
  * Organization ID to fetch usage metrics for
305
409
  */
306
410
  orgId?: string;
307
411
  /**
308
- * Query param for retrieving items after a specific timestamp.
412
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
309
413
  */
310
414
  startTimestamp?: number;
311
415
  /**
312
- * Query param for retrieving items before a specific timestamp.
416
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
313
417
  */
314
418
  endTimestamp?: number;
315
419
  /**
316
- * Filter data by request path.
317
- */
318
- requestPath?: string;
319
- /**
320
- * Filter data by request type.
420
+ * Filter data by chain ID.
321
421
  */
322
- requestType?: 'data' | 'rpc';
422
+ chainId?: string;
323
423
  /**
324
424
  * Filter data by response status code.
325
425
  */
326
426
  responseCode?: string;
327
427
  /**
328
- * Filter data by chain ID.
428
+ * Filter data by request type.
329
429
  */
330
- chainId?: string;
430
+ requestType?: 'data' | 'rpc';
331
431
  /**
332
432
  * Filter data by API key ID.
333
433
  */
334
434
  apiKeyId?: string;
435
+ /**
436
+ * Filter data by request path.
437
+ */
438
+ requestPath?: string;
335
439
  /**
336
440
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
337
441
  */
@@ -341,6 +445,96 @@ declare class DataApiUsageMetricsService {
341
445
  */
342
446
  pageSize?: number;
343
447
  }): CancelablePromise<LogsResponseDTO>;
448
+ /**
449
+ * Get usage metrics for the Subnet RPC
450
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
451
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
452
+ * @throws ApiError
453
+ */
454
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
455
+ /**
456
+ * Time interval granularity for data aggregation for subnet
457
+ * rpc metrics
458
+ */
459
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
460
+ /**
461
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
462
+ */
463
+ startTimestamp?: number;
464
+ /**
465
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
466
+ */
467
+ endTimestamp?: number;
468
+ /**
469
+ * Query param for the criterion used for grouping metrics
470
+ */
471
+ groupBy?: RpcUsageMetricsGroupByEnum;
472
+ /**
473
+ * Filter data by chain ID.
474
+ */
475
+ chainId?: string;
476
+ /**
477
+ * Filter data by response status code.
478
+ */
479
+ responseCode?: string;
480
+ /**
481
+ * Filter data by RPC method.
482
+ */
483
+ rpcMethod?: string;
484
+ /**
485
+ * Filter data by Rl Bypass API Token.
486
+ */
487
+ rlBypassApiToken?: string;
488
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
489
+ /**
490
+ * Get usage metrics for the Primary Network RPC
491
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
492
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
493
+ * @throws ApiError
494
+ */
495
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
496
+ /**
497
+ * Either mainnet or testnet/fuji.
498
+ */
499
+ network: Network;
500
+ /**
501
+ * Time interval granularity for data aggregation for subnet
502
+ * rpc metrics
503
+ */
504
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
505
+ /**
506
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
507
+ */
508
+ startTimestamp?: number;
509
+ /**
510
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
511
+ */
512
+ endTimestamp?: number;
513
+ /**
514
+ * Query param for the criterion used for grouping metrics
515
+ */
516
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
517
+ /**
518
+ * Filter data by response status code.
519
+ */
520
+ responseCode?: string;
521
+ /**
522
+ * Filter data by request path.
523
+ */
524
+ requestPath?: string;
525
+ /**
526
+ * Filter data by Country.
527
+ */
528
+ country?: string;
529
+ /**
530
+ * Filter data by Continent.
531
+ */
532
+ continent?: string;
533
+ /**
534
+ * Filter data by User Agent.
535
+ */
536
+ userAgent?: string;
537
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
344
538
  }
345
539
 
346
540
  declare class DefaultService {
@@ -539,6 +733,10 @@ type ListErc1155BalancesResponse = {
539
733
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
540
734
  */
541
735
  nextPageToken?: string;
736
+ /**
737
+ * The native token balance for the address.
738
+ */
739
+ nativeTokenBalance: NativeTokenBalance;
542
740
  /**
543
741
  * The list of ERC-1155 token balances for the address.
544
742
  */
@@ -583,11 +781,22 @@ type Erc20TokenBalance = {
583
781
  * The monetary value of the balance, if a price is available for the token.
584
782
  */
585
783
  balanceValue?: Money;
784
+ /**
785
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
786
+ */
787
+ tokenReputation: Erc20TokenBalance.tokenReputation | null;
586
788
  };
587
789
  declare namespace Erc20TokenBalance {
588
790
  enum ercType {
589
791
  ERC_20 = "ERC-20"
590
792
  }
793
+ /**
794
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
795
+ */
796
+ enum tokenReputation {
797
+ MALICIOUS = "Malicious",
798
+ BENIGN = "Benign"
799
+ }
591
800
  }
592
801
 
593
802
  type ListErc20BalancesResponse = {
@@ -595,6 +804,10 @@ type ListErc20BalancesResponse = {
595
804
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
596
805
  */
597
806
  nextPageToken?: string;
807
+ /**
808
+ * The native token balance for the address.
809
+ */
810
+ nativeTokenBalance: NativeTokenBalance;
598
811
  /**
599
812
  * The list of ERC-20 token balances for the address.
600
813
  */
@@ -606,6 +819,10 @@ type ListErc721BalancesResponse = {
606
819
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
607
820
  */
608
821
  nextPageToken?: string;
822
+ /**
823
+ * The native token balance for the address.
824
+ */
825
+ nativeTokenBalance: NativeTokenBalance;
609
826
  /**
610
827
  * The list of ERC-721 token balances for the address.
611
828
  */
@@ -625,7 +842,7 @@ declare class EvmBalancesService {
625
842
  */
626
843
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
844
  /**
628
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
845
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
846
  */
630
847
  chainId: string;
631
848
  /**
@@ -653,7 +870,7 @@ declare class EvmBalancesService {
653
870
  */
654
871
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
872
  /**
656
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
873
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
874
  */
658
875
  chainId: string;
659
876
  /**
@@ -695,7 +912,7 @@ declare class EvmBalancesService {
695
912
  */
696
913
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
914
  /**
698
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
915
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
916
  */
700
917
  chainId: string;
701
918
  /**
@@ -727,7 +944,7 @@ declare class EvmBalancesService {
727
944
  */
728
945
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
946
  /**
730
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
947
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
948
  */
732
949
  chainId: string;
733
950
  /**
@@ -761,7 +978,7 @@ declare class EvmBalancesService {
761
978
  */
762
979
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
980
  /**
764
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
981
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
982
  */
766
983
  chainId: string;
767
984
  /**
@@ -784,6 +1001,10 @@ declare class EvmBalancesService {
784
1001
  }
785
1002
 
786
1003
  type GetEvmBlockResponse = {
1004
+ /**
1005
+ * The EVM chain ID on which the block was created.
1006
+ */
1007
+ chainId: string;
787
1008
  /**
788
1009
  * The block number on the chain.
789
1010
  */
@@ -828,6 +1049,10 @@ type GetEvmBlockResponse = {
828
1049
  };
829
1050
 
830
1051
  type EvmBlock = {
1052
+ /**
1053
+ * The EVM chain ID on which the block was created.
1054
+ */
1055
+ chainId: string;
831
1056
  /**
832
1057
  * The block number on the chain.
833
1058
  */
@@ -882,6 +1107,26 @@ type ListEvmBlocksResponse = {
882
1107
  declare class EvmBlocksService {
883
1108
  readonly httpRequest: BaseHttpRequest;
884
1109
  constructor(httpRequest: BaseHttpRequest);
1110
+ /**
1111
+ * List latest blocks across all supported EVM chains
1112
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1113
+ * @returns ListEvmBlocksResponse Successful response
1114
+ * @throws ApiError
1115
+ */
1116
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1117
+ /**
1118
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1119
+ */
1120
+ pageToken?: string;
1121
+ /**
1122
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1123
+ */
1124
+ pageSize?: number;
1125
+ /**
1126
+ * Either mainnet or testnet/fuji.
1127
+ */
1128
+ network?: Network;
1129
+ }): CancelablePromise<ListEvmBlocksResponse>;
885
1130
  /**
886
1131
  * List latest blocks
887
1132
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -890,7 +1135,7 @@ declare class EvmBlocksService {
890
1135
  */
891
1136
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
1137
  /**
893
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1138
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
1139
  */
895
1140
  chainId: string;
896
1141
  /**
@@ -910,7 +1155,7 @@ declare class EvmBlocksService {
910
1155
  */
911
1156
  getBlock({ chainId, blockId, }: {
912
1157
  /**
913
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1158
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
1159
  */
915
1160
  chainId: string;
916
1161
  /**
@@ -1004,29 +1249,153 @@ type ChainInfo = {
1004
1249
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1005
1250
  };
1006
1251
 
1252
+ type ListAddressChainsResponse = {
1253
+ indexedChains?: Array<ChainInfo>;
1254
+ unindexedChains?: Array<string>;
1255
+ };
1256
+
1007
1257
  type ListChainsResponse = {
1008
1258
  chains: Array<ChainInfo>;
1009
1259
  };
1010
1260
 
1011
- declare enum NetworkType {
1012
- MAINNET = "mainnet",
1013
- TESTNET = "testnet"
1261
+ /**
1262
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1263
+ */
1264
+ declare enum TransactionMethodType {
1265
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1266
+ CONTRACT_CALL = "CONTRACT_CALL",
1267
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1268
+ }
1269
+
1270
+ type Method = {
1271
+ callType: TransactionMethodType;
1272
+ /**
1273
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1274
+ */
1275
+ methodHash: string;
1276
+ /**
1277
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1278
+ */
1279
+ methodName?: string;
1280
+ };
1281
+
1282
+ type RichAddress = {
1283
+ /**
1284
+ * The contract name.
1285
+ */
1286
+ name?: string;
1287
+ /**
1288
+ * The contract symbol.
1289
+ */
1290
+ symbol?: string;
1291
+ /**
1292
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1293
+ */
1294
+ decimals?: number;
1295
+ /**
1296
+ * The logo uri for the address.
1297
+ */
1298
+ logoUri?: string;
1299
+ /**
1300
+ * A wallet or contract address in mixed-case checksum encoding.
1301
+ */
1302
+ address: string;
1303
+ };
1304
+
1305
+ type NativeTransaction = {
1306
+ /**
1307
+ * The block number on the chain.
1308
+ */
1309
+ blockNumber: string;
1310
+ /**
1311
+ * The block finality timestamp.
1312
+ */
1313
+ blockTimestamp: number;
1314
+ /**
1315
+ * The block hash identifier.
1316
+ */
1317
+ blockHash: string;
1318
+ /**
1319
+ * The EVM chain ID on which the transaction occured.
1320
+ */
1321
+ chainId: string;
1322
+ /**
1323
+ * The index at which the transaction occured in the block (0-indexed).
1324
+ */
1325
+ blockIndex: number;
1326
+ /**
1327
+ * The transaction hash identifier.
1328
+ */
1329
+ txHash: string;
1330
+ /**
1331
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1332
+ */
1333
+ txStatus: string;
1334
+ /**
1335
+ * The transaction type.
1336
+ */
1337
+ txType: number;
1338
+ /**
1339
+ * The gas limit set for the transaction.
1340
+ */
1341
+ gasLimit: string;
1342
+ /**
1343
+ * The amount of gas used.
1344
+ */
1345
+ gasUsed: string;
1346
+ /**
1347
+ * The gas price denominated by the number of decimals of the native token.
1348
+ */
1349
+ gasPrice: string;
1350
+ /**
1351
+ * The nonce used by the sender of the transaction.
1352
+ */
1353
+ nonce: string;
1354
+ from: RichAddress;
1355
+ to: RichAddress;
1356
+ method?: Method;
1357
+ value: string;
1358
+ };
1359
+
1360
+ type ListNativeTransactionsResponse = {
1361
+ /**
1362
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1363
+ */
1364
+ nextPageToken?: string;
1365
+ transactions: Array<NativeTransaction>;
1366
+ };
1367
+
1368
+ declare enum TransactionStatus {
1369
+ FAILED = "failed",
1370
+ SUCCESS = "success"
1014
1371
  }
1015
1372
 
1016
1373
  declare class EvmChainsService {
1017
1374
  readonly httpRequest: BaseHttpRequest;
1018
1375
  constructor(httpRequest: BaseHttpRequest);
1376
+ /**
1377
+ * List all chains associated with a given address
1378
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1379
+ * @returns ListAddressChainsResponse Successful response
1380
+ * @throws ApiError
1381
+ */
1382
+ listAddressChains({ address, }: {
1383
+ /**
1384
+ * A wallet address.
1385
+ */
1386
+ address: string;
1387
+ }): CancelablePromise<ListAddressChainsResponse>;
1019
1388
  /**
1020
1389
  * List chains
1021
- * Lists the supported EVM-compatible chains. Filterable by network.
1390
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1022
1391
  * @returns ListChainsResponse Successful response
1023
1392
  * @throws ApiError
1024
1393
  */
1025
1394
  supportedChains({ network, feature, }: {
1026
1395
  /**
1027
- * mainnet or testnet.
1396
+ * Either mainnet or testnet/fuji.
1028
1397
  */
1029
- network?: NetworkType;
1398
+ network?: Network;
1030
1399
  /**
1031
1400
  * Filter by feature.
1032
1401
  */
@@ -1034,16 +1403,78 @@ declare class EvmChainsService {
1034
1403
  }): CancelablePromise<ListChainsResponse>;
1035
1404
  /**
1036
1405
  * Get chain information
1037
- * Gets chain information for the EVM-compatible chain if supported by the api.
1406
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1038
1407
  * @returns GetChainResponse Successful response
1039
1408
  * @throws ApiError
1040
1409
  */
1041
1410
  getChainInfo({ chainId, }: {
1042
1411
  /**
1043
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1412
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1044
1413
  */
1045
1414
  chainId: string;
1046
1415
  }): CancelablePromise<GetChainResponse>;
1416
+ /**
1417
+ * @deprecated
1418
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1419
+ *
1420
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1421
+ * @returns ListAddressChainsResponse Successful response
1422
+ * @throws ApiError
1423
+ */
1424
+ getAddressChains({ address, }: {
1425
+ /**
1426
+ * A wallet address.
1427
+ */
1428
+ address: string;
1429
+ }): CancelablePromise<ListAddressChainsResponse>;
1430
+ /**
1431
+ * @deprecated
1432
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1433
+ *
1434
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1435
+ * @returns ListNativeTransactionsResponse Successful response
1436
+ * @throws ApiError
1437
+ */
1438
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1439
+ /**
1440
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1441
+ */
1442
+ pageToken?: string;
1443
+ /**
1444
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1445
+ */
1446
+ pageSize?: number;
1447
+ /**
1448
+ * Either mainnet or testnet/fuji.
1449
+ */
1450
+ network?: Network;
1451
+ /**
1452
+ * A status filter for listed transactions.
1453
+ */
1454
+ status?: TransactionStatus;
1455
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1456
+ /**
1457
+ * @deprecated
1458
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1459
+ *
1460
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1461
+ * @returns ListEvmBlocksResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1465
+ /**
1466
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1467
+ */
1468
+ pageToken?: string;
1469
+ /**
1470
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1471
+ */
1472
+ pageSize?: number;
1473
+ /**
1474
+ * Either mainnet or testnet/fuji.
1475
+ */
1476
+ network?: Network;
1477
+ }): CancelablePromise<ListEvmBlocksResponse>;
1047
1478
  }
1048
1479
 
1049
1480
  type ImageAsset = {
@@ -1335,7 +1766,7 @@ declare class EvmContractsService {
1335
1766
  */
1336
1767
  getContractMetadata({ chainId, address, }: {
1337
1768
  /**
1338
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1769
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1339
1770
  */
1340
1771
  chainId: string;
1341
1772
  /**
@@ -1351,7 +1782,7 @@ declare class EvmContractsService {
1351
1782
  */
1352
1783
  updateContractInfo({ chainId, address, requestBody, }: {
1353
1784
  /**
1354
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1785
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1355
1786
  */
1356
1787
  chainId: string;
1357
1788
  /**
@@ -1378,29 +1809,6 @@ declare namespace Erc1155Token {
1378
1809
  }
1379
1810
  }
1380
1811
 
1381
- type RichAddress = {
1382
- /**
1383
- * The contract name.
1384
- */
1385
- name?: string;
1386
- /**
1387
- * The contract symbol.
1388
- */
1389
- symbol?: string;
1390
- /**
1391
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1392
- */
1393
- decimals?: number;
1394
- /**
1395
- * The logo uri for the address.
1396
- */
1397
- logoUri?: string;
1398
- /**
1399
- * A wallet or contract address in mixed-case checksum encoding.
1400
- */
1401
- address: string;
1402
- };
1403
-
1404
1812
  type Erc1155TransferDetails = {
1405
1813
  from: RichAddress;
1406
1814
  to: RichAddress;
@@ -1485,27 +1893,6 @@ type Erc721TransferDetails = {
1485
1893
  erc721Token: Erc721Token;
1486
1894
  };
1487
1895
 
1488
- /**
1489
- * 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.
1490
- */
1491
- declare enum TransactionMethodType {
1492
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1493
- CONTRACT_CALL = "CONTRACT_CALL",
1494
- CONTRACT_CREATION = "CONTRACT_CREATION"
1495
- }
1496
-
1497
- type Method = {
1498
- callType: TransactionMethodType;
1499
- /**
1500
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1501
- */
1502
- methodHash: string;
1503
- /**
1504
- * 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'.
1505
- */
1506
- methodName?: string;
1507
- };
1508
-
1509
1896
  type FullNativeTransactionDetails = {
1510
1897
  /**
1511
1898
  * The block number on the chain.
@@ -1519,6 +1906,10 @@ type FullNativeTransactionDetails = {
1519
1906
  * The block hash identifier.
1520
1907
  */
1521
1908
  blockHash: string;
1909
+ /**
1910
+ * The EVM chain ID on which the transaction occured.
1911
+ */
1912
+ chainId: string;
1522
1913
  /**
1523
1914
  * The index at which the transaction occured in the block (0-indexed).
1524
1915
  */
@@ -1782,65 +2173,6 @@ type ListInternalTransactionsResponse = {
1782
2173
  transactions: Array<InternalTransaction>;
1783
2174
  };
1784
2175
 
1785
- type NativeTransaction = {
1786
- /**
1787
- * The block number on the chain.
1788
- */
1789
- blockNumber: string;
1790
- /**
1791
- * The block finality timestamp.
1792
- */
1793
- blockTimestamp: number;
1794
- /**
1795
- * The block hash identifier.
1796
- */
1797
- blockHash: string;
1798
- /**
1799
- * The index at which the transaction occured in the block (0-indexed).
1800
- */
1801
- blockIndex: number;
1802
- /**
1803
- * The transaction hash identifier.
1804
- */
1805
- txHash: string;
1806
- /**
1807
- * The transaction status, which is either 0 (failed) or 1 (successful).
1808
- */
1809
- txStatus: string;
1810
- /**
1811
- * The transaction type.
1812
- */
1813
- txType: number;
1814
- /**
1815
- * The gas limit set for the transaction.
1816
- */
1817
- gasLimit: string;
1818
- /**
1819
- * The amount of gas used.
1820
- */
1821
- gasUsed: string;
1822
- /**
1823
- * The gas price denominated by the number of decimals of the native token.
1824
- */
1825
- gasPrice: string;
1826
- /**
1827
- * The nonce used by the sender of the transaction.
1828
- */
1829
- nonce: string;
1830
- from: RichAddress;
1831
- to: RichAddress;
1832
- method?: Method;
1833
- value: string;
1834
- };
1835
-
1836
- type ListNativeTransactionsResponse = {
1837
- /**
1838
- * 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.
1839
- */
1840
- nextPageToken?: string;
1841
- transactions: Array<NativeTransaction>;
1842
- };
1843
-
1844
2176
  type TransactionDetails = {
1845
2177
  /**
1846
2178
  * The native (top-level) transaction details.
@@ -1885,14 +2217,33 @@ declare enum SortOrder {
1885
2217
  DESC = "desc"
1886
2218
  }
1887
2219
 
1888
- declare enum TransactionStatus {
1889
- FAILED = "failed",
1890
- SUCCESS = "success"
1891
- }
1892
-
1893
2220
  declare class EvmTransactionsService {
1894
2221
  readonly httpRequest: BaseHttpRequest;
1895
2222
  constructor(httpRequest: BaseHttpRequest);
2223
+ /**
2224
+ * List the latest transactions across all supported EVM chains
2225
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2226
+ * @returns ListNativeTransactionsResponse Successful response
2227
+ * @throws ApiError
2228
+ */
2229
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2230
+ /**
2231
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2232
+ */
2233
+ pageToken?: string;
2234
+ /**
2235
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2236
+ */
2237
+ pageSize?: number;
2238
+ /**
2239
+ * Either mainnet or testnet/fuji.
2240
+ */
2241
+ network?: Network;
2242
+ /**
2243
+ * A status filter for listed transactions.
2244
+ */
2245
+ status?: TransactionStatus;
2246
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1896
2247
  /**
1897
2248
  * Get deployment transaction
1898
2249
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -1901,7 +2252,7 @@ declare class EvmTransactionsService {
1901
2252
  */
1902
2253
  getDeploymentTransaction({ chainId, address, currency, }: {
1903
2254
  /**
1904
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2255
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
2256
  */
1906
2257
  chainId: string;
1907
2258
  /**
@@ -1921,7 +2272,7 @@ declare class EvmTransactionsService {
1921
2272
  */
1922
2273
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1923
2274
  /**
1924
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2275
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
2276
  */
1926
2277
  chainId: string;
1927
2278
  /**
@@ -1945,7 +2296,7 @@ declare class EvmTransactionsService {
1945
2296
  */
1946
2297
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1947
2298
  /**
1948
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2299
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1949
2300
  */
1950
2301
  chainId: string;
1951
2302
  /**
@@ -1979,7 +2330,7 @@ declare class EvmTransactionsService {
1979
2330
  */
1980
2331
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1981
2332
  /**
1982
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2333
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1983
2334
  */
1984
2335
  chainId: string;
1985
2336
  /**
@@ -2015,7 +2366,7 @@ declare class EvmTransactionsService {
2015
2366
  */
2016
2367
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2017
2368
  /**
2018
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2369
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2019
2370
  */
2020
2371
  chainId: string;
2021
2372
  /**
@@ -2047,7 +2398,7 @@ declare class EvmTransactionsService {
2047
2398
  */
2048
2399
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2049
2400
  /**
2050
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2401
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2051
2402
  */
2052
2403
  chainId: string;
2053
2404
  /**
@@ -2079,7 +2430,7 @@ declare class EvmTransactionsService {
2079
2430
  */
2080
2431
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2081
2432
  /**
2082
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2433
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2083
2434
  */
2084
2435
  chainId: string;
2085
2436
  /**
@@ -2111,7 +2462,7 @@ declare class EvmTransactionsService {
2111
2462
  */
2112
2463
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2113
2464
  /**
2114
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2465
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2115
2466
  */
2116
2467
  chainId: string;
2117
2468
  /**
@@ -2145,7 +2496,7 @@ declare class EvmTransactionsService {
2145
2496
  */
2146
2497
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2147
2498
  /**
2148
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2499
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2149
2500
  */
2150
2501
  chainId: string;
2151
2502
  /**
@@ -2177,7 +2528,7 @@ declare class EvmTransactionsService {
2177
2528
  */
2178
2529
  getTransaction({ chainId, txHash, }: {
2179
2530
  /**
2180
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2531
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2181
2532
  */
2182
2533
  chainId: string;
2183
2534
  /**
@@ -2191,15 +2542,23 @@ declare class EvmTransactionsService {
2191
2542
  * @returns ListNativeTransactionsResponse Successful response
2192
2543
  * @throws ApiError
2193
2544
  */
2194
- getTransactionsForBlock({ chainId, blockId, }: {
2545
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2195
2546
  /**
2196
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2547
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2197
2548
  */
2198
2549
  chainId: string;
2199
2550
  /**
2200
2551
  * A block identifier which is either a block number or the block hash.
2201
2552
  */
2202
2553
  blockId: string;
2554
+ /**
2555
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2556
+ */
2557
+ pageToken?: string;
2558
+ /**
2559
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2560
+ */
2561
+ pageSize?: number;
2203
2562
  }): CancelablePromise<ListNativeTransactionsResponse>;
2204
2563
  /**
2205
2564
  * List latest transactions
@@ -2209,7 +2568,7 @@ declare class EvmTransactionsService {
2209
2568
  */
2210
2569
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2211
2570
  /**
2212
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2571
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2213
2572
  */
2214
2573
  chainId: string;
2215
2574
  /**
@@ -2262,7 +2621,7 @@ declare class NfTsService {
2262
2621
  */
2263
2622
  reindexNft({ chainId, address, tokenId, }: {
2264
2623
  /**
2265
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2624
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2266
2625
  */
2267
2626
  chainId: string;
2268
2627
  /**
@@ -2282,7 +2641,7 @@ declare class NfTsService {
2282
2641
  */
2283
2642
  listTokens({ chainId, address, pageToken, pageSize, }: {
2284
2643
  /**
2285
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2644
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2286
2645
  */
2287
2646
  chainId: string;
2288
2647
  /**
@@ -2306,7 +2665,7 @@ declare class NfTsService {
2306
2665
  */
2307
2666
  getTokenDetails({ chainId, address, tokenId, }: {
2308
2667
  /**
2309
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2668
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2310
2669
  */
2311
2670
  chainId: string;
2312
2671
  /**
@@ -2320,6 +2679,108 @@ declare class NfTsService {
2320
2679
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2321
2680
  }
2322
2681
 
2682
+ type AccessRequest = {
2683
+ /**
2684
+ * The email address to send the access token to
2685
+ */
2686
+ email: string;
2687
+ /**
2688
+ * The captcha to verify the user
2689
+ */
2690
+ captcha: string;
2691
+ };
2692
+
2693
+ type NotificationsResponse = {
2694
+ message: string;
2695
+ };
2696
+
2697
+ type SubscribeRequest = {
2698
+ /**
2699
+ * The access token to use for authentication
2700
+ */
2701
+ accessToken: string;
2702
+ /**
2703
+ * The node ID to subscribe to
2704
+ */
2705
+ nodeId: string;
2706
+ /**
2707
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
2708
+ */
2709
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
2710
+ };
2711
+
2712
+ type SubscriptionsRequest = {
2713
+ /**
2714
+ * The access token to use for authentication
2715
+ */
2716
+ accessToken: string;
2717
+ };
2718
+
2719
+ type SubscriptionsResponse = {
2720
+ /**
2721
+ * The email address of the user
2722
+ */
2723
+ email: string;
2724
+ /**
2725
+ * The subscriptions of the user
2726
+ */
2727
+ subscriptions: Record<string, {
2728
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
2729
+ }>;
2730
+ };
2731
+
2732
+ type UnsubscribeRequest = {
2733
+ /**
2734
+ * The access token to use for authentication
2735
+ */
2736
+ accessToken: string;
2737
+ /**
2738
+ * The node ID to subscribe to
2739
+ */
2740
+ nodeId: string;
2741
+ };
2742
+
2743
+ declare class NotificationsService {
2744
+ readonly httpRequest: BaseHttpRequest;
2745
+ constructor(httpRequest: BaseHttpRequest);
2746
+ /**
2747
+ * Access Notifications
2748
+ * Access notifications.
2749
+ * @returns NotificationsResponse Successful response
2750
+ * @throws ApiError
2751
+ */
2752
+ access({ requestBody, }: {
2753
+ requestBody: AccessRequest;
2754
+ }): CancelablePromise<NotificationsResponse>;
2755
+ /**
2756
+ * Subscribe to Notifications
2757
+ * Subscribe to receive notifications.
2758
+ * @returns NotificationsResponse Successful response
2759
+ * @throws ApiError
2760
+ */
2761
+ subscribe({ requestBody, }: {
2762
+ requestBody: SubscribeRequest;
2763
+ }): CancelablePromise<NotificationsResponse>;
2764
+ /**
2765
+ * Unsubscribe from Notifications
2766
+ * Unsubscribe from receiving notifications.
2767
+ * @returns NotificationsResponse Successful response
2768
+ * @throws ApiError
2769
+ */
2770
+ unsubscribe({ requestBody, }: {
2771
+ requestBody: UnsubscribeRequest;
2772
+ }): CancelablePromise<NotificationsResponse>;
2773
+ /**
2774
+ * Get Subscriptions
2775
+ * Get subscriptions.
2776
+ * @returns SubscriptionsResponse Successful response
2777
+ * @throws ApiError
2778
+ */
2779
+ subscriptions({ requestBody, }: {
2780
+ requestBody: SubscriptionsRequest;
2781
+ }): CancelablePromise<SubscriptionsResponse>;
2782
+ }
2783
+
2323
2784
  type EvmNetworkOptions = {
2324
2785
  addresses: Array<string>;
2325
2786
  includeChains: Array<string>;
@@ -2331,16 +2792,16 @@ declare enum EVMOperationType {
2331
2792
 
2332
2793
  type CreateEvmTransactionExportRequest = {
2333
2794
  type: EVMOperationType;
2334
- firstDate: string;
2335
- lastDate: string;
2795
+ firstDate?: string;
2796
+ lastDate?: string;
2336
2797
  /**
2337
2798
  * @deprecated
2338
2799
  */
2339
- startDate: string;
2800
+ startDate?: string;
2340
2801
  /**
2341
2802
  * @deprecated
2342
2803
  */
2343
- endDate: string;
2804
+ endDate?: string;
2344
2805
  options: EvmNetworkOptions;
2345
2806
  };
2346
2807
 
@@ -2353,21 +2814,21 @@ declare enum PrimaryNetworkOperationType {
2353
2814
  type PrimaryNetworkOptions = {
2354
2815
  addresses?: Array<string>;
2355
2816
  cChainEvmAddresses?: Array<string>;
2356
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2817
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2357
2818
  };
2358
2819
 
2359
2820
  type CreatePrimaryNetworkTransactionExportRequest = {
2360
2821
  type: PrimaryNetworkOperationType;
2361
- firstDate: string;
2362
- lastDate: string;
2822
+ firstDate?: string;
2823
+ lastDate?: string;
2363
2824
  /**
2364
2825
  * @deprecated
2365
2826
  */
2366
- startDate: string;
2827
+ startDate?: string;
2367
2828
  /**
2368
2829
  * @deprecated
2369
2830
  */
2370
- endDate: string;
2831
+ endDate?: string;
2371
2832
  options: PrimaryNetworkOptions;
2372
2833
  };
2373
2834
 
@@ -2445,8 +2906,10 @@ declare enum BlockchainIds {
2445
2906
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2446
2907
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2447
2908
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2909
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2448
2910
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2449
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2911
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2912
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2450
2913
  }
2451
2914
 
2452
2915
  type ChainAddressChainIdMap = {
@@ -2470,16 +2933,31 @@ type DelegatorsDetails = {
2470
2933
  };
2471
2934
 
2472
2935
  type StakingDistribution = {
2936
+ /**
2937
+ * AvalancheGo version for the validator node.
2938
+ */
2473
2939
  version: string;
2940
+ /**
2941
+ * The total amount staked by validators using this version.
2942
+ */
2474
2943
  amountStaked: string;
2944
+ /**
2945
+ * The number of validators using this version.
2946
+ */
2475
2947
  validatorCount: number;
2476
2948
  };
2477
2949
 
2478
2950
  type ValidatorsDetails = {
2479
2951
  validatorCount: number;
2480
2952
  totalAmountStaked: string;
2953
+ /**
2954
+ * Total potential rewards from currently active validations and delegations.
2955
+ */
2481
2956
  estimatedAnnualStakingReward: string;
2482
2957
  stakingDistributionByVersion: Array<StakingDistribution>;
2958
+ /**
2959
+ * Ratio of total active stake amount to the current supply.
2960
+ */
2483
2961
  stakingRatio: string;
2484
2962
  };
2485
2963
 
@@ -2531,7 +3009,13 @@ type CompletedDelegatorDetails = {
2531
3009
  delegationFee: string;
2532
3010
  startTimestamp: number;
2533
3011
  endTimestamp: number;
3012
+ /**
3013
+ * Total rewards distributed for the successful delegation.
3014
+ */
2534
3015
  grossReward: string;
3016
+ /**
3017
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3018
+ */
2535
3019
  netReward: string;
2536
3020
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2537
3021
  };
@@ -2549,7 +3033,13 @@ type PendingDelegatorDetails = {
2549
3033
  delegationFee: string;
2550
3034
  startTimestamp: number;
2551
3035
  endTimestamp: number;
3036
+ /**
3037
+ * Estimated total rewards that will be distributed for the successful delegation.
3038
+ */
2552
3039
  estimatedGrossReward: string;
3040
+ /**
3041
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3042
+ */
2553
3043
  estimatedNetReward: string;
2554
3044
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2555
3045
  };
@@ -2570,10 +3060,61 @@ type ListDelegatorDetailsResponse = {
2570
3060
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2571
3061
  };
2572
3062
 
3063
+ type BalanceOwner = {
3064
+ addresses: Array<string>;
3065
+ threshold: number;
3066
+ };
3067
+
3068
+ type L1ValidatorDetailsFull = {
3069
+ /**
3070
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3071
+ */
3072
+ validationId: string;
3073
+ nodeId: string;
3074
+ subnetId: string;
3075
+ /**
3076
+ * 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
3077
+ */
3078
+ weight: number;
3079
+ /**
3080
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3081
+ */
3082
+ remainingBalance: number;
3083
+ /**
3084
+ * The timestamp of the transaction which created this L1 validator
3085
+ */
3086
+ creationTimestamp: number;
3087
+ blsCredentials: Record<string, any>;
3088
+ /**
3089
+ * The L1 validator owner's balance, returned after it's disabled or removed
3090
+ */
3091
+ remainingBalanceOwner: BalanceOwner;
3092
+ /**
3093
+ * Owner ddresses details which can disable or remove the L1 validator
3094
+ */
3095
+ deactivationOwner: BalanceOwner;
3096
+ };
3097
+
3098
+ type ListL1ValidatorsResponse = {
3099
+ /**
3100
+ * 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.
3101
+ */
3102
+ nextPageToken?: string;
3103
+ /**
3104
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3105
+ */
3106
+ validators: Array<L1ValidatorDetailsFull>;
3107
+ };
3108
+
2573
3109
  type BlockchainInfo = {
2574
3110
  blockchainId: string;
2575
3111
  };
2576
3112
 
3113
+ type L1ValidatorManagerDetails = {
3114
+ blockchainId: string;
3115
+ contractAddress: string;
3116
+ };
3117
+
2577
3118
  type SubnetOwnershipInfo = {
2578
3119
  /**
2579
3120
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2612,6 +3153,18 @@ type Subnet = {
2612
3153
  * Latest subnet owner details for this Subnet.
2613
3154
  */
2614
3155
  subnetOwnershipInfo: SubnetOwnershipInfo;
3156
+ /**
3157
+ * Whether the subnet is an L1 or not.
3158
+ */
3159
+ isL1: boolean;
3160
+ /**
3161
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3162
+ */
3163
+ l1ConversionTransactionHash?: string;
3164
+ /**
3165
+ * L1 validator manager details.
3166
+ */
3167
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2615
3168
  blockchains: Array<BlockchainInfo>;
2616
3169
  };
2617
3170
 
@@ -2659,6 +3212,9 @@ type ActiveValidatorDetails = {
2659
3212
  nodeId: string;
2660
3213
  subnetId: string;
2661
3214
  amountStaked: string;
3215
+ /**
3216
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3217
+ */
2662
3218
  delegationFee?: string;
2663
3219
  startTimestamp: number;
2664
3220
  endTimestamp: number;
@@ -2666,12 +3222,30 @@ type ActiveValidatorDetails = {
2666
3222
  * Present for AddPermissionlessValidatorTx
2667
3223
  */
2668
3224
  blsCredentials?: BlsCredentials;
3225
+ /**
3226
+ * The percentage of this validator's stake amount to the total active stake.
3227
+ */
2669
3228
  stakePercentage: number;
3229
+ /**
3230
+ * The number of delegators linked to the validator.
3231
+ */
2670
3232
  delegatorCount: number;
3233
+ /**
3234
+ * The total amount in nAVAX delegated to the validator.
3235
+ */
2671
3236
  amountDelegated?: string;
3237
+ /**
3238
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3239
+ */
2672
3240
  uptimePerformance: number;
2673
3241
  avalancheGoVersion?: string;
3242
+ /**
3243
+ * The amount of stake in nAVAX that can be delegated to this validator.
3244
+ */
2674
3245
  delegationCapacity?: string;
3246
+ /**
3247
+ * Estimated rewards for the validator if the validation is successful.
3248
+ */
2675
3249
  potentialRewards: Rewards;
2676
3250
  validationStatus: ActiveValidatorDetails.validationStatus;
2677
3251
  validatorHealth: ValidatorHealthDetails;
@@ -2687,6 +3261,9 @@ type CompletedValidatorDetails = {
2687
3261
  nodeId: string;
2688
3262
  subnetId: string;
2689
3263
  amountStaked: string;
3264
+ /**
3265
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3266
+ */
2690
3267
  delegationFee?: string;
2691
3268
  startTimestamp: number;
2692
3269
  endTimestamp: number;
@@ -2710,6 +3287,9 @@ type PendingValidatorDetails = {
2710
3287
  nodeId: string;
2711
3288
  subnetId: string;
2712
3289
  amountStaked: string;
3290
+ /**
3291
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3292
+ */
2713
3293
  delegationFee?: string;
2714
3294
  startTimestamp: number;
2715
3295
  endTimestamp: number;
@@ -2730,6 +3310,9 @@ type RemovedValidatorDetails = {
2730
3310
  nodeId: string;
2731
3311
  subnetId: string;
2732
3312
  amountStaked: string;
3313
+ /**
3314
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3315
+ */
2733
3316
  delegationFee?: string;
2734
3317
  startTimestamp: number;
2735
3318
  endTimestamp: number;
@@ -2737,7 +3320,13 @@ type RemovedValidatorDetails = {
2737
3320
  * Present for AddPermissionlessValidatorTx
2738
3321
  */
2739
3322
  blsCredentials?: BlsCredentials;
3323
+ /**
3324
+ * The transaction hash that removed the permissioned subnet validator.
3325
+ */
2740
3326
  removeTxHash: string;
3327
+ /**
3328
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3329
+ */
2741
3330
  removeTimestamp: number;
2742
3331
  validationStatus: RemovedValidatorDetails.validationStatus;
2743
3332
  };
@@ -2758,11 +3347,6 @@ type ListValidatorDetailsResponse = {
2758
3347
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2759
3348
  };
2760
3349
 
2761
- declare enum Network {
2762
- MAINNET = "mainnet",
2763
- FUJI = "fuji"
2764
- }
2765
-
2766
3350
  declare enum SortByOption {
2767
3351
  BLOCK_INDEX = "blockIndex",
2768
3352
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2822,6 +3406,7 @@ type XChainAssetDetails = {
2822
3406
  declare enum XChainId {
2823
3407
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2824
3408
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3409
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2825
3410
  X_CHAIN = "x-chain"
2826
3411
  }
2827
3412
 
@@ -2840,7 +3425,7 @@ declare class PrimaryNetworkService {
2840
3425
  */
2841
3426
  blockchainId: XChainId;
2842
3427
  /**
2843
- * Either mainnet or a testnet.
3428
+ * Either mainnet or testnet/fuji.
2844
3429
  */
2845
3430
  network: Network;
2846
3431
  /**
@@ -2860,7 +3445,7 @@ declare class PrimaryNetworkService {
2860
3445
  */
2861
3446
  addresses: string;
2862
3447
  /**
2863
- * Either mainnet or a testnet.
3448
+ * Either mainnet or testnet/fuji.
2864
3449
  */
2865
3450
  network: Network;
2866
3451
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2872,7 +3457,7 @@ declare class PrimaryNetworkService {
2872
3457
  */
2873
3458
  getNetworkDetails({ network, }: {
2874
3459
  /**
2875
- * Either mainnet or a testnet.
3460
+ * Either mainnet or testnet/fuji.
2876
3461
  */
2877
3462
  network: Network;
2878
3463
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2884,7 +3469,7 @@ declare class PrimaryNetworkService {
2884
3469
  */
2885
3470
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2886
3471
  /**
2887
- * Either mainnet or a testnet.
3472
+ * Either mainnet or testnet/fuji.
2888
3473
  */
2889
3474
  network: Network;
2890
3475
  /**
@@ -2908,7 +3493,7 @@ declare class PrimaryNetworkService {
2908
3493
  */
2909
3494
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2910
3495
  /**
2911
- * Either mainnet or a testnet.
3496
+ * Either mainnet or testnet/fuji.
2912
3497
  */
2913
3498
  network: Network;
2914
3499
  /**
@@ -2932,7 +3517,7 @@ declare class PrimaryNetworkService {
2932
3517
  */
2933
3518
  getSubnetById({ network, subnetId, }: {
2934
3519
  /**
2935
- * Either mainnet or a testnet.
3520
+ * Either mainnet or testnet/fuji.
2936
3521
  */
2937
3522
  network: Network;
2938
3523
  /**
@@ -2948,7 +3533,7 @@ declare class PrimaryNetworkService {
2948
3533
  */
2949
3534
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2950
3535
  /**
2951
- * Either mainnet or a testnet.
3536
+ * Either mainnet or testnet/fuji.
2952
3537
  */
2953
3538
  network: Network;
2954
3539
  /**
@@ -3022,7 +3607,7 @@ declare class PrimaryNetworkService {
3022
3607
  */
3023
3608
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3024
3609
  /**
3025
- * Either mainnet or a testnet.
3610
+ * Either mainnet or testnet/fuji.
3026
3611
  */
3027
3612
  network: Network;
3028
3613
  /**
@@ -3054,7 +3639,7 @@ declare class PrimaryNetworkService {
3054
3639
  */
3055
3640
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3056
3641
  /**
3057
- * Either mainnet or a testnet.
3642
+ * Either mainnet or testnet/fuji.
3058
3643
  */
3059
3644
  network: Network;
3060
3645
  /**
@@ -3082,14 +3667,49 @@ declare class PrimaryNetworkService {
3082
3667
  */
3083
3668
  nodeIds?: string;
3084
3669
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3670
+ /**
3671
+ * List L1 validators
3672
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3673
+ * @returns ListL1ValidatorsResponse Successful response
3674
+ * @throws ApiError
3675
+ */
3676
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3677
+ /**
3678
+ * Either mainnet or testnet/fuji.
3679
+ */
3680
+ network: Network;
3681
+ /**
3682
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3683
+ */
3684
+ pageToken?: string;
3685
+ /**
3686
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3687
+ */
3688
+ pageSize?: number;
3689
+ /**
3690
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3691
+ */
3692
+ l1ValidationId?: any;
3693
+ includeInactiveL1Validators?: boolean;
3694
+ /**
3695
+ * A valid node ID in format 'NodeID-HASH'.
3696
+ */
3697
+ nodeId?: string;
3698
+ /**
3699
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3700
+ */
3701
+ subnetId?: any;
3702
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3085
3703
  }
3086
3704
 
3087
3705
  declare enum BlockchainId {
3088
3706
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3089
3707
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3090
3708
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3709
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3091
3710
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3092
3711
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3712
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3093
3713
  P_CHAIN = "p-chain",
3094
3714
  X_CHAIN = "x-chain",
3095
3715
  C_CHAIN = "c-chain"
@@ -3126,11 +3746,6 @@ type CChainAtomicBalances = {
3126
3746
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3127
3747
  };
3128
3748
 
3129
- declare enum PrimaryNetwork {
3130
- MAINNET = "mainnet",
3131
- FUJI = "fuji"
3132
- }
3133
-
3134
3749
  declare enum PrimaryNetworkChainName {
3135
3750
  P_CHAIN = "p-chain",
3136
3751
  X_CHAIN = "x-chain",
@@ -3139,7 +3754,7 @@ declare enum PrimaryNetworkChainName {
3139
3754
 
3140
3755
  type PrimaryNetworkChainInfo = {
3141
3756
  chainName: PrimaryNetworkChainName;
3142
- network: PrimaryNetwork;
3757
+ network: Network;
3143
3758
  };
3144
3759
 
3145
3760
  type ListCChainAtomicBalancesResponse = {
@@ -3300,7 +3915,7 @@ declare class PrimaryNetworkBalancesService {
3300
3915
  */
3301
3916
  blockchainId: BlockchainId;
3302
3917
  /**
3303
- * Either mainnet or a testnet.
3918
+ * Either mainnet or testnet/fuji.
3304
3919
  */
3305
3920
  network: Network;
3306
3921
  /**
@@ -3331,6 +3946,8 @@ type GetPrimaryNetworkBlockResponse = {
3331
3946
  txCount: number;
3332
3947
  transactions: Array<string>;
3333
3948
  blockSizeBytes: number;
3949
+ l1ValidatorsAccruedFees?: number;
3950
+ activeL1Validators?: number;
3334
3951
  currentSupply?: string;
3335
3952
  proposerDetails?: ProposerDetails;
3336
3953
  };
@@ -3344,6 +3961,8 @@ type PrimaryNetworkBlock = {
3344
3961
  txCount: number;
3345
3962
  transactions: Array<string>;
3346
3963
  blockSizeBytes: number;
3964
+ l1ValidatorsAccruedFees?: number;
3965
+ activeL1Validators?: number;
3347
3966
  currentSupply?: string;
3348
3967
  proposerDetails?: ProposerDetails;
3349
3968
  };
@@ -3372,7 +3991,7 @@ declare class PrimaryNetworkBlocksService {
3372
3991
  */
3373
3992
  blockchainId: BlockchainId;
3374
3993
  /**
3375
- * Either mainnet or a testnet.
3994
+ * Either mainnet or testnet/fuji.
3376
3995
  */
3377
3996
  network: Network;
3378
3997
  /**
@@ -3386,19 +4005,27 @@ declare class PrimaryNetworkBlocksService {
3386
4005
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3387
4006
  * @throws ApiError
3388
4007
  */
3389
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4008
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3390
4009
  /**
3391
4010
  * A primary network blockchain id or alias.
3392
4011
  */
3393
4012
  blockchainId: BlockchainId;
3394
4013
  /**
3395
- * Either mainnet or a testnet.
4014
+ * Either mainnet or testnet/fuji.
3396
4015
  */
3397
4016
  network: Network;
3398
4017
  /**
3399
4018
  * A primary network (P or X chain) nodeId.
3400
4019
  */
3401
4020
  nodeId: string;
4021
+ /**
4022
+ * Query param for retrieving items after a specific timestamp.
4023
+ */
4024
+ startTimestamp?: number;
4025
+ /**
4026
+ * Query param for retrieving items before a specific timestamp.
4027
+ */
4028
+ endTimestamp?: number;
3402
4029
  /**
3403
4030
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3404
4031
  */
@@ -3414,15 +4041,23 @@ declare class PrimaryNetworkBlocksService {
3414
4041
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3415
4042
  * @throws ApiError
3416
4043
  */
3417
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4044
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3418
4045
  /**
3419
4046
  * A primary network blockchain id or alias.
3420
4047
  */
3421
4048
  blockchainId: BlockchainId;
3422
4049
  /**
3423
- * Either mainnet or a testnet.
4050
+ * Either mainnet or testnet/fuji.
3424
4051
  */
3425
4052
  network: Network;
4053
+ /**
4054
+ * Query param for retrieving items after a specific timestamp.
4055
+ */
4056
+ startTimestamp?: number;
4057
+ /**
4058
+ * Query param for retrieving items before a specific timestamp.
4059
+ */
4060
+ endTimestamp?: number;
3426
4061
  /**
3427
4062
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3428
4063
  */
@@ -3554,7 +4189,7 @@ declare class PrimaryNetworkRewardsService {
3554
4189
  */
3555
4190
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3556
4191
  /**
3557
- * Either mainnet or a testnet.
4192
+ * Either mainnet or testnet/fuji.
3558
4193
  */
3559
4194
  network: Network;
3560
4195
  /**
@@ -3586,7 +4221,7 @@ declare class PrimaryNetworkRewardsService {
3586
4221
  */
3587
4222
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3588
4223
  /**
3589
- * Either mainnet or a testnet.
4224
+ * Either mainnet or testnet/fuji.
3590
4225
  */
3591
4226
  network: Network;
3592
4227
  /**
@@ -3832,6 +4467,28 @@ type ListCChainAtomicTransactionsResponse = {
3832
4467
  chainInfo: PrimaryNetworkChainInfo;
3833
4468
  };
3834
4469
 
4470
+ type L1ValidatorDetailsTransaction = {
4471
+ /**
4472
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4473
+ */
4474
+ validationId: string;
4475
+ nodeId: string;
4476
+ subnetId: string;
4477
+ /**
4478
+ * 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
4479
+ */
4480
+ weight: number;
4481
+ /**
4482
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4483
+ */
4484
+ remainingBalance: number;
4485
+ /**
4486
+ * 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
4487
+ */
4488
+ balanceChange?: number;
4489
+ blsCredentials?: Record<string, any>;
4490
+ };
4491
+
3835
4492
  declare enum PChainTransactionType {
3836
4493
  ADD_VALIDATOR_TX = "AddValidatorTx",
3837
4494
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3848,9 +4505,17 @@ declare enum PChainTransactionType {
3848
4505
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3849
4506
  BASE_TX = "BaseTx",
3850
4507
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4508
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4509
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4510
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4511
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4512
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3851
4513
  UNKNOWN = "UNKNOWN"
3852
4514
  }
3853
4515
 
4516
+ /**
4517
+ * Indicates whether the UTXO is staked or transferable
4518
+ */
3854
4519
  declare enum UtxoType {
3855
4520
  STAKE = "STAKE",
3856
4521
  TRANSFER = "TRANSFER"
@@ -3888,16 +4553,43 @@ type PChainUtxo = {
3888
4553
  assetId: string;
3889
4554
  blockNumber: string;
3890
4555
  blockTimestamp: number;
4556
+ /**
4557
+ * Block height in which the transaction consuming this UTXO was included
4558
+ */
3891
4559
  consumingBlockNumber?: string;
4560
+ /**
4561
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4562
+ */
3892
4563
  consumingBlockTimestamp?: number;
4564
+ /**
4565
+ * Timestamp in seconds after which this UTXO can be consumed
4566
+ */
3893
4567
  platformLocktime?: number;
4568
+ /**
4569
+ * The index of the UTXO in the transaction
4570
+ */
3894
4571
  outputIndex: number;
3895
4572
  rewardType?: RewardType;
4573
+ /**
4574
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4575
+ */
3896
4576
  stakeableLocktime?: number;
3897
4577
  staked?: boolean;
4578
+ /**
4579
+ * The minimum number of signatures required to spend this UTXO
4580
+ */
3898
4581
  threshold?: number;
4582
+ /**
4583
+ * The hash of the transaction that created this UTXO
4584
+ */
3899
4585
  txHash: string;
4586
+ /**
4587
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4588
+ */
3900
4589
  utxoEndTimestamp?: number;
4590
+ /**
4591
+ * Timestamp in seconds at which the staked UTXO was locked.
4592
+ */
3901
4593
  utxoStartTimestamp?: number;
3902
4594
  utxoType: UtxoType;
3903
4595
  };
@@ -3912,9 +4604,18 @@ type PChainTransaction = {
3912
4604
  * The block finality timestamp.
3913
4605
  */
3914
4606
  blockTimestamp: number;
4607
+ /**
4608
+ * The height of the block in which the transaction was included
4609
+ */
3915
4610
  blockNumber: string;
3916
4611
  blockHash: string;
4612
+ /**
4613
+ * The consumed UTXOs of the transaction
4614
+ */
3917
4615
  consumedUtxos: Array<PChainUtxo>;
4616
+ /**
4617
+ * The newly created UTXOs of the transaction
4618
+ */
3918
4619
  emittedUtxos: Array<PChainUtxo>;
3919
4620
  /**
3920
4621
  * Source chain for an atomic transaction.
@@ -3925,17 +4626,21 @@ type PChainTransaction = {
3925
4626
  */
3926
4627
  destinationChain?: string;
3927
4628
  /**
3928
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4629
+ * 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
3929
4630
  */
3930
4631
  value: Array<AssetAmount>;
3931
4632
  /**
3932
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4633
+ * 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
3933
4634
  */
3934
4635
  amountBurned: Array<AssetAmount>;
3935
4636
  /**
3936
4637
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3937
4638
  */
3938
4639
  amountStaked: Array<AssetAmount>;
4640
+ /**
4641
+ * 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.
4642
+ */
4643
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3939
4644
  /**
3940
4645
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3941
4646
  */
@@ -3945,11 +4650,11 @@ type PChainTransaction = {
3945
4650
  */
3946
4651
  endTimestamp?: number;
3947
4652
  /**
3948
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4653
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3949
4654
  */
3950
4655
  delegationFeePercent?: string;
3951
4656
  /**
3952
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4657
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3953
4658
  */
3954
4659
  nodeId?: string;
3955
4660
  /**
@@ -3957,14 +4662,25 @@ type PChainTransaction = {
3957
4662
  */
3958
4663
  subnetId?: string;
3959
4664
  /**
3960
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4665
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4666
+ */
4667
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4668
+ /**
4669
+ * 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
4670
+ */
4671
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4672
+ /**
4673
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3961
4674
  */
3962
4675
  estimatedReward?: string;
4676
+ /**
4677
+ * Reward transaction hash for the completed validations or delegations
4678
+ */
3963
4679
  rewardTxHash?: string;
3964
4680
  rewardAddresses?: Array<string>;
3965
4681
  memo?: string;
3966
4682
  /**
3967
- * Present for RewardValidatorTx
4683
+ * Staking transaction corresponding to the RewardValidatorTx
3968
4684
  */
3969
4685
  stakingTxHash?: string;
3970
4686
  /**
@@ -3972,7 +4688,7 @@ type PChainTransaction = {
3972
4688
  */
3973
4689
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3974
4690
  /**
3975
- * Present for AddPermissionlessValidatorTx
4691
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3976
4692
  */
3977
4693
  blsCredentials?: BlsCredentials;
3978
4694
  };
@@ -4157,6 +4873,11 @@ declare enum PrimaryNetworkTxType {
4157
4873
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4158
4874
  BASE_TX = "BaseTx",
4159
4875
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4876
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4877
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4878
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4879
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4880
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4160
4881
  UNKNOWN = "UNKNOWN",
4161
4882
  CREATE_ASSET_TX = "CreateAssetTx",
4162
4883
  OPERATION_TX = "OperationTx"
@@ -4177,7 +4898,7 @@ declare class PrimaryNetworkTransactionsService {
4177
4898
  */
4178
4899
  blockchainId: BlockchainId;
4179
4900
  /**
4180
- * Either mainnet or a testnet.
4901
+ * Either mainnet or testnet/fuji.
4181
4902
  */
4182
4903
  network: Network;
4183
4904
  /**
@@ -4191,23 +4912,26 @@ declare class PrimaryNetworkTransactionsService {
4191
4912
  *
4192
4913
  * 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.
4193
4914
  *
4915
+ * 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.
4916
+ *
4194
4917
  * 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.
4195
4918
  * @returns any Successful response
4196
4919
  * @throws ApiError
4197
4920
  */
4198
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4199
- /**
4200
- * 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.
4201
- */
4202
- addresses: string;
4921
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4203
4922
  /**
4204
4923
  * A primary network blockchain id or alias.
4205
4924
  */
4206
4925
  blockchainId: BlockchainId;
4207
4926
  /**
4208
- * Either mainnet or a testnet.
4927
+ * Either mainnet or testnet/fuji.
4209
4928
  */
4210
4929
  network: Network;
4930
+ /**
4931
+ * 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.
4932
+ */
4933
+ addresses?: string;
4934
+ l1ValidationId?: string;
4211
4935
  /**
4212
4936
  * Query param for filtering items based on transaction types.
4213
4937
  */
@@ -4245,7 +4969,7 @@ declare class PrimaryNetworkTransactionsService {
4245
4969
  */
4246
4970
  blockchainId: PChainId;
4247
4971
  /**
4248
- * Either mainnet or a testnet.
4972
+ * Either mainnet or testnet/fuji.
4249
4973
  */
4250
4974
  network: Network;
4251
4975
  /**
@@ -4289,7 +5013,7 @@ declare class PrimaryNetworkTransactionsService {
4289
5013
  */
4290
5014
  blockchainId: XChainId;
4291
5015
  /**
4292
- * Either mainnet or a testnet.
5016
+ * Either mainnet or testnet/fuji.
4293
5017
  */
4294
5018
  network: Network;
4295
5019
  /**
@@ -4352,7 +5076,7 @@ declare class PrimaryNetworkUtxOsService {
4352
5076
  */
4353
5077
  blockchainId: BlockchainId;
4354
5078
  /**
4355
- * Either mainnet or a testnet.
5079
+ * Either mainnet or testnet/fuji.
4356
5080
  */
4357
5081
  network: Network;
4358
5082
  /**
@@ -4417,7 +5141,7 @@ declare class PrimaryNetworkVerticesService {
4417
5141
  */
4418
5142
  blockchainId: XChainId;
4419
5143
  /**
4420
- * Either mainnet or a testnet.
5144
+ * Either mainnet or testnet/fuji.
4421
5145
  */
4422
5146
  network: Network;
4423
5147
  /**
@@ -4445,7 +5169,7 @@ declare class PrimaryNetworkVerticesService {
4445
5169
  */
4446
5170
  blockchainId: XChainId;
4447
5171
  /**
4448
- * Either mainnet or a testnet.
5172
+ * Either mainnet or testnet/fuji.
4449
5173
  */
4450
5174
  network: Network;
4451
5175
  }): CancelablePromise<XChainVertex>;
@@ -4465,7 +5189,7 @@ declare class PrimaryNetworkVerticesService {
4465
5189
  */
4466
5190
  blockchainId: XChainId;
4467
5191
  /**
4468
- * Either mainnet or a testnet.
5192
+ * Either mainnet or testnet/fuji.
4469
5193
  */
4470
5194
  network: Network;
4471
5195
  /**
@@ -4483,47 +5207,33 @@ declare class PrimaryNetworkVerticesService {
4483
5207
  }): CancelablePromise<ListXChainVerticesResponse>;
4484
5208
  }
4485
5209
 
4486
- type RpcErrorDto = {
4487
- code: number;
4488
- message: string;
4489
- data?: Record<string, any>;
4490
- };
4491
-
4492
- type RpcErrorResponseDto = {
4493
- jsonrpc: string;
4494
- id?: (string | number);
4495
- error: RpcErrorDto;
4496
- };
4497
-
4498
- type RpcRequestBodyDto = {
4499
- method: string;
4500
- params?: Record<string, any>;
4501
- id?: (string | number);
4502
- jsonrpc?: string;
5210
+ type SignatureAggregationResponse = {
5211
+ signedMessage: string;
4503
5212
  };
4504
5213
 
4505
- type RpcSuccessResponseDto = {
4506
- jsonrpc: string;
4507
- id?: (string | number);
4508
- result: Record<string, any>;
5214
+ type SignatureAggregatorRequest = {
5215
+ message: string;
5216
+ justification?: string;
5217
+ signingSubnetId?: string;
5218
+ quorumPercentage?: number;
4509
5219
  };
4510
5220
 
4511
- declare class RpcService {
5221
+ declare class SignatureAggregatorService {
4512
5222
  readonly httpRequest: BaseHttpRequest;
4513
5223
  constructor(httpRequest: BaseHttpRequest);
4514
5224
  /**
4515
- * Calls JSON-RPC method
4516
- * Calls JSON-RPC method.
4517
- * @returns any Successful response
5225
+ * Aggregate Signatures
5226
+ * Aggregates Signatures for a Warp message from Subnet validators.
5227
+ * @returns SignatureAggregationResponse Successful response
4518
5228
  * @throws ApiError
4519
5229
  */
4520
- rpc({ chainId, requestBody, }: {
5230
+ aggregateSignatures({ network, requestBody, }: {
4521
5231
  /**
4522
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5232
+ * Either mainnet or testnet/fuji.
4523
5233
  */
4524
- chainId: string;
4525
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4526
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5234
+ network: Network;
5235
+ requestBody: SignatureAggregatorRequest;
5236
+ }): CancelablePromise<SignatureAggregationResponse>;
4527
5237
  }
4528
5238
 
4529
5239
  type TeleporterDestinationTransaction = {
@@ -4711,9 +5421,9 @@ declare class TeleporterService {
4711
5421
  */
4712
5422
  from?: string;
4713
5423
  /**
4714
- * mainnet or testnet.
5424
+ * Either mainnet or testnet/fuji.
4715
5425
  */
4716
- network?: NetworkType;
5426
+ network?: Network;
4717
5427
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4718
5428
  /**
4719
5429
  * List teleporter messages by address
@@ -4735,9 +5445,9 @@ declare class TeleporterService {
4735
5445
  */
4736
5446
  pageSize?: number;
4737
5447
  /**
4738
- * mainnet or testnet.
5448
+ * Either mainnet or testnet/fuji.
4739
5449
  */
4740
- network?: NetworkType;
5450
+ network?: Network;
4741
5451
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4742
5452
  }
4743
5453
 
@@ -4771,7 +5481,7 @@ type CreateWebhookRequest = {
4771
5481
  name?: string;
4772
5482
  description?: string;
4773
5483
  /**
4774
- * Whether to include traces in the webhook payload.
5484
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4775
5485
  */
4776
5486
  includeInternalTxs?: boolean;
4777
5487
  /**
@@ -4831,6 +5541,9 @@ type UpdateWebhookRequest = {
4831
5541
  description?: string;
4832
5542
  url?: string;
4833
5543
  status?: WebhookStatusType;
5544
+ /**
5545
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5546
+ */
4834
5547
  includeInternalTxs?: boolean;
4835
5548
  includeLogs?: boolean;
4836
5549
  };
@@ -4982,6 +5695,7 @@ declare class Glacier {
4982
5695
  readonly evmTransactions: EvmTransactionsService;
4983
5696
  readonly healthCheck: HealthCheckService;
4984
5697
  readonly nfTs: NfTsService;
5698
+ readonly notifications: NotificationsService;
4985
5699
  readonly operations: OperationsService;
4986
5700
  readonly primaryNetwork: PrimaryNetworkService;
4987
5701
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4990,7 +5704,7 @@ declare class Glacier {
4990
5704
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4991
5705
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4992
5706
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4993
- readonly rpc: RpcService;
5707
+ readonly signatureAggregator: SignatureAggregatorService;
4994
5708
  readonly teleporter: TeleporterService;
4995
5709
  readonly webhooks: WebhooksService;
4996
5710
  readonly request: BaseHttpRequest;
@@ -5145,4 +5859,4 @@ type Unauthorized = {
5145
5859
  error: string;
5146
5860
  };
5147
5861
 
5148
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5862
+ export { AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };