@avalabs/glacier-sdk 3.1.0-canary.682531.0 → 3.1.0-canary.6b18bbe.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 +1325 -279
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +6 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -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/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +33 -7
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +166 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.d.ts +23 -2
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +84 -6
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +46 -13
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +43 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +17 -11
- package/esm/generated/services/WebhooksService.d.ts +3 -3
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +35 -7
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- 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,146 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet",
|
|
155
|
+
DEVNET = "devnet"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
159
|
+
RPC_METHOD = "rpcMethod",
|
|
160
|
+
REQUEST_PATH = "requestPath",
|
|
161
|
+
RESPONSE_CODE = "responseCode",
|
|
162
|
+
COUNTRY = "country",
|
|
163
|
+
CONTINENT = "continent",
|
|
164
|
+
USER_AGENT = "userAgent"
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
168
|
+
HOURLY = "hourly",
|
|
169
|
+
DAILY = "daily",
|
|
170
|
+
WEEKLY = "weekly",
|
|
171
|
+
MONTHLY = "monthly"
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
type RpcUsageMetricsValueAggregated = {
|
|
175
|
+
/**
|
|
176
|
+
* The total number of requests
|
|
177
|
+
*/
|
|
178
|
+
totalRequests: number;
|
|
179
|
+
/**
|
|
180
|
+
* The number of API credits used
|
|
181
|
+
*/
|
|
182
|
+
apiCreditsUsed: number;
|
|
183
|
+
/**
|
|
184
|
+
* The number of requests per second
|
|
185
|
+
*/
|
|
186
|
+
requestsPerSecond: number;
|
|
187
|
+
/**
|
|
188
|
+
* The success rate percentage
|
|
189
|
+
*/
|
|
190
|
+
successRatePercent: number;
|
|
191
|
+
/**
|
|
192
|
+
* The median response time in milliseconds
|
|
193
|
+
*/
|
|
194
|
+
medianResponseTimeMsecs: number;
|
|
195
|
+
/**
|
|
196
|
+
* The number of invalid requests
|
|
197
|
+
*/
|
|
198
|
+
invalidRequests: number;
|
|
199
|
+
/**
|
|
200
|
+
* The number of API credits wasted on invalid requests
|
|
201
|
+
*/
|
|
202
|
+
apiCreditsWasted: number;
|
|
203
|
+
/**
|
|
204
|
+
* Column name used for data aggregation
|
|
205
|
+
*/
|
|
206
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
207
|
+
/**
|
|
208
|
+
* The value of the column used for data aggregation
|
|
209
|
+
*/
|
|
210
|
+
groupValue?: (string | number);
|
|
211
|
+
};
|
|
212
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
213
|
+
/**
|
|
214
|
+
* Column name used for data aggregation
|
|
215
|
+
*/
|
|
216
|
+
enum groupedBy {
|
|
217
|
+
RPC_METHOD = "rpcMethod",
|
|
218
|
+
RESPONSE_CODE = "responseCode",
|
|
219
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
220
|
+
REQUEST_PATH = "requestPath",
|
|
221
|
+
COUNTRY = "country",
|
|
222
|
+
CONTINENT = "continent",
|
|
223
|
+
USER_AGENT = "userAgent",
|
|
224
|
+
NONE = "None"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
type RpcMetrics = {
|
|
229
|
+
/**
|
|
230
|
+
* The timestamp of the metrics value
|
|
231
|
+
*/
|
|
232
|
+
timestamp: number;
|
|
233
|
+
/**
|
|
234
|
+
* The metrics values for the timestamp
|
|
235
|
+
*/
|
|
236
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
240
|
+
/**
|
|
241
|
+
* Duration in which the metrics value is aggregated
|
|
242
|
+
*/
|
|
243
|
+
aggregateDuration: string;
|
|
244
|
+
/**
|
|
245
|
+
* Metrics values
|
|
246
|
+
*/
|
|
247
|
+
metrics: Array<RpcMetrics>;
|
|
248
|
+
/**
|
|
249
|
+
* Network type for which the metrics are aggregated
|
|
250
|
+
*/
|
|
251
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
252
|
+
};
|
|
253
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
254
|
+
/**
|
|
255
|
+
* Network type for which the metrics are aggregated
|
|
256
|
+
*/
|
|
257
|
+
enum network {
|
|
258
|
+
MAINNET = "mainnet",
|
|
259
|
+
TESTNET = "testnet"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
264
|
+
RPC_METHOD = "rpcMethod",
|
|
265
|
+
RESPONSE_CODE = "responseCode",
|
|
266
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
270
|
+
HOURLY = "hourly",
|
|
271
|
+
DAILY = "daily",
|
|
272
|
+
WEEKLY = "weekly",
|
|
273
|
+
MONTHLY = "monthly"
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
277
|
+
/**
|
|
278
|
+
* Duration in which the metrics value is aggregated
|
|
279
|
+
*/
|
|
280
|
+
aggregateDuration: string;
|
|
281
|
+
/**
|
|
282
|
+
* Metrics values
|
|
283
|
+
*/
|
|
284
|
+
metrics: Array<RpcMetrics>;
|
|
285
|
+
/**
|
|
286
|
+
* ChainId for which the metrics are aggregated
|
|
287
|
+
*/
|
|
288
|
+
chainId: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
151
291
|
declare enum TimeIntervalGranularityExtended {
|
|
152
292
|
MINUTE = "minute",
|
|
153
293
|
HOURLY = "hourly",
|
|
@@ -251,17 +391,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
391
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
392
|
* @throws ApiError
|
|
253
393
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
394
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
255
395
|
/**
|
|
256
396
|
* Organization ID to fetch usage metrics for
|
|
257
397
|
*/
|
|
258
398
|
orgId?: string;
|
|
259
399
|
/**
|
|
260
|
-
*
|
|
400
|
+
* 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
401
|
*/
|
|
262
402
|
startTimestamp?: number;
|
|
263
403
|
/**
|
|
264
|
-
*
|
|
404
|
+
* 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
405
|
*/
|
|
266
406
|
endTimestamp?: number;
|
|
267
407
|
/**
|
|
@@ -273,25 +413,25 @@ declare class DataApiUsageMetricsService {
|
|
|
273
413
|
*/
|
|
274
414
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
415
|
/**
|
|
276
|
-
* Filter data by
|
|
277
|
-
*/
|
|
278
|
-
requestPath?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Filter data by request type.
|
|
416
|
+
* Filter data by chain ID.
|
|
281
417
|
*/
|
|
282
|
-
|
|
418
|
+
chainId?: string;
|
|
283
419
|
/**
|
|
284
420
|
* Filter data by response status code.
|
|
285
421
|
*/
|
|
286
422
|
responseCode?: string;
|
|
287
423
|
/**
|
|
288
|
-
* Filter data by
|
|
424
|
+
* Filter data by request type.
|
|
289
425
|
*/
|
|
290
|
-
|
|
426
|
+
requestType?: 'data' | 'rpc';
|
|
291
427
|
/**
|
|
292
428
|
* Filter data by API key ID.
|
|
293
429
|
*/
|
|
294
430
|
apiKeyId?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Filter data by request path.
|
|
433
|
+
*/
|
|
434
|
+
requestPath?: string;
|
|
295
435
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
436
|
/**
|
|
297
437
|
* Get logs for requests made by client
|
|
@@ -299,39 +439,39 @@ declare class DataApiUsageMetricsService {
|
|
|
299
439
|
* @returns LogsResponseDTO Successful response
|
|
300
440
|
* @throws ApiError
|
|
301
441
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
442
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
303
443
|
/**
|
|
304
444
|
* Organization ID to fetch usage metrics for
|
|
305
445
|
*/
|
|
306
446
|
orgId?: string;
|
|
307
447
|
/**
|
|
308
|
-
*
|
|
448
|
+
* 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
449
|
*/
|
|
310
450
|
startTimestamp?: number;
|
|
311
451
|
/**
|
|
312
|
-
*
|
|
452
|
+
* 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
453
|
*/
|
|
314
454
|
endTimestamp?: number;
|
|
315
455
|
/**
|
|
316
|
-
* Filter data by
|
|
317
|
-
*/
|
|
318
|
-
requestPath?: string;
|
|
319
|
-
/**
|
|
320
|
-
* Filter data by request type.
|
|
456
|
+
* Filter data by chain ID.
|
|
321
457
|
*/
|
|
322
|
-
|
|
458
|
+
chainId?: string;
|
|
323
459
|
/**
|
|
324
460
|
* Filter data by response status code.
|
|
325
461
|
*/
|
|
326
462
|
responseCode?: string;
|
|
327
463
|
/**
|
|
328
|
-
* Filter data by
|
|
464
|
+
* Filter data by request type.
|
|
329
465
|
*/
|
|
330
|
-
|
|
466
|
+
requestType?: 'data' | 'rpc';
|
|
331
467
|
/**
|
|
332
468
|
* Filter data by API key ID.
|
|
333
469
|
*/
|
|
334
470
|
apiKeyId?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Filter data by request path.
|
|
473
|
+
*/
|
|
474
|
+
requestPath?: string;
|
|
335
475
|
/**
|
|
336
476
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
477
|
*/
|
|
@@ -341,6 +481,143 @@ declare class DataApiUsageMetricsService {
|
|
|
341
481
|
*/
|
|
342
482
|
pageSize?: number;
|
|
343
483
|
}): CancelablePromise<LogsResponseDTO>;
|
|
484
|
+
/**
|
|
485
|
+
* Get usage metrics for the Subnet RPC
|
|
486
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
487
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
488
|
+
* @throws ApiError
|
|
489
|
+
*/
|
|
490
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
491
|
+
/**
|
|
492
|
+
* Time interval granularity for data aggregation for subnet
|
|
493
|
+
* rpc metrics
|
|
494
|
+
*/
|
|
495
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
496
|
+
/**
|
|
497
|
+
* 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.
|
|
498
|
+
*/
|
|
499
|
+
startTimestamp?: number;
|
|
500
|
+
/**
|
|
501
|
+
* 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.
|
|
502
|
+
*/
|
|
503
|
+
endTimestamp?: number;
|
|
504
|
+
/**
|
|
505
|
+
* Query param for the criterion used for grouping metrics
|
|
506
|
+
*/
|
|
507
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
508
|
+
/**
|
|
509
|
+
* Filter data by chain ID.
|
|
510
|
+
*/
|
|
511
|
+
chainId?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Filter data by response status code.
|
|
514
|
+
*/
|
|
515
|
+
responseCode?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Filter data by RPC method.
|
|
518
|
+
*/
|
|
519
|
+
rpcMethod?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Filter data by Rl Bypass API Token.
|
|
522
|
+
*/
|
|
523
|
+
rlBypassApiToken?: string;
|
|
524
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
525
|
+
/**
|
|
526
|
+
* @deprecated
|
|
527
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
528
|
+
*
|
|
529
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
530
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
531
|
+
* @throws ApiError
|
|
532
|
+
*/
|
|
533
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
534
|
+
/**
|
|
535
|
+
* Time interval granularity for data aggregation for subnet
|
|
536
|
+
* rpc metrics
|
|
537
|
+
*/
|
|
538
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
539
|
+
/**
|
|
540
|
+
* 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.
|
|
541
|
+
*/
|
|
542
|
+
startTimestamp?: number;
|
|
543
|
+
/**
|
|
544
|
+
* 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.
|
|
545
|
+
*/
|
|
546
|
+
endTimestamp?: number;
|
|
547
|
+
/**
|
|
548
|
+
* Query param for the criterion used for grouping metrics
|
|
549
|
+
*/
|
|
550
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
551
|
+
/**
|
|
552
|
+
* Filter data by chain ID.
|
|
553
|
+
*/
|
|
554
|
+
chainId?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Filter data by response status code.
|
|
557
|
+
*/
|
|
558
|
+
responseCode?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Filter data by RPC method.
|
|
561
|
+
*/
|
|
562
|
+
rpcMethod?: string;
|
|
563
|
+
/**
|
|
564
|
+
* Filter data by Rl Bypass API Token.
|
|
565
|
+
*/
|
|
566
|
+
rlBypassApiToken?: string;
|
|
567
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
568
|
+
/**
|
|
569
|
+
* Get usage metrics for the Primary Network RPC
|
|
570
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
571
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
572
|
+
* @throws ApiError
|
|
573
|
+
*/
|
|
574
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
575
|
+
/**
|
|
576
|
+
* Either mainnet or testnet/fuji.
|
|
577
|
+
*/
|
|
578
|
+
network: Network;
|
|
579
|
+
/**
|
|
580
|
+
* Time interval granularity for data aggregation for subnet
|
|
581
|
+
* rpc metrics
|
|
582
|
+
*/
|
|
583
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
584
|
+
/**
|
|
585
|
+
* 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.
|
|
586
|
+
*/
|
|
587
|
+
startTimestamp?: number;
|
|
588
|
+
/**
|
|
589
|
+
* 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.
|
|
590
|
+
*/
|
|
591
|
+
endTimestamp?: number;
|
|
592
|
+
/**
|
|
593
|
+
* Query param for the criterion used for grouping metrics
|
|
594
|
+
*/
|
|
595
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
596
|
+
/**
|
|
597
|
+
* Filter data by response status code.
|
|
598
|
+
*/
|
|
599
|
+
responseCode?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Filter data by request path.
|
|
602
|
+
*/
|
|
603
|
+
requestPath?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
606
|
+
*/
|
|
607
|
+
country?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
610
|
+
*/
|
|
611
|
+
continent?: string;
|
|
612
|
+
/**
|
|
613
|
+
* Filter data by User Agent.
|
|
614
|
+
*/
|
|
615
|
+
userAgent?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Filter data by RPC method.
|
|
618
|
+
*/
|
|
619
|
+
rpcMethod?: string;
|
|
620
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
344
621
|
}
|
|
345
622
|
|
|
346
623
|
declare class DefaultService {
|
|
@@ -539,6 +816,10 @@ type ListErc1155BalancesResponse = {
|
|
|
539
816
|
* 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.
|
|
540
817
|
*/
|
|
541
818
|
nextPageToken?: string;
|
|
819
|
+
/**
|
|
820
|
+
* The native token balance for the address.
|
|
821
|
+
*/
|
|
822
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
542
823
|
/**
|
|
543
824
|
* The list of ERC-1155 token balances for the address.
|
|
544
825
|
*/
|
|
@@ -583,11 +864,22 @@ type Erc20TokenBalance = {
|
|
|
583
864
|
* The monetary value of the balance, if a price is available for the token.
|
|
584
865
|
*/
|
|
585
866
|
balanceValue?: Money;
|
|
867
|
+
/**
|
|
868
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
869
|
+
*/
|
|
870
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
586
871
|
};
|
|
587
872
|
declare namespace Erc20TokenBalance {
|
|
588
873
|
enum ercType {
|
|
589
874
|
ERC_20 = "ERC-20"
|
|
590
875
|
}
|
|
876
|
+
/**
|
|
877
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
878
|
+
*/
|
|
879
|
+
enum tokenReputation {
|
|
880
|
+
MALICIOUS = "Malicious",
|
|
881
|
+
BENIGN = "Benign"
|
|
882
|
+
}
|
|
591
883
|
}
|
|
592
884
|
|
|
593
885
|
type ListErc20BalancesResponse = {
|
|
@@ -595,6 +887,10 @@ type ListErc20BalancesResponse = {
|
|
|
595
887
|
* 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.
|
|
596
888
|
*/
|
|
597
889
|
nextPageToken?: string;
|
|
890
|
+
/**
|
|
891
|
+
* The native token balance for the address.
|
|
892
|
+
*/
|
|
893
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
598
894
|
/**
|
|
599
895
|
* The list of ERC-20 token balances for the address.
|
|
600
896
|
*/
|
|
@@ -606,6 +902,10 @@ type ListErc721BalancesResponse = {
|
|
|
606
902
|
* 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.
|
|
607
903
|
*/
|
|
608
904
|
nextPageToken?: string;
|
|
905
|
+
/**
|
|
906
|
+
* The native token balance for the address.
|
|
907
|
+
*/
|
|
908
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
609
909
|
/**
|
|
610
910
|
* The list of ERC-721 token balances for the address.
|
|
611
911
|
*/
|
|
@@ -625,7 +925,7 @@ declare class EvmBalancesService {
|
|
|
625
925
|
*/
|
|
626
926
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
627
927
|
/**
|
|
628
|
-
* A supported evm chain id
|
|
928
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
629
929
|
*/
|
|
630
930
|
chainId: string;
|
|
631
931
|
/**
|
|
@@ -653,7 +953,7 @@ declare class EvmBalancesService {
|
|
|
653
953
|
*/
|
|
654
954
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
655
955
|
/**
|
|
656
|
-
* A supported evm chain id
|
|
956
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
657
957
|
*/
|
|
658
958
|
chainId: string;
|
|
659
959
|
/**
|
|
@@ -695,7 +995,7 @@ declare class EvmBalancesService {
|
|
|
695
995
|
*/
|
|
696
996
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
697
997
|
/**
|
|
698
|
-
* A supported evm chain id
|
|
998
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
699
999
|
*/
|
|
700
1000
|
chainId: string;
|
|
701
1001
|
/**
|
|
@@ -727,7 +1027,7 @@ declare class EvmBalancesService {
|
|
|
727
1027
|
*/
|
|
728
1028
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
729
1029
|
/**
|
|
730
|
-
* A supported evm chain id
|
|
1030
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
731
1031
|
*/
|
|
732
1032
|
chainId: string;
|
|
733
1033
|
/**
|
|
@@ -761,7 +1061,7 @@ declare class EvmBalancesService {
|
|
|
761
1061
|
*/
|
|
762
1062
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
763
1063
|
/**
|
|
764
|
-
* A supported evm chain id
|
|
1064
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
765
1065
|
*/
|
|
766
1066
|
chainId: string;
|
|
767
1067
|
/**
|
|
@@ -784,6 +1084,10 @@ declare class EvmBalancesService {
|
|
|
784
1084
|
}
|
|
785
1085
|
|
|
786
1086
|
type GetEvmBlockResponse = {
|
|
1087
|
+
/**
|
|
1088
|
+
* The EVM chain ID on which the block was created.
|
|
1089
|
+
*/
|
|
1090
|
+
chainId: string;
|
|
787
1091
|
/**
|
|
788
1092
|
* The block number on the chain.
|
|
789
1093
|
*/
|
|
@@ -828,6 +1132,10 @@ type GetEvmBlockResponse = {
|
|
|
828
1132
|
};
|
|
829
1133
|
|
|
830
1134
|
type EvmBlock = {
|
|
1135
|
+
/**
|
|
1136
|
+
* The EVM chain ID on which the block was created.
|
|
1137
|
+
*/
|
|
1138
|
+
chainId: string;
|
|
831
1139
|
/**
|
|
832
1140
|
* The block number on the chain.
|
|
833
1141
|
*/
|
|
@@ -883,16 +1191,36 @@ declare class EvmBlocksService {
|
|
|
883
1191
|
readonly httpRequest: BaseHttpRequest;
|
|
884
1192
|
constructor(httpRequest: BaseHttpRequest);
|
|
885
1193
|
/**
|
|
886
|
-
* List latest blocks
|
|
887
|
-
* Lists the
|
|
1194
|
+
* List latest blocks across all supported EVM chains
|
|
1195
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
888
1196
|
* @returns ListEvmBlocksResponse Successful response
|
|
889
1197
|
* @throws ApiError
|
|
890
1198
|
*/
|
|
891
|
-
|
|
1199
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
892
1200
|
/**
|
|
893
|
-
* A
|
|
1201
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
894
1202
|
*/
|
|
895
|
-
|
|
1203
|
+
pageToken?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1206
|
+
*/
|
|
1207
|
+
pageSize?: number;
|
|
1208
|
+
/**
|
|
1209
|
+
* Either mainnet or testnet/fuji.
|
|
1210
|
+
*/
|
|
1211
|
+
network?: Network;
|
|
1212
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1213
|
+
/**
|
|
1214
|
+
* List latest blocks
|
|
1215
|
+
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
1216
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1217
|
+
* @throws ApiError
|
|
1218
|
+
*/
|
|
1219
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
1220
|
+
/**
|
|
1221
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1222
|
+
*/
|
|
1223
|
+
chainId: string;
|
|
896
1224
|
/**
|
|
897
1225
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
898
1226
|
*/
|
|
@@ -910,7 +1238,7 @@ declare class EvmBlocksService {
|
|
|
910
1238
|
*/
|
|
911
1239
|
getBlock({ chainId, blockId, }: {
|
|
912
1240
|
/**
|
|
913
|
-
* A supported evm chain id
|
|
1241
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
914
1242
|
*/
|
|
915
1243
|
chainId: string;
|
|
916
1244
|
/**
|
|
@@ -1004,29 +1332,153 @@ type ChainInfo = {
|
|
|
1004
1332
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1333
|
};
|
|
1006
1334
|
|
|
1335
|
+
type ListAddressChainsResponse = {
|
|
1336
|
+
indexedChains?: Array<ChainInfo>;
|
|
1337
|
+
unindexedChains?: Array<string>;
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1007
1340
|
type ListChainsResponse = {
|
|
1008
1341
|
chains: Array<ChainInfo>;
|
|
1009
1342
|
};
|
|
1010
1343
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1344
|
+
/**
|
|
1345
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1346
|
+
*/
|
|
1347
|
+
declare enum TransactionMethodType {
|
|
1348
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1349
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1350
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
type Method = {
|
|
1354
|
+
callType: TransactionMethodType;
|
|
1355
|
+
/**
|
|
1356
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1357
|
+
*/
|
|
1358
|
+
methodHash: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1361
|
+
*/
|
|
1362
|
+
methodName?: string;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
type RichAddress = {
|
|
1366
|
+
/**
|
|
1367
|
+
* The contract name.
|
|
1368
|
+
*/
|
|
1369
|
+
name?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* The contract symbol.
|
|
1372
|
+
*/
|
|
1373
|
+
symbol?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1376
|
+
*/
|
|
1377
|
+
decimals?: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* The logo uri for the address.
|
|
1380
|
+
*/
|
|
1381
|
+
logoUri?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1384
|
+
*/
|
|
1385
|
+
address: string;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
type NativeTransaction = {
|
|
1389
|
+
/**
|
|
1390
|
+
* The block number on the chain.
|
|
1391
|
+
*/
|
|
1392
|
+
blockNumber: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* The block finality timestamp.
|
|
1395
|
+
*/
|
|
1396
|
+
blockTimestamp: number;
|
|
1397
|
+
/**
|
|
1398
|
+
* The block hash identifier.
|
|
1399
|
+
*/
|
|
1400
|
+
blockHash: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* The EVM chain ID on which the transaction occured.
|
|
1403
|
+
*/
|
|
1404
|
+
chainId: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1407
|
+
*/
|
|
1408
|
+
blockIndex: number;
|
|
1409
|
+
/**
|
|
1410
|
+
* The transaction hash identifier.
|
|
1411
|
+
*/
|
|
1412
|
+
txHash: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1415
|
+
*/
|
|
1416
|
+
txStatus: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* The transaction type.
|
|
1419
|
+
*/
|
|
1420
|
+
txType: number;
|
|
1421
|
+
/**
|
|
1422
|
+
* The gas limit set for the transaction.
|
|
1423
|
+
*/
|
|
1424
|
+
gasLimit: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* The amount of gas used.
|
|
1427
|
+
*/
|
|
1428
|
+
gasUsed: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1431
|
+
*/
|
|
1432
|
+
gasPrice: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* The nonce used by the sender of the transaction.
|
|
1435
|
+
*/
|
|
1436
|
+
nonce: string;
|
|
1437
|
+
from: RichAddress;
|
|
1438
|
+
to: RichAddress;
|
|
1439
|
+
method?: Method;
|
|
1440
|
+
value: string;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
type ListNativeTransactionsResponse = {
|
|
1444
|
+
/**
|
|
1445
|
+
* 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.
|
|
1446
|
+
*/
|
|
1447
|
+
nextPageToken?: string;
|
|
1448
|
+
transactions: Array<NativeTransaction>;
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
declare enum TransactionStatus {
|
|
1452
|
+
FAILED = "failed",
|
|
1453
|
+
SUCCESS = "success"
|
|
1014
1454
|
}
|
|
1015
1455
|
|
|
1016
1456
|
declare class EvmChainsService {
|
|
1017
1457
|
readonly httpRequest: BaseHttpRequest;
|
|
1018
1458
|
constructor(httpRequest: BaseHttpRequest);
|
|
1459
|
+
/**
|
|
1460
|
+
* List all chains associated with a given address
|
|
1461
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1462
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1463
|
+
* @throws ApiError
|
|
1464
|
+
*/
|
|
1465
|
+
listAddressChains({ address, }: {
|
|
1466
|
+
/**
|
|
1467
|
+
* A wallet address.
|
|
1468
|
+
*/
|
|
1469
|
+
address: string;
|
|
1470
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1019
1471
|
/**
|
|
1020
1472
|
* List chains
|
|
1021
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1473
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1022
1474
|
* @returns ListChainsResponse Successful response
|
|
1023
1475
|
* @throws ApiError
|
|
1024
1476
|
*/
|
|
1025
1477
|
supportedChains({ network, feature, }: {
|
|
1026
1478
|
/**
|
|
1027
|
-
* mainnet or testnet.
|
|
1479
|
+
* Either mainnet or testnet/fuji.
|
|
1028
1480
|
*/
|
|
1029
|
-
network?:
|
|
1481
|
+
network?: Network;
|
|
1030
1482
|
/**
|
|
1031
1483
|
* Filter by feature.
|
|
1032
1484
|
*/
|
|
@@ -1034,16 +1486,78 @@ declare class EvmChainsService {
|
|
|
1034
1486
|
}): CancelablePromise<ListChainsResponse>;
|
|
1035
1487
|
/**
|
|
1036
1488
|
* Get chain information
|
|
1037
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1489
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1038
1490
|
* @returns GetChainResponse Successful response
|
|
1039
1491
|
* @throws ApiError
|
|
1040
1492
|
*/
|
|
1041
1493
|
getChainInfo({ chainId, }: {
|
|
1042
1494
|
/**
|
|
1043
|
-
* A supported evm chain id
|
|
1495
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1044
1496
|
*/
|
|
1045
1497
|
chainId: string;
|
|
1046
1498
|
}): CancelablePromise<GetChainResponse>;
|
|
1499
|
+
/**
|
|
1500
|
+
* @deprecated
|
|
1501
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1502
|
+
*
|
|
1503
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1504
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1505
|
+
* @throws ApiError
|
|
1506
|
+
*/
|
|
1507
|
+
getAddressChains({ address, }: {
|
|
1508
|
+
/**
|
|
1509
|
+
* A wallet address.
|
|
1510
|
+
*/
|
|
1511
|
+
address: string;
|
|
1512
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1513
|
+
/**
|
|
1514
|
+
* @deprecated
|
|
1515
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1516
|
+
*
|
|
1517
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1518
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1519
|
+
* @throws ApiError
|
|
1520
|
+
*/
|
|
1521
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1522
|
+
/**
|
|
1523
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1524
|
+
*/
|
|
1525
|
+
pageToken?: string;
|
|
1526
|
+
/**
|
|
1527
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1528
|
+
*/
|
|
1529
|
+
pageSize?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* Either mainnet or testnet/fuji.
|
|
1532
|
+
*/
|
|
1533
|
+
network?: Network;
|
|
1534
|
+
/**
|
|
1535
|
+
* A status filter for listed transactions.
|
|
1536
|
+
*/
|
|
1537
|
+
status?: TransactionStatus;
|
|
1538
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1539
|
+
/**
|
|
1540
|
+
* @deprecated
|
|
1541
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1542
|
+
*
|
|
1543
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1544
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1545
|
+
* @throws ApiError
|
|
1546
|
+
*/
|
|
1547
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1548
|
+
/**
|
|
1549
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1550
|
+
*/
|
|
1551
|
+
pageToken?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1554
|
+
*/
|
|
1555
|
+
pageSize?: number;
|
|
1556
|
+
/**
|
|
1557
|
+
* Either mainnet or testnet/fuji.
|
|
1558
|
+
*/
|
|
1559
|
+
network?: Network;
|
|
1560
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1047
1561
|
}
|
|
1048
1562
|
|
|
1049
1563
|
type ImageAsset = {
|
|
@@ -1335,7 +1849,7 @@ declare class EvmContractsService {
|
|
|
1335
1849
|
*/
|
|
1336
1850
|
getContractMetadata({ chainId, address, }: {
|
|
1337
1851
|
/**
|
|
1338
|
-
* A supported evm chain id
|
|
1852
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1339
1853
|
*/
|
|
1340
1854
|
chainId: string;
|
|
1341
1855
|
/**
|
|
@@ -1351,7 +1865,7 @@ declare class EvmContractsService {
|
|
|
1351
1865
|
*/
|
|
1352
1866
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1353
1867
|
/**
|
|
1354
|
-
* A supported evm chain id
|
|
1868
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1355
1869
|
*/
|
|
1356
1870
|
chainId: string;
|
|
1357
1871
|
/**
|
|
@@ -1378,29 +1892,6 @@ declare namespace Erc1155Token {
|
|
|
1378
1892
|
}
|
|
1379
1893
|
}
|
|
1380
1894
|
|
|
1381
|
-
type RichAddress = {
|
|
1382
|
-
/**
|
|
1383
|
-
* The contract name.
|
|
1384
|
-
*/
|
|
1385
|
-
name?: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* The contract symbol.
|
|
1388
|
-
*/
|
|
1389
|
-
symbol?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1392
|
-
*/
|
|
1393
|
-
decimals?: number;
|
|
1394
|
-
/**
|
|
1395
|
-
* The logo uri for the address.
|
|
1396
|
-
*/
|
|
1397
|
-
logoUri?: string;
|
|
1398
|
-
/**
|
|
1399
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1400
|
-
*/
|
|
1401
|
-
address: string;
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
1895
|
type Erc1155TransferDetails = {
|
|
1405
1896
|
from: RichAddress;
|
|
1406
1897
|
to: RichAddress;
|
|
@@ -1485,27 +1976,6 @@ type Erc721TransferDetails = {
|
|
|
1485
1976
|
erc721Token: Erc721Token;
|
|
1486
1977
|
};
|
|
1487
1978
|
|
|
1488
|
-
/**
|
|
1489
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1490
|
-
*/
|
|
1491
|
-
declare enum TransactionMethodType {
|
|
1492
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1493
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1494
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
type Method = {
|
|
1498
|
-
callType: TransactionMethodType;
|
|
1499
|
-
/**
|
|
1500
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1501
|
-
*/
|
|
1502
|
-
methodHash: string;
|
|
1503
|
-
/**
|
|
1504
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1505
|
-
*/
|
|
1506
|
-
methodName?: string;
|
|
1507
|
-
};
|
|
1508
|
-
|
|
1509
1979
|
type FullNativeTransactionDetails = {
|
|
1510
1980
|
/**
|
|
1511
1981
|
* The block number on the chain.
|
|
@@ -1519,6 +1989,10 @@ type FullNativeTransactionDetails = {
|
|
|
1519
1989
|
* The block hash identifier.
|
|
1520
1990
|
*/
|
|
1521
1991
|
blockHash: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* The EVM chain ID on which the transaction occured.
|
|
1994
|
+
*/
|
|
1995
|
+
chainId: string;
|
|
1522
1996
|
/**
|
|
1523
1997
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1524
1998
|
*/
|
|
@@ -1782,65 +2256,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1782
2256
|
transactions: Array<InternalTransaction>;
|
|
1783
2257
|
};
|
|
1784
2258
|
|
|
1785
|
-
type NativeTransaction = {
|
|
1786
|
-
/**
|
|
1787
|
-
* The block number on the chain.
|
|
1788
|
-
*/
|
|
1789
|
-
blockNumber: string;
|
|
1790
|
-
/**
|
|
1791
|
-
* The block finality timestamp.
|
|
1792
|
-
*/
|
|
1793
|
-
blockTimestamp: number;
|
|
1794
|
-
/**
|
|
1795
|
-
* The block hash identifier.
|
|
1796
|
-
*/
|
|
1797
|
-
blockHash: string;
|
|
1798
|
-
/**
|
|
1799
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1800
|
-
*/
|
|
1801
|
-
blockIndex: number;
|
|
1802
|
-
/**
|
|
1803
|
-
* The transaction hash identifier.
|
|
1804
|
-
*/
|
|
1805
|
-
txHash: string;
|
|
1806
|
-
/**
|
|
1807
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1808
|
-
*/
|
|
1809
|
-
txStatus: string;
|
|
1810
|
-
/**
|
|
1811
|
-
* The transaction type.
|
|
1812
|
-
*/
|
|
1813
|
-
txType: number;
|
|
1814
|
-
/**
|
|
1815
|
-
* The gas limit set for the transaction.
|
|
1816
|
-
*/
|
|
1817
|
-
gasLimit: string;
|
|
1818
|
-
/**
|
|
1819
|
-
* The amount of gas used.
|
|
1820
|
-
*/
|
|
1821
|
-
gasUsed: string;
|
|
1822
|
-
/**
|
|
1823
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1824
|
-
*/
|
|
1825
|
-
gasPrice: string;
|
|
1826
|
-
/**
|
|
1827
|
-
* The nonce used by the sender of the transaction.
|
|
1828
|
-
*/
|
|
1829
|
-
nonce: string;
|
|
1830
|
-
from: RichAddress;
|
|
1831
|
-
to: RichAddress;
|
|
1832
|
-
method?: Method;
|
|
1833
|
-
value: string;
|
|
1834
|
-
};
|
|
1835
|
-
|
|
1836
|
-
type ListNativeTransactionsResponse = {
|
|
1837
|
-
/**
|
|
1838
|
-
* 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.
|
|
1839
|
-
*/
|
|
1840
|
-
nextPageToken?: string;
|
|
1841
|
-
transactions: Array<NativeTransaction>;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
2259
|
type TransactionDetails = {
|
|
1845
2260
|
/**
|
|
1846
2261
|
* The native (top-level) transaction details.
|
|
@@ -1885,14 +2300,33 @@ declare enum SortOrder {
|
|
|
1885
2300
|
DESC = "desc"
|
|
1886
2301
|
}
|
|
1887
2302
|
|
|
1888
|
-
declare enum TransactionStatus {
|
|
1889
|
-
FAILED = "failed",
|
|
1890
|
-
SUCCESS = "success"
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
2303
|
declare class EvmTransactionsService {
|
|
1894
2304
|
readonly httpRequest: BaseHttpRequest;
|
|
1895
2305
|
constructor(httpRequest: BaseHttpRequest);
|
|
2306
|
+
/**
|
|
2307
|
+
* List the latest transactions across all supported EVM chains
|
|
2308
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2309
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2310
|
+
* @throws ApiError
|
|
2311
|
+
*/
|
|
2312
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2313
|
+
/**
|
|
2314
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2315
|
+
*/
|
|
2316
|
+
pageToken?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2319
|
+
*/
|
|
2320
|
+
pageSize?: number;
|
|
2321
|
+
/**
|
|
2322
|
+
* Either mainnet or testnet/fuji.
|
|
2323
|
+
*/
|
|
2324
|
+
network?: Network;
|
|
2325
|
+
/**
|
|
2326
|
+
* A status filter for listed transactions.
|
|
2327
|
+
*/
|
|
2328
|
+
status?: TransactionStatus;
|
|
2329
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1896
2330
|
/**
|
|
1897
2331
|
* Get deployment transaction
|
|
1898
2332
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -1901,7 +2335,7 @@ declare class EvmTransactionsService {
|
|
|
1901
2335
|
*/
|
|
1902
2336
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1903
2337
|
/**
|
|
1904
|
-
* A supported evm chain id
|
|
2338
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
2339
|
*/
|
|
1906
2340
|
chainId: string;
|
|
1907
2341
|
/**
|
|
@@ -1921,7 +2355,7 @@ declare class EvmTransactionsService {
|
|
|
1921
2355
|
*/
|
|
1922
2356
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1923
2357
|
/**
|
|
1924
|
-
* A supported evm chain id
|
|
2358
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1925
2359
|
*/
|
|
1926
2360
|
chainId: string;
|
|
1927
2361
|
/**
|
|
@@ -1945,7 +2379,7 @@ declare class EvmTransactionsService {
|
|
|
1945
2379
|
*/
|
|
1946
2380
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1947
2381
|
/**
|
|
1948
|
-
* A supported evm chain id
|
|
2382
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
2383
|
*/
|
|
1950
2384
|
chainId: string;
|
|
1951
2385
|
/**
|
|
@@ -1979,7 +2413,7 @@ declare class EvmTransactionsService {
|
|
|
1979
2413
|
*/
|
|
1980
2414
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1981
2415
|
/**
|
|
1982
|
-
* A supported evm chain id
|
|
2416
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1983
2417
|
*/
|
|
1984
2418
|
chainId: string;
|
|
1985
2419
|
/**
|
|
@@ -2015,7 +2449,7 @@ declare class EvmTransactionsService {
|
|
|
2015
2449
|
*/
|
|
2016
2450
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2017
2451
|
/**
|
|
2018
|
-
* A supported evm chain id
|
|
2452
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2019
2453
|
*/
|
|
2020
2454
|
chainId: string;
|
|
2021
2455
|
/**
|
|
@@ -2047,7 +2481,7 @@ declare class EvmTransactionsService {
|
|
|
2047
2481
|
*/
|
|
2048
2482
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2049
2483
|
/**
|
|
2050
|
-
* A supported evm chain id
|
|
2484
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2051
2485
|
*/
|
|
2052
2486
|
chainId: string;
|
|
2053
2487
|
/**
|
|
@@ -2079,7 +2513,7 @@ declare class EvmTransactionsService {
|
|
|
2079
2513
|
*/
|
|
2080
2514
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2081
2515
|
/**
|
|
2082
|
-
* A supported evm chain id
|
|
2516
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2083
2517
|
*/
|
|
2084
2518
|
chainId: string;
|
|
2085
2519
|
/**
|
|
@@ -2111,7 +2545,7 @@ declare class EvmTransactionsService {
|
|
|
2111
2545
|
*/
|
|
2112
2546
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2113
2547
|
/**
|
|
2114
|
-
* A supported evm chain id
|
|
2548
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2115
2549
|
*/
|
|
2116
2550
|
chainId: string;
|
|
2117
2551
|
/**
|
|
@@ -2145,7 +2579,7 @@ declare class EvmTransactionsService {
|
|
|
2145
2579
|
*/
|
|
2146
2580
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2147
2581
|
/**
|
|
2148
|
-
* A supported evm chain id
|
|
2582
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2149
2583
|
*/
|
|
2150
2584
|
chainId: string;
|
|
2151
2585
|
/**
|
|
@@ -2177,7 +2611,7 @@ declare class EvmTransactionsService {
|
|
|
2177
2611
|
*/
|
|
2178
2612
|
getTransaction({ chainId, txHash, }: {
|
|
2179
2613
|
/**
|
|
2180
|
-
* A supported evm chain id
|
|
2614
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2181
2615
|
*/
|
|
2182
2616
|
chainId: string;
|
|
2183
2617
|
/**
|
|
@@ -2191,15 +2625,23 @@ declare class EvmTransactionsService {
|
|
|
2191
2625
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2192
2626
|
* @throws ApiError
|
|
2193
2627
|
*/
|
|
2194
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2628
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2195
2629
|
/**
|
|
2196
|
-
* A supported evm chain id
|
|
2630
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2197
2631
|
*/
|
|
2198
2632
|
chainId: string;
|
|
2199
2633
|
/**
|
|
2200
2634
|
* A block identifier which is either a block number or the block hash.
|
|
2201
2635
|
*/
|
|
2202
2636
|
blockId: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2639
|
+
*/
|
|
2640
|
+
pageToken?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2643
|
+
*/
|
|
2644
|
+
pageSize?: number;
|
|
2203
2645
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2204
2646
|
/**
|
|
2205
2647
|
* List latest transactions
|
|
@@ -2209,7 +2651,7 @@ declare class EvmTransactionsService {
|
|
|
2209
2651
|
*/
|
|
2210
2652
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2211
2653
|
/**
|
|
2212
|
-
* A supported evm chain id
|
|
2654
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2213
2655
|
*/
|
|
2214
2656
|
chainId: string;
|
|
2215
2657
|
/**
|
|
@@ -2227,20 +2669,261 @@ declare class EvmTransactionsService {
|
|
|
2227
2669
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2228
2670
|
}
|
|
2229
2671
|
|
|
2672
|
+
type HealthIndicatorResultDto = {
|
|
2673
|
+
/**
|
|
2674
|
+
* Status of the health indicator.
|
|
2675
|
+
*/
|
|
2676
|
+
status?: HealthIndicatorResultDto.status;
|
|
2677
|
+
};
|
|
2678
|
+
declare namespace HealthIndicatorResultDto {
|
|
2679
|
+
/**
|
|
2680
|
+
* Status of the health indicator.
|
|
2681
|
+
*/
|
|
2682
|
+
enum status {
|
|
2683
|
+
UP = "up",
|
|
2684
|
+
DOWN = "down"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
type HealthCheckResultDto = {
|
|
2689
|
+
status?: HealthCheckResultDto.status;
|
|
2690
|
+
info?: any | null;
|
|
2691
|
+
error?: any | null;
|
|
2692
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2693
|
+
};
|
|
2694
|
+
declare namespace HealthCheckResultDto {
|
|
2695
|
+
enum status {
|
|
2696
|
+
ERROR = "error",
|
|
2697
|
+
OK = "ok",
|
|
2698
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2230
2702
|
declare class HealthCheckService {
|
|
2231
2703
|
readonly httpRequest: BaseHttpRequest;
|
|
2232
2704
|
constructor(httpRequest: BaseHttpRequest);
|
|
2233
2705
|
/**
|
|
2234
2706
|
* Get the health of the service
|
|
2235
|
-
*
|
|
2707
|
+
* Check the health of the service.
|
|
2708
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2236
2709
|
* @throws ApiError
|
|
2237
2710
|
*/
|
|
2238
|
-
dataHealthCheck(): CancelablePromise<
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2711
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
type IcmDestinationTransaction = {
|
|
2715
|
+
txHash: string;
|
|
2716
|
+
timestamp: number;
|
|
2717
|
+
gasSpent: string;
|
|
2718
|
+
rewardRedeemer: string;
|
|
2719
|
+
delivererAddress: string;
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
type IcmReceipt = {
|
|
2723
|
+
receivedMessageNonce: string;
|
|
2724
|
+
relayerRewardAddress: string;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
type IcmRewardDetails = {
|
|
2728
|
+
/**
|
|
2729
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2730
|
+
*/
|
|
2731
|
+
address: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* The contract name.
|
|
2734
|
+
*/
|
|
2735
|
+
name: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* The contract symbol.
|
|
2738
|
+
*/
|
|
2739
|
+
symbol: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2742
|
+
*/
|
|
2743
|
+
decimals: number;
|
|
2744
|
+
/**
|
|
2745
|
+
* The logo uri for the address.
|
|
2746
|
+
*/
|
|
2747
|
+
logoUri?: string;
|
|
2748
|
+
ercType: IcmRewardDetails.ercType;
|
|
2749
|
+
/**
|
|
2750
|
+
* The token price, if available.
|
|
2751
|
+
*/
|
|
2752
|
+
price?: Money;
|
|
2753
|
+
value: string;
|
|
2754
|
+
};
|
|
2755
|
+
declare namespace IcmRewardDetails {
|
|
2756
|
+
enum ercType {
|
|
2757
|
+
ERC_20 = "ERC-20"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
type IcmSourceTransaction = {
|
|
2762
|
+
txHash: string;
|
|
2763
|
+
timestamp: number;
|
|
2764
|
+
gasSpent: string;
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
type DeliveredIcmMessage = {
|
|
2768
|
+
messageId: string;
|
|
2769
|
+
icmContractAddress: string;
|
|
2770
|
+
sourceBlockchainId: string;
|
|
2771
|
+
destinationBlockchainId: string;
|
|
2772
|
+
sourceEvmChainId: string;
|
|
2773
|
+
destinationEvmChainId: string;
|
|
2774
|
+
messageNonce: string;
|
|
2775
|
+
from: string;
|
|
2776
|
+
to: string;
|
|
2777
|
+
data?: string;
|
|
2778
|
+
messageExecuted: boolean;
|
|
2779
|
+
receipts: Array<IcmReceipt>;
|
|
2780
|
+
receiptDelivered: boolean;
|
|
2781
|
+
rewardDetails: IcmRewardDetails;
|
|
2782
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2783
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2784
|
+
status: DeliveredIcmMessage.status;
|
|
2785
|
+
};
|
|
2786
|
+
declare namespace DeliveredIcmMessage {
|
|
2787
|
+
enum status {
|
|
2788
|
+
DELIVERED = "delivered"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2793
|
+
messageId: string;
|
|
2794
|
+
icmContractAddress: string;
|
|
2795
|
+
sourceBlockchainId: string;
|
|
2796
|
+
destinationBlockchainId: string;
|
|
2797
|
+
sourceEvmChainId: string;
|
|
2798
|
+
destinationEvmChainId: string;
|
|
2799
|
+
messageNonce: string;
|
|
2800
|
+
from: string;
|
|
2801
|
+
to: string;
|
|
2802
|
+
data?: string;
|
|
2803
|
+
messageExecuted: boolean;
|
|
2804
|
+
receipts: Array<IcmReceipt>;
|
|
2805
|
+
receiptDelivered: boolean;
|
|
2806
|
+
rewardDetails: IcmRewardDetails;
|
|
2807
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2808
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2809
|
+
};
|
|
2810
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2811
|
+
enum status {
|
|
2812
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
type PendingIcmMessage = {
|
|
2817
|
+
messageId: string;
|
|
2818
|
+
icmContractAddress: string;
|
|
2819
|
+
sourceBlockchainId: string;
|
|
2820
|
+
destinationBlockchainId: string;
|
|
2821
|
+
sourceEvmChainId: string;
|
|
2822
|
+
destinationEvmChainId: string;
|
|
2823
|
+
messageNonce: string;
|
|
2824
|
+
from: string;
|
|
2825
|
+
to: string;
|
|
2826
|
+
data?: string;
|
|
2827
|
+
messageExecuted: boolean;
|
|
2828
|
+
receipts: Array<IcmReceipt>;
|
|
2829
|
+
receiptDelivered: boolean;
|
|
2830
|
+
rewardDetails: IcmRewardDetails;
|
|
2831
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2832
|
+
status: PendingIcmMessage.status;
|
|
2833
|
+
};
|
|
2834
|
+
declare namespace PendingIcmMessage {
|
|
2835
|
+
enum status {
|
|
2836
|
+
PENDING = "pending"
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type ListIcmMessagesResponse = {
|
|
2841
|
+
/**
|
|
2842
|
+
* 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.
|
|
2843
|
+
*/
|
|
2844
|
+
nextPageToken?: string;
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
declare class InterchainMessagingService {
|
|
2849
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2850
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2851
|
+
/**
|
|
2852
|
+
* Get an ICM message
|
|
2853
|
+
* Gets an ICM message by message ID.
|
|
2854
|
+
* @returns any Successful response
|
|
2855
|
+
* @throws ApiError
|
|
2856
|
+
*/
|
|
2857
|
+
getIcmMessage({ messageId, }: {
|
|
2858
|
+
/**
|
|
2859
|
+
* The message ID of the ICM message.
|
|
2860
|
+
*/
|
|
2861
|
+
messageId: string;
|
|
2862
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2863
|
+
/**
|
|
2864
|
+
* List ICM messages
|
|
2865
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2866
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2867
|
+
* @throws ApiError
|
|
2868
|
+
*/
|
|
2869
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2870
|
+
/**
|
|
2871
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2872
|
+
*/
|
|
2873
|
+
pageToken?: string;
|
|
2874
|
+
/**
|
|
2875
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2876
|
+
*/
|
|
2877
|
+
pageSize?: number;
|
|
2878
|
+
/**
|
|
2879
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2880
|
+
*/
|
|
2881
|
+
sourceBlockchainId?: string;
|
|
2882
|
+
/**
|
|
2883
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2884
|
+
*/
|
|
2885
|
+
destinationBlockchainId?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2888
|
+
*/
|
|
2889
|
+
blockchainId?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* The address of the recipient of the ICM message.
|
|
2892
|
+
*/
|
|
2893
|
+
to?: string;
|
|
2894
|
+
/**
|
|
2895
|
+
* The address of the sender of the ICM message.
|
|
2896
|
+
*/
|
|
2897
|
+
from?: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* Either mainnet or testnet/fuji.
|
|
2900
|
+
*/
|
|
2901
|
+
network?: Network;
|
|
2902
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2903
|
+
/**
|
|
2904
|
+
* List ICM messages by address
|
|
2905
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2906
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2907
|
+
* @throws ApiError
|
|
2908
|
+
*/
|
|
2909
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2910
|
+
/**
|
|
2911
|
+
* An EVM address.
|
|
2912
|
+
*/
|
|
2913
|
+
address: string;
|
|
2914
|
+
/**
|
|
2915
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2916
|
+
*/
|
|
2917
|
+
pageToken?: string;
|
|
2918
|
+
/**
|
|
2919
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2920
|
+
*/
|
|
2921
|
+
pageSize?: number;
|
|
2922
|
+
/**
|
|
2923
|
+
* Either mainnet or testnet/fuji.
|
|
2924
|
+
*/
|
|
2925
|
+
network?: Network;
|
|
2926
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2244
2927
|
}
|
|
2245
2928
|
|
|
2246
2929
|
type ListNftTokens = {
|
|
@@ -2262,7 +2945,7 @@ declare class NfTsService {
|
|
|
2262
2945
|
*/
|
|
2263
2946
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2264
2947
|
/**
|
|
2265
|
-
* A supported evm chain id
|
|
2948
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2266
2949
|
*/
|
|
2267
2950
|
chainId: string;
|
|
2268
2951
|
/**
|
|
@@ -2282,7 +2965,7 @@ declare class NfTsService {
|
|
|
2282
2965
|
*/
|
|
2283
2966
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2284
2967
|
/**
|
|
2285
|
-
* A supported evm chain id
|
|
2968
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2286
2969
|
*/
|
|
2287
2970
|
chainId: string;
|
|
2288
2971
|
/**
|
|
@@ -2306,7 +2989,7 @@ declare class NfTsService {
|
|
|
2306
2989
|
*/
|
|
2307
2990
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2308
2991
|
/**
|
|
2309
|
-
* A supported evm chain id
|
|
2992
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2310
2993
|
*/
|
|
2311
2994
|
chainId: string;
|
|
2312
2995
|
/**
|
|
@@ -2320,6 +3003,108 @@ declare class NfTsService {
|
|
|
2320
3003
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2321
3004
|
}
|
|
2322
3005
|
|
|
3006
|
+
type AccessRequest = {
|
|
3007
|
+
/**
|
|
3008
|
+
* The email address to send the access token to
|
|
3009
|
+
*/
|
|
3010
|
+
email: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* The captcha to verify the user
|
|
3013
|
+
*/
|
|
3014
|
+
captcha: string;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
type NotificationsResponse = {
|
|
3018
|
+
message: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
type SubscribeRequest = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The access token to use for authentication
|
|
3024
|
+
*/
|
|
3025
|
+
accessToken: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* The node ID to subscribe to
|
|
3028
|
+
*/
|
|
3029
|
+
nodeId: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3032
|
+
*/
|
|
3033
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
type SubscriptionsRequest = {
|
|
3037
|
+
/**
|
|
3038
|
+
* The access token to use for authentication
|
|
3039
|
+
*/
|
|
3040
|
+
accessToken: string;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
type SubscriptionsResponse = {
|
|
3044
|
+
/**
|
|
3045
|
+
* The email address of the user
|
|
3046
|
+
*/
|
|
3047
|
+
email: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* The subscriptions of the user
|
|
3050
|
+
*/
|
|
3051
|
+
subscriptions: Record<string, {
|
|
3052
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3053
|
+
}>;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
type UnsubscribeRequest = {
|
|
3057
|
+
/**
|
|
3058
|
+
* The access token to use for authentication
|
|
3059
|
+
*/
|
|
3060
|
+
accessToken: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The node ID to subscribe to
|
|
3063
|
+
*/
|
|
3064
|
+
nodeId: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare class NotificationsService {
|
|
3068
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3069
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3070
|
+
/**
|
|
3071
|
+
* Access Notifications
|
|
3072
|
+
* Access notifications.
|
|
3073
|
+
* @returns NotificationsResponse Successful response
|
|
3074
|
+
* @throws ApiError
|
|
3075
|
+
*/
|
|
3076
|
+
access({ requestBody, }: {
|
|
3077
|
+
requestBody: AccessRequest;
|
|
3078
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Subscribe to Notifications
|
|
3081
|
+
* Subscribe to receive notifications.
|
|
3082
|
+
* @returns NotificationsResponse Successful response
|
|
3083
|
+
* @throws ApiError
|
|
3084
|
+
*/
|
|
3085
|
+
subscribe({ requestBody, }: {
|
|
3086
|
+
requestBody: SubscribeRequest;
|
|
3087
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Unsubscribe from Notifications
|
|
3090
|
+
* Unsubscribe from receiving notifications.
|
|
3091
|
+
* @returns NotificationsResponse Successful response
|
|
3092
|
+
* @throws ApiError
|
|
3093
|
+
*/
|
|
3094
|
+
unsubscribe({ requestBody, }: {
|
|
3095
|
+
requestBody: UnsubscribeRequest;
|
|
3096
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get Subscriptions
|
|
3099
|
+
* Get subscriptions.
|
|
3100
|
+
* @returns SubscriptionsResponse Successful response
|
|
3101
|
+
* @throws ApiError
|
|
3102
|
+
*/
|
|
3103
|
+
subscriptions({ requestBody, }: {
|
|
3104
|
+
requestBody: SubscriptionsRequest;
|
|
3105
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
2323
3108
|
type EvmNetworkOptions = {
|
|
2324
3109
|
addresses: Array<string>;
|
|
2325
3110
|
includeChains: Array<string>;
|
|
@@ -2331,16 +3116,16 @@ declare enum EVMOperationType {
|
|
|
2331
3116
|
|
|
2332
3117
|
type CreateEvmTransactionExportRequest = {
|
|
2333
3118
|
type: EVMOperationType;
|
|
2334
|
-
firstDate
|
|
2335
|
-
lastDate
|
|
3119
|
+
firstDate?: string;
|
|
3120
|
+
lastDate?: string;
|
|
2336
3121
|
/**
|
|
2337
3122
|
* @deprecated
|
|
2338
3123
|
*/
|
|
2339
|
-
startDate
|
|
3124
|
+
startDate?: string;
|
|
2340
3125
|
/**
|
|
2341
3126
|
* @deprecated
|
|
2342
3127
|
*/
|
|
2343
|
-
endDate
|
|
3128
|
+
endDate?: string;
|
|
2344
3129
|
options: EvmNetworkOptions;
|
|
2345
3130
|
};
|
|
2346
3131
|
|
|
@@ -2353,21 +3138,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2353
3138
|
type PrimaryNetworkOptions = {
|
|
2354
3139
|
addresses?: Array<string>;
|
|
2355
3140
|
cChainEvmAddresses?: Array<string>;
|
|
2356
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3141
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2357
3142
|
};
|
|
2358
3143
|
|
|
2359
3144
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2360
3145
|
type: PrimaryNetworkOperationType;
|
|
2361
|
-
firstDate
|
|
2362
|
-
lastDate
|
|
3146
|
+
firstDate?: string;
|
|
3147
|
+
lastDate?: string;
|
|
2363
3148
|
/**
|
|
2364
3149
|
* @deprecated
|
|
2365
3150
|
*/
|
|
2366
|
-
startDate
|
|
3151
|
+
startDate?: string;
|
|
2367
3152
|
/**
|
|
2368
3153
|
* @deprecated
|
|
2369
3154
|
*/
|
|
2370
|
-
endDate
|
|
3155
|
+
endDate?: string;
|
|
2371
3156
|
options: PrimaryNetworkOptions;
|
|
2372
3157
|
};
|
|
2373
3158
|
|
|
@@ -2408,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2408
3193
|
operationType: OperationType;
|
|
2409
3194
|
operationStatus: OperationStatus;
|
|
2410
3195
|
message?: string;
|
|
2411
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2412
3197
|
createdAtTimestamp: number;
|
|
2413
3198
|
updatedAtTimestamp: number;
|
|
2414
3199
|
};
|
|
@@ -2445,8 +3230,10 @@ declare enum BlockchainIds {
|
|
|
2445
3230
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2446
3231
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2447
3232
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3233
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2448
3234
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2449
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3235
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3236
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2450
3237
|
}
|
|
2451
3238
|
|
|
2452
3239
|
type ChainAddressChainIdMap = {
|
|
@@ -2470,16 +3257,31 @@ type DelegatorsDetails = {
|
|
|
2470
3257
|
};
|
|
2471
3258
|
|
|
2472
3259
|
type StakingDistribution = {
|
|
3260
|
+
/**
|
|
3261
|
+
* AvalancheGo version for the validator node.
|
|
3262
|
+
*/
|
|
2473
3263
|
version: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* The total amount staked by validators using this version.
|
|
3266
|
+
*/
|
|
2474
3267
|
amountStaked: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* The number of validators using this version.
|
|
3270
|
+
*/
|
|
2475
3271
|
validatorCount: number;
|
|
2476
3272
|
};
|
|
2477
3273
|
|
|
2478
3274
|
type ValidatorsDetails = {
|
|
2479
3275
|
validatorCount: number;
|
|
2480
3276
|
totalAmountStaked: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3279
|
+
*/
|
|
2481
3280
|
estimatedAnnualStakingReward: string;
|
|
2482
3281
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3282
|
+
/**
|
|
3283
|
+
* Ratio of total active stake amount to the current supply.
|
|
3284
|
+
*/
|
|
2483
3285
|
stakingRatio: string;
|
|
2484
3286
|
};
|
|
2485
3287
|
|
|
@@ -2531,7 +3333,13 @@ type CompletedDelegatorDetails = {
|
|
|
2531
3333
|
delegationFee: string;
|
|
2532
3334
|
startTimestamp: number;
|
|
2533
3335
|
endTimestamp: number;
|
|
3336
|
+
/**
|
|
3337
|
+
* Total rewards distributed for the successful delegation.
|
|
3338
|
+
*/
|
|
2534
3339
|
grossReward: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3342
|
+
*/
|
|
2535
3343
|
netReward: string;
|
|
2536
3344
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2537
3345
|
};
|
|
@@ -2549,7 +3357,13 @@ type PendingDelegatorDetails = {
|
|
|
2549
3357
|
delegationFee: string;
|
|
2550
3358
|
startTimestamp: number;
|
|
2551
3359
|
endTimestamp: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3362
|
+
*/
|
|
2552
3363
|
estimatedGrossReward: string;
|
|
3364
|
+
/**
|
|
3365
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3366
|
+
*/
|
|
2553
3367
|
estimatedNetReward: string;
|
|
2554
3368
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2555
3369
|
};
|
|
@@ -2570,10 +3384,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2570
3384
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2571
3385
|
};
|
|
2572
3386
|
|
|
3387
|
+
type BalanceOwner = {
|
|
3388
|
+
addresses: Array<string>;
|
|
3389
|
+
threshold: number;
|
|
3390
|
+
};
|
|
3391
|
+
|
|
3392
|
+
type L1ValidatorDetailsFull = {
|
|
3393
|
+
/**
|
|
3394
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3395
|
+
*/
|
|
3396
|
+
validationId: string;
|
|
3397
|
+
nodeId: string;
|
|
3398
|
+
subnetId: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* 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
|
|
3401
|
+
*/
|
|
3402
|
+
weight: number;
|
|
3403
|
+
/**
|
|
3404
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3405
|
+
*/
|
|
3406
|
+
remainingBalance: number;
|
|
3407
|
+
/**
|
|
3408
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3409
|
+
*/
|
|
3410
|
+
creationTimestamp: number;
|
|
3411
|
+
blsCredentials: Record<string, any>;
|
|
3412
|
+
/**
|
|
3413
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3414
|
+
*/
|
|
3415
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3416
|
+
/**
|
|
3417
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3418
|
+
*/
|
|
3419
|
+
deactivationOwner: BalanceOwner;
|
|
3420
|
+
};
|
|
3421
|
+
|
|
3422
|
+
type ListL1ValidatorsResponse = {
|
|
3423
|
+
/**
|
|
3424
|
+
* 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.
|
|
3425
|
+
*/
|
|
3426
|
+
nextPageToken?: string;
|
|
3427
|
+
/**
|
|
3428
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3429
|
+
*/
|
|
3430
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3431
|
+
};
|
|
3432
|
+
|
|
2573
3433
|
type BlockchainInfo = {
|
|
2574
3434
|
blockchainId: string;
|
|
2575
3435
|
};
|
|
2576
3436
|
|
|
3437
|
+
type L1ValidatorManagerDetails = {
|
|
3438
|
+
blockchainId: string;
|
|
3439
|
+
contractAddress: string;
|
|
3440
|
+
};
|
|
3441
|
+
|
|
2577
3442
|
type SubnetOwnershipInfo = {
|
|
2578
3443
|
/**
|
|
2579
3444
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2612,6 +3477,18 @@ type Subnet = {
|
|
|
2612
3477
|
* Latest subnet owner details for this Subnet.
|
|
2613
3478
|
*/
|
|
2614
3479
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
3480
|
+
/**
|
|
3481
|
+
* Whether the subnet is an L1 or not.
|
|
3482
|
+
*/
|
|
3483
|
+
isL1: boolean;
|
|
3484
|
+
/**
|
|
3485
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3486
|
+
*/
|
|
3487
|
+
l1ConversionTransactionHash?: string;
|
|
3488
|
+
/**
|
|
3489
|
+
* L1 validator manager details.
|
|
3490
|
+
*/
|
|
3491
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2615
3492
|
blockchains: Array<BlockchainInfo>;
|
|
2616
3493
|
};
|
|
2617
3494
|
|
|
@@ -2659,6 +3536,9 @@ type ActiveValidatorDetails = {
|
|
|
2659
3536
|
nodeId: string;
|
|
2660
3537
|
subnetId: string;
|
|
2661
3538
|
amountStaked: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3541
|
+
*/
|
|
2662
3542
|
delegationFee?: string;
|
|
2663
3543
|
startTimestamp: number;
|
|
2664
3544
|
endTimestamp: number;
|
|
@@ -2666,12 +3546,30 @@ type ActiveValidatorDetails = {
|
|
|
2666
3546
|
* Present for AddPermissionlessValidatorTx
|
|
2667
3547
|
*/
|
|
2668
3548
|
blsCredentials?: BlsCredentials;
|
|
3549
|
+
/**
|
|
3550
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3551
|
+
*/
|
|
2669
3552
|
stakePercentage: number;
|
|
3553
|
+
/**
|
|
3554
|
+
* The number of delegators linked to the validator.
|
|
3555
|
+
*/
|
|
2670
3556
|
delegatorCount: number;
|
|
3557
|
+
/**
|
|
3558
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3559
|
+
*/
|
|
2671
3560
|
amountDelegated?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3563
|
+
*/
|
|
2672
3564
|
uptimePerformance: number;
|
|
2673
3565
|
avalancheGoVersion?: string;
|
|
3566
|
+
/**
|
|
3567
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3568
|
+
*/
|
|
2674
3569
|
delegationCapacity?: string;
|
|
3570
|
+
/**
|
|
3571
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3572
|
+
*/
|
|
2675
3573
|
potentialRewards: Rewards;
|
|
2676
3574
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2677
3575
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2687,6 +3585,9 @@ type CompletedValidatorDetails = {
|
|
|
2687
3585
|
nodeId: string;
|
|
2688
3586
|
subnetId: string;
|
|
2689
3587
|
amountStaked: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3590
|
+
*/
|
|
2690
3591
|
delegationFee?: string;
|
|
2691
3592
|
startTimestamp: number;
|
|
2692
3593
|
endTimestamp: number;
|
|
@@ -2695,6 +3596,7 @@ type CompletedValidatorDetails = {
|
|
|
2695
3596
|
*/
|
|
2696
3597
|
blsCredentials?: BlsCredentials;
|
|
2697
3598
|
delegatorCount: number;
|
|
3599
|
+
amountDelegated?: string;
|
|
2698
3600
|
rewards: Rewards;
|
|
2699
3601
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2700
3602
|
};
|
|
@@ -2709,6 +3611,9 @@ type PendingValidatorDetails = {
|
|
|
2709
3611
|
nodeId: string;
|
|
2710
3612
|
subnetId: string;
|
|
2711
3613
|
amountStaked: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3616
|
+
*/
|
|
2712
3617
|
delegationFee?: string;
|
|
2713
3618
|
startTimestamp: number;
|
|
2714
3619
|
endTimestamp: number;
|
|
@@ -2729,6 +3634,9 @@ type RemovedValidatorDetails = {
|
|
|
2729
3634
|
nodeId: string;
|
|
2730
3635
|
subnetId: string;
|
|
2731
3636
|
amountStaked: string;
|
|
3637
|
+
/**
|
|
3638
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3639
|
+
*/
|
|
2732
3640
|
delegationFee?: string;
|
|
2733
3641
|
startTimestamp: number;
|
|
2734
3642
|
endTimestamp: number;
|
|
@@ -2736,7 +3644,13 @@ type RemovedValidatorDetails = {
|
|
|
2736
3644
|
* Present for AddPermissionlessValidatorTx
|
|
2737
3645
|
*/
|
|
2738
3646
|
blsCredentials?: BlsCredentials;
|
|
3647
|
+
/**
|
|
3648
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3649
|
+
*/
|
|
2739
3650
|
removeTxHash: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3653
|
+
*/
|
|
2740
3654
|
removeTimestamp: number;
|
|
2741
3655
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2742
3656
|
};
|
|
@@ -2757,11 +3671,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2757
3671
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2758
3672
|
};
|
|
2759
3673
|
|
|
2760
|
-
declare enum Network {
|
|
2761
|
-
MAINNET = "mainnet",
|
|
2762
|
-
FUJI = "fuji"
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
3674
|
declare enum SortByOption {
|
|
2766
3675
|
BLOCK_INDEX = "blockIndex",
|
|
2767
3676
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2821,6 +3730,7 @@ type XChainAssetDetails = {
|
|
|
2821
3730
|
declare enum XChainId {
|
|
2822
3731
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2823
3732
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3733
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2824
3734
|
X_CHAIN = "x-chain"
|
|
2825
3735
|
}
|
|
2826
3736
|
|
|
@@ -2839,7 +3749,7 @@ declare class PrimaryNetworkService {
|
|
|
2839
3749
|
*/
|
|
2840
3750
|
blockchainId: XChainId;
|
|
2841
3751
|
/**
|
|
2842
|
-
* Either mainnet or
|
|
3752
|
+
* Either mainnet or testnet/fuji.
|
|
2843
3753
|
*/
|
|
2844
3754
|
network: Network;
|
|
2845
3755
|
/**
|
|
@@ -2859,7 +3769,7 @@ declare class PrimaryNetworkService {
|
|
|
2859
3769
|
*/
|
|
2860
3770
|
addresses: string;
|
|
2861
3771
|
/**
|
|
2862
|
-
* Either mainnet or
|
|
3772
|
+
* Either mainnet or testnet/fuji.
|
|
2863
3773
|
*/
|
|
2864
3774
|
network: Network;
|
|
2865
3775
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
@@ -2871,7 +3781,7 @@ declare class PrimaryNetworkService {
|
|
|
2871
3781
|
*/
|
|
2872
3782
|
getNetworkDetails({ network, }: {
|
|
2873
3783
|
/**
|
|
2874
|
-
* Either mainnet or
|
|
3784
|
+
* Either mainnet or testnet/fuji.
|
|
2875
3785
|
*/
|
|
2876
3786
|
network: Network;
|
|
2877
3787
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
@@ -2883,7 +3793,7 @@ declare class PrimaryNetworkService {
|
|
|
2883
3793
|
*/
|
|
2884
3794
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2885
3795
|
/**
|
|
2886
|
-
* Either mainnet or
|
|
3796
|
+
* Either mainnet or testnet/fuji.
|
|
2887
3797
|
*/
|
|
2888
3798
|
network: Network;
|
|
2889
3799
|
/**
|
|
@@ -2907,7 +3817,7 @@ declare class PrimaryNetworkService {
|
|
|
2907
3817
|
*/
|
|
2908
3818
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2909
3819
|
/**
|
|
2910
|
-
* Either mainnet or
|
|
3820
|
+
* Either mainnet or testnet/fuji.
|
|
2911
3821
|
*/
|
|
2912
3822
|
network: Network;
|
|
2913
3823
|
/**
|
|
@@ -2931,7 +3841,7 @@ declare class PrimaryNetworkService {
|
|
|
2931
3841
|
*/
|
|
2932
3842
|
getSubnetById({ network, subnetId, }: {
|
|
2933
3843
|
/**
|
|
2934
|
-
* Either mainnet or
|
|
3844
|
+
* Either mainnet or testnet/fuji.
|
|
2935
3845
|
*/
|
|
2936
3846
|
network: Network;
|
|
2937
3847
|
/**
|
|
@@ -2947,7 +3857,7 @@ declare class PrimaryNetworkService {
|
|
|
2947
3857
|
*/
|
|
2948
3858
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2949
3859
|
/**
|
|
2950
|
-
* Either mainnet or
|
|
3860
|
+
* Either mainnet or testnet/fuji.
|
|
2951
3861
|
*/
|
|
2952
3862
|
network: Network;
|
|
2953
3863
|
/**
|
|
@@ -3021,7 +3931,7 @@ declare class PrimaryNetworkService {
|
|
|
3021
3931
|
*/
|
|
3022
3932
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
3023
3933
|
/**
|
|
3024
|
-
* Either mainnet or
|
|
3934
|
+
* Either mainnet or testnet/fuji.
|
|
3025
3935
|
*/
|
|
3026
3936
|
network: Network;
|
|
3027
3937
|
/**
|
|
@@ -3053,7 +3963,7 @@ declare class PrimaryNetworkService {
|
|
|
3053
3963
|
*/
|
|
3054
3964
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
3055
3965
|
/**
|
|
3056
|
-
* Either mainnet or
|
|
3966
|
+
* Either mainnet or testnet/fuji.
|
|
3057
3967
|
*/
|
|
3058
3968
|
network: Network;
|
|
3059
3969
|
/**
|
|
@@ -3081,14 +3991,49 @@ declare class PrimaryNetworkService {
|
|
|
3081
3991
|
*/
|
|
3082
3992
|
nodeIds?: string;
|
|
3083
3993
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3994
|
+
/**
|
|
3995
|
+
* List L1 validators
|
|
3996
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3997
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3998
|
+
* @throws ApiError
|
|
3999
|
+
*/
|
|
4000
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4001
|
+
/**
|
|
4002
|
+
* Either mainnet or testnet/fuji.
|
|
4003
|
+
*/
|
|
4004
|
+
network: Network;
|
|
4005
|
+
/**
|
|
4006
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4007
|
+
*/
|
|
4008
|
+
pageToken?: string;
|
|
4009
|
+
/**
|
|
4010
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4011
|
+
*/
|
|
4012
|
+
pageSize?: number;
|
|
4013
|
+
/**
|
|
4014
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4015
|
+
*/
|
|
4016
|
+
l1ValidationId?: any;
|
|
4017
|
+
includeInactiveL1Validators?: boolean;
|
|
4018
|
+
/**
|
|
4019
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4020
|
+
*/
|
|
4021
|
+
nodeId?: string;
|
|
4022
|
+
/**
|
|
4023
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4024
|
+
*/
|
|
4025
|
+
subnetId?: any;
|
|
4026
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3084
4027
|
}
|
|
3085
4028
|
|
|
3086
4029
|
declare enum BlockchainId {
|
|
3087
4030
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3088
4031
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3089
4032
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4033
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3090
4034
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3091
4035
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4036
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3092
4037
|
P_CHAIN = "p-chain",
|
|
3093
4038
|
X_CHAIN = "x-chain",
|
|
3094
4039
|
C_CHAIN = "c-chain"
|
|
@@ -3125,11 +4070,6 @@ type CChainAtomicBalances = {
|
|
|
3125
4070
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3126
4071
|
};
|
|
3127
4072
|
|
|
3128
|
-
declare enum PrimaryNetwork {
|
|
3129
|
-
MAINNET = "mainnet",
|
|
3130
|
-
FUJI = "fuji"
|
|
3131
|
-
}
|
|
3132
|
-
|
|
3133
4073
|
declare enum PrimaryNetworkChainName {
|
|
3134
4074
|
P_CHAIN = "p-chain",
|
|
3135
4075
|
X_CHAIN = "x-chain",
|
|
@@ -3138,7 +4078,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3138
4078
|
|
|
3139
4079
|
type PrimaryNetworkChainInfo = {
|
|
3140
4080
|
chainName: PrimaryNetworkChainName;
|
|
3141
|
-
network:
|
|
4081
|
+
network: Network;
|
|
3142
4082
|
};
|
|
3143
4083
|
|
|
3144
4084
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3299,7 +4239,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3299
4239
|
*/
|
|
3300
4240
|
blockchainId: BlockchainId;
|
|
3301
4241
|
/**
|
|
3302
|
-
* Either mainnet or
|
|
4242
|
+
* Either mainnet or testnet/fuji.
|
|
3303
4243
|
*/
|
|
3304
4244
|
network: Network;
|
|
3305
4245
|
/**
|
|
@@ -3330,6 +4270,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3330
4270
|
txCount: number;
|
|
3331
4271
|
transactions: Array<string>;
|
|
3332
4272
|
blockSizeBytes: number;
|
|
4273
|
+
l1ValidatorsAccruedFees?: number;
|
|
4274
|
+
activeL1Validators?: number;
|
|
3333
4275
|
currentSupply?: string;
|
|
3334
4276
|
proposerDetails?: ProposerDetails;
|
|
3335
4277
|
};
|
|
@@ -3343,6 +4285,8 @@ type PrimaryNetworkBlock = {
|
|
|
3343
4285
|
txCount: number;
|
|
3344
4286
|
transactions: Array<string>;
|
|
3345
4287
|
blockSizeBytes: number;
|
|
4288
|
+
l1ValidatorsAccruedFees?: number;
|
|
4289
|
+
activeL1Validators?: number;
|
|
3346
4290
|
currentSupply?: string;
|
|
3347
4291
|
proposerDetails?: ProposerDetails;
|
|
3348
4292
|
};
|
|
@@ -3371,7 +4315,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3371
4315
|
*/
|
|
3372
4316
|
blockchainId: BlockchainId;
|
|
3373
4317
|
/**
|
|
3374
|
-
* Either mainnet or
|
|
4318
|
+
* Either mainnet or testnet/fuji.
|
|
3375
4319
|
*/
|
|
3376
4320
|
network: Network;
|
|
3377
4321
|
/**
|
|
@@ -3385,19 +4329,27 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3385
4329
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3386
4330
|
* @throws ApiError
|
|
3387
4331
|
*/
|
|
3388
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4332
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3389
4333
|
/**
|
|
3390
4334
|
* A primary network blockchain id or alias.
|
|
3391
4335
|
*/
|
|
3392
4336
|
blockchainId: BlockchainId;
|
|
3393
4337
|
/**
|
|
3394
|
-
* Either mainnet or
|
|
4338
|
+
* Either mainnet or testnet/fuji.
|
|
3395
4339
|
*/
|
|
3396
4340
|
network: Network;
|
|
3397
4341
|
/**
|
|
3398
4342
|
* A primary network (P or X chain) nodeId.
|
|
3399
4343
|
*/
|
|
3400
4344
|
nodeId: string;
|
|
4345
|
+
/**
|
|
4346
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4347
|
+
*/
|
|
4348
|
+
startTimestamp?: number;
|
|
4349
|
+
/**
|
|
4350
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4351
|
+
*/
|
|
4352
|
+
endTimestamp?: number;
|
|
3401
4353
|
/**
|
|
3402
4354
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3403
4355
|
*/
|
|
@@ -3413,15 +4365,23 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3413
4365
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3414
4366
|
* @throws ApiError
|
|
3415
4367
|
*/
|
|
3416
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4368
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3417
4369
|
/**
|
|
3418
4370
|
* A primary network blockchain id or alias.
|
|
3419
4371
|
*/
|
|
3420
4372
|
blockchainId: BlockchainId;
|
|
3421
4373
|
/**
|
|
3422
|
-
* Either mainnet or
|
|
4374
|
+
* Either mainnet or testnet/fuji.
|
|
3423
4375
|
*/
|
|
3424
4376
|
network: Network;
|
|
4377
|
+
/**
|
|
4378
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4379
|
+
*/
|
|
4380
|
+
startTimestamp?: number;
|
|
4381
|
+
/**
|
|
4382
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4383
|
+
*/
|
|
4384
|
+
endTimestamp?: number;
|
|
3425
4385
|
/**
|
|
3426
4386
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3427
4387
|
*/
|
|
@@ -3553,7 +4513,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3553
4513
|
*/
|
|
3554
4514
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3555
4515
|
/**
|
|
3556
|
-
* Either mainnet or
|
|
4516
|
+
* Either mainnet or testnet/fuji.
|
|
3557
4517
|
*/
|
|
3558
4518
|
network: Network;
|
|
3559
4519
|
/**
|
|
@@ -3585,7 +4545,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3585
4545
|
*/
|
|
3586
4546
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3587
4547
|
/**
|
|
3588
|
-
* Either mainnet or
|
|
4548
|
+
* Either mainnet or testnet/fuji.
|
|
3589
4549
|
*/
|
|
3590
4550
|
network: Network;
|
|
3591
4551
|
/**
|
|
@@ -3831,6 +4791,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3831
4791
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3832
4792
|
};
|
|
3833
4793
|
|
|
4794
|
+
type L1ValidatorDetailsTransaction = {
|
|
4795
|
+
/**
|
|
4796
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4797
|
+
*/
|
|
4798
|
+
validationId: string;
|
|
4799
|
+
nodeId: string;
|
|
4800
|
+
subnetId: string;
|
|
4801
|
+
/**
|
|
4802
|
+
* 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
|
|
4803
|
+
*/
|
|
4804
|
+
weight: number;
|
|
4805
|
+
/**
|
|
4806
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4807
|
+
*/
|
|
4808
|
+
remainingBalance: number;
|
|
4809
|
+
/**
|
|
4810
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4811
|
+
*/
|
|
4812
|
+
balanceChange?: number;
|
|
4813
|
+
blsCredentials?: Record<string, any>;
|
|
4814
|
+
};
|
|
4815
|
+
|
|
3834
4816
|
declare enum PChainTransactionType {
|
|
3835
4817
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3836
4818
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3847,9 +4829,17 @@ declare enum PChainTransactionType {
|
|
|
3847
4829
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3848
4830
|
BASE_TX = "BaseTx",
|
|
3849
4831
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4832
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4833
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4834
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4835
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4836
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3850
4837
|
UNKNOWN = "UNKNOWN"
|
|
3851
4838
|
}
|
|
3852
4839
|
|
|
4840
|
+
/**
|
|
4841
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4842
|
+
*/
|
|
3853
4843
|
declare enum UtxoType {
|
|
3854
4844
|
STAKE = "STAKE",
|
|
3855
4845
|
TRANSFER = "TRANSFER"
|
|
@@ -3887,16 +4877,43 @@ type PChainUtxo = {
|
|
|
3887
4877
|
assetId: string;
|
|
3888
4878
|
blockNumber: string;
|
|
3889
4879
|
blockTimestamp: number;
|
|
4880
|
+
/**
|
|
4881
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4882
|
+
*/
|
|
3890
4883
|
consumingBlockNumber?: string;
|
|
4884
|
+
/**
|
|
4885
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4886
|
+
*/
|
|
3891
4887
|
consumingBlockTimestamp?: number;
|
|
4888
|
+
/**
|
|
4889
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4890
|
+
*/
|
|
3892
4891
|
platformLocktime?: number;
|
|
4892
|
+
/**
|
|
4893
|
+
* The index of the UTXO in the transaction
|
|
4894
|
+
*/
|
|
3893
4895
|
outputIndex: number;
|
|
3894
4896
|
rewardType?: RewardType;
|
|
4897
|
+
/**
|
|
4898
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4899
|
+
*/
|
|
3895
4900
|
stakeableLocktime?: number;
|
|
3896
4901
|
staked?: boolean;
|
|
4902
|
+
/**
|
|
4903
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4904
|
+
*/
|
|
3897
4905
|
threshold?: number;
|
|
4906
|
+
/**
|
|
4907
|
+
* The hash of the transaction that created this UTXO
|
|
4908
|
+
*/
|
|
3898
4909
|
txHash: string;
|
|
4910
|
+
/**
|
|
4911
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4912
|
+
*/
|
|
3899
4913
|
utxoEndTimestamp?: number;
|
|
4914
|
+
/**
|
|
4915
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4916
|
+
*/
|
|
3900
4917
|
utxoStartTimestamp?: number;
|
|
3901
4918
|
utxoType: UtxoType;
|
|
3902
4919
|
};
|
|
@@ -3911,9 +4928,18 @@ type PChainTransaction = {
|
|
|
3911
4928
|
* The block finality timestamp.
|
|
3912
4929
|
*/
|
|
3913
4930
|
blockTimestamp: number;
|
|
4931
|
+
/**
|
|
4932
|
+
* The height of the block in which the transaction was included
|
|
4933
|
+
*/
|
|
3914
4934
|
blockNumber: string;
|
|
3915
4935
|
blockHash: string;
|
|
4936
|
+
/**
|
|
4937
|
+
* The consumed UTXOs of the transaction
|
|
4938
|
+
*/
|
|
3916
4939
|
consumedUtxos: Array<PChainUtxo>;
|
|
4940
|
+
/**
|
|
4941
|
+
* The newly created UTXOs of the transaction
|
|
4942
|
+
*/
|
|
3917
4943
|
emittedUtxos: Array<PChainUtxo>;
|
|
3918
4944
|
/**
|
|
3919
4945
|
* Source chain for an atomic transaction.
|
|
@@ -3924,17 +4950,21 @@ type PChainTransaction = {
|
|
|
3924
4950
|
*/
|
|
3925
4951
|
destinationChain?: string;
|
|
3926
4952
|
/**
|
|
3927
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4953
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
3928
4954
|
*/
|
|
3929
4955
|
value: Array<AssetAmount>;
|
|
3930
4956
|
/**
|
|
3931
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4957
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
3932
4958
|
*/
|
|
3933
4959
|
amountBurned: Array<AssetAmount>;
|
|
3934
4960
|
/**
|
|
3935
4961
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3936
4962
|
*/
|
|
3937
4963
|
amountStaked: Array<AssetAmount>;
|
|
4964
|
+
/**
|
|
4965
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4966
|
+
*/
|
|
4967
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3938
4968
|
/**
|
|
3939
4969
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3940
4970
|
*/
|
|
@@ -3944,11 +4974,11 @@ type PChainTransaction = {
|
|
|
3944
4974
|
*/
|
|
3945
4975
|
endTimestamp?: number;
|
|
3946
4976
|
/**
|
|
3947
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4977
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3948
4978
|
*/
|
|
3949
4979
|
delegationFeePercent?: string;
|
|
3950
4980
|
/**
|
|
3951
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4981
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3952
4982
|
*/
|
|
3953
4983
|
nodeId?: string;
|
|
3954
4984
|
/**
|
|
@@ -3956,14 +4986,25 @@ type PChainTransaction = {
|
|
|
3956
4986
|
*/
|
|
3957
4987
|
subnetId?: string;
|
|
3958
4988
|
/**
|
|
3959
|
-
* Present for
|
|
4989
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4990
|
+
*/
|
|
4991
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4992
|
+
/**
|
|
4993
|
+
* 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
|
|
4994
|
+
*/
|
|
4995
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4996
|
+
/**
|
|
4997
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3960
4998
|
*/
|
|
3961
4999
|
estimatedReward?: string;
|
|
5000
|
+
/**
|
|
5001
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5002
|
+
*/
|
|
3962
5003
|
rewardTxHash?: string;
|
|
3963
5004
|
rewardAddresses?: Array<string>;
|
|
3964
5005
|
memo?: string;
|
|
3965
5006
|
/**
|
|
3966
|
-
*
|
|
5007
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3967
5008
|
*/
|
|
3968
5009
|
stakingTxHash?: string;
|
|
3969
5010
|
/**
|
|
@@ -3971,7 +5012,7 @@ type PChainTransaction = {
|
|
|
3971
5012
|
*/
|
|
3972
5013
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3973
5014
|
/**
|
|
3974
|
-
* Present for AddPermissionlessValidatorTx
|
|
5015
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3975
5016
|
*/
|
|
3976
5017
|
blsCredentials?: BlsCredentials;
|
|
3977
5018
|
};
|
|
@@ -4156,6 +5197,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4156
5197
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4157
5198
|
BASE_TX = "BaseTx",
|
|
4158
5199
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5200
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5201
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5202
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5203
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5204
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4159
5205
|
UNKNOWN = "UNKNOWN",
|
|
4160
5206
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4161
5207
|
OPERATION_TX = "OperationTx"
|
|
@@ -4176,7 +5222,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4176
5222
|
*/
|
|
4177
5223
|
blockchainId: BlockchainId;
|
|
4178
5224
|
/**
|
|
4179
|
-
* Either mainnet or
|
|
5225
|
+
* Either mainnet or testnet/fuji.
|
|
4180
5226
|
*/
|
|
4181
5227
|
network: Network;
|
|
4182
5228
|
/**
|
|
@@ -4190,23 +5236,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4190
5236
|
*
|
|
4191
5237
|
* 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.
|
|
4192
5238
|
*
|
|
5239
|
+
* 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.
|
|
5240
|
+
*
|
|
4193
5241
|
* 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.
|
|
4194
5242
|
* @returns any Successful response
|
|
4195
5243
|
* @throws ApiError
|
|
4196
5244
|
*/
|
|
4197
|
-
listLatestPrimaryNetworkTransactions({
|
|
4198
|
-
/**
|
|
4199
|
-
* 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.
|
|
4200
|
-
*/
|
|
4201
|
-
addresses: string;
|
|
5245
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4202
5246
|
/**
|
|
4203
5247
|
* A primary network blockchain id or alias.
|
|
4204
5248
|
*/
|
|
4205
5249
|
blockchainId: BlockchainId;
|
|
4206
5250
|
/**
|
|
4207
|
-
* Either mainnet or
|
|
5251
|
+
* Either mainnet or testnet/fuji.
|
|
4208
5252
|
*/
|
|
4209
5253
|
network: Network;
|
|
5254
|
+
/**
|
|
5255
|
+
* 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.
|
|
5256
|
+
*/
|
|
5257
|
+
addresses?: string;
|
|
5258
|
+
l1ValidationId?: string;
|
|
4210
5259
|
/**
|
|
4211
5260
|
* Query param for filtering items based on transaction types.
|
|
4212
5261
|
*/
|
|
@@ -4244,7 +5293,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4244
5293
|
*/
|
|
4245
5294
|
blockchainId: PChainId;
|
|
4246
5295
|
/**
|
|
4247
|
-
* Either mainnet or
|
|
5296
|
+
* Either mainnet or testnet/fuji.
|
|
4248
5297
|
*/
|
|
4249
5298
|
network: Network;
|
|
4250
5299
|
/**
|
|
@@ -4288,7 +5337,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4288
5337
|
*/
|
|
4289
5338
|
blockchainId: XChainId;
|
|
4290
5339
|
/**
|
|
4291
|
-
* Either mainnet or
|
|
5340
|
+
* Either mainnet or testnet/fuji.
|
|
4292
5341
|
*/
|
|
4293
5342
|
network: Network;
|
|
4294
5343
|
/**
|
|
@@ -4351,7 +5400,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4351
5400
|
*/
|
|
4352
5401
|
blockchainId: BlockchainId;
|
|
4353
5402
|
/**
|
|
4354
|
-
* Either mainnet or
|
|
5403
|
+
* Either mainnet or testnet/fuji.
|
|
4355
5404
|
*/
|
|
4356
5405
|
network: Network;
|
|
4357
5406
|
/**
|
|
@@ -4416,7 +5465,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4416
5465
|
*/
|
|
4417
5466
|
blockchainId: XChainId;
|
|
4418
5467
|
/**
|
|
4419
|
-
* Either mainnet or
|
|
5468
|
+
* Either mainnet or testnet/fuji.
|
|
4420
5469
|
*/
|
|
4421
5470
|
network: Network;
|
|
4422
5471
|
/**
|
|
@@ -4444,7 +5493,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4444
5493
|
*/
|
|
4445
5494
|
blockchainId: XChainId;
|
|
4446
5495
|
/**
|
|
4447
|
-
* Either mainnet or
|
|
5496
|
+
* Either mainnet or testnet/fuji.
|
|
4448
5497
|
*/
|
|
4449
5498
|
network: Network;
|
|
4450
5499
|
}): CancelablePromise<XChainVertex>;
|
|
@@ -4464,7 +5513,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4464
5513
|
*/
|
|
4465
5514
|
blockchainId: XChainId;
|
|
4466
5515
|
/**
|
|
4467
|
-
* Either mainnet or
|
|
5516
|
+
* Either mainnet or testnet/fuji.
|
|
4468
5517
|
*/
|
|
4469
5518
|
network: Network;
|
|
4470
5519
|
/**
|
|
@@ -4482,47 +5531,33 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4482
5531
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4483
5532
|
}
|
|
4484
5533
|
|
|
4485
|
-
type
|
|
4486
|
-
|
|
4487
|
-
message: string;
|
|
4488
|
-
data?: Record<string, any>;
|
|
4489
|
-
};
|
|
4490
|
-
|
|
4491
|
-
type RpcErrorResponseDto = {
|
|
4492
|
-
jsonrpc: string;
|
|
4493
|
-
id?: (string | number);
|
|
4494
|
-
error: RpcErrorDto;
|
|
4495
|
-
};
|
|
4496
|
-
|
|
4497
|
-
type RpcRequestBodyDto = {
|
|
4498
|
-
method: string;
|
|
4499
|
-
params?: Record<string, any>;
|
|
4500
|
-
id?: (string | number);
|
|
4501
|
-
jsonrpc?: string;
|
|
5534
|
+
type SignatureAggregationResponse = {
|
|
5535
|
+
signedMessage: string;
|
|
4502
5536
|
};
|
|
4503
5537
|
|
|
4504
|
-
type
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
5538
|
+
type SignatureAggregatorRequest = {
|
|
5539
|
+
message: string;
|
|
5540
|
+
justification?: string;
|
|
5541
|
+
signingSubnetId?: string;
|
|
5542
|
+
quorumPercentage?: number;
|
|
4508
5543
|
};
|
|
4509
5544
|
|
|
4510
|
-
declare class
|
|
5545
|
+
declare class SignatureAggregatorService {
|
|
4511
5546
|
readonly httpRequest: BaseHttpRequest;
|
|
4512
5547
|
constructor(httpRequest: BaseHttpRequest);
|
|
4513
5548
|
/**
|
|
4514
|
-
*
|
|
4515
|
-
*
|
|
4516
|
-
* @returns
|
|
5549
|
+
* Aggregate Signatures
|
|
5550
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
5551
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4517
5552
|
* @throws ApiError
|
|
4518
5553
|
*/
|
|
4519
|
-
|
|
5554
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
4520
5555
|
/**
|
|
4521
|
-
*
|
|
5556
|
+
* Either mainnet or testnet/fuji.
|
|
4522
5557
|
*/
|
|
4523
|
-
|
|
4524
|
-
requestBody:
|
|
4525
|
-
}): CancelablePromise<
|
|
5558
|
+
network: Network;
|
|
5559
|
+
requestBody: SignatureAggregatorRequest;
|
|
5560
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4526
5561
|
}
|
|
4527
5562
|
|
|
4528
5563
|
type TeleporterDestinationTransaction = {
|
|
@@ -4663,8 +5698,10 @@ declare class TeleporterService {
|
|
|
4663
5698
|
readonly httpRequest: BaseHttpRequest;
|
|
4664
5699
|
constructor(httpRequest: BaseHttpRequest);
|
|
4665
5700
|
/**
|
|
4666
|
-
*
|
|
4667
|
-
* Gets a teleporter message by message ID.
|
|
5701
|
+
* @deprecated
|
|
5702
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5703
|
+
*
|
|
5704
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4668
5705
|
* @returns any Successful response
|
|
4669
5706
|
* @throws ApiError
|
|
4670
5707
|
*/
|
|
@@ -4675,8 +5712,10 @@ declare class TeleporterService {
|
|
|
4675
5712
|
messageId: string;
|
|
4676
5713
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4677
5714
|
/**
|
|
4678
|
-
*
|
|
4679
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5715
|
+
* @deprecated
|
|
5716
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5717
|
+
*
|
|
5718
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4680
5719
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4681
5720
|
* @throws ApiError
|
|
4682
5721
|
*/
|
|
@@ -4710,13 +5749,15 @@ declare class TeleporterService {
|
|
|
4710
5749
|
*/
|
|
4711
5750
|
from?: string;
|
|
4712
5751
|
/**
|
|
4713
|
-
* mainnet or testnet.
|
|
5752
|
+
* Either mainnet or testnet/fuji.
|
|
4714
5753
|
*/
|
|
4715
|
-
network?:
|
|
5754
|
+
network?: Network;
|
|
4716
5755
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4717
5756
|
/**
|
|
4718
|
-
*
|
|
4719
|
-
* Lists teleporter messages by address. Ordered by
|
|
5757
|
+
* @deprecated
|
|
5758
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5759
|
+
*
|
|
5760
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4720
5761
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4721
5762
|
* @throws ApiError
|
|
4722
5763
|
*/
|
|
@@ -4734,9 +5775,9 @@ declare class TeleporterService {
|
|
|
4734
5775
|
*/
|
|
4735
5776
|
pageSize?: number;
|
|
4736
5777
|
/**
|
|
4737
|
-
* mainnet or testnet.
|
|
5778
|
+
* Either mainnet or testnet/fuji.
|
|
4738
5779
|
*/
|
|
4739
|
-
network?:
|
|
5780
|
+
network?: Network;
|
|
4740
5781
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4741
5782
|
}
|
|
4742
5783
|
|
|
@@ -4770,7 +5811,7 @@ type CreateWebhookRequest = {
|
|
|
4770
5811
|
name?: string;
|
|
4771
5812
|
description?: string;
|
|
4772
5813
|
/**
|
|
4773
|
-
* Whether to include traces in the webhook payload.
|
|
5814
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4774
5815
|
*/
|
|
4775
5816
|
includeInternalTxs?: boolean;
|
|
4776
5817
|
/**
|
|
@@ -4830,6 +5871,9 @@ type UpdateWebhookRequest = {
|
|
|
4830
5871
|
description?: string;
|
|
4831
5872
|
url?: string;
|
|
4832
5873
|
status?: WebhookStatusType;
|
|
5874
|
+
/**
|
|
5875
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5876
|
+
*/
|
|
4833
5877
|
includeInternalTxs?: boolean;
|
|
4834
5878
|
includeLogs?: boolean;
|
|
4835
5879
|
};
|
|
@@ -4909,12 +5953,12 @@ declare class WebhooksService {
|
|
|
4909
5953
|
requestBody: UpdateWebhookRequest;
|
|
4910
5954
|
}): CancelablePromise<WebhookResponse>;
|
|
4911
5955
|
/**
|
|
4912
|
-
* Generate a shared secret
|
|
4913
|
-
* Generates a new shared secret.
|
|
5956
|
+
* Generate or rotate a shared secret
|
|
5957
|
+
* Generates a new shared secret or rotate an existing one.
|
|
4914
5958
|
* @returns SharedSecretsResponse Successful response
|
|
4915
5959
|
* @throws ApiError
|
|
4916
5960
|
*/
|
|
4917
|
-
|
|
5961
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4918
5962
|
/**
|
|
4919
5963
|
* Get a shared secret
|
|
4920
5964
|
* Get a previously generated shared secret.
|
|
@@ -4980,7 +6024,9 @@ declare class Glacier {
|
|
|
4980
6024
|
readonly evmContracts: EvmContractsService;
|
|
4981
6025
|
readonly evmTransactions: EvmTransactionsService;
|
|
4982
6026
|
readonly healthCheck: HealthCheckService;
|
|
6027
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
4983
6028
|
readonly nfTs: NfTsService;
|
|
6029
|
+
readonly notifications: NotificationsService;
|
|
4984
6030
|
readonly operations: OperationsService;
|
|
4985
6031
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
4986
6032
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -4989,7 +6035,7 @@ declare class Glacier {
|
|
|
4989
6035
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4990
6036
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4991
6037
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4992
|
-
readonly
|
|
6038
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4993
6039
|
readonly teleporter: TeleporterService;
|
|
4994
6040
|
readonly webhooks: WebhooksService;
|
|
4995
6041
|
readonly request: BaseHttpRequest;
|
|
@@ -5144,4 +6190,4 @@ type Unauthorized = {
|
|
|
5144
6190
|
error: string;
|
|
5145
6191
|
};
|
|
5146
6192
|
|
|
5147
|
-
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,
|
|
6193
|
+
export { AccessRequest, 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, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, 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, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, 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, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, 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 };
|