@avalabs/glacier-sdk 3.1.0-canary.401b32b.0 → 3.1.0-canary.4320153.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.
- package/dist/index.d.ts +119 -91
- package/dist/index.js +1 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -2
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/{ListSubnetOnlyValidatorsResponse.d.ts → ListL1ValidatorsResponse.d.ts} +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +18 -19
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +9 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/index.d.ts +5 -3
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
- package/esm/generated/models/SovDetailsFull.d.ts +0 -33
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,
|
|
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
|
*/
|
|
@@ -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,
|
|
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
|
*/
|
|
@@ -388,10 +405,6 @@ declare class DataApiUsageMetricsService {
|
|
|
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,15 +432,16 @@ 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,
|
|
439
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
440
|
/**
|
|
424
|
-
*
|
|
441
|
+
* Time interval granularity for data aggregation for subnet
|
|
442
|
+
* rpc metrics
|
|
425
443
|
*/
|
|
426
|
-
timeInterval?:
|
|
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
|
*/
|
|
@@ -435,15 +453,11 @@ declare class DataApiUsageMetricsService {
|
|
|
435
453
|
/**
|
|
436
454
|
* Query param for the criterion used for grouping metrics
|
|
437
455
|
*/
|
|
438
|
-
groupBy?:
|
|
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 {
|
|
@@ -1169,7 +1184,7 @@ declare class EvmChainsService {
|
|
|
1169
1184
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
1185
|
/**
|
|
1171
1186
|
* Get chains for address
|
|
1172
|
-
* Gets
|
|
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.
|
|
1173
1188
|
* @returns ListAddressChainsResponse Successful response
|
|
1174
1189
|
* @throws ApiError
|
|
1175
1190
|
*/
|
|
@@ -2712,37 +2727,37 @@ type BalanceOwner = {
|
|
|
2712
2727
|
threshold: number;
|
|
2713
2728
|
};
|
|
2714
2729
|
|
|
2715
|
-
type
|
|
2730
|
+
type L1ValidatorDetailsFull = {
|
|
2716
2731
|
/**
|
|
2717
|
-
* Unique
|
|
2732
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2718
2733
|
*/
|
|
2719
2734
|
validationId: string;
|
|
2720
2735
|
nodeId: string;
|
|
2721
2736
|
subnetId: string;
|
|
2722
2737
|
/**
|
|
2723
|
-
* Weight of the
|
|
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
|
|
2724
2739
|
*/
|
|
2725
2740
|
weight: number;
|
|
2726
2741
|
/**
|
|
2727
|
-
* Remaining
|
|
2742
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2728
2743
|
*/
|
|
2729
2744
|
remainingBalance: number;
|
|
2730
2745
|
/**
|
|
2731
|
-
* The timestamp of the transaction which created this
|
|
2746
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2732
2747
|
*/
|
|
2733
2748
|
creationTimestamp: number;
|
|
2734
2749
|
blsCredentials: Record<string, any>;
|
|
2735
2750
|
/**
|
|
2736
|
-
* The
|
|
2751
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2737
2752
|
*/
|
|
2738
2753
|
remainingBalanceOwner: BalanceOwner;
|
|
2739
2754
|
/**
|
|
2740
|
-
* Owner ddresses details which can disable or remove the
|
|
2755
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2741
2756
|
*/
|
|
2742
2757
|
deactivationOwner: BalanceOwner;
|
|
2743
2758
|
};
|
|
2744
2759
|
|
|
2745
|
-
type
|
|
2760
|
+
type ListL1ValidatorsResponse = {
|
|
2746
2761
|
/**
|
|
2747
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.
|
|
2748
2763
|
*/
|
|
@@ -2750,7 +2765,7 @@ type ListSubnetOnlyValidatorsResponse = {
|
|
|
2750
2765
|
/**
|
|
2751
2766
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
2767
|
*/
|
|
2753
|
-
validators: Array<
|
|
2768
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2754
2769
|
};
|
|
2755
2770
|
|
|
2756
2771
|
type BlockchainInfo = {
|
|
@@ -3275,12 +3290,12 @@ declare class PrimaryNetworkService {
|
|
|
3275
3290
|
nodeIds?: string;
|
|
3276
3291
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3277
3292
|
/**
|
|
3278
|
-
* List
|
|
3279
|
-
* Lists details for
|
|
3280
|
-
* @returns
|
|
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
|
|
3281
3296
|
* @throws ApiError
|
|
3282
3297
|
*/
|
|
3283
|
-
|
|
3298
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3284
3299
|
/**
|
|
3285
3300
|
* Either mainnet or testnet/fuji.
|
|
3286
3301
|
*/
|
|
@@ -3294,10 +3309,10 @@ declare class PrimaryNetworkService {
|
|
|
3294
3309
|
*/
|
|
3295
3310
|
pageSize?: number;
|
|
3296
3311
|
/**
|
|
3297
|
-
* The
|
|
3312
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3298
3313
|
*/
|
|
3299
|
-
|
|
3300
|
-
|
|
3314
|
+
l1ValidationId?: any;
|
|
3315
|
+
includeInactiveL1Validators?: boolean;
|
|
3301
3316
|
/**
|
|
3302
3317
|
* A valid node ID in format 'NodeID-HASH'.
|
|
3303
3318
|
*/
|
|
@@ -3306,7 +3321,7 @@ declare class PrimaryNetworkService {
|
|
|
3306
3321
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3307
3322
|
*/
|
|
3308
3323
|
subnetId?: any;
|
|
3309
|
-
}): CancelablePromise<
|
|
3324
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3310
3325
|
}
|
|
3311
3326
|
|
|
3312
3327
|
declare enum BlockchainId {
|
|
@@ -3553,8 +3568,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3553
3568
|
txCount: number;
|
|
3554
3569
|
transactions: Array<string>;
|
|
3555
3570
|
blockSizeBytes: number;
|
|
3556
|
-
|
|
3557
|
-
|
|
3571
|
+
l1ValidatorsAccruedFees?: number;
|
|
3572
|
+
activeL1Validators?: number;
|
|
3558
3573
|
currentSupply?: string;
|
|
3559
3574
|
proposerDetails?: ProposerDetails;
|
|
3560
3575
|
};
|
|
@@ -3568,8 +3583,8 @@ type PrimaryNetworkBlock = {
|
|
|
3568
3583
|
txCount: number;
|
|
3569
3584
|
transactions: Array<string>;
|
|
3570
3585
|
blockSizeBytes: number;
|
|
3571
|
-
|
|
3572
|
-
|
|
3586
|
+
l1ValidatorsAccruedFees?: number;
|
|
3587
|
+
activeL1Validators?: number;
|
|
3573
3588
|
currentSupply?: string;
|
|
3574
3589
|
proposerDetails?: ProposerDetails;
|
|
3575
3590
|
};
|
|
@@ -3612,7 +3627,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3612
3627
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3613
3628
|
* @throws ApiError
|
|
3614
3629
|
*/
|
|
3615
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3630
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3616
3631
|
/**
|
|
3617
3632
|
* A primary network blockchain id or alias.
|
|
3618
3633
|
*/
|
|
@@ -3625,6 +3640,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3625
3640
|
* A primary network (P or X chain) nodeId.
|
|
3626
3641
|
*/
|
|
3627
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;
|
|
3628
3651
|
/**
|
|
3629
3652
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3630
3653
|
*/
|
|
@@ -3640,7 +3663,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3640
3663
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3641
3664
|
* @throws ApiError
|
|
3642
3665
|
*/
|
|
3643
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3666
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3644
3667
|
/**
|
|
3645
3668
|
* A primary network blockchain id or alias.
|
|
3646
3669
|
*/
|
|
@@ -3649,6 +3672,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3649
3672
|
* Either mainnet or testnet/fuji.
|
|
3650
3673
|
*/
|
|
3651
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;
|
|
3652
3683
|
/**
|
|
3653
3684
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3654
3685
|
*/
|
|
@@ -4058,6 +4089,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4058
4089
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4059
4090
|
};
|
|
4060
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
|
+
|
|
4061
4114
|
declare enum PChainTransactionType {
|
|
4062
4115
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
4063
4116
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -4074,11 +4127,11 @@ declare enum PChainTransactionType {
|
|
|
4074
4127
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4075
4128
|
BASE_TX = "BaseTx",
|
|
4076
4129
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
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",
|
|
4082
4135
|
UNKNOWN = "UNKNOWN"
|
|
4083
4136
|
}
|
|
4084
4137
|
|
|
@@ -4133,28 +4186,6 @@ type PChainUtxo = {
|
|
|
4133
4186
|
utxoType: UtxoType;
|
|
4134
4187
|
};
|
|
4135
4188
|
|
|
4136
|
-
type SoVDetailsTransaction = {
|
|
4137
|
-
/**
|
|
4138
|
-
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
4139
|
-
*/
|
|
4140
|
-
validationId: string;
|
|
4141
|
-
nodeId: string;
|
|
4142
|
-
subnetId: string;
|
|
4143
|
-
/**
|
|
4144
|
-
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
4145
|
-
*/
|
|
4146
|
-
weight: number;
|
|
4147
|
-
/**
|
|
4148
|
-
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
4149
|
-
*/
|
|
4150
|
-
remainingBalance: number;
|
|
4151
|
-
/**
|
|
4152
|
-
* The increase in SoV balance in the current transaction. When the balance is returned after the SoV is disabled or removed, this value is negative
|
|
4153
|
-
*/
|
|
4154
|
-
balanceChange?: number;
|
|
4155
|
-
blsCredentials?: Record<string, any>;
|
|
4156
|
-
};
|
|
4157
|
-
|
|
4158
4189
|
type PChainTransaction = {
|
|
4159
4190
|
/**
|
|
4160
4191
|
* A P-Chain transaction hash.
|
|
@@ -4192,7 +4223,7 @@ type PChainTransaction = {
|
|
|
4192
4223
|
/**
|
|
4193
4224
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4194
4225
|
*/
|
|
4195
|
-
|
|
4226
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4196
4227
|
/**
|
|
4197
4228
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4198
4229
|
*/
|
|
@@ -4214,13 +4245,13 @@ type PChainTransaction = {
|
|
|
4214
4245
|
*/
|
|
4215
4246
|
subnetId?: string;
|
|
4216
4247
|
/**
|
|
4217
|
-
* Details of the L1's validator manager contract and blockchain. Present for the
|
|
4248
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4218
4249
|
*/
|
|
4219
4250
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4220
4251
|
/**
|
|
4221
|
-
* Details of
|
|
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
|
|
4222
4253
|
*/
|
|
4223
|
-
l1ValidatorDetails?: Array<
|
|
4254
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4224
4255
|
/**
|
|
4225
4256
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4226
4257
|
*/
|
|
@@ -4422,11 +4453,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4422
4453
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4423
4454
|
BASE_TX = "BaseTx",
|
|
4424
4455
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
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",
|
|
4430
4461
|
UNKNOWN = "UNKNOWN",
|
|
4431
4462
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4432
4463
|
OPERATION_TX = "OperationTx"
|
|
@@ -4461,13 +4492,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4461
4492
|
*
|
|
4462
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.
|
|
4463
4494
|
*
|
|
4464
|
-
* For P-Chain, you can fetch all
|
|
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.
|
|
4465
4496
|
*
|
|
4466
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.
|
|
4467
4498
|
* @returns any Successful response
|
|
4468
4499
|
* @throws ApiError
|
|
4469
4500
|
*/
|
|
4470
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses,
|
|
4501
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4471
4502
|
/**
|
|
4472
4503
|
* A primary network blockchain id or alias.
|
|
4473
4504
|
*/
|
|
@@ -4480,7 +4511,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4480
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.
|
|
4481
4512
|
*/
|
|
4482
4513
|
addresses?: string;
|
|
4483
|
-
|
|
4514
|
+
l1ValidationId?: string;
|
|
4484
4515
|
/**
|
|
4485
4516
|
* Query param for filtering items based on transaction types.
|
|
4486
4517
|
*/
|
|
@@ -4761,13 +4792,7 @@ type SignatureAggregationResponse = {
|
|
|
4761
4792
|
};
|
|
4762
4793
|
|
|
4763
4794
|
type SignatureAggregatorRequest = {
|
|
4764
|
-
|
|
4765
|
-
* Must be defined if justification is not defined
|
|
4766
|
-
*/
|
|
4767
|
-
message?: string;
|
|
4768
|
-
/**
|
|
4769
|
-
* Must be defined if message is not defined
|
|
4770
|
-
*/
|
|
4795
|
+
message: string;
|
|
4771
4796
|
justification?: string;
|
|
4772
4797
|
signingSubnetId?: string;
|
|
4773
4798
|
quorumPercentage?: number;
|
|
@@ -5032,7 +5057,7 @@ type CreateWebhookRequest = {
|
|
|
5032
5057
|
name?: string;
|
|
5033
5058
|
description?: string;
|
|
5034
5059
|
/**
|
|
5035
|
-
* 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.
|
|
5036
5061
|
*/
|
|
5037
5062
|
includeInternalTxs?: boolean;
|
|
5038
5063
|
/**
|
|
@@ -5092,6 +5117,9 @@ type UpdateWebhookRequest = {
|
|
|
5092
5117
|
description?: string;
|
|
5093
5118
|
url?: string;
|
|
5094
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
|
+
*/
|
|
5095
5123
|
includeInternalTxs?: boolean;
|
|
5096
5124
|
includeLogs?: boolean;
|
|
5097
5125
|
};
|
|
@@ -5406,4 +5434,4 @@ type Unauthorized = {
|
|
|
5406
5434
|
error: string;
|
|
5407
5435
|
};
|
|
5408
5436
|
|
|
5409
|
-
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, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse,
|
|
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 };
|