@avalabs/glacier-sdk 3.1.0-canary.fade9d5.0 → 3.1.0-canary.fc985d8.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 +171 -64
- 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/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +3 -3
- 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 +6 -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
|
@@ -333,7 +333,7 @@ declare class DataApiUsageMetricsService {
|
|
|
333
333
|
*/
|
|
334
334
|
startTimestamp?: number;
|
|
335
335
|
/**
|
|
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.
|
|
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.
|
|
337
337
|
*/
|
|
338
338
|
endTimestamp?: number;
|
|
339
339
|
/**
|
|
@@ -381,7 +381,7 @@ declare class DataApiUsageMetricsService {
|
|
|
381
381
|
*/
|
|
382
382
|
startTimestamp?: number;
|
|
383
383
|
/**
|
|
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.
|
|
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.
|
|
385
385
|
*/
|
|
386
386
|
endTimestamp?: number;
|
|
387
387
|
/**
|
|
@@ -429,7 +429,7 @@ declare class DataApiUsageMetricsService {
|
|
|
429
429
|
*/
|
|
430
430
|
startTimestamp?: number;
|
|
431
431
|
/**
|
|
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.
|
|
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.
|
|
433
433
|
*/
|
|
434
434
|
endTimestamp?: number;
|
|
435
435
|
/**
|
|
@@ -1120,6 +1120,11 @@ type ChainInfo = {
|
|
|
1120
1120
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1121
|
};
|
|
1122
1122
|
|
|
1123
|
+
type ListAddressChainsResponse = {
|
|
1124
|
+
indexedChains?: Array<ChainInfo>;
|
|
1125
|
+
unindexedChains?: Array<string>;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1123
1128
|
type ListChainsResponse = {
|
|
1124
1129
|
chains: Array<ChainInfo>;
|
|
1125
1130
|
};
|
|
@@ -1162,6 +1167,18 @@ declare class EvmChainsService {
|
|
|
1162
1167
|
*/
|
|
1163
1168
|
chainId: string;
|
|
1164
1169
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Get chains for address
|
|
1172
|
+
* Gets the list of chains an address has interacted with.
|
|
1173
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
+
* @throws ApiError
|
|
1175
|
+
*/
|
|
1176
|
+
getAddressChains({ address, }: {
|
|
1177
|
+
/**
|
|
1178
|
+
* A wallet address.
|
|
1179
|
+
*/
|
|
1180
|
+
address: string;
|
|
1181
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1165
1182
|
}
|
|
1166
1183
|
|
|
1167
1184
|
type ImageAsset = {
|
|
@@ -2690,10 +2707,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2690
2707
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2691
2708
|
};
|
|
2692
2709
|
|
|
2710
|
+
type BalanceOwner = {
|
|
2711
|
+
addresses: Array<string>;
|
|
2712
|
+
threshold: number;
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
type L1ValidatorDetailsFull = {
|
|
2716
|
+
/**
|
|
2717
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2718
|
+
*/
|
|
2719
|
+
validationId: string;
|
|
2720
|
+
nodeId: string;
|
|
2721
|
+
subnetId: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* 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
|
+
*/
|
|
2725
|
+
weight: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2728
|
+
*/
|
|
2729
|
+
remainingBalance: number;
|
|
2730
|
+
/**
|
|
2731
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2732
|
+
*/
|
|
2733
|
+
creationTimestamp: number;
|
|
2734
|
+
blsCredentials: Record<string, any>;
|
|
2735
|
+
/**
|
|
2736
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2737
|
+
*/
|
|
2738
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2739
|
+
/**
|
|
2740
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2741
|
+
*/
|
|
2742
|
+
deactivationOwner: BalanceOwner;
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
type ListL1ValidatorsResponse = {
|
|
2746
|
+
/**
|
|
2747
|
+
* 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
|
+
*/
|
|
2749
|
+
nextPageToken?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
|
+
*/
|
|
2753
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2693
2756
|
type BlockchainInfo = {
|
|
2694
2757
|
blockchainId: string;
|
|
2695
2758
|
};
|
|
2696
2759
|
|
|
2760
|
+
type L1ValidatorManagerDetails = {
|
|
2761
|
+
blockchainId: string;
|
|
2762
|
+
contractAddress: string;
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2697
2765
|
type SubnetOwnershipInfo = {
|
|
2698
2766
|
/**
|
|
2699
2767
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2732,6 +2800,14 @@ type Subnet = {
|
|
|
2732
2800
|
* Latest subnet owner details for this Subnet.
|
|
2733
2801
|
*/
|
|
2734
2802
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2803
|
+
/**
|
|
2804
|
+
* Whether the subnet is an L1 or not.
|
|
2805
|
+
*/
|
|
2806
|
+
isL1: boolean;
|
|
2807
|
+
/**
|
|
2808
|
+
* L1 validator manager details.
|
|
2809
|
+
*/
|
|
2810
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2735
2811
|
blockchains: Array<BlockchainInfo>;
|
|
2736
2812
|
};
|
|
2737
2813
|
|
|
@@ -3198,6 +3274,39 @@ declare class PrimaryNetworkService {
|
|
|
3198
3274
|
*/
|
|
3199
3275
|
nodeIds?: string;
|
|
3200
3276
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3277
|
+
/**
|
|
3278
|
+
* List L1 validators
|
|
3279
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3280
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3281
|
+
* @throws ApiError
|
|
3282
|
+
*/
|
|
3283
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3284
|
+
/**
|
|
3285
|
+
* Either mainnet or testnet/fuji.
|
|
3286
|
+
*/
|
|
3287
|
+
network: Network;
|
|
3288
|
+
/**
|
|
3289
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3290
|
+
*/
|
|
3291
|
+
pageToken?: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3294
|
+
*/
|
|
3295
|
+
pageSize?: number;
|
|
3296
|
+
/**
|
|
3297
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3298
|
+
*/
|
|
3299
|
+
l1ValidationId?: any;
|
|
3300
|
+
includeInactiveL1Validators?: boolean;
|
|
3301
|
+
/**
|
|
3302
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3303
|
+
*/
|
|
3304
|
+
nodeId?: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3307
|
+
*/
|
|
3308
|
+
subnetId?: any;
|
|
3309
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3201
3310
|
}
|
|
3202
3311
|
|
|
3203
3312
|
declare enum BlockchainId {
|
|
@@ -3244,12 +3353,6 @@ type CChainAtomicBalances = {
|
|
|
3244
3353
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3245
3354
|
};
|
|
3246
3355
|
|
|
3247
|
-
declare enum PrimaryNetwork {
|
|
3248
|
-
MAINNET = "mainnet",
|
|
3249
|
-
FUJI = "fuji",
|
|
3250
|
-
DEVNET = "devnet"
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
3356
|
declare enum PrimaryNetworkChainName {
|
|
3254
3357
|
P_CHAIN = "p-chain",
|
|
3255
3358
|
X_CHAIN = "x-chain",
|
|
@@ -3258,7 +3361,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3258
3361
|
|
|
3259
3362
|
type PrimaryNetworkChainInfo = {
|
|
3260
3363
|
chainName: PrimaryNetworkChainName;
|
|
3261
|
-
network:
|
|
3364
|
+
network: Network;
|
|
3262
3365
|
};
|
|
3263
3366
|
|
|
3264
3367
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3450,6 +3553,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3450
3553
|
txCount: number;
|
|
3451
3554
|
transactions: Array<string>;
|
|
3452
3555
|
blockSizeBytes: number;
|
|
3556
|
+
l1ValidatorsAccruedFees?: number;
|
|
3557
|
+
activeL1Validators?: number;
|
|
3453
3558
|
currentSupply?: string;
|
|
3454
3559
|
proposerDetails?: ProposerDetails;
|
|
3455
3560
|
};
|
|
@@ -3463,6 +3568,8 @@ type PrimaryNetworkBlock = {
|
|
|
3463
3568
|
txCount: number;
|
|
3464
3569
|
transactions: Array<string>;
|
|
3465
3570
|
blockSizeBytes: number;
|
|
3571
|
+
l1ValidatorsAccruedFees?: number;
|
|
3572
|
+
activeL1Validators?: number;
|
|
3466
3573
|
currentSupply?: string;
|
|
3467
3574
|
proposerDetails?: ProposerDetails;
|
|
3468
3575
|
};
|
|
@@ -3951,6 +4058,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3951
4058
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3952
4059
|
};
|
|
3953
4060
|
|
|
4061
|
+
type L1ValidatorDetailsTransaction = {
|
|
4062
|
+
/**
|
|
4063
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4064
|
+
*/
|
|
4065
|
+
validationId: string;
|
|
4066
|
+
nodeId: string;
|
|
4067
|
+
subnetId: string;
|
|
4068
|
+
/**
|
|
4069
|
+
* 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
|
|
4070
|
+
*/
|
|
4071
|
+
weight: number;
|
|
4072
|
+
/**
|
|
4073
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4074
|
+
*/
|
|
4075
|
+
remainingBalance: number;
|
|
4076
|
+
/**
|
|
4077
|
+
* 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
|
|
4078
|
+
*/
|
|
4079
|
+
balanceChange?: number;
|
|
4080
|
+
blsCredentials?: Record<string, any>;
|
|
4081
|
+
};
|
|
4082
|
+
|
|
3954
4083
|
declare enum PChainTransactionType {
|
|
3955
4084
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3956
4085
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3967,6 +4096,11 @@ declare enum PChainTransactionType {
|
|
|
3967
4096
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3968
4097
|
BASE_TX = "BaseTx",
|
|
3969
4098
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4099
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4100
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4101
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4102
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4103
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3970
4104
|
UNKNOWN = "UNKNOWN"
|
|
3971
4105
|
}
|
|
3972
4106
|
|
|
@@ -4055,6 +4189,10 @@ type PChainTransaction = {
|
|
|
4055
4189
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4056
4190
|
*/
|
|
4057
4191
|
amountStaked: Array<AssetAmount>;
|
|
4192
|
+
/**
|
|
4193
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4194
|
+
*/
|
|
4195
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4058
4196
|
/**
|
|
4059
4197
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4060
4198
|
*/
|
|
@@ -4075,6 +4213,14 @@ type PChainTransaction = {
|
|
|
4075
4213
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
4076
4214
|
*/
|
|
4077
4215
|
subnetId?: string;
|
|
4216
|
+
/**
|
|
4217
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4218
|
+
*/
|
|
4219
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4220
|
+
/**
|
|
4221
|
+
* 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
|
+
*/
|
|
4223
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4078
4224
|
/**
|
|
4079
4225
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4080
4226
|
*/
|
|
@@ -4276,6 +4422,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4276
4422
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4277
4423
|
BASE_TX = "BaseTx",
|
|
4278
4424
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4425
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4426
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4427
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4428
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4429
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4279
4430
|
UNKNOWN = "UNKNOWN",
|
|
4280
4431
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4281
4432
|
OPERATION_TX = "OperationTx"
|
|
@@ -4310,11 +4461,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4310
4461
|
*
|
|
4311
4462
|
* 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
4463
|
*
|
|
4464
|
+
* 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
|
+
*
|
|
4313
4466
|
* 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
4467
|
* @returns any Successful response
|
|
4315
4468
|
* @throws ApiError
|
|
4316
4469
|
*/
|
|
4317
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4470
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4318
4471
|
/**
|
|
4319
4472
|
* A primary network blockchain id or alias.
|
|
4320
4473
|
*/
|
|
@@ -4327,6 +4480,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4327
4480
|
* 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
4481
|
*/
|
|
4329
4482
|
addresses?: string;
|
|
4483
|
+
l1ValidationId?: string;
|
|
4330
4484
|
/**
|
|
4331
4485
|
* Query param for filtering items based on transaction types.
|
|
4332
4486
|
*/
|
|
@@ -4602,61 +4756,12 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4602
4756
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4603
4757
|
}
|
|
4604
4758
|
|
|
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
4759
|
type SignatureAggregationResponse = {
|
|
4649
4760
|
signedMessage: string;
|
|
4650
4761
|
};
|
|
4651
4762
|
|
|
4652
4763
|
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
|
-
*/
|
|
4764
|
+
message: string;
|
|
4660
4765
|
justification?: string;
|
|
4661
4766
|
signingSubnetId?: string;
|
|
4662
4767
|
quorumPercentage?: number;
|
|
@@ -4921,7 +5026,7 @@ type CreateWebhookRequest = {
|
|
|
4921
5026
|
name?: string;
|
|
4922
5027
|
description?: string;
|
|
4923
5028
|
/**
|
|
4924
|
-
* Whether to include traces in the webhook payload.
|
|
5029
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4925
5030
|
*/
|
|
4926
5031
|
includeInternalTxs?: boolean;
|
|
4927
5032
|
/**
|
|
@@ -4981,6 +5086,9 @@ type UpdateWebhookRequest = {
|
|
|
4981
5086
|
description?: string;
|
|
4982
5087
|
url?: string;
|
|
4983
5088
|
status?: WebhookStatusType;
|
|
5089
|
+
/**
|
|
5090
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5091
|
+
*/
|
|
4984
5092
|
includeInternalTxs?: boolean;
|
|
4985
5093
|
includeLogs?: boolean;
|
|
4986
5094
|
};
|
|
@@ -5140,7 +5248,6 @@ declare class Glacier {
|
|
|
5140
5248
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5141
5249
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5142
5250
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5143
|
-
readonly rpc: RpcService;
|
|
5144
5251
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5145
5252
|
readonly teleporter: TeleporterService;
|
|
5146
5253
|
readonly webhooks: WebhooksService;
|
|
@@ -5296,4 +5403,4 @@ type Unauthorized = {
|
|
|
5296
5403
|
error: string;
|
|
5297
5404
|
};
|
|
5298
5405
|
|
|
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,
|
|
5406
|
+
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, 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 };
|