@avalabs/glacier-sdk 3.1.0-canary.c2c4953.0 → 3.1.0-canary.c4f6e67.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 (75) hide show
  1. package/dist/index.d.ts +733 -55
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessRequest.d.ts +12 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  7. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  8. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  9. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  10. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  11. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  12. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  13. package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
  14. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  15. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  16. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  17. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  18. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  19. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  20. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  21. package/esm/generated/models/IcmRewardDetails.js +1 -0
  22. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  23. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +1 -1
  24. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  25. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  26. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  27. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  28. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  29. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  30. package/esm/generated/models/PChainTransaction.d.ts +20 -8
  31. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  32. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  33. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  34. package/esm/generated/models/PendingIcmMessage.js +1 -0
  35. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  36. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  37. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  38. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  39. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  40. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  41. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  42. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  43. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  44. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  45. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  46. package/esm/generated/models/Subnet.d.ts +4 -0
  47. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  48. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  49. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  50. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  51. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  52. package/esm/generated/models/UtxoType.d.ts +3 -0
  53. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  54. package/esm/generated/services/DataApiUsageMetricsService.d.ts +103 -3
  55. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  56. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  57. package/esm/generated/services/EvmBlocksService.js +1 -1
  58. package/esm/generated/services/EvmChainsService.d.ts +26 -8
  59. package/esm/generated/services/EvmChainsService.js +1 -1
  60. package/esm/generated/services/EvmTransactionsService.d.ts +25 -0
  61. package/esm/generated/services/EvmTransactionsService.js +1 -1
  62. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  63. package/esm/generated/services/HealthCheckService.js +1 -1
  64. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  65. package/esm/generated/services/InterchainMessagingService.js +1 -0
  66. package/esm/generated/services/NotificationsService.d.ts +51 -0
  67. package/esm/generated/services/NotificationsService.js +1 -0
  68. package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
  69. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  70. package/esm/generated/services/TeleporterService.d.ts +12 -6
  71. package/esm/generated/services/WebhooksService.d.ts +3 -3
  72. package/esm/generated/services/WebhooksService.js +1 -1
  73. package/esm/index.d.ts +22 -1
  74. package/esm/index.js +1 -1
  75. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -148,10 +148,27 @@ type LogsResponseDTO = {
148
148
  logs: Array<LogsFormat>;
149
149
  };
150
150
 
151
- declare enum RpcUsageMetricsGroupByEnum {
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet",
155
+ DEVNET = "devnet"
156
+ }
157
+
158
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
152
159
  RPC_METHOD = "rpcMethod",
160
+ REQUEST_PATH = "requestPath",
153
161
  RESPONSE_CODE = "responseCode",
154
- RL_BYPASS_TOKEN = "rlBypassToken"
162
+ COUNTRY = "country",
163
+ CONTINENT = "continent",
164
+ USER_AGENT = "userAgent"
165
+ }
166
+
167
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
168
+ HOURLY = "hourly",
169
+ DAILY = "daily",
170
+ WEEKLY = "weekly",
171
+ MONTHLY = "monthly"
155
172
  }
156
173
 
157
174
  type RpcUsageMetricsValueAggregated = {
@@ -200,6 +217,10 @@ declare namespace RpcUsageMetricsValueAggregated {
200
217
  RPC_METHOD = "rpcMethod",
201
218
  RESPONSE_CODE = "responseCode",
202
219
  RL_BYPASS_TOKEN = "rlBypassToken",
220
+ REQUEST_PATH = "requestPath",
221
+ COUNTRY = "country",
222
+ CONTINENT = "continent",
223
+ USER_AGENT = "userAgent",
203
224
  NONE = "None"
204
225
  }
205
226
  }
@@ -215,20 +236,35 @@ type RpcMetrics = {
215
236
  values: Array<RpcUsageMetricsValueAggregated>;
216
237
  };
217
238
 
218
- type RpcUsageMetricsResponseDTO = {
239
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
219
240
  /**
220
241
  * Duration in which the metrics value is aggregated
221
242
  */
222
243
  aggregateDuration: string;
223
- /**
224
- * ChainId for which the metrics are aggregated
225
- */
226
- chainId: string;
227
244
  /**
228
245
  * Metrics values
229
246
  */
230
247
  metrics: Array<RpcMetrics>;
248
+ /**
249
+ * Network type for which the metrics are aggregated
250
+ */
251
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
231
252
  };
253
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
254
+ /**
255
+ * Network type for which the metrics are aggregated
256
+ */
257
+ enum network {
258
+ MAINNET = "mainnet",
259
+ TESTNET = "testnet"
260
+ }
261
+ }
262
+
263
+ declare enum RpcUsageMetricsGroupByEnum {
264
+ RPC_METHOD = "rpcMethod",
265
+ RESPONSE_CODE = "responseCode",
266
+ RL_BYPASS_TOKEN = "rlBypassToken"
267
+ }
232
268
 
233
269
  declare enum SubnetRpcTimeIntervalGranularity {
234
270
  HOURLY = "hourly",
@@ -237,6 +273,21 @@ declare enum SubnetRpcTimeIntervalGranularity {
237
273
  MONTHLY = "monthly"
238
274
  }
239
275
 
276
+ type SubnetRpcUsageMetricsResponseDTO = {
277
+ /**
278
+ * Duration in which the metrics value is aggregated
279
+ */
280
+ aggregateDuration: string;
281
+ /**
282
+ * Metrics values
283
+ */
284
+ metrics: Array<RpcMetrics>;
285
+ /**
286
+ * ChainId for which the metrics are aggregated
287
+ */
288
+ chainId: string;
289
+ };
290
+
240
291
  declare enum TimeIntervalGranularityExtended {
241
292
  MINUTE = "minute",
242
293
  HOURLY = "hourly",
@@ -433,7 +484,50 @@ declare class DataApiUsageMetricsService {
433
484
  /**
434
485
  * Get usage metrics for the Subnet RPC
435
486
  * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
436
- * @returns RpcUsageMetricsResponseDTO Successful response
487
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
488
+ * @throws ApiError
489
+ */
490
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
491
+ /**
492
+ * Time interval granularity for data aggregation for subnet
493
+ * rpc metrics
494
+ */
495
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
496
+ /**
497
+ * 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.
498
+ */
499
+ startTimestamp?: number;
500
+ /**
501
+ * 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.
502
+ */
503
+ endTimestamp?: number;
504
+ /**
505
+ * Query param for the criterion used for grouping metrics
506
+ */
507
+ groupBy?: RpcUsageMetricsGroupByEnum;
508
+ /**
509
+ * Filter data by chain ID.
510
+ */
511
+ chainId?: string;
512
+ /**
513
+ * Filter data by response status code.
514
+ */
515
+ responseCode?: string;
516
+ /**
517
+ * Filter data by RPC method.
518
+ */
519
+ rpcMethod?: string;
520
+ /**
521
+ * Filter data by Rl Bypass API Token.
522
+ */
523
+ rlBypassApiToken?: string;
524
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
525
+ /**
526
+ * @deprecated
527
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
528
+ *
529
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
530
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
437
531
  * @throws ApiError
438
532
  */
439
533
  getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
@@ -470,7 +564,60 @@ declare class DataApiUsageMetricsService {
470
564
  * Filter data by Rl Bypass API Token.
471
565
  */
472
566
  rlBypassApiToken?: string;
473
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
567
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
568
+ /**
569
+ * Get usage metrics for the Primary Network RPC
570
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
571
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
572
+ * @throws ApiError
573
+ */
574
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
575
+ /**
576
+ * Either mainnet or testnet/fuji.
577
+ */
578
+ network: Network;
579
+ /**
580
+ * Time interval granularity for data aggregation for subnet
581
+ * rpc metrics
582
+ */
583
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
584
+ /**
585
+ * 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.
586
+ */
587
+ startTimestamp?: number;
588
+ /**
589
+ * 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.
590
+ */
591
+ endTimestamp?: number;
592
+ /**
593
+ * Query param for the criterion used for grouping metrics
594
+ */
595
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
596
+ /**
597
+ * Filter data by response status code.
598
+ */
599
+ responseCode?: string;
600
+ /**
601
+ * Filter data by request path.
602
+ */
603
+ requestPath?: string;
604
+ /**
605
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
606
+ */
607
+ country?: string;
608
+ /**
609
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
610
+ */
611
+ continent?: string;
612
+ /**
613
+ * Filter data by User Agent.
614
+ */
615
+ userAgent?: string;
616
+ /**
617
+ * Filter data by RPC method.
618
+ */
619
+ rpcMethod?: string;
620
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
474
621
  }
475
622
 
476
623
  declare class DefaultService {
@@ -669,6 +816,10 @@ type ListErc1155BalancesResponse = {
669
816
  * 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.
670
817
  */
671
818
  nextPageToken?: string;
819
+ /**
820
+ * The native token balance for the address.
821
+ */
822
+ nativeTokenBalance: NativeTokenBalance;
672
823
  /**
673
824
  * The list of ERC-1155 token balances for the address.
674
825
  */
@@ -714,16 +865,16 @@ type Erc20TokenBalance = {
714
865
  */
715
866
  balanceValue?: Money;
716
867
  /**
717
- * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
868
+ * 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.
718
869
  */
719
- tokenReputation: Erc20TokenBalance.tokenReputation | null;
870
+ tokenReputation: Erc20TokenBalance.tokenReputation;
720
871
  };
721
872
  declare namespace Erc20TokenBalance {
722
873
  enum ercType {
723
874
  ERC_20 = "ERC-20"
724
875
  }
725
876
  /**
726
- * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
877
+ * 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.
727
878
  */
728
879
  enum tokenReputation {
729
880
  MALICIOUS = "Malicious",
@@ -736,6 +887,10 @@ type ListErc20BalancesResponse = {
736
887
  * 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.
737
888
  */
738
889
  nextPageToken?: string;
890
+ /**
891
+ * The native token balance for the address.
892
+ */
893
+ nativeTokenBalance: NativeTokenBalance;
739
894
  /**
740
895
  * The list of ERC-20 token balances for the address.
741
896
  */
@@ -747,6 +902,10 @@ type ListErc721BalancesResponse = {
747
902
  * 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.
748
903
  */
749
904
  nextPageToken?: string;
905
+ /**
906
+ * The native token balance for the address.
907
+ */
908
+ nativeTokenBalance: NativeTokenBalance;
750
909
  /**
751
910
  * The list of ERC-721 token balances for the address.
752
911
  */
@@ -1031,6 +1190,26 @@ type ListEvmBlocksResponse = {
1031
1190
  declare class EvmBlocksService {
1032
1191
  readonly httpRequest: BaseHttpRequest;
1033
1192
  constructor(httpRequest: BaseHttpRequest);
1193
+ /**
1194
+ * List latest blocks across all supported EVM chains
1195
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1196
+ * @returns ListEvmBlocksResponse Successful response
1197
+ * @throws ApiError
1198
+ */
1199
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1200
+ /**
1201
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1202
+ */
1203
+ pageToken?: string;
1204
+ /**
1205
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1206
+ */
1207
+ pageSize?: number;
1208
+ /**
1209
+ * Either mainnet or testnet/fuji.
1210
+ */
1211
+ network?: Network;
1212
+ }): CancelablePromise<ListEvmBlocksResponse>;
1034
1213
  /**
1035
1214
  * List latest blocks
1036
1215
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1269,13 +1448,6 @@ type ListNativeTransactionsResponse = {
1269
1448
  transactions: Array<NativeTransaction>;
1270
1449
  };
1271
1450
 
1272
- declare enum Network {
1273
- MAINNET = "mainnet",
1274
- FUJI = "fuji",
1275
- TESTNET = "testnet",
1276
- DEVNET = "devnet"
1277
- }
1278
-
1279
1451
  declare enum TransactionStatus {
1280
1452
  FAILED = "failed",
1281
1453
  SUCCESS = "success"
@@ -1284,9 +1456,21 @@ declare enum TransactionStatus {
1284
1456
  declare class EvmChainsService {
1285
1457
  readonly httpRequest: BaseHttpRequest;
1286
1458
  constructor(httpRequest: BaseHttpRequest);
1459
+ /**
1460
+ * List all chains associated with a given address
1461
+ * 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.
1462
+ * @returns ListAddressChainsResponse Successful response
1463
+ * @throws ApiError
1464
+ */
1465
+ listAddressChains({ address, }: {
1466
+ /**
1467
+ * A wallet address.
1468
+ */
1469
+ address: string;
1470
+ }): CancelablePromise<ListAddressChainsResponse>;
1287
1471
  /**
1288
1472
  * List chains
1289
- * Lists the supported EVM-compatible chains. Filterable by network.
1473
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1290
1474
  * @returns ListChainsResponse Successful response
1291
1475
  * @throws ApiError
1292
1476
  */
@@ -1302,7 +1486,7 @@ declare class EvmChainsService {
1302
1486
  }): CancelablePromise<ListChainsResponse>;
1303
1487
  /**
1304
1488
  * Get chain information
1305
- * Gets chain information for the EVM-compatible chain if supported by the api.
1489
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1306
1490
  * @returns GetChainResponse Successful response
1307
1491
  * @throws ApiError
1308
1492
  */
@@ -1313,8 +1497,10 @@ declare class EvmChainsService {
1313
1497
  chainId: string;
1314
1498
  }): CancelablePromise<GetChainResponse>;
1315
1499
  /**
1316
- * Get chains for address
1317
- * 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.
1500
+ * @deprecated
1501
+ * **[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.
1502
+ *
1503
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1318
1504
  * @returns ListAddressChainsResponse Successful response
1319
1505
  * @throws ApiError
1320
1506
  */
@@ -1325,8 +1511,10 @@ declare class EvmChainsService {
1325
1511
  address: string;
1326
1512
  }): CancelablePromise<ListAddressChainsResponse>;
1327
1513
  /**
1328
- * List latest transactions for all supported EVM chains
1329
- * Lists the latest transactions for all supported EVM chains. Filterable by status.
1514
+ * @deprecated
1515
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1516
+ *
1517
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1330
1518
  * @returns ListNativeTransactionsResponse Successful response
1331
1519
  * @throws ApiError
1332
1520
  */
@@ -1349,8 +1537,10 @@ declare class EvmChainsService {
1349
1537
  status?: TransactionStatus;
1350
1538
  }): CancelablePromise<ListNativeTransactionsResponse>;
1351
1539
  /**
1352
- * List latest blocks for all supported EVM chains
1353
- * Lists the latest blocks for all supported EVM chains. Filterable by network.
1540
+ * @deprecated
1541
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1542
+ *
1543
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1354
1544
  * @returns ListEvmBlocksResponse Successful response
1355
1545
  * @throws ApiError
1356
1546
  */
@@ -2113,6 +2303,30 @@ declare enum SortOrder {
2113
2303
  declare class EvmTransactionsService {
2114
2304
  readonly httpRequest: BaseHttpRequest;
2115
2305
  constructor(httpRequest: BaseHttpRequest);
2306
+ /**
2307
+ * List the latest transactions across all supported EVM chains
2308
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2309
+ * @returns ListNativeTransactionsResponse Successful response
2310
+ * @throws ApiError
2311
+ */
2312
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2313
+ /**
2314
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2315
+ */
2316
+ pageToken?: string;
2317
+ /**
2318
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2319
+ */
2320
+ pageSize?: number;
2321
+ /**
2322
+ * Either mainnet or testnet/fuji.
2323
+ */
2324
+ network?: Network;
2325
+ /**
2326
+ * A status filter for listed transactions.
2327
+ */
2328
+ status?: TransactionStatus;
2329
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2116
2330
  /**
2117
2331
  * Get deployment transaction
2118
2332
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2455,20 +2669,261 @@ declare class EvmTransactionsService {
2455
2669
  }): CancelablePromise<ListNativeTransactionsResponse>;
2456
2670
  }
2457
2671
 
2672
+ type HealthIndicatorResultDto = {
2673
+ /**
2674
+ * Status of the health indicator.
2675
+ */
2676
+ status?: HealthIndicatorResultDto.status;
2677
+ };
2678
+ declare namespace HealthIndicatorResultDto {
2679
+ /**
2680
+ * Status of the health indicator.
2681
+ */
2682
+ enum status {
2683
+ UP = "up",
2684
+ DOWN = "down"
2685
+ }
2686
+ }
2687
+
2688
+ type HealthCheckResultDto = {
2689
+ status?: HealthCheckResultDto.status;
2690
+ info?: any | null;
2691
+ error?: any | null;
2692
+ details?: Record<string, HealthIndicatorResultDto>;
2693
+ };
2694
+ declare namespace HealthCheckResultDto {
2695
+ enum status {
2696
+ ERROR = "error",
2697
+ OK = "ok",
2698
+ SHUTTING_DOWN = "shutting_down"
2699
+ }
2700
+ }
2701
+
2458
2702
  declare class HealthCheckService {
2459
2703
  readonly httpRequest: BaseHttpRequest;
2460
2704
  constructor(httpRequest: BaseHttpRequest);
2461
2705
  /**
2462
2706
  * Get the health of the service
2463
- * @returns any The Health Check is successful
2707
+ * Check the health of the service.
2708
+ * @returns HealthCheckResultDto The health of the service
2464
2709
  * @throws ApiError
2465
2710
  */
2466
- dataHealthCheck(): CancelablePromise<{
2467
- status?: string;
2468
- info?: Record<string, Record<string, string>> | null;
2469
- error?: Record<string, Record<string, string>> | null;
2470
- details?: Record<string, Record<string, string>>;
2471
- }>;
2711
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2712
+ }
2713
+
2714
+ type IcmDestinationTransaction = {
2715
+ txHash: string;
2716
+ timestamp: number;
2717
+ gasSpent: string;
2718
+ rewardRedeemer: string;
2719
+ delivererAddress: string;
2720
+ };
2721
+
2722
+ type IcmReceipt = {
2723
+ receivedMessageNonce: string;
2724
+ relayerRewardAddress: string;
2725
+ };
2726
+
2727
+ type IcmRewardDetails = {
2728
+ /**
2729
+ * A wallet or contract address in mixed-case checksum encoding.
2730
+ */
2731
+ address: string;
2732
+ /**
2733
+ * The contract name.
2734
+ */
2735
+ name: string;
2736
+ /**
2737
+ * The contract symbol.
2738
+ */
2739
+ symbol: string;
2740
+ /**
2741
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2742
+ */
2743
+ decimals: number;
2744
+ /**
2745
+ * The logo uri for the address.
2746
+ */
2747
+ logoUri?: string;
2748
+ ercType: IcmRewardDetails.ercType;
2749
+ /**
2750
+ * The token price, if available.
2751
+ */
2752
+ price?: Money;
2753
+ value: string;
2754
+ };
2755
+ declare namespace IcmRewardDetails {
2756
+ enum ercType {
2757
+ ERC_20 = "ERC-20"
2758
+ }
2759
+ }
2760
+
2761
+ type IcmSourceTransaction = {
2762
+ txHash: string;
2763
+ timestamp: number;
2764
+ gasSpent: string;
2765
+ };
2766
+
2767
+ type DeliveredIcmMessage = {
2768
+ messageId: string;
2769
+ icmContractAddress: string;
2770
+ sourceBlockchainId: string;
2771
+ destinationBlockchainId: string;
2772
+ sourceEvmChainId: string;
2773
+ destinationEvmChainId: string;
2774
+ messageNonce: string;
2775
+ from: string;
2776
+ to: string;
2777
+ data?: string;
2778
+ messageExecuted: boolean;
2779
+ receipts: Array<IcmReceipt>;
2780
+ receiptDelivered: boolean;
2781
+ rewardDetails: IcmRewardDetails;
2782
+ sourceTransaction: IcmSourceTransaction;
2783
+ destinationTransaction: IcmDestinationTransaction;
2784
+ status: DeliveredIcmMessage.status;
2785
+ };
2786
+ declare namespace DeliveredIcmMessage {
2787
+ enum status {
2788
+ DELIVERED = "delivered"
2789
+ }
2790
+ }
2791
+
2792
+ type DeliveredSourceNotIndexedIcmMessage = {
2793
+ messageId: string;
2794
+ icmContractAddress: string;
2795
+ sourceBlockchainId: string;
2796
+ destinationBlockchainId: string;
2797
+ sourceEvmChainId: string;
2798
+ destinationEvmChainId: string;
2799
+ messageNonce: string;
2800
+ from: string;
2801
+ to: string;
2802
+ data?: string;
2803
+ messageExecuted: boolean;
2804
+ receipts: Array<IcmReceipt>;
2805
+ receiptDelivered: boolean;
2806
+ rewardDetails: IcmRewardDetails;
2807
+ destinationTransaction: IcmDestinationTransaction;
2808
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2809
+ };
2810
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2811
+ enum status {
2812
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2813
+ }
2814
+ }
2815
+
2816
+ type PendingIcmMessage = {
2817
+ messageId: string;
2818
+ icmContractAddress: string;
2819
+ sourceBlockchainId: string;
2820
+ destinationBlockchainId: string;
2821
+ sourceEvmChainId: string;
2822
+ destinationEvmChainId: string;
2823
+ messageNonce: string;
2824
+ from: string;
2825
+ to: string;
2826
+ data?: string;
2827
+ messageExecuted: boolean;
2828
+ receipts: Array<IcmReceipt>;
2829
+ receiptDelivered: boolean;
2830
+ rewardDetails: IcmRewardDetails;
2831
+ sourceTransaction: IcmSourceTransaction;
2832
+ status: PendingIcmMessage.status;
2833
+ };
2834
+ declare namespace PendingIcmMessage {
2835
+ enum status {
2836
+ PENDING = "pending"
2837
+ }
2838
+ }
2839
+
2840
+ type ListIcmMessagesResponse = {
2841
+ /**
2842
+ * 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.
2843
+ */
2844
+ nextPageToken?: string;
2845
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2846
+ };
2847
+
2848
+ declare class InterchainMessagingService {
2849
+ readonly httpRequest: BaseHttpRequest;
2850
+ constructor(httpRequest: BaseHttpRequest);
2851
+ /**
2852
+ * Get an ICM message
2853
+ * Gets an ICM message by message ID.
2854
+ * @returns any Successful response
2855
+ * @throws ApiError
2856
+ */
2857
+ getIcmMessage({ messageId, }: {
2858
+ /**
2859
+ * The message ID of the ICM message.
2860
+ */
2861
+ messageId: string;
2862
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2863
+ /**
2864
+ * List ICM messages
2865
+ * Lists ICM messages. Ordered by timestamp in descending order.
2866
+ * @returns ListIcmMessagesResponse Successful response
2867
+ * @throws ApiError
2868
+ */
2869
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2870
+ /**
2871
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2872
+ */
2873
+ pageToken?: string;
2874
+ /**
2875
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2876
+ */
2877
+ pageSize?: number;
2878
+ /**
2879
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2880
+ */
2881
+ sourceBlockchainId?: string;
2882
+ /**
2883
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2884
+ */
2885
+ destinationBlockchainId?: string;
2886
+ /**
2887
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2888
+ */
2889
+ blockchainId?: string;
2890
+ /**
2891
+ * The address of the recipient of the ICM message.
2892
+ */
2893
+ to?: string;
2894
+ /**
2895
+ * The address of the sender of the ICM message.
2896
+ */
2897
+ from?: string;
2898
+ /**
2899
+ * Either mainnet or testnet/fuji.
2900
+ */
2901
+ network?: Network;
2902
+ }): CancelablePromise<ListIcmMessagesResponse>;
2903
+ /**
2904
+ * List ICM messages by address
2905
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2906
+ * @returns ListIcmMessagesResponse Successful response
2907
+ * @throws ApiError
2908
+ */
2909
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2910
+ /**
2911
+ * An EVM address.
2912
+ */
2913
+ address: string;
2914
+ /**
2915
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2916
+ */
2917
+ pageToken?: string;
2918
+ /**
2919
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2920
+ */
2921
+ pageSize?: number;
2922
+ /**
2923
+ * Either mainnet or testnet/fuji.
2924
+ */
2925
+ network?: Network;
2926
+ }): CancelablePromise<ListIcmMessagesResponse>;
2472
2927
  }
2473
2928
 
2474
2929
  type ListNftTokens = {
@@ -2548,6 +3003,108 @@ declare class NfTsService {
2548
3003
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2549
3004
  }
2550
3005
 
3006
+ type AccessRequest = {
3007
+ /**
3008
+ * The email address to send the access token to
3009
+ */
3010
+ email: string;
3011
+ /**
3012
+ * The captcha to verify the user
3013
+ */
3014
+ captcha: string;
3015
+ };
3016
+
3017
+ type NotificationsResponse = {
3018
+ message: string;
3019
+ };
3020
+
3021
+ type SubscribeRequest = {
3022
+ /**
3023
+ * The access token to use for authentication
3024
+ */
3025
+ accessToken: string;
3026
+ /**
3027
+ * The node ID to subscribe to
3028
+ */
3029
+ nodeId: string;
3030
+ /**
3031
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3032
+ */
3033
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3034
+ };
3035
+
3036
+ type SubscriptionsRequest = {
3037
+ /**
3038
+ * The access token to use for authentication
3039
+ */
3040
+ accessToken: string;
3041
+ };
3042
+
3043
+ type SubscriptionsResponse = {
3044
+ /**
3045
+ * The email address of the user
3046
+ */
3047
+ email: string;
3048
+ /**
3049
+ * The subscriptions of the user
3050
+ */
3051
+ subscriptions: Record<string, {
3052
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3053
+ }>;
3054
+ };
3055
+
3056
+ type UnsubscribeRequest = {
3057
+ /**
3058
+ * The access token to use for authentication
3059
+ */
3060
+ accessToken: string;
3061
+ /**
3062
+ * The node ID to subscribe to
3063
+ */
3064
+ nodeId: string;
3065
+ };
3066
+
3067
+ declare class NotificationsService {
3068
+ readonly httpRequest: BaseHttpRequest;
3069
+ constructor(httpRequest: BaseHttpRequest);
3070
+ /**
3071
+ * Access Notifications
3072
+ * Access notifications.
3073
+ * @returns NotificationsResponse Successful response
3074
+ * @throws ApiError
3075
+ */
3076
+ access({ requestBody, }: {
3077
+ requestBody: AccessRequest;
3078
+ }): CancelablePromise<NotificationsResponse>;
3079
+ /**
3080
+ * Subscribe to Notifications
3081
+ * Subscribe to receive notifications.
3082
+ * @returns NotificationsResponse Successful response
3083
+ * @throws ApiError
3084
+ */
3085
+ subscribe({ requestBody, }: {
3086
+ requestBody: SubscribeRequest;
3087
+ }): CancelablePromise<NotificationsResponse>;
3088
+ /**
3089
+ * Unsubscribe from Notifications
3090
+ * Unsubscribe from receiving notifications.
3091
+ * @returns NotificationsResponse Successful response
3092
+ * @throws ApiError
3093
+ */
3094
+ unsubscribe({ requestBody, }: {
3095
+ requestBody: UnsubscribeRequest;
3096
+ }): CancelablePromise<NotificationsResponse>;
3097
+ /**
3098
+ * Get Subscriptions
3099
+ * Get subscriptions.
3100
+ * @returns SubscriptionsResponse Successful response
3101
+ * @throws ApiError
3102
+ */
3103
+ subscriptions({ requestBody, }: {
3104
+ requestBody: SubscriptionsRequest;
3105
+ }): CancelablePromise<SubscriptionsResponse>;
3106
+ }
3107
+
2551
3108
  type EvmNetworkOptions = {
2552
3109
  addresses: Array<string>;
2553
3110
  includeChains: Array<string>;
@@ -2636,7 +3193,7 @@ type OperationStatusResponse = {
2636
3193
  operationType: OperationType;
2637
3194
  operationStatus: OperationStatus;
2638
3195
  message?: string;
2639
- metadata: TransactionExportMetadata;
3196
+ metadata?: TransactionExportMetadata;
2640
3197
  createdAtTimestamp: number;
2641
3198
  updatedAtTimestamp: number;
2642
3199
  };
@@ -2700,16 +3257,31 @@ type DelegatorsDetails = {
2700
3257
  };
2701
3258
 
2702
3259
  type StakingDistribution = {
3260
+ /**
3261
+ * AvalancheGo version for the validator node.
3262
+ */
2703
3263
  version: string;
3264
+ /**
3265
+ * The total amount staked by validators using this version.
3266
+ */
2704
3267
  amountStaked: string;
3268
+ /**
3269
+ * The number of validators using this version.
3270
+ */
2705
3271
  validatorCount: number;
2706
3272
  };
2707
3273
 
2708
3274
  type ValidatorsDetails = {
2709
3275
  validatorCount: number;
2710
3276
  totalAmountStaked: string;
3277
+ /**
3278
+ * Total potential rewards from currently active validations and delegations.
3279
+ */
2711
3280
  estimatedAnnualStakingReward: string;
2712
3281
  stakingDistributionByVersion: Array<StakingDistribution>;
3282
+ /**
3283
+ * Ratio of total active stake amount to the current supply.
3284
+ */
2713
3285
  stakingRatio: string;
2714
3286
  };
2715
3287
 
@@ -2761,7 +3333,13 @@ type CompletedDelegatorDetails = {
2761
3333
  delegationFee: string;
2762
3334
  startTimestamp: number;
2763
3335
  endTimestamp: number;
3336
+ /**
3337
+ * Total rewards distributed for the successful delegation.
3338
+ */
2764
3339
  grossReward: string;
3340
+ /**
3341
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3342
+ */
2765
3343
  netReward: string;
2766
3344
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2767
3345
  };
@@ -2779,7 +3357,13 @@ type PendingDelegatorDetails = {
2779
3357
  delegationFee: string;
2780
3358
  startTimestamp: number;
2781
3359
  endTimestamp: number;
3360
+ /**
3361
+ * Estimated total rewards that will be distributed for the successful delegation.
3362
+ */
2782
3363
  estimatedGrossReward: string;
3364
+ /**
3365
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3366
+ */
2783
3367
  estimatedNetReward: string;
2784
3368
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2785
3369
  };
@@ -2897,6 +3481,10 @@ type Subnet = {
2897
3481
  * Whether the subnet is an L1 or not.
2898
3482
  */
2899
3483
  isL1: boolean;
3484
+ /**
3485
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3486
+ */
3487
+ l1ConversionTransactionHash?: string;
2900
3488
  /**
2901
3489
  * L1 validator manager details.
2902
3490
  */
@@ -2948,6 +3536,9 @@ type ActiveValidatorDetails = {
2948
3536
  nodeId: string;
2949
3537
  subnetId: string;
2950
3538
  amountStaked: string;
3539
+ /**
3540
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3541
+ */
2951
3542
  delegationFee?: string;
2952
3543
  startTimestamp: number;
2953
3544
  endTimestamp: number;
@@ -2955,12 +3546,30 @@ type ActiveValidatorDetails = {
2955
3546
  * Present for AddPermissionlessValidatorTx
2956
3547
  */
2957
3548
  blsCredentials?: BlsCredentials;
3549
+ /**
3550
+ * The percentage of this validator's stake amount to the total active stake.
3551
+ */
2958
3552
  stakePercentage: number;
3553
+ /**
3554
+ * The number of delegators linked to the validator.
3555
+ */
2959
3556
  delegatorCount: number;
3557
+ /**
3558
+ * The total amount in nAVAX delegated to the validator.
3559
+ */
2960
3560
  amountDelegated?: string;
3561
+ /**
3562
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3563
+ */
2961
3564
  uptimePerformance: number;
2962
3565
  avalancheGoVersion?: string;
3566
+ /**
3567
+ * The amount of stake in nAVAX that can be delegated to this validator.
3568
+ */
2963
3569
  delegationCapacity?: string;
3570
+ /**
3571
+ * Estimated rewards for the validator if the validation is successful.
3572
+ */
2964
3573
  potentialRewards: Rewards;
2965
3574
  validationStatus: ActiveValidatorDetails.validationStatus;
2966
3575
  validatorHealth: ValidatorHealthDetails;
@@ -2976,6 +3585,9 @@ type CompletedValidatorDetails = {
2976
3585
  nodeId: string;
2977
3586
  subnetId: string;
2978
3587
  amountStaked: string;
3588
+ /**
3589
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3590
+ */
2979
3591
  delegationFee?: string;
2980
3592
  startTimestamp: number;
2981
3593
  endTimestamp: number;
@@ -2999,6 +3611,9 @@ type PendingValidatorDetails = {
2999
3611
  nodeId: string;
3000
3612
  subnetId: string;
3001
3613
  amountStaked: string;
3614
+ /**
3615
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3616
+ */
3002
3617
  delegationFee?: string;
3003
3618
  startTimestamp: number;
3004
3619
  endTimestamp: number;
@@ -3019,6 +3634,9 @@ type RemovedValidatorDetails = {
3019
3634
  nodeId: string;
3020
3635
  subnetId: string;
3021
3636
  amountStaked: string;
3637
+ /**
3638
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3639
+ */
3022
3640
  delegationFee?: string;
3023
3641
  startTimestamp: number;
3024
3642
  endTimestamp: number;
@@ -3026,7 +3644,13 @@ type RemovedValidatorDetails = {
3026
3644
  * Present for AddPermissionlessValidatorTx
3027
3645
  */
3028
3646
  blsCredentials?: BlsCredentials;
3647
+ /**
3648
+ * The transaction hash that removed the permissioned subnet validator.
3649
+ */
3029
3650
  removeTxHash: string;
3651
+ /**
3652
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3653
+ */
3030
3654
  removeTimestamp: number;
3031
3655
  validationStatus: RemovedValidatorDetails.validationStatus;
3032
3656
  };
@@ -4183,7 +4807,7 @@ type L1ValidatorDetailsTransaction = {
4183
4807
  */
4184
4808
  remainingBalance: number;
4185
4809
  /**
4186
- * The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4810
+ * 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
4187
4811
  */
4188
4812
  balanceChange?: number;
4189
4813
  blsCredentials?: Record<string, any>;
@@ -4213,6 +4837,9 @@ declare enum PChainTransactionType {
4213
4837
  UNKNOWN = "UNKNOWN"
4214
4838
  }
4215
4839
 
4840
+ /**
4841
+ * Indicates whether the UTXO is staked or transferable
4842
+ */
4216
4843
  declare enum UtxoType {
4217
4844
  STAKE = "STAKE",
4218
4845
  TRANSFER = "TRANSFER"
@@ -4250,16 +4877,43 @@ type PChainUtxo = {
4250
4877
  assetId: string;
4251
4878
  blockNumber: string;
4252
4879
  blockTimestamp: number;
4880
+ /**
4881
+ * Block height in which the transaction consuming this UTXO was included
4882
+ */
4253
4883
  consumingBlockNumber?: string;
4884
+ /**
4885
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4886
+ */
4254
4887
  consumingBlockTimestamp?: number;
4888
+ /**
4889
+ * Timestamp in seconds after which this UTXO can be consumed
4890
+ */
4255
4891
  platformLocktime?: number;
4892
+ /**
4893
+ * The index of the UTXO in the transaction
4894
+ */
4256
4895
  outputIndex: number;
4257
4896
  rewardType?: RewardType;
4897
+ /**
4898
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4899
+ */
4258
4900
  stakeableLocktime?: number;
4259
4901
  staked?: boolean;
4902
+ /**
4903
+ * The minimum number of signatures required to spend this UTXO
4904
+ */
4260
4905
  threshold?: number;
4906
+ /**
4907
+ * The hash of the transaction that created this UTXO
4908
+ */
4261
4909
  txHash: string;
4910
+ /**
4911
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4912
+ */
4262
4913
  utxoEndTimestamp?: number;
4914
+ /**
4915
+ * Timestamp in seconds at which the staked UTXO was locked.
4916
+ */
4263
4917
  utxoStartTimestamp?: number;
4264
4918
  utxoType: UtxoType;
4265
4919
  };
@@ -4274,9 +4928,18 @@ type PChainTransaction = {
4274
4928
  * The block finality timestamp.
4275
4929
  */
4276
4930
  blockTimestamp: number;
4931
+ /**
4932
+ * The height of the block in which the transaction was included
4933
+ */
4277
4934
  blockNumber: string;
4278
4935
  blockHash: string;
4936
+ /**
4937
+ * The consumed UTXOs of the transaction
4938
+ */
4279
4939
  consumedUtxos: Array<PChainUtxo>;
4940
+ /**
4941
+ * The newly created UTXOs of the transaction
4942
+ */
4280
4943
  emittedUtxos: Array<PChainUtxo>;
4281
4944
  /**
4282
4945
  * Source chain for an atomic transaction.
@@ -4287,11 +4950,11 @@ type PChainTransaction = {
4287
4950
  */
4288
4951
  destinationChain?: string;
4289
4952
  /**
4290
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4953
+ * 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
4291
4954
  */
4292
4955
  value: Array<AssetAmount>;
4293
4956
  /**
4294
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4957
+ * 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
4295
4958
  */
4296
4959
  amountBurned: Array<AssetAmount>;
4297
4960
  /**
@@ -4299,7 +4962,7 @@ type PChainTransaction = {
4299
4962
  */
4300
4963
  amountStaked: Array<AssetAmount>;
4301
4964
  /**
4302
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4965
+ * 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.
4303
4966
  */
4304
4967
  amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4305
4968
  /**
@@ -4311,11 +4974,11 @@ type PChainTransaction = {
4311
4974
  */
4312
4975
  endTimestamp?: number;
4313
4976
  /**
4314
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4977
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4315
4978
  */
4316
4979
  delegationFeePercent?: string;
4317
4980
  /**
4318
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4981
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4319
4982
  */
4320
4983
  nodeId?: string;
4321
4984
  /**
@@ -4331,14 +4994,17 @@ type PChainTransaction = {
4331
4994
  */
4332
4995
  l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4333
4996
  /**
4334
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4997
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4335
4998
  */
4336
4999
  estimatedReward?: string;
5000
+ /**
5001
+ * Reward transaction hash for the completed validations or delegations
5002
+ */
4337
5003
  rewardTxHash?: string;
4338
5004
  rewardAddresses?: Array<string>;
4339
5005
  memo?: string;
4340
5006
  /**
4341
- * Present for RewardValidatorTx
5007
+ * Staking transaction corresponding to the RewardValidatorTx
4342
5008
  */
4343
5009
  stakingTxHash?: string;
4344
5010
  /**
@@ -4346,7 +5012,7 @@ type PChainTransaction = {
4346
5012
  */
4347
5013
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4348
5014
  /**
4349
- * Present for AddPermissionlessValidatorTx
5015
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4350
5016
  */
4351
5017
  blsCredentials?: BlsCredentials;
4352
5018
  };
@@ -4885,7 +5551,11 @@ declare class SignatureAggregatorService {
4885
5551
  * @returns SignatureAggregationResponse Successful response
4886
5552
  * @throws ApiError
4887
5553
  */
4888
- aggregateSignatures({ requestBody, }: {
5554
+ aggregateSignatures({ network, requestBody, }: {
5555
+ /**
5556
+ * Either mainnet or testnet/fuji.
5557
+ */
5558
+ network: Network;
4889
5559
  requestBody: SignatureAggregatorRequest;
4890
5560
  }): CancelablePromise<SignatureAggregationResponse>;
4891
5561
  }
@@ -5028,8 +5698,10 @@ declare class TeleporterService {
5028
5698
  readonly httpRequest: BaseHttpRequest;
5029
5699
  constructor(httpRequest: BaseHttpRequest);
5030
5700
  /**
5031
- * Get a teleporter message
5032
- * Gets a teleporter message by message ID.
5701
+ * @deprecated
5702
+ * **[Deprecated]** Gets a teleporter message by message ID.
5703
+ *
5704
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
5033
5705
  * @returns any Successful response
5034
5706
  * @throws ApiError
5035
5707
  */
@@ -5040,8 +5712,10 @@ declare class TeleporterService {
5040
5712
  messageId: string;
5041
5713
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
5042
5714
  /**
5043
- * List teleporter messages
5044
- * Lists teleporter messages. Ordered by timestamp in descending order.
5715
+ * @deprecated
5716
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5717
+ *
5718
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
5045
5719
  * @returns ListTeleporterMessagesResponse Successful response
5046
5720
  * @throws ApiError
5047
5721
  */
@@ -5080,8 +5754,10 @@ declare class TeleporterService {
5080
5754
  network?: Network;
5081
5755
  }): CancelablePromise<ListTeleporterMessagesResponse>;
5082
5756
  /**
5083
- * List teleporter messages by address
5084
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5757
+ * @deprecated
5758
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5759
+ *
5760
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
5085
5761
  * @returns ListTeleporterMessagesResponse Successful response
5086
5762
  * @throws ApiError
5087
5763
  */
@@ -5277,12 +5953,12 @@ declare class WebhooksService {
5277
5953
  requestBody: UpdateWebhookRequest;
5278
5954
  }): CancelablePromise<WebhookResponse>;
5279
5955
  /**
5280
- * Generate a shared secret
5281
- * Generates a new shared secret.
5956
+ * Generate or rotate a shared secret
5957
+ * Generates a new shared secret or rotate an existing one.
5282
5958
  * @returns SharedSecretsResponse Successful response
5283
5959
  * @throws ApiError
5284
5960
  */
5285
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5961
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5286
5962
  /**
5287
5963
  * Get a shared secret
5288
5964
  * Get a previously generated shared secret.
@@ -5348,7 +6024,9 @@ declare class Glacier {
5348
6024
  readonly evmContracts: EvmContractsService;
5349
6025
  readonly evmTransactions: EvmTransactionsService;
5350
6026
  readonly healthCheck: HealthCheckService;
6027
+ readonly interchainMessaging: InterchainMessagingService;
5351
6028
  readonly nfTs: NfTsService;
6029
+ readonly notifications: NotificationsService;
5352
6030
  readonly operations: OperationsService;
5353
6031
  readonly primaryNetwork: PrimaryNetworkService;
5354
6032
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -5512,4 +6190,4 @@ type Unauthorized = {
5512
6190
  error: string;
5513
6191
  };
5514
6192
 
5515
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, 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 };
6193
+ 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, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, 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, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, 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 };