@avalabs/glacier-sdk 3.1.0-canary.ddda6be.0 → 3.1.0-canary.de1a809.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 (44) hide show
  1. package/dist/index.d.ts +211 -80
  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/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  8. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  9. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  10. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  11. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  12. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  13. package/esm/generated/models/PChainTransaction.d.ts +14 -0
  14. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  15. package/esm/generated/models/PChainTransactionType.js +1 -1
  16. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  17. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  18. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  19. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  20. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  21. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
  22. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  23. package/esm/generated/models/Subnet.d.ts +9 -0
  24. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  25. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  26. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  27. package/esm/generated/services/DataApiUsageMetricsService.d.ts +21 -22
  28. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  29. package/esm/generated/services/EvmChainsService.d.ts +3 -2
  30. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  31. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  32. package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
  33. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  34. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  35. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  36. package/esm/index.d.ts +8 -5
  37. package/esm/index.js +1 -1
  38. package/package.json +2 -2
  39. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  40. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  41. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  42. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  43. package/esm/generated/services/RpcService.d.ts +0 -25
  44. 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
  */
@@ -1120,6 +1134,11 @@ type ChainInfo = {
1120
1134
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1135
  };
1122
1136
 
1137
+ type ListAddressChainsResponse = {
1138
+ indexedChains?: Array<ChainInfo>;
1139
+ unindexedChains?: Array<string>;
1140
+ };
1141
+
1123
1142
  type ListChainsResponse = {
1124
1143
  chains: Array<ChainInfo>;
1125
1144
  };
@@ -1165,7 +1184,7 @@ declare class EvmChainsService {
1165
1184
  /**
1166
1185
  * Get chains for address
1167
1186
  * Gets the list of chains an address has interacted with.
1168
- * @returns ListChainsResponse Successful response
1187
+ * @returns ListAddressChainsResponse Successful response
1169
1188
  * @throws ApiError
1170
1189
  */
1171
1190
  getAddressChains({ address, }: {
@@ -1173,7 +1192,7 @@ declare class EvmChainsService {
1173
1192
  * A wallet address.
1174
1193
  */
1175
1194
  address: string;
1176
- }): CancelablePromise<ListChainsResponse>;
1195
+ }): CancelablePromise<ListAddressChainsResponse>;
1177
1196
  }
1178
1197
 
1179
1198
  type ImageAsset = {
@@ -2702,10 +2721,61 @@ type ListDelegatorDetailsResponse = {
2702
2721
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2703
2722
  };
2704
2723
 
2724
+ type BalanceOwner = {
2725
+ addresses: Array<string>;
2726
+ threshold: number;
2727
+ };
2728
+
2729
+ type L1ValidatorDetailsFull = {
2730
+ /**
2731
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2732
+ */
2733
+ validationId: string;
2734
+ nodeId: string;
2735
+ subnetId: string;
2736
+ /**
2737
+ * 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
2738
+ */
2739
+ weight: number;
2740
+ /**
2741
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2742
+ */
2743
+ remainingBalance: number;
2744
+ /**
2745
+ * The timestamp of the transaction which created this L1 validator
2746
+ */
2747
+ creationTimestamp: number;
2748
+ blsCredentials: Record<string, any>;
2749
+ /**
2750
+ * The L1 validator owner's balance, returned after it's disabled or removed
2751
+ */
2752
+ remainingBalanceOwner: BalanceOwner;
2753
+ /**
2754
+ * Owner ddresses details which can disable or remove the L1 validator
2755
+ */
2756
+ deactivationOwner: BalanceOwner;
2757
+ };
2758
+
2759
+ type ListL1ValidatorsResponse = {
2760
+ /**
2761
+ * 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.
2762
+ */
2763
+ nextPageToken?: string;
2764
+ /**
2765
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2766
+ */
2767
+ validators: Array<L1ValidatorDetailsFull>;
2768
+ };
2769
+
2705
2770
  type BlockchainInfo = {
2706
2771
  blockchainId: string;
2707
2772
  };
2708
2773
 
2774
+ type L1ValidatorManagerDetails = {
2775
+ blockchainId: string;
2776
+ contractAddress: string;
2777
+ };
2778
+
2709
2779
  type SubnetOwnershipInfo = {
2710
2780
  /**
2711
2781
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2744,6 +2814,14 @@ type Subnet = {
2744
2814
  * Latest subnet owner details for this Subnet.
2745
2815
  */
2746
2816
  subnetOwnershipInfo: SubnetOwnershipInfo;
2817
+ /**
2818
+ * Whether the subnet is an L1 or not.
2819
+ */
2820
+ isL1: boolean;
2821
+ /**
2822
+ * L1 validator manager details.
2823
+ */
2824
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2747
2825
  blockchains: Array<BlockchainInfo>;
2748
2826
  };
2749
2827
 
@@ -3210,6 +3288,39 @@ declare class PrimaryNetworkService {
3210
3288
  */
3211
3289
  nodeIds?: string;
3212
3290
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3291
+ /**
3292
+ * List L1 validators
3293
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3294
+ * @returns ListL1ValidatorsResponse Successful response
3295
+ * @throws ApiError
3296
+ */
3297
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3298
+ /**
3299
+ * Either mainnet or testnet/fuji.
3300
+ */
3301
+ network: Network;
3302
+ /**
3303
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3304
+ */
3305
+ pageToken?: string;
3306
+ /**
3307
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3308
+ */
3309
+ pageSize?: number;
3310
+ /**
3311
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3312
+ */
3313
+ l1ValidationId?: any;
3314
+ includeInactiveL1Validators?: boolean;
3315
+ /**
3316
+ * A valid node ID in format 'NodeID-HASH'.
3317
+ */
3318
+ nodeId?: string;
3319
+ /**
3320
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3321
+ */
3322
+ subnetId?: any;
3323
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3213
3324
  }
3214
3325
 
3215
3326
  declare enum BlockchainId {
@@ -3456,6 +3567,8 @@ type GetPrimaryNetworkBlockResponse = {
3456
3567
  txCount: number;
3457
3568
  transactions: Array<string>;
3458
3569
  blockSizeBytes: number;
3570
+ l1ValidatorsAccruedFees?: number;
3571
+ activeL1Validators?: number;
3459
3572
  currentSupply?: string;
3460
3573
  proposerDetails?: ProposerDetails;
3461
3574
  };
@@ -3469,6 +3582,8 @@ type PrimaryNetworkBlock = {
3469
3582
  txCount: number;
3470
3583
  transactions: Array<string>;
3471
3584
  blockSizeBytes: number;
3585
+ l1ValidatorsAccruedFees?: number;
3586
+ activeL1Validators?: number;
3472
3587
  currentSupply?: string;
3473
3588
  proposerDetails?: ProposerDetails;
3474
3589
  };
@@ -3511,7 +3626,7 @@ declare class PrimaryNetworkBlocksService {
3511
3626
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3512
3627
  * @throws ApiError
3513
3628
  */
3514
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3629
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3515
3630
  /**
3516
3631
  * A primary network blockchain id or alias.
3517
3632
  */
@@ -3524,6 +3639,14 @@ declare class PrimaryNetworkBlocksService {
3524
3639
  * A primary network (P or X chain) nodeId.
3525
3640
  */
3526
3641
  nodeId: string;
3642
+ /**
3643
+ * Query param for retrieving items after a specific timestamp.
3644
+ */
3645
+ startTimestamp?: number;
3646
+ /**
3647
+ * Query param for retrieving items before a specific timestamp.
3648
+ */
3649
+ endTimestamp?: number;
3527
3650
  /**
3528
3651
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3529
3652
  */
@@ -3539,7 +3662,7 @@ declare class PrimaryNetworkBlocksService {
3539
3662
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3540
3663
  * @throws ApiError
3541
3664
  */
3542
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3665
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3543
3666
  /**
3544
3667
  * A primary network blockchain id or alias.
3545
3668
  */
@@ -3548,6 +3671,14 @@ declare class PrimaryNetworkBlocksService {
3548
3671
  * Either mainnet or testnet/fuji.
3549
3672
  */
3550
3673
  network: Network;
3674
+ /**
3675
+ * Query param for retrieving items after a specific timestamp.
3676
+ */
3677
+ startTimestamp?: number;
3678
+ /**
3679
+ * Query param for retrieving items before a specific timestamp.
3680
+ */
3681
+ endTimestamp?: number;
3551
3682
  /**
3552
3683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3553
3684
  */
@@ -3957,6 +4088,28 @@ type ListCChainAtomicTransactionsResponse = {
3957
4088
  chainInfo: PrimaryNetworkChainInfo;
3958
4089
  };
3959
4090
 
4091
+ type L1ValidatorDetailsTransaction = {
4092
+ /**
4093
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4094
+ */
4095
+ validationId: string;
4096
+ nodeId: string;
4097
+ subnetId: string;
4098
+ /**
4099
+ * 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
4100
+ */
4101
+ weight: number;
4102
+ /**
4103
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4104
+ */
4105
+ remainingBalance: number;
4106
+ /**
4107
+ * 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
4108
+ */
4109
+ balanceChange?: number;
4110
+ blsCredentials?: Record<string, any>;
4111
+ };
4112
+
3960
4113
  declare enum PChainTransactionType {
3961
4114
  ADD_VALIDATOR_TX = "AddValidatorTx",
3962
4115
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3973,6 +4126,11 @@ declare enum PChainTransactionType {
3973
4126
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3974
4127
  BASE_TX = "BaseTx",
3975
4128
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4129
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4130
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4131
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4132
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4133
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3976
4134
  UNKNOWN = "UNKNOWN"
3977
4135
  }
3978
4136
 
@@ -4061,6 +4219,10 @@ type PChainTransaction = {
4061
4219
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4062
4220
  */
4063
4221
  amountStaked: Array<AssetAmount>;
4222
+ /**
4223
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4224
+ */
4225
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4064
4226
  /**
4065
4227
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4066
4228
  */
@@ -4081,6 +4243,14 @@ type PChainTransaction = {
4081
4243
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
4082
4244
  */
4083
4245
  subnetId?: string;
4246
+ /**
4247
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4248
+ */
4249
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4250
+ /**
4251
+ * 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
4252
+ */
4253
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4084
4254
  /**
4085
4255
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4086
4256
  */
@@ -4282,6 +4452,11 @@ declare enum PrimaryNetworkTxType {
4282
4452
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4283
4453
  BASE_TX = "BaseTx",
4284
4454
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4455
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4456
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4457
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4458
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4459
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4285
4460
  UNKNOWN = "UNKNOWN",
4286
4461
  CREATE_ASSET_TX = "CreateAssetTx",
4287
4462
  OPERATION_TX = "OperationTx"
@@ -4316,11 +4491,13 @@ declare class PrimaryNetworkTransactionsService {
4316
4491
  *
4317
4492
  * 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.
4318
4493
  *
4494
+ * 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.
4495
+ *
4319
4496
  * 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.
4320
4497
  * @returns any Successful response
4321
4498
  * @throws ApiError
4322
4499
  */
4323
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4500
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4324
4501
  /**
4325
4502
  * A primary network blockchain id or alias.
4326
4503
  */
@@ -4333,6 +4510,7 @@ declare class PrimaryNetworkTransactionsService {
4333
4510
  * 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.
4334
4511
  */
4335
4512
  addresses?: string;
4513
+ l1ValidationId?: string;
4336
4514
  /**
4337
4515
  * Query param for filtering items based on transaction types.
4338
4516
  */
@@ -4608,61 +4786,12 @@ declare class PrimaryNetworkVerticesService {
4608
4786
  }): CancelablePromise<ListXChainVerticesResponse>;
4609
4787
  }
4610
4788
 
4611
- type RpcErrorDto = {
4612
- code: number;
4613
- message: string;
4614
- data?: Record<string, any>;
4615
- };
4616
-
4617
- type RpcErrorResponseDto = {
4618
- jsonrpc: string;
4619
- id?: (string | number);
4620
- error: RpcErrorDto;
4621
- };
4622
-
4623
- type RpcRequestBodyDto = {
4624
- method: string;
4625
- params?: Record<string, any>;
4626
- id?: (string | number);
4627
- jsonrpc?: string;
4628
- };
4629
-
4630
- type RpcSuccessResponseDto = {
4631
- jsonrpc: string;
4632
- id?: (string | number);
4633
- result: Record<string, any>;
4634
- };
4635
-
4636
- declare class RpcService {
4637
- readonly httpRequest: BaseHttpRequest;
4638
- constructor(httpRequest: BaseHttpRequest);
4639
- /**
4640
- * Calls JSON-RPC method
4641
- * Calls JSON-RPC method.
4642
- * @returns any Successful response
4643
- * @throws ApiError
4644
- */
4645
- rpc({ chainId, requestBody, }: {
4646
- /**
4647
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4648
- */
4649
- chainId: string;
4650
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4651
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4652
- }
4653
-
4654
4789
  type SignatureAggregationResponse = {
4655
4790
  signedMessage: string;
4656
4791
  };
4657
4792
 
4658
4793
  type SignatureAggregatorRequest = {
4659
- /**
4660
- * Must be defined if justification is not defined
4661
- */
4662
- message?: string;
4663
- /**
4664
- * Must be defined if message is not defined
4665
- */
4794
+ message: string;
4666
4795
  justification?: string;
4667
4796
  signingSubnetId?: string;
4668
4797
  quorumPercentage?: number;
@@ -4927,7 +5056,7 @@ type CreateWebhookRequest = {
4927
5056
  name?: string;
4928
5057
  description?: string;
4929
5058
  /**
4930
- * Whether to include traces in the webhook payload.
5059
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4931
5060
  */
4932
5061
  includeInternalTxs?: boolean;
4933
5062
  /**
@@ -4987,6 +5116,9 @@ type UpdateWebhookRequest = {
4987
5116
  description?: string;
4988
5117
  url?: string;
4989
5118
  status?: WebhookStatusType;
5119
+ /**
5120
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5121
+ */
4990
5122
  includeInternalTxs?: boolean;
4991
5123
  includeLogs?: boolean;
4992
5124
  };
@@ -5146,7 +5278,6 @@ declare class Glacier {
5146
5278
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5147
5279
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5148
5280
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5149
- readonly rpc: RpcService;
5150
5281
  readonly signatureAggregator: SignatureAggregatorService;
5151
5282
  readonly teleporter: TeleporterService;
5152
5283
  readonly webhooks: WebhooksService;
@@ -5302,4 +5433,4 @@ type Unauthorized = {
5302
5433
  error: string;
5303
5434
  };
5304
5435
 
5305
- 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, 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 };
5436
+ 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 };