@avalabs/glacier-sdk 3.1.0-canary.ca038e3.0 → 3.1.0-canary.d6c8ab8.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 (63) hide show
  1. package/dist/index.d.ts +356 -118
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +0 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  6. package/esm/generated/models/BlockchainId.d.ts +2 -0
  7. package/esm/generated/models/BlockchainId.js +1 -1
  8. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  9. package/esm/generated/models/BlockchainIds.js +1 -1
  10. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -2
  11. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -2
  12. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  13. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  14. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  15. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  16. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  17. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  18. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  19. package/esm/generated/models/Network.d.ts +2 -1
  20. package/esm/generated/models/Network.js +1 -1
  21. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  22. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  23. package/esm/generated/models/PChainTransactionType.js +1 -1
  24. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  25. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  26. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  27. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  28. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  29. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  30. package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
  31. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
  32. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  33. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  34. package/esm/generated/models/Subnet.d.ts +9 -0
  35. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  36. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  37. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  38. package/esm/generated/models/XChainId.d.ts +1 -0
  39. package/esm/generated/models/XChainId.js +1 -1
  40. package/esm/generated/services/DataApiUsageMetricsService.d.ts +65 -22
  41. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  42. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  43. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  44. package/esm/generated/services/EvmChainsService.d.ts +14 -1
  45. package/esm/generated/services/EvmChainsService.js +1 -1
  46. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  47. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  48. package/esm/generated/services/NfTsService.d.ts +3 -3
  49. package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
  50. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  51. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +8 -5
  52. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  53. package/esm/index.d.ts +10 -6
  54. package/esm/index.js +1 -1
  55. package/package.json +2 -2
  56. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  57. package/esm/generated/models/PrimaryNetwork.js +0 -1
  58. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  59. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  60. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  61. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  62. package/esm/generated/services/RpcService.d.ts +0 -25
  63. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -148,6 +148,89 @@ type LogsResponseDTO = {
148
148
  logs: Array<LogsFormat>;
149
149
  };
150
150
 
151
+ type RpcUsageMetricsValueAggregated = {
152
+ /**
153
+ * The total number of requests
154
+ */
155
+ totalRequests: number;
156
+ /**
157
+ * The number of API credits used
158
+ */
159
+ apiCreditsUsed: number;
160
+ /**
161
+ * The number of requests per second
162
+ */
163
+ requestsPerSecond: number;
164
+ /**
165
+ * The success rate percentage
166
+ */
167
+ successRatePercent: number;
168
+ /**
169
+ * The median response time in milliseconds
170
+ */
171
+ medianResponseTimeMsecs: number;
172
+ /**
173
+ * The number of invalid requests
174
+ */
175
+ invalidRequests: number;
176
+ /**
177
+ * The number of API credits wasted on invalid requests
178
+ */
179
+ apiCreditsWasted: number;
180
+ /**
181
+ * Column name used for data aggregation
182
+ */
183
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
184
+ /**
185
+ * The value of the column used for data aggregation
186
+ */
187
+ groupValue?: (string | number);
188
+ };
189
+ declare namespace RpcUsageMetricsValueAggregated {
190
+ /**
191
+ * Column name used for data aggregation
192
+ */
193
+ enum groupedBy {
194
+ RPC_METHOD = "rpcMethod",
195
+ RESPONSE_CODE = "responseCode",
196
+ RL_BYPASS_TOKEN = "rlBypassToken",
197
+ NONE = "None"
198
+ }
199
+ }
200
+
201
+ type RpcMetrics = {
202
+ /**
203
+ * The timestamp of the metrics value
204
+ */
205
+ timestamp: number;
206
+ /**
207
+ * The metrics values for the timestamp
208
+ */
209
+ values: Array<RpcUsageMetricsValueAggregated>;
210
+ };
211
+
212
+ type RpcUsageMetricsResponseDTO = {
213
+ /**
214
+ * Duration in which the metrics value is aggregated
215
+ */
216
+ aggregateDuration: string;
217
+ /**
218
+ * ChainId for which the metrics are aggregated
219
+ */
220
+ chainId: string;
221
+ /**
222
+ * Metrics values
223
+ */
224
+ metrics: Array<RpcMetrics>;
225
+ };
226
+
227
+ declare enum SubnetRpcTimeIntervalGranularity {
228
+ HOURLY = "hourly",
229
+ DAILY = "daily",
230
+ WEEKLY = "weekly",
231
+ MONTHLY = "monthly"
232
+ }
233
+
151
234
  declare enum TimeIntervalGranularityExtended {
152
235
  MINUTE = "minute",
153
236
  HOURLY = "hourly",
@@ -251,17 +334,17 @@ declare class DataApiUsageMetricsService {
251
334
  * @returns UsageMetricsResponseDTO Successful response
252
335
  * @throws ApiError
253
336
  */
254
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
337
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
255
338
  /**
256
339
  * Organization ID to fetch usage metrics for
257
340
  */
258
341
  orgId?: string;
259
342
  /**
260
- * Query param for retrieving items after a specific timestamp.
343
+ * 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
344
  */
262
345
  startTimestamp?: number;
263
346
  /**
264
- * Query param for retrieving items before a specific timestamp.
347
+ * 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
348
  */
266
349
  endTimestamp?: number;
267
350
  /**
@@ -273,25 +356,25 @@ declare class DataApiUsageMetricsService {
273
356
  */
274
357
  groupBy?: UsageMetricsGroupByEnum;
275
358
  /**
276
- * Filter data by request path.
277
- */
278
- requestPath?: string;
279
- /**
280
- * Filter data by request type.
359
+ * Filter data by chain ID.
281
360
  */
282
- requestType?: 'data' | 'rpc';
361
+ chainId?: string;
283
362
  /**
284
363
  * Filter data by response status code.
285
364
  */
286
365
  responseCode?: string;
287
366
  /**
288
- * Filter data by chain ID.
367
+ * Filter data by request type.
289
368
  */
290
- chainId?: string;
369
+ requestType?: 'data' | 'rpc';
291
370
  /**
292
371
  * Filter data by API key ID.
293
372
  */
294
373
  apiKeyId?: string;
374
+ /**
375
+ * Filter data by request path.
376
+ */
377
+ requestPath?: string;
295
378
  }): CancelablePromise<UsageMetricsResponseDTO>;
296
379
  /**
297
380
  * Get logs for requests made by client
@@ -299,39 +382,39 @@ declare class DataApiUsageMetricsService {
299
382
  * @returns LogsResponseDTO Successful response
300
383
  * @throws ApiError
301
384
  */
302
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
385
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
303
386
  /**
304
387
  * Organization ID to fetch usage metrics for
305
388
  */
306
389
  orgId?: string;
307
390
  /**
308
- * Query param for retrieving items after a specific timestamp.
391
+ * 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
392
  */
310
393
  startTimestamp?: number;
311
394
  /**
312
- * Query param for retrieving items before a specific timestamp.
395
+ * 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
396
  */
314
397
  endTimestamp?: number;
315
398
  /**
316
- * Filter data by request path.
317
- */
318
- requestPath?: string;
319
- /**
320
- * Filter data by request type.
399
+ * Filter data by chain ID.
321
400
  */
322
- requestType?: 'data' | 'rpc';
401
+ chainId?: string;
323
402
  /**
324
403
  * Filter data by response status code.
325
404
  */
326
405
  responseCode?: string;
327
406
  /**
328
- * Filter data by chain ID.
407
+ * Filter data by request type.
329
408
  */
330
- chainId?: string;
409
+ requestType?: 'data' | 'rpc';
331
410
  /**
332
411
  * Filter data by API key ID.
333
412
  */
334
413
  apiKeyId?: string;
414
+ /**
415
+ * Filter data by request path.
416
+ */
417
+ requestPath?: string;
335
418
  /**
336
419
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
337
420
  */
@@ -341,6 +424,47 @@ declare class DataApiUsageMetricsService {
341
424
  */
342
425
  pageSize?: number;
343
426
  }): CancelablePromise<LogsResponseDTO>;
427
+ /**
428
+ * Get usage metrics for the Subnet RPC
429
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
430
+ * @returns RpcUsageMetricsResponseDTO Successful response
431
+ * @throws ApiError
432
+ */
433
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
434
+ /**
435
+ * Time interval granularity for data aggregation for subnet
436
+ * rpc metrics
437
+ */
438
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
439
+ /**
440
+ * 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.
441
+ */
442
+ startTimestamp?: number;
443
+ /**
444
+ * 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.
445
+ */
446
+ endTimestamp?: number;
447
+ /**
448
+ * Query param for the criterion used for grouping metrics
449
+ */
450
+ groupBy?: UsageMetricsGroupByEnum;
451
+ /**
452
+ * Filter data by chain ID.
453
+ */
454
+ chainId?: string;
455
+ /**
456
+ * Filter data by response status code.
457
+ */
458
+ responseCode?: string;
459
+ /**
460
+ * Filter data by RPC method.
461
+ */
462
+ rpcMethod?: string;
463
+ /**
464
+ * Filter data by Rl Bypass API Token.
465
+ */
466
+ rlBypassApiToken?: string;
467
+ }): CancelablePromise<RpcUsageMetricsResponseDTO>;
344
468
  }
345
469
 
346
470
  declare class DefaultService {
@@ -625,7 +749,7 @@ declare class EvmBalancesService {
625
749
  */
626
750
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
751
  /**
628
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
752
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
753
  */
630
754
  chainId: string;
631
755
  /**
@@ -653,7 +777,7 @@ declare class EvmBalancesService {
653
777
  */
654
778
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
779
  /**
656
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
780
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
781
  */
658
782
  chainId: string;
659
783
  /**
@@ -695,7 +819,7 @@ declare class EvmBalancesService {
695
819
  */
696
820
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
821
  /**
698
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
822
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
823
  */
700
824
  chainId: string;
701
825
  /**
@@ -727,7 +851,7 @@ declare class EvmBalancesService {
727
851
  */
728
852
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
853
  /**
730
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
854
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
855
  */
732
856
  chainId: string;
733
857
  /**
@@ -761,7 +885,7 @@ declare class EvmBalancesService {
761
885
  */
762
886
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
887
  /**
764
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
888
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
889
  */
766
890
  chainId: string;
767
891
  /**
@@ -890,7 +1014,7 @@ declare class EvmBlocksService {
890
1014
  */
891
1015
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
1016
  /**
893
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1017
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
1018
  */
895
1019
  chainId: string;
896
1020
  /**
@@ -910,7 +1034,7 @@ declare class EvmBlocksService {
910
1034
  */
911
1035
  getBlock({ chainId, blockId, }: {
912
1036
  /**
913
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1037
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
1038
  */
915
1039
  chainId: string;
916
1040
  /**
@@ -1004,6 +1128,11 @@ type ChainInfo = {
1004
1128
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1005
1129
  };
1006
1130
 
1131
+ type ListAddressChainsResponse = {
1132
+ indexedChains?: Array<ChainInfo>;
1133
+ unindexedChains?: Array<string>;
1134
+ };
1135
+
1007
1136
  type ListChainsResponse = {
1008
1137
  chains: Array<ChainInfo>;
1009
1138
  };
@@ -1011,7 +1140,8 @@ type ListChainsResponse = {
1011
1140
  declare enum Network {
1012
1141
  MAINNET = "mainnet",
1013
1142
  FUJI = "fuji",
1014
- TESTNET = "testnet"
1143
+ TESTNET = "testnet",
1144
+ DEVNET = "devnet"
1015
1145
  }
1016
1146
 
1017
1147
  declare class EvmChainsService {
@@ -1041,10 +1171,22 @@ declare class EvmChainsService {
1041
1171
  */
1042
1172
  getChainInfo({ chainId, }: {
1043
1173
  /**
1044
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1174
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1045
1175
  */
1046
1176
  chainId: string;
1047
1177
  }): CancelablePromise<GetChainResponse>;
1178
+ /**
1179
+ * Get chains for address
1180
+ * Gets the list of chains an address has interacted with.
1181
+ * @returns ListAddressChainsResponse Successful response
1182
+ * @throws ApiError
1183
+ */
1184
+ getAddressChains({ address, }: {
1185
+ /**
1186
+ * A wallet address.
1187
+ */
1188
+ address: string;
1189
+ }): CancelablePromise<ListAddressChainsResponse>;
1048
1190
  }
1049
1191
 
1050
1192
  type ImageAsset = {
@@ -1336,7 +1478,7 @@ declare class EvmContractsService {
1336
1478
  */
1337
1479
  getContractMetadata({ chainId, address, }: {
1338
1480
  /**
1339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1481
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1340
1482
  */
1341
1483
  chainId: string;
1342
1484
  /**
@@ -1352,7 +1494,7 @@ declare class EvmContractsService {
1352
1494
  */
1353
1495
  updateContractInfo({ chainId, address, requestBody, }: {
1354
1496
  /**
1355
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1497
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1356
1498
  */
1357
1499
  chainId: string;
1358
1500
  /**
@@ -1902,7 +2044,7 @@ declare class EvmTransactionsService {
1902
2044
  */
1903
2045
  getDeploymentTransaction({ chainId, address, currency, }: {
1904
2046
  /**
1905
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2047
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1906
2048
  */
1907
2049
  chainId: string;
1908
2050
  /**
@@ -1922,7 +2064,7 @@ declare class EvmTransactionsService {
1922
2064
  */
1923
2065
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1924
2066
  /**
1925
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2067
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1926
2068
  */
1927
2069
  chainId: string;
1928
2070
  /**
@@ -1946,7 +2088,7 @@ declare class EvmTransactionsService {
1946
2088
  */
1947
2089
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1948
2090
  /**
1949
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2091
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1950
2092
  */
1951
2093
  chainId: string;
1952
2094
  /**
@@ -1980,7 +2122,7 @@ declare class EvmTransactionsService {
1980
2122
  */
1981
2123
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1982
2124
  /**
1983
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2125
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1984
2126
  */
1985
2127
  chainId: string;
1986
2128
  /**
@@ -2016,7 +2158,7 @@ declare class EvmTransactionsService {
2016
2158
  */
2017
2159
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2018
2160
  /**
2019
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2161
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2020
2162
  */
2021
2163
  chainId: string;
2022
2164
  /**
@@ -2048,7 +2190,7 @@ declare class EvmTransactionsService {
2048
2190
  */
2049
2191
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2050
2192
  /**
2051
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2193
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2052
2194
  */
2053
2195
  chainId: string;
2054
2196
  /**
@@ -2080,7 +2222,7 @@ declare class EvmTransactionsService {
2080
2222
  */
2081
2223
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2082
2224
  /**
2083
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2225
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2084
2226
  */
2085
2227
  chainId: string;
2086
2228
  /**
@@ -2112,7 +2254,7 @@ declare class EvmTransactionsService {
2112
2254
  */
2113
2255
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2114
2256
  /**
2115
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2257
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2116
2258
  */
2117
2259
  chainId: string;
2118
2260
  /**
@@ -2146,7 +2288,7 @@ declare class EvmTransactionsService {
2146
2288
  */
2147
2289
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2148
2290
  /**
2149
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2291
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2150
2292
  */
2151
2293
  chainId: string;
2152
2294
  /**
@@ -2178,7 +2320,7 @@ declare class EvmTransactionsService {
2178
2320
  */
2179
2321
  getTransaction({ chainId, txHash, }: {
2180
2322
  /**
2181
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2323
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2182
2324
  */
2183
2325
  chainId: string;
2184
2326
  /**
@@ -2194,7 +2336,7 @@ declare class EvmTransactionsService {
2194
2336
  */
2195
2337
  getTransactionsForBlock({ chainId, blockId, }: {
2196
2338
  /**
2197
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2339
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2198
2340
  */
2199
2341
  chainId: string;
2200
2342
  /**
@@ -2210,7 +2352,7 @@ declare class EvmTransactionsService {
2210
2352
  */
2211
2353
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2212
2354
  /**
2213
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2355
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2214
2356
  */
2215
2357
  chainId: string;
2216
2358
  /**
@@ -2263,7 +2405,7 @@ declare class NfTsService {
2263
2405
  */
2264
2406
  reindexNft({ chainId, address, tokenId, }: {
2265
2407
  /**
2266
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2408
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2267
2409
  */
2268
2410
  chainId: string;
2269
2411
  /**
@@ -2283,7 +2425,7 @@ declare class NfTsService {
2283
2425
  */
2284
2426
  listTokens({ chainId, address, pageToken, pageSize, }: {
2285
2427
  /**
2286
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2428
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2287
2429
  */
2288
2430
  chainId: string;
2289
2431
  /**
@@ -2307,7 +2449,7 @@ declare class NfTsService {
2307
2449
  */
2308
2450
  getTokenDetails({ chainId, address, tokenId, }: {
2309
2451
  /**
2310
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2452
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2311
2453
  */
2312
2454
  chainId: string;
2313
2455
  /**
@@ -2337,11 +2479,11 @@ type CreateEvmTransactionExportRequest = {
2337
2479
  /**
2338
2480
  * @deprecated
2339
2481
  */
2340
- startDate: string;
2482
+ startDate?: string;
2341
2483
  /**
2342
2484
  * @deprecated
2343
2485
  */
2344
- endDate: string;
2486
+ endDate?: string;
2345
2487
  options: EvmNetworkOptions;
2346
2488
  };
2347
2489
 
@@ -2354,7 +2496,7 @@ declare enum PrimaryNetworkOperationType {
2354
2496
  type PrimaryNetworkOptions = {
2355
2497
  addresses?: Array<string>;
2356
2498
  cChainEvmAddresses?: Array<string>;
2357
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2499
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2358
2500
  };
2359
2501
 
2360
2502
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -2364,11 +2506,11 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2364
2506
  /**
2365
2507
  * @deprecated
2366
2508
  */
2367
- startDate: string;
2509
+ startDate?: string;
2368
2510
  /**
2369
2511
  * @deprecated
2370
2512
  */
2371
- endDate: string;
2513
+ endDate?: string;
2372
2514
  options: PrimaryNetworkOptions;
2373
2515
  };
2374
2516
 
@@ -2446,8 +2588,10 @@ declare enum BlockchainIds {
2446
2588
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2447
2589
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2448
2590
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2591
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2449
2592
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2450
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2593
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2594
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2451
2595
  }
2452
2596
 
2453
2597
  type ChainAddressChainIdMap = {
@@ -2571,10 +2715,61 @@ type ListDelegatorDetailsResponse = {
2571
2715
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2572
2716
  };
2573
2717
 
2718
+ type BalanceOwner = {
2719
+ addresses: Array<string>;
2720
+ threshold: number;
2721
+ };
2722
+
2723
+ type L1ValidatorDetailsFull = {
2724
+ /**
2725
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2726
+ */
2727
+ validationId: string;
2728
+ nodeId: string;
2729
+ subnetId: string;
2730
+ /**
2731
+ * 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
2732
+ */
2733
+ weight: number;
2734
+ /**
2735
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2736
+ */
2737
+ remainingBalance: number;
2738
+ /**
2739
+ * The timestamp of the transaction which created this L1 validator
2740
+ */
2741
+ creationTimestamp: number;
2742
+ blsCredentials: Record<string, any>;
2743
+ /**
2744
+ * The L1 validator owner's balance, returned after it's disabled or removed
2745
+ */
2746
+ remainingBalanceOwner: BalanceOwner;
2747
+ /**
2748
+ * Owner ddresses details which can disable or remove the L1 validator
2749
+ */
2750
+ deactivationOwner: BalanceOwner;
2751
+ };
2752
+
2753
+ type ListL1ValidatorsResponse = {
2754
+ /**
2755
+ * 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.
2756
+ */
2757
+ nextPageToken?: string;
2758
+ /**
2759
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2760
+ */
2761
+ validators: Array<L1ValidatorDetailsFull>;
2762
+ };
2763
+
2574
2764
  type BlockchainInfo = {
2575
2765
  blockchainId: string;
2576
2766
  };
2577
2767
 
2768
+ type L1ValidatorManagerDetails = {
2769
+ blockchainId: string;
2770
+ contractAddress: string;
2771
+ };
2772
+
2578
2773
  type SubnetOwnershipInfo = {
2579
2774
  /**
2580
2775
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2613,6 +2808,14 @@ type Subnet = {
2613
2808
  * Latest subnet owner details for this Subnet.
2614
2809
  */
2615
2810
  subnetOwnershipInfo: SubnetOwnershipInfo;
2811
+ /**
2812
+ * Whether the subnet is an L1 or not.
2813
+ */
2814
+ isL1: boolean;
2815
+ /**
2816
+ * L1 validator manager details.
2817
+ */
2818
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2616
2819
  blockchains: Array<BlockchainInfo>;
2617
2820
  };
2618
2821
 
@@ -2818,6 +3021,7 @@ type XChainAssetDetails = {
2818
3021
  declare enum XChainId {
2819
3022
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2820
3023
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3024
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2821
3025
  X_CHAIN = "x-chain"
2822
3026
  }
2823
3027
 
@@ -3078,14 +3282,49 @@ declare class PrimaryNetworkService {
3078
3282
  */
3079
3283
  nodeIds?: string;
3080
3284
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3285
+ /**
3286
+ * List L1 validators
3287
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3288
+ * @returns ListL1ValidatorsResponse Successful response
3289
+ * @throws ApiError
3290
+ */
3291
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3292
+ /**
3293
+ * Either mainnet or testnet/fuji.
3294
+ */
3295
+ network: Network;
3296
+ /**
3297
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3298
+ */
3299
+ pageToken?: string;
3300
+ /**
3301
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3302
+ */
3303
+ pageSize?: number;
3304
+ /**
3305
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3306
+ */
3307
+ l1ValidationId?: any;
3308
+ includeInactiveL1Validators?: boolean;
3309
+ /**
3310
+ * A valid node ID in format 'NodeID-HASH'.
3311
+ */
3312
+ nodeId?: string;
3313
+ /**
3314
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3315
+ */
3316
+ subnetId?: any;
3317
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3081
3318
  }
3082
3319
 
3083
3320
  declare enum BlockchainId {
3084
3321
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3085
3322
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3086
3323
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3324
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3087
3325
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3088
3326
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3327
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3089
3328
  P_CHAIN = "p-chain",
3090
3329
  X_CHAIN = "x-chain",
3091
3330
  C_CHAIN = "c-chain"
@@ -3122,11 +3361,6 @@ type CChainAtomicBalances = {
3122
3361
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3123
3362
  };
3124
3363
 
3125
- declare enum PrimaryNetwork {
3126
- MAINNET = "mainnet",
3127
- FUJI = "fuji"
3128
- }
3129
-
3130
3364
  declare enum PrimaryNetworkChainName {
3131
3365
  P_CHAIN = "p-chain",
3132
3366
  X_CHAIN = "x-chain",
@@ -3135,7 +3369,7 @@ declare enum PrimaryNetworkChainName {
3135
3369
 
3136
3370
  type PrimaryNetworkChainInfo = {
3137
3371
  chainName: PrimaryNetworkChainName;
3138
- network: PrimaryNetwork;
3372
+ network: Network;
3139
3373
  };
3140
3374
 
3141
3375
  type ListCChainAtomicBalancesResponse = {
@@ -3327,6 +3561,8 @@ type GetPrimaryNetworkBlockResponse = {
3327
3561
  txCount: number;
3328
3562
  transactions: Array<string>;
3329
3563
  blockSizeBytes: number;
3564
+ l1ValidatorsAccruedFees?: number;
3565
+ activeL1Validators?: number;
3330
3566
  currentSupply?: string;
3331
3567
  proposerDetails?: ProposerDetails;
3332
3568
  };
@@ -3340,6 +3576,8 @@ type PrimaryNetworkBlock = {
3340
3576
  txCount: number;
3341
3577
  transactions: Array<string>;
3342
3578
  blockSizeBytes: number;
3579
+ l1ValidatorsAccruedFees?: number;
3580
+ activeL1Validators?: number;
3343
3581
  currentSupply?: string;
3344
3582
  proposerDetails?: ProposerDetails;
3345
3583
  };
@@ -3828,6 +4066,28 @@ type ListCChainAtomicTransactionsResponse = {
3828
4066
  chainInfo: PrimaryNetworkChainInfo;
3829
4067
  };
3830
4068
 
4069
+ type L1ValidatorDetailsTransaction = {
4070
+ /**
4071
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4072
+ */
4073
+ validationId: string;
4074
+ nodeId: string;
4075
+ subnetId: string;
4076
+ /**
4077
+ * 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
4078
+ */
4079
+ weight: number;
4080
+ /**
4081
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4082
+ */
4083
+ remainingBalance: number;
4084
+ /**
4085
+ * 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
4086
+ */
4087
+ balanceChange?: number;
4088
+ blsCredentials?: Record<string, any>;
4089
+ };
4090
+
3831
4091
  declare enum PChainTransactionType {
3832
4092
  ADD_VALIDATOR_TX = "AddValidatorTx",
3833
4093
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3844,6 +4104,11 @@ declare enum PChainTransactionType {
3844
4104
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3845
4105
  BASE_TX = "BaseTx",
3846
4106
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4107
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4108
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4109
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4110
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4111
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3847
4112
  UNKNOWN = "UNKNOWN"
3848
4113
  }
3849
4114
 
@@ -3932,6 +4197,10 @@ type PChainTransaction = {
3932
4197
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3933
4198
  */
3934
4199
  amountStaked: Array<AssetAmount>;
4200
+ /**
4201
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4202
+ */
4203
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3935
4204
  /**
3936
4205
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3937
4206
  */
@@ -3952,6 +4221,14 @@ type PChainTransaction = {
3952
4221
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
3953
4222
  */
3954
4223
  subnetId?: string;
4224
+ /**
4225
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4226
+ */
4227
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4228
+ /**
4229
+ * 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
4230
+ */
4231
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
3955
4232
  /**
3956
4233
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3957
4234
  */
@@ -4153,6 +4430,11 @@ declare enum PrimaryNetworkTxType {
4153
4430
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4154
4431
  BASE_TX = "BaseTx",
4155
4432
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4433
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4434
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4435
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4436
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4437
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4156
4438
  UNKNOWN = "UNKNOWN",
4157
4439
  CREATE_ASSET_TX = "CreateAssetTx",
4158
4440
  OPERATION_TX = "OperationTx"
@@ -4187,15 +4469,13 @@ declare class PrimaryNetworkTransactionsService {
4187
4469
  *
4188
4470
  * 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.
4189
4471
  *
4472
+ * 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.
4473
+ *
4190
4474
  * 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.
4191
4475
  * @returns any Successful response
4192
4476
  * @throws ApiError
4193
4477
  */
4194
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4195
- /**
4196
- * 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.
4197
- */
4198
- addresses: string;
4478
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4199
4479
  /**
4200
4480
  * A primary network blockchain id or alias.
4201
4481
  */
@@ -4204,6 +4484,11 @@ declare class PrimaryNetworkTransactionsService {
4204
4484
  * Either mainnet or testnet/fuji.
4205
4485
  */
4206
4486
  network: Network;
4487
+ /**
4488
+ * 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.
4489
+ */
4490
+ addresses?: string;
4491
+ l1ValidationId?: string;
4207
4492
  /**
4208
4493
  * Query param for filtering items based on transaction types.
4209
4494
  */
@@ -4479,61 +4764,12 @@ declare class PrimaryNetworkVerticesService {
4479
4764
  }): CancelablePromise<ListXChainVerticesResponse>;
4480
4765
  }
4481
4766
 
4482
- type RpcErrorDto = {
4483
- code: number;
4484
- message: string;
4485
- data?: Record<string, any>;
4486
- };
4487
-
4488
- type RpcErrorResponseDto = {
4489
- jsonrpc: string;
4490
- id?: (string | number);
4491
- error: RpcErrorDto;
4492
- };
4493
-
4494
- type RpcRequestBodyDto = {
4495
- method: string;
4496
- params?: Record<string, any>;
4497
- id?: (string | number);
4498
- jsonrpc?: string;
4499
- };
4500
-
4501
- type RpcSuccessResponseDto = {
4502
- jsonrpc: string;
4503
- id?: (string | number);
4504
- result: Record<string, any>;
4505
- };
4506
-
4507
- declare class RpcService {
4508
- readonly httpRequest: BaseHttpRequest;
4509
- constructor(httpRequest: BaseHttpRequest);
4510
- /**
4511
- * Calls JSON-RPC method
4512
- * Calls JSON-RPC method.
4513
- * @returns any Successful response
4514
- * @throws ApiError
4515
- */
4516
- rpc({ chainId, requestBody, }: {
4517
- /**
4518
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4519
- */
4520
- chainId: string;
4521
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4522
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4523
- }
4524
-
4525
4767
  type SignatureAggregationResponse = {
4526
4768
  signedMessage: string;
4527
4769
  };
4528
4770
 
4529
4771
  type SignatureAggregatorRequest = {
4530
- /**
4531
- * Must be defined if justification is not defined
4532
- */
4533
- message?: string;
4534
- /**
4535
- * Must be defined if message is not defined
4536
- */
4772
+ message: string;
4537
4773
  justification?: string;
4538
4774
  signingSubnetId?: string;
4539
4775
  quorumPercentage?: number;
@@ -4798,7 +5034,7 @@ type CreateWebhookRequest = {
4798
5034
  name?: string;
4799
5035
  description?: string;
4800
5036
  /**
4801
- * Whether to include traces in the webhook payload.
5037
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4802
5038
  */
4803
5039
  includeInternalTxs?: boolean;
4804
5040
  /**
@@ -4858,6 +5094,9 @@ type UpdateWebhookRequest = {
4858
5094
  description?: string;
4859
5095
  url?: string;
4860
5096
  status?: WebhookStatusType;
5097
+ /**
5098
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5099
+ */
4861
5100
  includeInternalTxs?: boolean;
4862
5101
  includeLogs?: boolean;
4863
5102
  };
@@ -5017,7 +5256,6 @@ declare class Glacier {
5017
5256
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5018
5257
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5019
5258
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5020
- readonly rpc: RpcService;
5021
5259
  readonly signatureAggregator: SignatureAggregatorService;
5022
5260
  readonly teleporter: TeleporterService;
5023
5261
  readonly webhooks: WebhooksService;
@@ -5173,4 +5411,4 @@ type Unauthorized = {
5173
5411
  error: string;
5174
5412
  };
5175
5413
 
5176
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5414
+ 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, 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 };