@avalabs/glacier-sdk 3.1.0-canary.c57360e.0 → 3.1.0-canary.c6e87d2.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 (49) hide show
  1. package/dist/index.d.ts +223 -85
  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/CreateWebhookRequest.d.ts +1 -1
  7. package/esm/generated/models/Erc20TokenBalance.d.ts +1 -0
  8. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  9. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  10. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  11. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  12. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  13. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  14. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  15. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  16. package/esm/generated/models/PChainTransactionType.js +1 -1
  17. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  18. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  19. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  20. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  21. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  22. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  23. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  24. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  25. package/esm/generated/models/Subnet.d.ts +9 -0
  26. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  27. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  28. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  29. package/esm/generated/services/DataApiUsageMetricsService.d.ts +21 -22
  30. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  31. package/esm/generated/services/EvmChainsService.d.ts +13 -0
  32. package/esm/generated/services/EvmChainsService.js +1 -1
  33. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  34. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  35. package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
  36. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  37. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  38. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  39. package/esm/index.d.ts +8 -6
  40. package/esm/index.js +1 -1
  41. package/package.json +2 -2
  42. package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
  43. package/esm/generated/models/PrimaryNetwork.js +0 -1
  44. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  45. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  46. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  47. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  48. package/esm/generated/services/RpcService.d.ts +0 -25
  49. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -148,6 +148,12 @@ type LogsResponseDTO = {
148
148
  logs: Array<LogsFormat>;
149
149
  };
150
150
 
151
+ declare enum RpcUsageMetricsGroupByEnum {
152
+ RPC_METHOD = "rpcMethod",
153
+ RESPONSE_CODE = "responseCode",
154
+ RL_BYPASS_TOKEN = "rlBypassToken"
155
+ }
156
+
151
157
  type RpcUsageMetricsValueAggregated = {
152
158
  /**
153
159
  * The total number of requests
@@ -173,6 +179,10 @@ type RpcUsageMetricsValueAggregated = {
173
179
  * The number of invalid requests
174
180
  */
175
181
  invalidRequests: number;
182
+ /**
183
+ * The number of API credits wasted on invalid requests
184
+ */
185
+ apiCreditsWasted: number;
176
186
  /**
177
187
  * Column name used for data aggregation
178
188
  */
@@ -220,6 +230,13 @@ type RpcUsageMetricsResponseDTO = {
220
230
  metrics: Array<RpcMetrics>;
221
231
  };
222
232
 
233
+ declare enum SubnetRpcTimeIntervalGranularity {
234
+ HOURLY = "hourly",
235
+ DAILY = "daily",
236
+ WEEKLY = "weekly",
237
+ MONTHLY = "monthly"
238
+ }
239
+
223
240
  declare enum TimeIntervalGranularityExtended {
224
241
  MINUTE = "minute",
225
242
  HOURLY = "hourly",
@@ -323,7 +340,7 @@ declare class DataApiUsageMetricsService {
323
340
  * @returns UsageMetricsResponseDTO Successful response
324
341
  * @throws ApiError
325
342
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
343
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
344
  /**
328
345
  * Organization ID to fetch usage metrics for
329
346
  */
@@ -333,7 +350,7 @@ declare class DataApiUsageMetricsService {
333
350
  */
334
351
  startTimestamp?: number;
335
352
  /**
336
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
353
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
337
354
  */
338
355
  endTimestamp?: number;
339
356
  /**
@@ -348,10 +365,6 @@ declare class DataApiUsageMetricsService {
348
365
  * Filter data by chain ID.
349
366
  */
350
367
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
368
  /**
356
369
  * Filter data by response status code.
357
370
  */
@@ -364,6 +377,10 @@ declare class DataApiUsageMetricsService {
364
377
  * Filter data by API key ID.
365
378
  */
366
379
  apiKeyId?: string;
380
+ /**
381
+ * Filter data by request path.
382
+ */
383
+ requestPath?: string;
367
384
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
385
  /**
369
386
  * Get logs for requests made by client
@@ -371,7 +388,7 @@ declare class DataApiUsageMetricsService {
371
388
  * @returns LogsResponseDTO Successful response
372
389
  * @throws ApiError
373
390
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
391
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
392
  /**
376
393
  * Organization ID to fetch usage metrics for
377
394
  */
@@ -381,17 +398,13 @@ declare class DataApiUsageMetricsService {
381
398
  */
382
399
  startTimestamp?: number;
383
400
  /**
384
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
401
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
385
402
  */
386
403
  endTimestamp?: number;
387
404
  /**
388
405
  * Filter data by chain ID.
389
406
  */
390
407
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
408
  /**
396
409
  * Filter data by response status code.
397
410
  */
@@ -404,6 +417,10 @@ declare class DataApiUsageMetricsService {
404
417
  * Filter data by API key ID.
405
418
  */
406
419
  apiKeyId?: string;
420
+ /**
421
+ * Filter data by request path.
422
+ */
423
+ requestPath?: string;
407
424
  /**
408
425
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
426
  */
@@ -415,35 +432,32 @@ declare class DataApiUsageMetricsService {
415
432
  }): CancelablePromise<LogsResponseDTO>;
416
433
  /**
417
434
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
435
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
436
  * @returns RpcUsageMetricsResponseDTO Successful response
420
437
  * @throws ApiError
421
438
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
439
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
440
  /**
424
- * Query param for setting time interval of data aggregation.
441
+ * Time interval granularity for data aggregation for subnet
442
+ * rpc metrics
425
443
  */
426
- timeInterval?: string;
444
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
445
  /**
428
446
  * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
429
447
  */
430
448
  startTimestamp?: number;
431
449
  /**
432
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
450
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
433
451
  */
434
452
  endTimestamp?: number;
435
453
  /**
436
454
  * Query param for the criterion used for grouping metrics
437
455
  */
438
- groupBy?: UsageMetricsGroupByEnum;
456
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
457
  /**
440
458
  * Filter data by chain ID.
441
459
  */
442
460
  chainId?: string;
443
- /**
444
- * Filter data by request path.
445
- */
446
- requestPath?: string;
447
461
  /**
448
462
  * Filter data by response status code.
449
463
  */
@@ -699,6 +713,7 @@ type Erc20TokenBalance = {
699
713
  * The monetary value of the balance, if a price is available for the token.
700
714
  */
701
715
  balanceValue?: Money;
716
+ tokenStatus: Record<string, any>;
702
717
  };
703
718
  declare namespace Erc20TokenBalance {
704
719
  enum ercType {
@@ -1120,6 +1135,11 @@ type ChainInfo = {
1120
1135
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1136
  };
1122
1137
 
1138
+ type ListAddressChainsResponse = {
1139
+ indexedChains?: Array<ChainInfo>;
1140
+ unindexedChains?: Array<string>;
1141
+ };
1142
+
1123
1143
  type ListChainsResponse = {
1124
1144
  chains: Array<ChainInfo>;
1125
1145
  };
@@ -1162,6 +1182,18 @@ declare class EvmChainsService {
1162
1182
  */
1163
1183
  chainId: string;
1164
1184
  }): CancelablePromise<GetChainResponse>;
1185
+ /**
1186
+ * Get chains for address
1187
+ * 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.
1188
+ * @returns ListAddressChainsResponse Successful response
1189
+ * @throws ApiError
1190
+ */
1191
+ getAddressChains({ address, }: {
1192
+ /**
1193
+ * A wallet address.
1194
+ */
1195
+ address: string;
1196
+ }): CancelablePromise<ListAddressChainsResponse>;
1165
1197
  }
1166
1198
 
1167
1199
  type ImageAsset = {
@@ -2690,10 +2722,61 @@ type ListDelegatorDetailsResponse = {
2690
2722
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2691
2723
  };
2692
2724
 
2725
+ type BalanceOwner = {
2726
+ addresses: Array<string>;
2727
+ threshold: number;
2728
+ };
2729
+
2730
+ type L1ValidatorDetailsFull = {
2731
+ /**
2732
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2733
+ */
2734
+ validationId: string;
2735
+ nodeId: string;
2736
+ subnetId: string;
2737
+ /**
2738
+ * 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
2739
+ */
2740
+ weight: number;
2741
+ /**
2742
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2743
+ */
2744
+ remainingBalance: number;
2745
+ /**
2746
+ * The timestamp of the transaction which created this L1 validator
2747
+ */
2748
+ creationTimestamp: number;
2749
+ blsCredentials: Record<string, any>;
2750
+ /**
2751
+ * The L1 validator owner's balance, returned after it's disabled or removed
2752
+ */
2753
+ remainingBalanceOwner: BalanceOwner;
2754
+ /**
2755
+ * Owner ddresses details which can disable or remove the L1 validator
2756
+ */
2757
+ deactivationOwner: BalanceOwner;
2758
+ };
2759
+
2760
+ type ListL1ValidatorsResponse = {
2761
+ /**
2762
+ * 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.
2763
+ */
2764
+ nextPageToken?: string;
2765
+ /**
2766
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2767
+ */
2768
+ validators: Array<L1ValidatorDetailsFull>;
2769
+ };
2770
+
2693
2771
  type BlockchainInfo = {
2694
2772
  blockchainId: string;
2695
2773
  };
2696
2774
 
2775
+ type L1ValidatorManagerDetails = {
2776
+ blockchainId: string;
2777
+ contractAddress: string;
2778
+ };
2779
+
2697
2780
  type SubnetOwnershipInfo = {
2698
2781
  /**
2699
2782
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2732,6 +2815,14 @@ type Subnet = {
2732
2815
  * Latest subnet owner details for this Subnet.
2733
2816
  */
2734
2817
  subnetOwnershipInfo: SubnetOwnershipInfo;
2818
+ /**
2819
+ * Whether the subnet is an L1 or not.
2820
+ */
2821
+ isL1: boolean;
2822
+ /**
2823
+ * L1 validator manager details.
2824
+ */
2825
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2735
2826
  blockchains: Array<BlockchainInfo>;
2736
2827
  };
2737
2828
 
@@ -3198,6 +3289,39 @@ declare class PrimaryNetworkService {
3198
3289
  */
3199
3290
  nodeIds?: string;
3200
3291
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3292
+ /**
3293
+ * List L1 validators
3294
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3295
+ * @returns ListL1ValidatorsResponse Successful response
3296
+ * @throws ApiError
3297
+ */
3298
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3299
+ /**
3300
+ * Either mainnet or testnet/fuji.
3301
+ */
3302
+ network: Network;
3303
+ /**
3304
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3305
+ */
3306
+ pageToken?: string;
3307
+ /**
3308
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3309
+ */
3310
+ pageSize?: number;
3311
+ /**
3312
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3313
+ */
3314
+ l1ValidationId?: any;
3315
+ includeInactiveL1Validators?: boolean;
3316
+ /**
3317
+ * A valid node ID in format 'NodeID-HASH'.
3318
+ */
3319
+ nodeId?: string;
3320
+ /**
3321
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3322
+ */
3323
+ subnetId?: any;
3324
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3201
3325
  }
3202
3326
 
3203
3327
  declare enum BlockchainId {
@@ -3244,12 +3368,6 @@ type CChainAtomicBalances = {
3244
3368
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3245
3369
  };
3246
3370
 
3247
- declare enum PrimaryNetwork {
3248
- MAINNET = "mainnet",
3249
- FUJI = "fuji",
3250
- DEVNET = "devnet"
3251
- }
3252
-
3253
3371
  declare enum PrimaryNetworkChainName {
3254
3372
  P_CHAIN = "p-chain",
3255
3373
  X_CHAIN = "x-chain",
@@ -3258,7 +3376,7 @@ declare enum PrimaryNetworkChainName {
3258
3376
 
3259
3377
  type PrimaryNetworkChainInfo = {
3260
3378
  chainName: PrimaryNetworkChainName;
3261
- network: PrimaryNetwork;
3379
+ network: Network;
3262
3380
  };
3263
3381
 
3264
3382
  type ListCChainAtomicBalancesResponse = {
@@ -3450,6 +3568,8 @@ type GetPrimaryNetworkBlockResponse = {
3450
3568
  txCount: number;
3451
3569
  transactions: Array<string>;
3452
3570
  blockSizeBytes: number;
3571
+ l1ValidatorsAccruedFees?: number;
3572
+ activeL1Validators?: number;
3453
3573
  currentSupply?: string;
3454
3574
  proposerDetails?: ProposerDetails;
3455
3575
  };
@@ -3463,6 +3583,8 @@ type PrimaryNetworkBlock = {
3463
3583
  txCount: number;
3464
3584
  transactions: Array<string>;
3465
3585
  blockSizeBytes: number;
3586
+ l1ValidatorsAccruedFees?: number;
3587
+ activeL1Validators?: number;
3466
3588
  currentSupply?: string;
3467
3589
  proposerDetails?: ProposerDetails;
3468
3590
  };
@@ -3505,7 +3627,7 @@ declare class PrimaryNetworkBlocksService {
3505
3627
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3506
3628
  * @throws ApiError
3507
3629
  */
3508
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3630
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3509
3631
  /**
3510
3632
  * A primary network blockchain id or alias.
3511
3633
  */
@@ -3518,6 +3640,14 @@ declare class PrimaryNetworkBlocksService {
3518
3640
  * A primary network (P or X chain) nodeId.
3519
3641
  */
3520
3642
  nodeId: string;
3643
+ /**
3644
+ * Query param for retrieving items after a specific timestamp.
3645
+ */
3646
+ startTimestamp?: number;
3647
+ /**
3648
+ * Query param for retrieving items before a specific timestamp.
3649
+ */
3650
+ endTimestamp?: number;
3521
3651
  /**
3522
3652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3523
3653
  */
@@ -3533,7 +3663,7 @@ declare class PrimaryNetworkBlocksService {
3533
3663
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3534
3664
  * @throws ApiError
3535
3665
  */
3536
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3666
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3537
3667
  /**
3538
3668
  * A primary network blockchain id or alias.
3539
3669
  */
@@ -3542,6 +3672,14 @@ declare class PrimaryNetworkBlocksService {
3542
3672
  * Either mainnet or testnet/fuji.
3543
3673
  */
3544
3674
  network: Network;
3675
+ /**
3676
+ * Query param for retrieving items after a specific timestamp.
3677
+ */
3678
+ startTimestamp?: number;
3679
+ /**
3680
+ * Query param for retrieving items before a specific timestamp.
3681
+ */
3682
+ endTimestamp?: number;
3545
3683
  /**
3546
3684
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3547
3685
  */
@@ -3951,6 +4089,28 @@ type ListCChainAtomicTransactionsResponse = {
3951
4089
  chainInfo: PrimaryNetworkChainInfo;
3952
4090
  };
3953
4091
 
4092
+ type L1ValidatorDetailsTransaction = {
4093
+ /**
4094
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4095
+ */
4096
+ validationId: string;
4097
+ nodeId: string;
4098
+ subnetId: string;
4099
+ /**
4100
+ * 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
4101
+ */
4102
+ weight: number;
4103
+ /**
4104
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4105
+ */
4106
+ remainingBalance: number;
4107
+ /**
4108
+ * 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
4109
+ */
4110
+ balanceChange?: number;
4111
+ blsCredentials?: Record<string, any>;
4112
+ };
4113
+
3954
4114
  declare enum PChainTransactionType {
3955
4115
  ADD_VALIDATOR_TX = "AddValidatorTx",
3956
4116
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3967,6 +4127,11 @@ declare enum PChainTransactionType {
3967
4127
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3968
4128
  BASE_TX = "BaseTx",
3969
4129
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4130
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4131
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4132
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4133
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4134
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3970
4135
  UNKNOWN = "UNKNOWN"
3971
4136
  }
3972
4137
 
@@ -4055,6 +4220,10 @@ type PChainTransaction = {
4055
4220
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4056
4221
  */
4057
4222
  amountStaked: Array<AssetAmount>;
4223
+ /**
4224
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4225
+ */
4226
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4058
4227
  /**
4059
4228
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4060
4229
  */
@@ -4075,6 +4244,14 @@ type PChainTransaction = {
4075
4244
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
4076
4245
  */
4077
4246
  subnetId?: string;
4247
+ /**
4248
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4249
+ */
4250
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4251
+ /**
4252
+ * 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
4253
+ */
4254
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4078
4255
  /**
4079
4256
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4080
4257
  */
@@ -4276,6 +4453,11 @@ declare enum PrimaryNetworkTxType {
4276
4453
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4277
4454
  BASE_TX = "BaseTx",
4278
4455
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4456
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4457
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4458
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4459
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4460
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4279
4461
  UNKNOWN = "UNKNOWN",
4280
4462
  CREATE_ASSET_TX = "CreateAssetTx",
4281
4463
  OPERATION_TX = "OperationTx"
@@ -4310,11 +4492,13 @@ declare class PrimaryNetworkTransactionsService {
4310
4492
  *
4311
4493
  * 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.
4312
4494
  *
4495
+ * 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.
4496
+ *
4313
4497
  * 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.
4314
4498
  * @returns any Successful response
4315
4499
  * @throws ApiError
4316
4500
  */
4317
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4501
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4318
4502
  /**
4319
4503
  * A primary network blockchain id or alias.
4320
4504
  */
@@ -4327,6 +4511,7 @@ declare class PrimaryNetworkTransactionsService {
4327
4511
  * 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.
4328
4512
  */
4329
4513
  addresses?: string;
4514
+ l1ValidationId?: string;
4330
4515
  /**
4331
4516
  * Query param for filtering items based on transaction types.
4332
4517
  */
@@ -4602,61 +4787,12 @@ declare class PrimaryNetworkVerticesService {
4602
4787
  }): CancelablePromise<ListXChainVerticesResponse>;
4603
4788
  }
4604
4789
 
4605
- type RpcErrorDto = {
4606
- code: number;
4607
- message: string;
4608
- data?: Record<string, any>;
4609
- };
4610
-
4611
- type RpcErrorResponseDto = {
4612
- jsonrpc: string;
4613
- id?: (string | number);
4614
- error: RpcErrorDto;
4615
- };
4616
-
4617
- type RpcRequestBodyDto = {
4618
- method: string;
4619
- params?: Record<string, any>;
4620
- id?: (string | number);
4621
- jsonrpc?: string;
4622
- };
4623
-
4624
- type RpcSuccessResponseDto = {
4625
- jsonrpc: string;
4626
- id?: (string | number);
4627
- result: Record<string, any>;
4628
- };
4629
-
4630
- declare class RpcService {
4631
- readonly httpRequest: BaseHttpRequest;
4632
- constructor(httpRequest: BaseHttpRequest);
4633
- /**
4634
- * Calls JSON-RPC method
4635
- * Calls JSON-RPC method.
4636
- * @returns any Successful response
4637
- * @throws ApiError
4638
- */
4639
- rpc({ chainId, requestBody, }: {
4640
- /**
4641
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4642
- */
4643
- chainId: string;
4644
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4645
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4646
- }
4647
-
4648
4790
  type SignatureAggregationResponse = {
4649
4791
  signedMessage: string;
4650
4792
  };
4651
4793
 
4652
4794
  type SignatureAggregatorRequest = {
4653
- /**
4654
- * Must be defined if justification is not defined
4655
- */
4656
- message?: string;
4657
- /**
4658
- * Must be defined if message is not defined
4659
- */
4795
+ message: string;
4660
4796
  justification?: string;
4661
4797
  signingSubnetId?: string;
4662
4798
  quorumPercentage?: number;
@@ -4921,7 +5057,7 @@ type CreateWebhookRequest = {
4921
5057
  name?: string;
4922
5058
  description?: string;
4923
5059
  /**
4924
- * Whether to include traces in the webhook payload.
5060
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4925
5061
  */
4926
5062
  includeInternalTxs?: boolean;
4927
5063
  /**
@@ -4981,6 +5117,9 @@ type UpdateWebhookRequest = {
4981
5117
  description?: string;
4982
5118
  url?: string;
4983
5119
  status?: WebhookStatusType;
5120
+ /**
5121
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5122
+ */
4984
5123
  includeInternalTxs?: boolean;
4985
5124
  includeLogs?: boolean;
4986
5125
  };
@@ -5140,7 +5279,6 @@ declare class Glacier {
5140
5279
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5141
5280
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5142
5281
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5143
- readonly rpc: RpcService;
5144
5282
  readonly signatureAggregator: SignatureAggregatorService;
5145
5283
  readonly teleporter: TeleporterService;
5146
5284
  readonly webhooks: WebhooksService;
@@ -5296,4 +5434,4 @@ type Unauthorized = {
5296
5434
  error: string;
5297
5435
  };
5298
5436
 
5299
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
5437
+ 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 };