@avalabs/glacier-sdk 3.1.0-canary.dbb51d6.0 → 3.1.0-canary.ea6cb25.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 +217 -70
- 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/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -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/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +63 -18
- 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 +33 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/index.d.ts +5 -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
|
@@ -148,6 +148,78 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
type RpcUsageMetricsValueAggregated = {
|
|
152
|
+
/**
|
|
153
|
+
* The total number of requests
|
|
154
|
+
*/
|
|
155
|
+
totalRequests: number;
|
|
156
|
+
/**
|
|
157
|
+
* The number of API credits used
|
|
158
|
+
*/
|
|
159
|
+
apiCreditsUsed: number;
|
|
160
|
+
/**
|
|
161
|
+
* The number of requests per second
|
|
162
|
+
*/
|
|
163
|
+
requestsPerSecond: number;
|
|
164
|
+
/**
|
|
165
|
+
* The success rate percentage
|
|
166
|
+
*/
|
|
167
|
+
successRatePercent: number;
|
|
168
|
+
/**
|
|
169
|
+
* The median response time in milliseconds
|
|
170
|
+
*/
|
|
171
|
+
medianResponseTimeMsecs: number;
|
|
172
|
+
/**
|
|
173
|
+
* The number of invalid requests
|
|
174
|
+
*/
|
|
175
|
+
invalidRequests: number;
|
|
176
|
+
/**
|
|
177
|
+
* Column name used for data aggregation
|
|
178
|
+
*/
|
|
179
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
180
|
+
/**
|
|
181
|
+
* The value of the column used for data aggregation
|
|
182
|
+
*/
|
|
183
|
+
groupValue?: (string | number);
|
|
184
|
+
};
|
|
185
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
186
|
+
/**
|
|
187
|
+
* Column name used for data aggregation
|
|
188
|
+
*/
|
|
189
|
+
enum groupedBy {
|
|
190
|
+
RPC_METHOD = "rpcMethod",
|
|
191
|
+
RESPONSE_CODE = "responseCode",
|
|
192
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
193
|
+
NONE = "None"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type RpcMetrics = {
|
|
198
|
+
/**
|
|
199
|
+
* The timestamp of the metrics value
|
|
200
|
+
*/
|
|
201
|
+
timestamp: number;
|
|
202
|
+
/**
|
|
203
|
+
* The metrics values for the timestamp
|
|
204
|
+
*/
|
|
205
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
type RpcUsageMetricsResponseDTO = {
|
|
209
|
+
/**
|
|
210
|
+
* Duration in which the metrics value is aggregated
|
|
211
|
+
*/
|
|
212
|
+
aggregateDuration: string;
|
|
213
|
+
/**
|
|
214
|
+
* ChainId for which the metrics are aggregated
|
|
215
|
+
*/
|
|
216
|
+
chainId: string;
|
|
217
|
+
/**
|
|
218
|
+
* Metrics values
|
|
219
|
+
*/
|
|
220
|
+
metrics: Array<RpcMetrics>;
|
|
221
|
+
};
|
|
222
|
+
|
|
151
223
|
declare enum TimeIntervalGranularityExtended {
|
|
152
224
|
MINUTE = "minute",
|
|
153
225
|
HOURLY = "hourly",
|
|
@@ -251,17 +323,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
323
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
324
|
* @throws ApiError
|
|
253
325
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
326
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
255
327
|
/**
|
|
256
328
|
* Organization ID to fetch usage metrics for
|
|
257
329
|
*/
|
|
258
330
|
orgId?: string;
|
|
259
331
|
/**
|
|
260
|
-
*
|
|
332
|
+
* 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.
|
|
261
333
|
*/
|
|
262
334
|
startTimestamp?: number;
|
|
263
335
|
/**
|
|
264
|
-
*
|
|
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.
|
|
265
337
|
*/
|
|
266
338
|
endTimestamp?: number;
|
|
267
339
|
/**
|
|
@@ -273,21 +345,21 @@ declare class DataApiUsageMetricsService {
|
|
|
273
345
|
*/
|
|
274
346
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
347
|
/**
|
|
276
|
-
* Filter data by
|
|
348
|
+
* Filter data by chain ID.
|
|
277
349
|
*/
|
|
278
|
-
|
|
350
|
+
chainId?: string;
|
|
279
351
|
/**
|
|
280
|
-
* Filter data by request
|
|
352
|
+
* Filter data by request path.
|
|
281
353
|
*/
|
|
282
|
-
|
|
354
|
+
requestPath?: string;
|
|
283
355
|
/**
|
|
284
356
|
* Filter data by response status code.
|
|
285
357
|
*/
|
|
286
358
|
responseCode?: string;
|
|
287
359
|
/**
|
|
288
|
-
* Filter data by
|
|
360
|
+
* Filter data by request type.
|
|
289
361
|
*/
|
|
290
|
-
|
|
362
|
+
requestType?: 'data' | 'rpc';
|
|
291
363
|
/**
|
|
292
364
|
* Filter data by API key ID.
|
|
293
365
|
*/
|
|
@@ -299,35 +371,35 @@ declare class DataApiUsageMetricsService {
|
|
|
299
371
|
* @returns LogsResponseDTO Successful response
|
|
300
372
|
* @throws ApiError
|
|
301
373
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
374
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
303
375
|
/**
|
|
304
376
|
* Organization ID to fetch usage metrics for
|
|
305
377
|
*/
|
|
306
378
|
orgId?: string;
|
|
307
379
|
/**
|
|
308
|
-
*
|
|
380
|
+
* 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.
|
|
309
381
|
*/
|
|
310
382
|
startTimestamp?: number;
|
|
311
383
|
/**
|
|
312
|
-
*
|
|
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.
|
|
313
385
|
*/
|
|
314
386
|
endTimestamp?: number;
|
|
315
387
|
/**
|
|
316
|
-
* Filter data by
|
|
388
|
+
* Filter data by chain ID.
|
|
317
389
|
*/
|
|
318
|
-
|
|
390
|
+
chainId?: string;
|
|
319
391
|
/**
|
|
320
|
-
* Filter data by request
|
|
392
|
+
* Filter data by request path.
|
|
321
393
|
*/
|
|
322
|
-
|
|
394
|
+
requestPath?: string;
|
|
323
395
|
/**
|
|
324
396
|
* Filter data by response status code.
|
|
325
397
|
*/
|
|
326
398
|
responseCode?: string;
|
|
327
399
|
/**
|
|
328
|
-
* Filter data by
|
|
400
|
+
* Filter data by request type.
|
|
329
401
|
*/
|
|
330
|
-
|
|
402
|
+
requestType?: 'data' | 'rpc';
|
|
331
403
|
/**
|
|
332
404
|
* Filter data by API key ID.
|
|
333
405
|
*/
|
|
@@ -341,6 +413,50 @@ declare class DataApiUsageMetricsService {
|
|
|
341
413
|
*/
|
|
342
414
|
pageSize?: number;
|
|
343
415
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
|
+
/**
|
|
417
|
+
* 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.
|
|
419
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
420
|
+
* @throws ApiError
|
|
421
|
+
*/
|
|
422
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
|
+
/**
|
|
424
|
+
* Query param for setting time interval of data aggregation.
|
|
425
|
+
*/
|
|
426
|
+
timeInterval?: string;
|
|
427
|
+
/**
|
|
428
|
+
* 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
|
+
*/
|
|
430
|
+
startTimestamp?: number;
|
|
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.
|
|
433
|
+
*/
|
|
434
|
+
endTimestamp?: number;
|
|
435
|
+
/**
|
|
436
|
+
* Query param for the criterion used for grouping metrics
|
|
437
|
+
*/
|
|
438
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
439
|
+
/**
|
|
440
|
+
* Filter data by chain ID.
|
|
441
|
+
*/
|
|
442
|
+
chainId?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Filter data by request path.
|
|
445
|
+
*/
|
|
446
|
+
requestPath?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Filter data by response status code.
|
|
449
|
+
*/
|
|
450
|
+
responseCode?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Filter data by RPC method.
|
|
453
|
+
*/
|
|
454
|
+
rpcMethod?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Filter data by Rl Bypass API Token.
|
|
457
|
+
*/
|
|
458
|
+
rlBypassApiToken?: string;
|
|
459
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
344
460
|
}
|
|
345
461
|
|
|
346
462
|
declare class DefaultService {
|
|
@@ -1004,6 +1120,11 @@ type ChainInfo = {
|
|
|
1004
1120
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1121
|
};
|
|
1006
1122
|
|
|
1123
|
+
type ListAddressChainsResponse = {
|
|
1124
|
+
indexedChains?: Array<ChainInfo>;
|
|
1125
|
+
unindexedChains?: Array<string>;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1007
1128
|
type ListChainsResponse = {
|
|
1008
1129
|
chains: Array<ChainInfo>;
|
|
1009
1130
|
};
|
|
@@ -1046,6 +1167,18 @@ declare class EvmChainsService {
|
|
|
1046
1167
|
*/
|
|
1047
1168
|
chainId: string;
|
|
1048
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>;
|
|
1049
1182
|
}
|
|
1050
1183
|
|
|
1051
1184
|
type ImageAsset = {
|
|
@@ -3082,6 +3215,39 @@ declare class PrimaryNetworkService {
|
|
|
3082
3215
|
*/
|
|
3083
3216
|
nodeIds?: string;
|
|
3084
3217
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3218
|
+
/**
|
|
3219
|
+
* List subnet-only validators
|
|
3220
|
+
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3221
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
3222
|
+
* @throws ApiError
|
|
3223
|
+
*/
|
|
3224
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
3225
|
+
/**
|
|
3226
|
+
* Either mainnet or testnet/fuji.
|
|
3227
|
+
*/
|
|
3228
|
+
network: Network;
|
|
3229
|
+
/**
|
|
3230
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3231
|
+
*/
|
|
3232
|
+
pageToken?: string;
|
|
3233
|
+
/**
|
|
3234
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3235
|
+
*/
|
|
3236
|
+
pageSize?: number;
|
|
3237
|
+
/**
|
|
3238
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
3239
|
+
*/
|
|
3240
|
+
sovValidationId?: any;
|
|
3241
|
+
includeInactiveSovs?: boolean;
|
|
3242
|
+
/**
|
|
3243
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3244
|
+
*/
|
|
3245
|
+
nodeId?: string;
|
|
3246
|
+
/**
|
|
3247
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3248
|
+
*/
|
|
3249
|
+
subnetId?: any;
|
|
3250
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
3085
3251
|
}
|
|
3086
3252
|
|
|
3087
3253
|
declare enum BlockchainId {
|
|
@@ -3128,12 +3294,6 @@ type CChainAtomicBalances = {
|
|
|
3128
3294
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3129
3295
|
};
|
|
3130
3296
|
|
|
3131
|
-
declare enum PrimaryNetwork {
|
|
3132
|
-
MAINNET = "mainnet",
|
|
3133
|
-
FUJI = "fuji",
|
|
3134
|
-
DEVNET = "devnet"
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
3297
|
declare enum PrimaryNetworkChainName {
|
|
3138
3298
|
P_CHAIN = "p-chain",
|
|
3139
3299
|
X_CHAIN = "x-chain",
|
|
@@ -3142,7 +3302,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3142
3302
|
|
|
3143
3303
|
type PrimaryNetworkChainInfo = {
|
|
3144
3304
|
chainName: PrimaryNetworkChainName;
|
|
3145
|
-
network:
|
|
3305
|
+
network: Network;
|
|
3146
3306
|
};
|
|
3147
3307
|
|
|
3148
3308
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3334,6 +3494,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3334
3494
|
txCount: number;
|
|
3335
3495
|
transactions: Array<string>;
|
|
3336
3496
|
blockSizeBytes: number;
|
|
3497
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3498
|
+
activeSubnetOnlyValidators?: number;
|
|
3337
3499
|
currentSupply?: string;
|
|
3338
3500
|
proposerDetails?: ProposerDetails;
|
|
3339
3501
|
};
|
|
@@ -3347,6 +3509,8 @@ type PrimaryNetworkBlock = {
|
|
|
3347
3509
|
txCount: number;
|
|
3348
3510
|
transactions: Array<string>;
|
|
3349
3511
|
blockSizeBytes: number;
|
|
3512
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3513
|
+
activeSubnetOnlyValidators?: number;
|
|
3350
3514
|
currentSupply?: string;
|
|
3351
3515
|
proposerDetails?: ProposerDetails;
|
|
3352
3516
|
};
|
|
@@ -3851,6 +4015,11 @@ declare enum PChainTransactionType {
|
|
|
3851
4015
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3852
4016
|
BASE_TX = "BaseTx",
|
|
3853
4017
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4018
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4019
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4020
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4021
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4022
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
3854
4023
|
UNKNOWN = "UNKNOWN"
|
|
3855
4024
|
}
|
|
3856
4025
|
|
|
@@ -3905,6 +4074,11 @@ type PChainUtxo = {
|
|
|
3905
4074
|
utxoType: UtxoType;
|
|
3906
4075
|
};
|
|
3907
4076
|
|
|
4077
|
+
type SubnetValidatorManagerDetails = {
|
|
4078
|
+
blockchainId: string;
|
|
4079
|
+
evmContractAddress: string;
|
|
4080
|
+
};
|
|
4081
|
+
|
|
3908
4082
|
type PChainTransaction = {
|
|
3909
4083
|
/**
|
|
3910
4084
|
* A P-Chain transaction hash.
|
|
@@ -3939,6 +4113,10 @@ type PChainTransaction = {
|
|
|
3939
4113
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3940
4114
|
*/
|
|
3941
4115
|
amountStaked: Array<AssetAmount>;
|
|
4116
|
+
/**
|
|
4117
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4118
|
+
*/
|
|
4119
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
3942
4120
|
/**
|
|
3943
4121
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3944
4122
|
*/
|
|
@@ -3959,6 +4137,14 @@ type PChainTransaction = {
|
|
|
3959
4137
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
3960
4138
|
*/
|
|
3961
4139
|
subnetId?: string;
|
|
4140
|
+
/**
|
|
4141
|
+
* Present for ConvertSubnetTx
|
|
4142
|
+
*/
|
|
4143
|
+
subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
|
|
4144
|
+
/**
|
|
4145
|
+
* Present for ConvertSubnetTx, RegisterSubnetValidatorTx
|
|
4146
|
+
*/
|
|
4147
|
+
subnetOnlyValidatorDetails?: Array<string>;
|
|
3962
4148
|
/**
|
|
3963
4149
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3964
4150
|
*/
|
|
@@ -4160,6 +4346,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4160
4346
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4161
4347
|
BASE_TX = "BaseTx",
|
|
4162
4348
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4349
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4350
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4351
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4352
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4353
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
4163
4354
|
UNKNOWN = "UNKNOWN",
|
|
4164
4355
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4165
4356
|
OPERATION_TX = "OperationTx"
|
|
@@ -4486,49 +4677,6 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4486
4677
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4487
4678
|
}
|
|
4488
4679
|
|
|
4489
|
-
type RpcErrorDto = {
|
|
4490
|
-
code: number;
|
|
4491
|
-
message: string;
|
|
4492
|
-
data?: Record<string, any>;
|
|
4493
|
-
};
|
|
4494
|
-
|
|
4495
|
-
type RpcErrorResponseDto = {
|
|
4496
|
-
jsonrpc: string;
|
|
4497
|
-
id?: (string | number);
|
|
4498
|
-
error: RpcErrorDto;
|
|
4499
|
-
};
|
|
4500
|
-
|
|
4501
|
-
type RpcRequestBodyDto = {
|
|
4502
|
-
method: string;
|
|
4503
|
-
params?: Record<string, any>;
|
|
4504
|
-
id?: (string | number);
|
|
4505
|
-
jsonrpc?: string;
|
|
4506
|
-
};
|
|
4507
|
-
|
|
4508
|
-
type RpcSuccessResponseDto = {
|
|
4509
|
-
jsonrpc: string;
|
|
4510
|
-
id?: (string | number);
|
|
4511
|
-
result: Record<string, any>;
|
|
4512
|
-
};
|
|
4513
|
-
|
|
4514
|
-
declare class RpcService {
|
|
4515
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4516
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4517
|
-
/**
|
|
4518
|
-
* Calls JSON-RPC method
|
|
4519
|
-
* Calls JSON-RPC method.
|
|
4520
|
-
* @returns any Successful response
|
|
4521
|
-
* @throws ApiError
|
|
4522
|
-
*/
|
|
4523
|
-
rpc({ chainId, requestBody, }: {
|
|
4524
|
-
/**
|
|
4525
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4526
|
-
*/
|
|
4527
|
-
chainId: string;
|
|
4528
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4529
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4530
|
-
}
|
|
4531
|
-
|
|
4532
4680
|
type SignatureAggregationResponse = {
|
|
4533
4681
|
signedMessage: string;
|
|
4534
4682
|
};
|
|
@@ -5024,7 +5172,6 @@ declare class Glacier {
|
|
|
5024
5172
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5025
5173
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5026
5174
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5027
|
-
readonly rpc: RpcService;
|
|
5028
5175
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5029
5176
|
readonly teleporter: TeleporterService;
|
|
5030
5177
|
readonly webhooks: WebhooksService;
|
|
@@ -5180,4 +5327,4 @@ type Unauthorized = {
|
|
|
5180
5327
|
error: string;
|
|
5181
5328
|
};
|
|
5182
5329
|
|
|
5183
|
-
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,
|
|
5330
|
+
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, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetValidatorManagerDetails, 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 };
|