@avalabs/glacier-sdk 3.1.0-canary.d324cd1.0 → 3.1.0-canary.d6c8ab8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +197 -82
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/Subnet.d.ts +9 -0
- 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 +19 -21
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +13 -0
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +34 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/index.d.ts +7 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -173,6 +173,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
173
|
* The number of invalid requests
|
|
174
174
|
*/
|
|
175
175
|
invalidRequests: number;
|
|
176
|
+
/**
|
|
177
|
+
* The number of API credits wasted on invalid requests
|
|
178
|
+
*/
|
|
179
|
+
apiCreditsWasted: number;
|
|
176
180
|
/**
|
|
177
181
|
* Column name used for data aggregation
|
|
178
182
|
*/
|
|
@@ -220,6 +224,13 @@ type RpcUsageMetricsResponseDTO = {
|
|
|
220
224
|
metrics: Array<RpcMetrics>;
|
|
221
225
|
};
|
|
222
226
|
|
|
227
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
228
|
+
HOURLY = "hourly",
|
|
229
|
+
DAILY = "daily",
|
|
230
|
+
WEEKLY = "weekly",
|
|
231
|
+
MONTHLY = "monthly"
|
|
232
|
+
}
|
|
233
|
+
|
|
223
234
|
declare enum TimeIntervalGranularityExtended {
|
|
224
235
|
MINUTE = "minute",
|
|
225
236
|
HOURLY = "hourly",
|
|
@@ -323,7 +334,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
334
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
335
|
* @throws ApiError
|
|
325
336
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
337
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
338
|
/**
|
|
328
339
|
* Organization ID to fetch usage metrics for
|
|
329
340
|
*/
|
|
@@ -333,7 +344,7 @@ declare class DataApiUsageMetricsService {
|
|
|
333
344
|
*/
|
|
334
345
|
startTimestamp?: number;
|
|
335
346
|
/**
|
|
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.
|
|
347
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
337
348
|
*/
|
|
338
349
|
endTimestamp?: number;
|
|
339
350
|
/**
|
|
@@ -348,10 +359,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
359
|
* Filter data by chain ID.
|
|
349
360
|
*/
|
|
350
361
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
362
|
/**
|
|
356
363
|
* Filter data by response status code.
|
|
357
364
|
*/
|
|
@@ -364,6 +371,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
371
|
* Filter data by API key ID.
|
|
365
372
|
*/
|
|
366
373
|
apiKeyId?: string;
|
|
374
|
+
/**
|
|
375
|
+
* Filter data by request path.
|
|
376
|
+
*/
|
|
377
|
+
requestPath?: string;
|
|
367
378
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
379
|
/**
|
|
369
380
|
* Get logs for requests made by client
|
|
@@ -371,7 +382,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
382
|
* @returns LogsResponseDTO Successful response
|
|
372
383
|
* @throws ApiError
|
|
373
384
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
385
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
386
|
/**
|
|
376
387
|
* Organization ID to fetch usage metrics for
|
|
377
388
|
*/
|
|
@@ -381,17 +392,13 @@ declare class DataApiUsageMetricsService {
|
|
|
381
392
|
*/
|
|
382
393
|
startTimestamp?: number;
|
|
383
394
|
/**
|
|
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.
|
|
395
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
385
396
|
*/
|
|
386
397
|
endTimestamp?: number;
|
|
387
398
|
/**
|
|
388
399
|
* Filter data by chain ID.
|
|
389
400
|
*/
|
|
390
401
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
402
|
/**
|
|
396
403
|
* Filter data by response status code.
|
|
397
404
|
*/
|
|
@@ -404,6 +411,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
411
|
* Filter data by API key ID.
|
|
405
412
|
*/
|
|
406
413
|
apiKeyId?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Filter data by request path.
|
|
416
|
+
*/
|
|
417
|
+
requestPath?: string;
|
|
407
418
|
/**
|
|
408
419
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
420
|
*/
|
|
@@ -415,21 +426,22 @@ declare class DataApiUsageMetricsService {
|
|
|
415
426
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
427
|
/**
|
|
417
428
|
* 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.
|
|
429
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
430
|
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
420
431
|
* @throws ApiError
|
|
421
432
|
*/
|
|
422
|
-
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId,
|
|
433
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
434
|
/**
|
|
424
|
-
*
|
|
435
|
+
* Time interval granularity for data aggregation for subnet
|
|
436
|
+
* rpc metrics
|
|
425
437
|
*/
|
|
426
|
-
timeInterval?:
|
|
438
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
439
|
/**
|
|
428
440
|
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
429
441
|
*/
|
|
430
442
|
startTimestamp?: number;
|
|
431
443
|
/**
|
|
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.
|
|
444
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
433
445
|
*/
|
|
434
446
|
endTimestamp?: number;
|
|
435
447
|
/**
|
|
@@ -440,10 +452,6 @@ declare class DataApiUsageMetricsService {
|
|
|
440
452
|
* Filter data by chain ID.
|
|
441
453
|
*/
|
|
442
454
|
chainId?: string;
|
|
443
|
-
/**
|
|
444
|
-
* Filter data by request path.
|
|
445
|
-
*/
|
|
446
|
-
requestPath?: string;
|
|
447
455
|
/**
|
|
448
456
|
* Filter data by response status code.
|
|
449
457
|
*/
|
|
@@ -1120,6 +1128,11 @@ type ChainInfo = {
|
|
|
1120
1128
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1129
|
};
|
|
1122
1130
|
|
|
1131
|
+
type ListAddressChainsResponse = {
|
|
1132
|
+
indexedChains?: Array<ChainInfo>;
|
|
1133
|
+
unindexedChains?: Array<string>;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1123
1136
|
type ListChainsResponse = {
|
|
1124
1137
|
chains: Array<ChainInfo>;
|
|
1125
1138
|
};
|
|
@@ -1162,6 +1175,18 @@ declare class EvmChainsService {
|
|
|
1162
1175
|
*/
|
|
1163
1176
|
chainId: string;
|
|
1164
1177
|
}): CancelablePromise<GetChainResponse>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Get chains for address
|
|
1180
|
+
* Gets the list of chains an address has interacted with.
|
|
1181
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1182
|
+
* @throws ApiError
|
|
1183
|
+
*/
|
|
1184
|
+
getAddressChains({ address, }: {
|
|
1185
|
+
/**
|
|
1186
|
+
* A wallet address.
|
|
1187
|
+
*/
|
|
1188
|
+
address: string;
|
|
1189
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1165
1190
|
}
|
|
1166
1191
|
|
|
1167
1192
|
type ImageAsset = {
|
|
@@ -2690,10 +2715,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2690
2715
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2691
2716
|
};
|
|
2692
2717
|
|
|
2718
|
+
type BalanceOwner = {
|
|
2719
|
+
addresses: Array<string>;
|
|
2720
|
+
threshold: number;
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
type L1ValidatorDetailsFull = {
|
|
2724
|
+
/**
|
|
2725
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2726
|
+
*/
|
|
2727
|
+
validationId: string;
|
|
2728
|
+
nodeId: string;
|
|
2729
|
+
subnetId: string;
|
|
2730
|
+
/**
|
|
2731
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
2732
|
+
*/
|
|
2733
|
+
weight: number;
|
|
2734
|
+
/**
|
|
2735
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2736
|
+
*/
|
|
2737
|
+
remainingBalance: number;
|
|
2738
|
+
/**
|
|
2739
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2740
|
+
*/
|
|
2741
|
+
creationTimestamp: number;
|
|
2742
|
+
blsCredentials: Record<string, any>;
|
|
2743
|
+
/**
|
|
2744
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2745
|
+
*/
|
|
2746
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2747
|
+
/**
|
|
2748
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2749
|
+
*/
|
|
2750
|
+
deactivationOwner: BalanceOwner;
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
type ListL1ValidatorsResponse = {
|
|
2754
|
+
/**
|
|
2755
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2756
|
+
*/
|
|
2757
|
+
nextPageToken?: string;
|
|
2758
|
+
/**
|
|
2759
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2760
|
+
*/
|
|
2761
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2762
|
+
};
|
|
2763
|
+
|
|
2693
2764
|
type BlockchainInfo = {
|
|
2694
2765
|
blockchainId: string;
|
|
2695
2766
|
};
|
|
2696
2767
|
|
|
2768
|
+
type L1ValidatorManagerDetails = {
|
|
2769
|
+
blockchainId: string;
|
|
2770
|
+
contractAddress: string;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2697
2773
|
type SubnetOwnershipInfo = {
|
|
2698
2774
|
/**
|
|
2699
2775
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2732,6 +2808,14 @@ type Subnet = {
|
|
|
2732
2808
|
* Latest subnet owner details for this Subnet.
|
|
2733
2809
|
*/
|
|
2734
2810
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2811
|
+
/**
|
|
2812
|
+
* Whether the subnet is an L1 or not.
|
|
2813
|
+
*/
|
|
2814
|
+
isL1: boolean;
|
|
2815
|
+
/**
|
|
2816
|
+
* L1 validator manager details.
|
|
2817
|
+
*/
|
|
2818
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2735
2819
|
blockchains: Array<BlockchainInfo>;
|
|
2736
2820
|
};
|
|
2737
2821
|
|
|
@@ -3198,6 +3282,39 @@ declare class PrimaryNetworkService {
|
|
|
3198
3282
|
*/
|
|
3199
3283
|
nodeIds?: string;
|
|
3200
3284
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3285
|
+
/**
|
|
3286
|
+
* List L1 validators
|
|
3287
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3288
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3289
|
+
* @throws ApiError
|
|
3290
|
+
*/
|
|
3291
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3292
|
+
/**
|
|
3293
|
+
* Either mainnet or testnet/fuji.
|
|
3294
|
+
*/
|
|
3295
|
+
network: Network;
|
|
3296
|
+
/**
|
|
3297
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3298
|
+
*/
|
|
3299
|
+
pageToken?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3302
|
+
*/
|
|
3303
|
+
pageSize?: number;
|
|
3304
|
+
/**
|
|
3305
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3306
|
+
*/
|
|
3307
|
+
l1ValidationId?: any;
|
|
3308
|
+
includeInactiveL1Validators?: boolean;
|
|
3309
|
+
/**
|
|
3310
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3311
|
+
*/
|
|
3312
|
+
nodeId?: string;
|
|
3313
|
+
/**
|
|
3314
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3315
|
+
*/
|
|
3316
|
+
subnetId?: any;
|
|
3317
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3201
3318
|
}
|
|
3202
3319
|
|
|
3203
3320
|
declare enum BlockchainId {
|
|
@@ -3244,12 +3361,6 @@ type CChainAtomicBalances = {
|
|
|
3244
3361
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3245
3362
|
};
|
|
3246
3363
|
|
|
3247
|
-
declare enum PrimaryNetwork {
|
|
3248
|
-
MAINNET = "mainnet",
|
|
3249
|
-
FUJI = "fuji",
|
|
3250
|
-
DEVNET = "devnet"
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
3364
|
declare enum PrimaryNetworkChainName {
|
|
3254
3365
|
P_CHAIN = "p-chain",
|
|
3255
3366
|
X_CHAIN = "x-chain",
|
|
@@ -3258,7 +3369,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3258
3369
|
|
|
3259
3370
|
type PrimaryNetworkChainInfo = {
|
|
3260
3371
|
chainName: PrimaryNetworkChainName;
|
|
3261
|
-
network:
|
|
3372
|
+
network: Network;
|
|
3262
3373
|
};
|
|
3263
3374
|
|
|
3264
3375
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3450,6 +3561,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3450
3561
|
txCount: number;
|
|
3451
3562
|
transactions: Array<string>;
|
|
3452
3563
|
blockSizeBytes: number;
|
|
3564
|
+
l1ValidatorsAccruedFees?: number;
|
|
3565
|
+
activeL1Validators?: number;
|
|
3453
3566
|
currentSupply?: string;
|
|
3454
3567
|
proposerDetails?: ProposerDetails;
|
|
3455
3568
|
};
|
|
@@ -3463,6 +3576,8 @@ type PrimaryNetworkBlock = {
|
|
|
3463
3576
|
txCount: number;
|
|
3464
3577
|
transactions: Array<string>;
|
|
3465
3578
|
blockSizeBytes: number;
|
|
3579
|
+
l1ValidatorsAccruedFees?: number;
|
|
3580
|
+
activeL1Validators?: number;
|
|
3466
3581
|
currentSupply?: string;
|
|
3467
3582
|
proposerDetails?: ProposerDetails;
|
|
3468
3583
|
};
|
|
@@ -3951,6 +4066,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3951
4066
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3952
4067
|
};
|
|
3953
4068
|
|
|
4069
|
+
type L1ValidatorDetailsTransaction = {
|
|
4070
|
+
/**
|
|
4071
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4072
|
+
*/
|
|
4073
|
+
validationId: string;
|
|
4074
|
+
nodeId: string;
|
|
4075
|
+
subnetId: string;
|
|
4076
|
+
/**
|
|
4077
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4078
|
+
*/
|
|
4079
|
+
weight: number;
|
|
4080
|
+
/**
|
|
4081
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4082
|
+
*/
|
|
4083
|
+
remainingBalance: number;
|
|
4084
|
+
/**
|
|
4085
|
+
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4086
|
+
*/
|
|
4087
|
+
balanceChange?: number;
|
|
4088
|
+
blsCredentials?: Record<string, any>;
|
|
4089
|
+
};
|
|
4090
|
+
|
|
3954
4091
|
declare enum PChainTransactionType {
|
|
3955
4092
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3956
4093
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3967,6 +4104,11 @@ declare enum PChainTransactionType {
|
|
|
3967
4104
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3968
4105
|
BASE_TX = "BaseTx",
|
|
3969
4106
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4107
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4108
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4109
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4110
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4111
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3970
4112
|
UNKNOWN = "UNKNOWN"
|
|
3971
4113
|
}
|
|
3972
4114
|
|
|
@@ -4055,6 +4197,10 @@ type PChainTransaction = {
|
|
|
4055
4197
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4056
4198
|
*/
|
|
4057
4199
|
amountStaked: Array<AssetAmount>;
|
|
4200
|
+
/**
|
|
4201
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4202
|
+
*/
|
|
4203
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4058
4204
|
/**
|
|
4059
4205
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4060
4206
|
*/
|
|
@@ -4075,6 +4221,14 @@ type PChainTransaction = {
|
|
|
4075
4221
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
4076
4222
|
*/
|
|
4077
4223
|
subnetId?: string;
|
|
4224
|
+
/**
|
|
4225
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4226
|
+
*/
|
|
4227
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4228
|
+
/**
|
|
4229
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4230
|
+
*/
|
|
4231
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4078
4232
|
/**
|
|
4079
4233
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4080
4234
|
*/
|
|
@@ -4276,6 +4430,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4276
4430
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4277
4431
|
BASE_TX = "BaseTx",
|
|
4278
4432
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4433
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4434
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4435
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4436
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4437
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4279
4438
|
UNKNOWN = "UNKNOWN",
|
|
4280
4439
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4281
4440
|
OPERATION_TX = "OperationTx"
|
|
@@ -4310,11 +4469,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4310
4469
|
*
|
|
4311
4470
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4312
4471
|
*
|
|
4472
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4473
|
+
*
|
|
4313
4474
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4314
4475
|
* @returns any Successful response
|
|
4315
4476
|
* @throws ApiError
|
|
4316
4477
|
*/
|
|
4317
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4478
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4318
4479
|
/**
|
|
4319
4480
|
* A primary network blockchain id or alias.
|
|
4320
4481
|
*/
|
|
@@ -4327,6 +4488,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4327
4488
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4328
4489
|
*/
|
|
4329
4490
|
addresses?: string;
|
|
4491
|
+
l1ValidationId?: string;
|
|
4330
4492
|
/**
|
|
4331
4493
|
* Query param for filtering items based on transaction types.
|
|
4332
4494
|
*/
|
|
@@ -4602,61 +4764,12 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4602
4764
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4603
4765
|
}
|
|
4604
4766
|
|
|
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
4767
|
type SignatureAggregationResponse = {
|
|
4649
4768
|
signedMessage: string;
|
|
4650
4769
|
};
|
|
4651
4770
|
|
|
4652
4771
|
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
|
-
*/
|
|
4772
|
+
message: string;
|
|
4660
4773
|
justification?: string;
|
|
4661
4774
|
signingSubnetId?: string;
|
|
4662
4775
|
quorumPercentage?: number;
|
|
@@ -4921,7 +5034,7 @@ type CreateWebhookRequest = {
|
|
|
4921
5034
|
name?: string;
|
|
4922
5035
|
description?: string;
|
|
4923
5036
|
/**
|
|
4924
|
-
* Whether to include traces in the webhook payload.
|
|
5037
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4925
5038
|
*/
|
|
4926
5039
|
includeInternalTxs?: boolean;
|
|
4927
5040
|
/**
|
|
@@ -4981,6 +5094,9 @@ type UpdateWebhookRequest = {
|
|
|
4981
5094
|
description?: string;
|
|
4982
5095
|
url?: string;
|
|
4983
5096
|
status?: WebhookStatusType;
|
|
5097
|
+
/**
|
|
5098
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5099
|
+
*/
|
|
4984
5100
|
includeInternalTxs?: boolean;
|
|
4985
5101
|
includeLogs?: boolean;
|
|
4986
5102
|
};
|
|
@@ -5140,7 +5256,6 @@ declare class Glacier {
|
|
|
5140
5256
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5141
5257
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5142
5258
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5143
|
-
readonly rpc: RpcService;
|
|
5144
5259
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5145
5260
|
readonly teleporter: TeleporterService;
|
|
5146
5261
|
readonly webhooks: WebhooksService;
|
|
@@ -5296,4 +5411,4 @@ type Unauthorized = {
|
|
|
5296
5411
|
error: string;
|
|
5297
5412
|
};
|
|
5298
5413
|
|
|
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,
|
|
5414
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|