@avalabs/glacier-sdk 3.1.0-canary.686a0a6.0 → 3.1.0-canary.6c5a06a.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 +1074 -340
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- 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 -2
- 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/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/PChainTransaction.d.ts +27 -14
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- 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 -2
- 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 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -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 +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
- 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/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- 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/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +69 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +9 -8
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/index.d.ts +20 -2
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,29 @@ 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
|
+
|
|
151
174
|
type RpcUsageMetricsValueAggregated = {
|
|
152
175
|
/**
|
|
153
176
|
* The total number of requests
|
|
@@ -173,6 +196,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
196
|
* The number of invalid requests
|
|
174
197
|
*/
|
|
175
198
|
invalidRequests: number;
|
|
199
|
+
/**
|
|
200
|
+
* The number of API credits wasted on invalid requests
|
|
201
|
+
*/
|
|
202
|
+
apiCreditsWasted: number;
|
|
176
203
|
/**
|
|
177
204
|
* Column name used for data aggregation
|
|
178
205
|
*/
|
|
@@ -190,6 +217,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
217
|
RPC_METHOD = "rpcMethod",
|
|
191
218
|
RESPONSE_CODE = "responseCode",
|
|
192
219
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
220
|
+
REQUEST_PATH = "requestPath",
|
|
221
|
+
COUNTRY = "country",
|
|
222
|
+
CONTINENT = "continent",
|
|
223
|
+
USER_AGENT = "userAgent",
|
|
193
224
|
NONE = "None"
|
|
194
225
|
}
|
|
195
226
|
}
|
|
@@ -205,19 +236,56 @@ type RpcMetrics = {
|
|
|
205
236
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
237
|
};
|
|
207
238
|
|
|
208
|
-
type
|
|
239
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
240
|
/**
|
|
210
241
|
* Duration in which the metrics value is aggregated
|
|
211
242
|
*/
|
|
212
243
|
aggregateDuration: string;
|
|
213
244
|
/**
|
|
214
|
-
*
|
|
245
|
+
* Metrics values
|
|
215
246
|
*/
|
|
216
|
-
|
|
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;
|
|
217
281
|
/**
|
|
218
282
|
* Metrics values
|
|
219
283
|
*/
|
|
220
284
|
metrics: Array<RpcMetrics>;
|
|
285
|
+
/**
|
|
286
|
+
* ChainId for which the metrics are aggregated
|
|
287
|
+
*/
|
|
288
|
+
chainId: string;
|
|
221
289
|
};
|
|
222
290
|
|
|
223
291
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +391,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
391
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
392
|
* @throws ApiError
|
|
325
393
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
394
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
395
|
/**
|
|
328
396
|
* Organization ID to fetch usage metrics for
|
|
329
397
|
*/
|
|
@@ -348,10 +416,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
416
|
* Filter data by chain ID.
|
|
349
417
|
*/
|
|
350
418
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
419
|
/**
|
|
356
420
|
* Filter data by response status code.
|
|
357
421
|
*/
|
|
@@ -364,6 +428,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
428
|
* Filter data by API key ID.
|
|
365
429
|
*/
|
|
366
430
|
apiKeyId?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Filter data by request path.
|
|
433
|
+
*/
|
|
434
|
+
requestPath?: string;
|
|
367
435
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
436
|
/**
|
|
369
437
|
* Get logs for requests made by client
|
|
@@ -371,7 +439,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
439
|
* @returns LogsResponseDTO Successful response
|
|
372
440
|
* @throws ApiError
|
|
373
441
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
442
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
443
|
/**
|
|
376
444
|
* Organization ID to fetch usage metrics for
|
|
377
445
|
*/
|
|
@@ -388,10 +456,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
456
|
* Filter data by chain ID.
|
|
389
457
|
*/
|
|
390
458
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
459
|
/**
|
|
396
460
|
* Filter data by response status code.
|
|
397
461
|
*/
|
|
@@ -404,6 +468,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
468
|
* Filter data by API key ID.
|
|
405
469
|
*/
|
|
406
470
|
apiKeyId?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Filter data by request path.
|
|
473
|
+
*/
|
|
474
|
+
requestPath?: string;
|
|
407
475
|
/**
|
|
408
476
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
477
|
*/
|
|
@@ -415,15 +483,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
483
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
484
|
/**
|
|
417
485
|
* Get usage metrics for the Subnet RPC
|
|
418
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
-
* @returns
|
|
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
|
|
420
488
|
* @throws ApiError
|
|
421
489
|
*/
|
|
422
|
-
|
|
490
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
491
|
/**
|
|
424
|
-
*
|
|
492
|
+
* Time interval granularity for data aggregation for subnet
|
|
493
|
+
* rpc metrics
|
|
425
494
|
*/
|
|
426
|
-
timeInterval?:
|
|
495
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
496
|
/**
|
|
428
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.
|
|
429
498
|
*/
|
|
@@ -435,15 +504,54 @@ declare class DataApiUsageMetricsService {
|
|
|
435
504
|
/**
|
|
436
505
|
* Query param for the criterion used for grouping metrics
|
|
437
506
|
*/
|
|
438
|
-
groupBy?:
|
|
507
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
508
|
/**
|
|
440
509
|
* Filter data by chain ID.
|
|
441
510
|
*/
|
|
442
511
|
chainId?: string;
|
|
443
512
|
/**
|
|
444
|
-
* Filter data by
|
|
513
|
+
* Filter data by response status code.
|
|
445
514
|
*/
|
|
446
|
-
|
|
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;
|
|
447
555
|
/**
|
|
448
556
|
* Filter data by response status code.
|
|
449
557
|
*/
|
|
@@ -456,7 +564,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
564
|
* Filter data by Rl Bypass API Token.
|
|
457
565
|
*/
|
|
458
566
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
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>;
|
|
460
621
|
}
|
|
461
622
|
|
|
462
623
|
declare class DefaultService {
|
|
@@ -655,6 +816,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
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.
|
|
656
817
|
*/
|
|
657
818
|
nextPageToken?: string;
|
|
819
|
+
/**
|
|
820
|
+
* The native token balance for the address.
|
|
821
|
+
*/
|
|
822
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
823
|
/**
|
|
659
824
|
* The list of ERC-1155 token balances for the address.
|
|
660
825
|
*/
|
|
@@ -699,11 +864,22 @@ type Erc20TokenBalance = {
|
|
|
699
864
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
865
|
*/
|
|
701
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 | null;
|
|
702
871
|
};
|
|
703
872
|
declare namespace Erc20TokenBalance {
|
|
704
873
|
enum ercType {
|
|
705
874
|
ERC_20 = "ERC-20"
|
|
706
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
|
+
}
|
|
707
883
|
}
|
|
708
884
|
|
|
709
885
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +887,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
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.
|
|
712
888
|
*/
|
|
713
889
|
nextPageToken?: string;
|
|
890
|
+
/**
|
|
891
|
+
* The native token balance for the address.
|
|
892
|
+
*/
|
|
893
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
894
|
/**
|
|
715
895
|
* The list of ERC-20 token balances for the address.
|
|
716
896
|
*/
|
|
@@ -722,6 +902,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
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.
|
|
723
903
|
*/
|
|
724
904
|
nextPageToken?: string;
|
|
905
|
+
/**
|
|
906
|
+
* The native token balance for the address.
|
|
907
|
+
*/
|
|
908
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
909
|
/**
|
|
726
910
|
* The list of ERC-721 token balances for the address.
|
|
727
911
|
*/
|
|
@@ -900,6 +1084,10 @@ declare class EvmBalancesService {
|
|
|
900
1084
|
}
|
|
901
1085
|
|
|
902
1086
|
type GetEvmBlockResponse = {
|
|
1087
|
+
/**
|
|
1088
|
+
* The EVM chain ID on which the block was created.
|
|
1089
|
+
*/
|
|
1090
|
+
chainId: string;
|
|
903
1091
|
/**
|
|
904
1092
|
* The block number on the chain.
|
|
905
1093
|
*/
|
|
@@ -944,6 +1132,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1132
|
};
|
|
945
1133
|
|
|
946
1134
|
type EvmBlock = {
|
|
1135
|
+
/**
|
|
1136
|
+
* The EVM chain ID on which the block was created.
|
|
1137
|
+
*/
|
|
1138
|
+
chainId: string;
|
|
947
1139
|
/**
|
|
948
1140
|
* The block number on the chain.
|
|
949
1141
|
*/
|
|
@@ -998,6 +1190,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1190
|
declare class EvmBlocksService {
|
|
999
1191
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1192
|
constructor(httpRequest: BaseHttpRequest);
|
|
1193
|
+
/**
|
|
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.
|
|
1196
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1197
|
+
* @throws ApiError
|
|
1198
|
+
*/
|
|
1199
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1200
|
+
/**
|
|
1201
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1202
|
+
*/
|
|
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>;
|
|
1001
1213
|
/**
|
|
1002
1214
|
* List latest blocks
|
|
1003
1215
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1129,64 +1341,231 @@ type ListChainsResponse = {
|
|
|
1129
1341
|
chains: Array<ChainInfo>;
|
|
1130
1342
|
};
|
|
1131
1343
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
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"
|
|
1137
1351
|
}
|
|
1138
1352
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1353
|
+
type Method = {
|
|
1354
|
+
callType: TransactionMethodType;
|
|
1142
1355
|
/**
|
|
1143
|
-
*
|
|
1144
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1145
|
-
* @returns ListChainsResponse Successful response
|
|
1146
|
-
* @throws ApiError
|
|
1356
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1147
1357
|
*/
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Either mainnet or testnet/fuji.
|
|
1151
|
-
*/
|
|
1152
|
-
network?: Network;
|
|
1153
|
-
/**
|
|
1154
|
-
* Filter by feature.
|
|
1155
|
-
*/
|
|
1156
|
-
feature?: ApiFeature;
|
|
1157
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1358
|
+
methodHash: string;
|
|
1158
1359
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1161
|
-
* @returns GetChainResponse Successful response
|
|
1162
|
-
* @throws ApiError
|
|
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'.
|
|
1163
1361
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
chainId: string;
|
|
1169
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1362
|
+
methodName?: string;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
type RichAddress = {
|
|
1170
1366
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* Gets the list of chains an address has interacted with.
|
|
1173
|
-
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
-
* @throws ApiError
|
|
1367
|
+
* The contract name.
|
|
1175
1368
|
*/
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* A wallet address.
|
|
1179
|
-
*/
|
|
1180
|
-
address: string;
|
|
1181
|
-
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
type ImageAsset = {
|
|
1185
|
-
assetId?: string;
|
|
1369
|
+
name?: string;
|
|
1186
1370
|
/**
|
|
1187
|
-
*
|
|
1371
|
+
* The contract symbol.
|
|
1188
1372
|
*/
|
|
1189
|
-
|
|
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"
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
declare class EvmChainsService {
|
|
1457
|
+
readonly httpRequest: BaseHttpRequest;
|
|
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>;
|
|
1471
|
+
/**
|
|
1472
|
+
* List chains
|
|
1473
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1474
|
+
* @returns ListChainsResponse Successful response
|
|
1475
|
+
* @throws ApiError
|
|
1476
|
+
*/
|
|
1477
|
+
supportedChains({ network, feature, }: {
|
|
1478
|
+
/**
|
|
1479
|
+
* Either mainnet or testnet/fuji.
|
|
1480
|
+
*/
|
|
1481
|
+
network?: Network;
|
|
1482
|
+
/**
|
|
1483
|
+
* Filter by feature.
|
|
1484
|
+
*/
|
|
1485
|
+
feature?: ApiFeature;
|
|
1486
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Get chain information
|
|
1489
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1490
|
+
* @returns GetChainResponse Successful response
|
|
1491
|
+
* @throws ApiError
|
|
1492
|
+
*/
|
|
1493
|
+
getChainInfo({ chainId, }: {
|
|
1494
|
+
/**
|
|
1495
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1496
|
+
*/
|
|
1497
|
+
chainId: string;
|
|
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>;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
type ImageAsset = {
|
|
1564
|
+
assetId?: string;
|
|
1565
|
+
/**
|
|
1566
|
+
* OUTPUT ONLY
|
|
1567
|
+
*/
|
|
1568
|
+
imageUri?: string;
|
|
1190
1569
|
};
|
|
1191
1570
|
|
|
1192
1571
|
type PricingProviders = {
|
|
@@ -1513,29 +1892,6 @@ declare namespace Erc1155Token {
|
|
|
1513
1892
|
}
|
|
1514
1893
|
}
|
|
1515
1894
|
|
|
1516
|
-
type RichAddress = {
|
|
1517
|
-
/**
|
|
1518
|
-
* The contract name.
|
|
1519
|
-
*/
|
|
1520
|
-
name?: string;
|
|
1521
|
-
/**
|
|
1522
|
-
* The contract symbol.
|
|
1523
|
-
*/
|
|
1524
|
-
symbol?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1527
|
-
*/
|
|
1528
|
-
decimals?: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* The logo uri for the address.
|
|
1531
|
-
*/
|
|
1532
|
-
logoUri?: string;
|
|
1533
|
-
/**
|
|
1534
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1535
|
-
*/
|
|
1536
|
-
address: string;
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
1895
|
type Erc1155TransferDetails = {
|
|
1540
1896
|
from: RichAddress;
|
|
1541
1897
|
to: RichAddress;
|
|
@@ -1620,27 +1976,6 @@ type Erc721TransferDetails = {
|
|
|
1620
1976
|
erc721Token: Erc721Token;
|
|
1621
1977
|
};
|
|
1622
1978
|
|
|
1623
|
-
/**
|
|
1624
|
-
* 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.
|
|
1625
|
-
*/
|
|
1626
|
-
declare enum TransactionMethodType {
|
|
1627
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1628
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1629
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
type Method = {
|
|
1633
|
-
callType: TransactionMethodType;
|
|
1634
|
-
/**
|
|
1635
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1636
|
-
*/
|
|
1637
|
-
methodHash: string;
|
|
1638
|
-
/**
|
|
1639
|
-
* 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'.
|
|
1640
|
-
*/
|
|
1641
|
-
methodName?: string;
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
1979
|
type FullNativeTransactionDetails = {
|
|
1645
1980
|
/**
|
|
1646
1981
|
* The block number on the chain.
|
|
@@ -1654,6 +1989,10 @@ type FullNativeTransactionDetails = {
|
|
|
1654
1989
|
* The block hash identifier.
|
|
1655
1990
|
*/
|
|
1656
1991
|
blockHash: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* The EVM chain ID on which the transaction occured.
|
|
1994
|
+
*/
|
|
1995
|
+
chainId: string;
|
|
1657
1996
|
/**
|
|
1658
1997
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1659
1998
|
*/
|
|
@@ -1917,99 +2256,40 @@ type ListInternalTransactionsResponse = {
|
|
|
1917
2256
|
transactions: Array<InternalTransaction>;
|
|
1918
2257
|
};
|
|
1919
2258
|
|
|
1920
|
-
type
|
|
1921
|
-
/**
|
|
1922
|
-
* The block number on the chain.
|
|
1923
|
-
*/
|
|
1924
|
-
blockNumber: string;
|
|
2259
|
+
type TransactionDetails = {
|
|
1925
2260
|
/**
|
|
1926
|
-
* The
|
|
2261
|
+
* The native (top-level) transaction details.
|
|
1927
2262
|
*/
|
|
1928
|
-
|
|
2263
|
+
nativeTransaction: NativeTransaction;
|
|
1929
2264
|
/**
|
|
1930
|
-
* The
|
|
2265
|
+
* The list of ERC-20 transfers.
|
|
1931
2266
|
*/
|
|
1932
|
-
|
|
2267
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1933
2268
|
/**
|
|
1934
|
-
* The
|
|
2269
|
+
* The list of ERC-721 transfers.
|
|
1935
2270
|
*/
|
|
1936
|
-
|
|
2271
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1937
2272
|
/**
|
|
1938
|
-
* The
|
|
2273
|
+
* The list of ERC-1155 transfers.
|
|
1939
2274
|
*/
|
|
1940
|
-
|
|
2275
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1941
2276
|
/**
|
|
1942
|
-
* The
|
|
2277
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1943
2278
|
*/
|
|
1944
|
-
|
|
2279
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
type ListTransactionDetailsResponse = {
|
|
1945
2283
|
/**
|
|
1946
|
-
*
|
|
2284
|
+
* 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.
|
|
1947
2285
|
*/
|
|
1948
|
-
|
|
2286
|
+
nextPageToken?: string;
|
|
2287
|
+
transactions: Array<TransactionDetails>;
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
type ListTransfersResponse = {
|
|
1949
2291
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
*/
|
|
1952
|
-
gasLimit: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* The amount of gas used.
|
|
1955
|
-
*/
|
|
1956
|
-
gasUsed: string;
|
|
1957
|
-
/**
|
|
1958
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1959
|
-
*/
|
|
1960
|
-
gasPrice: string;
|
|
1961
|
-
/**
|
|
1962
|
-
* The nonce used by the sender of the transaction.
|
|
1963
|
-
*/
|
|
1964
|
-
nonce: string;
|
|
1965
|
-
from: RichAddress;
|
|
1966
|
-
to: RichAddress;
|
|
1967
|
-
method?: Method;
|
|
1968
|
-
value: string;
|
|
1969
|
-
};
|
|
1970
|
-
|
|
1971
|
-
type ListNativeTransactionsResponse = {
|
|
1972
|
-
/**
|
|
1973
|
-
* 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.
|
|
1974
|
-
*/
|
|
1975
|
-
nextPageToken?: string;
|
|
1976
|
-
transactions: Array<NativeTransaction>;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
type TransactionDetails = {
|
|
1980
|
-
/**
|
|
1981
|
-
* The native (top-level) transaction details.
|
|
1982
|
-
*/
|
|
1983
|
-
nativeTransaction: NativeTransaction;
|
|
1984
|
-
/**
|
|
1985
|
-
* The list of ERC-20 transfers.
|
|
1986
|
-
*/
|
|
1987
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1988
|
-
/**
|
|
1989
|
-
* The list of ERC-721 transfers.
|
|
1990
|
-
*/
|
|
1991
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1992
|
-
/**
|
|
1993
|
-
* The list of ERC-1155 transfers.
|
|
1994
|
-
*/
|
|
1995
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1996
|
-
/**
|
|
1997
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1998
|
-
*/
|
|
1999
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2000
|
-
};
|
|
2001
|
-
|
|
2002
|
-
type ListTransactionDetailsResponse = {
|
|
2003
|
-
/**
|
|
2004
|
-
* 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.
|
|
2005
|
-
*/
|
|
2006
|
-
nextPageToken?: string;
|
|
2007
|
-
transactions: Array<TransactionDetails>;
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
type ListTransfersResponse = {
|
|
2011
|
-
/**
|
|
2012
|
-
* 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.
|
|
2292
|
+
* 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.
|
|
2013
2293
|
*/
|
|
2014
2294
|
nextPageToken?: string;
|
|
2015
2295
|
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
@@ -2020,14 +2300,33 @@ declare enum SortOrder {
|
|
|
2020
2300
|
DESC = "desc"
|
|
2021
2301
|
}
|
|
2022
2302
|
|
|
2023
|
-
declare enum TransactionStatus {
|
|
2024
|
-
FAILED = "failed",
|
|
2025
|
-
SUCCESS = "success"
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2303
|
declare class EvmTransactionsService {
|
|
2029
2304
|
readonly httpRequest: BaseHttpRequest;
|
|
2030
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>;
|
|
2031
2330
|
/**
|
|
2032
2331
|
* Get deployment transaction
|
|
2033
2332
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2258,9 +2557,290 @@ declare class EvmTransactionsService {
|
|
|
2258
2557
|
*/
|
|
2259
2558
|
startBlock?: number;
|
|
2260
2559
|
/**
|
|
2261
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2560
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2561
|
+
*/
|
|
2562
|
+
endBlock?: number;
|
|
2563
|
+
/**
|
|
2564
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2565
|
+
*/
|
|
2566
|
+
pageToken?: string;
|
|
2567
|
+
/**
|
|
2568
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2569
|
+
*/
|
|
2570
|
+
pageSize?: number;
|
|
2571
|
+
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
2572
|
+
/**
|
|
2573
|
+
* List internal transactions
|
|
2574
|
+
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2575
|
+
*
|
|
2576
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2577
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
2578
|
+
* @throws ApiError
|
|
2579
|
+
*/
|
|
2580
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2581
|
+
/**
|
|
2582
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2583
|
+
*/
|
|
2584
|
+
chainId: string;
|
|
2585
|
+
/**
|
|
2586
|
+
* A wallet address.
|
|
2587
|
+
*/
|
|
2588
|
+
address: string;
|
|
2589
|
+
/**
|
|
2590
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2591
|
+
*/
|
|
2592
|
+
startBlock?: number;
|
|
2593
|
+
/**
|
|
2594
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2595
|
+
*/
|
|
2596
|
+
endBlock?: number;
|
|
2597
|
+
/**
|
|
2598
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2599
|
+
*/
|
|
2600
|
+
pageToken?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2603
|
+
*/
|
|
2604
|
+
pageSize?: number;
|
|
2605
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2606
|
+
/**
|
|
2607
|
+
* Get transaction
|
|
2608
|
+
* Gets the details of a single transaction.
|
|
2609
|
+
* @returns GetTransactionResponse Successful response
|
|
2610
|
+
* @throws ApiError
|
|
2611
|
+
*/
|
|
2612
|
+
getTransaction({ chainId, txHash, }: {
|
|
2613
|
+
/**
|
|
2614
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2615
|
+
*/
|
|
2616
|
+
chainId: string;
|
|
2617
|
+
/**
|
|
2618
|
+
* A transaction hash.
|
|
2619
|
+
*/
|
|
2620
|
+
txHash: string;
|
|
2621
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
2622
|
+
/**
|
|
2623
|
+
* List transactions for a block
|
|
2624
|
+
* Lists the transactions that occured in a given block.
|
|
2625
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2626
|
+
* @throws ApiError
|
|
2627
|
+
*/
|
|
2628
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2629
|
+
/**
|
|
2630
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2631
|
+
*/
|
|
2632
|
+
chainId: string;
|
|
2633
|
+
/**
|
|
2634
|
+
* A block identifier which is either a block number or the block hash.
|
|
2635
|
+
*/
|
|
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;
|
|
2645
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2646
|
+
/**
|
|
2647
|
+
* List latest transactions
|
|
2648
|
+
* Lists the latest transactions. Filterable by status.
|
|
2649
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2650
|
+
* @throws ApiError
|
|
2651
|
+
*/
|
|
2652
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2653
|
+
/**
|
|
2654
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2655
|
+
*/
|
|
2656
|
+
chainId: string;
|
|
2657
|
+
/**
|
|
2658
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2659
|
+
*/
|
|
2660
|
+
pageToken?: string;
|
|
2661
|
+
/**
|
|
2662
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2663
|
+
*/
|
|
2664
|
+
pageSize?: number;
|
|
2665
|
+
/**
|
|
2666
|
+
* A status filter for listed transactions.
|
|
2667
|
+
*/
|
|
2668
|
+
status?: TransactionStatus;
|
|
2669
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
declare class HealthCheckService {
|
|
2673
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2674
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2675
|
+
/**
|
|
2676
|
+
* Get the health of the service
|
|
2677
|
+
* @returns any The Health Check is successful
|
|
2678
|
+
* @throws ApiError
|
|
2679
|
+
*/
|
|
2680
|
+
dataHealthCheck(): CancelablePromise<{
|
|
2681
|
+
status?: string;
|
|
2682
|
+
info?: Record<string, Record<string, string>> | null;
|
|
2683
|
+
error?: Record<string, Record<string, string>> | null;
|
|
2684
|
+
details?: Record<string, Record<string, string>>;
|
|
2685
|
+
}>;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
type IcmDestinationTransaction = {
|
|
2689
|
+
txHash: string;
|
|
2690
|
+
timestamp: number;
|
|
2691
|
+
gasSpent: string;
|
|
2692
|
+
rewardRedeemer: string;
|
|
2693
|
+
delivererAddress: string;
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
type IcmReceipt = {
|
|
2697
|
+
receivedMessageNonce: string;
|
|
2698
|
+
relayerRewardAddress: string;
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
type IcmRewardDetails = {
|
|
2702
|
+
/**
|
|
2703
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2704
|
+
*/
|
|
2705
|
+
address: string;
|
|
2706
|
+
/**
|
|
2707
|
+
* The contract name.
|
|
2708
|
+
*/
|
|
2709
|
+
name: string;
|
|
2710
|
+
/**
|
|
2711
|
+
* The contract symbol.
|
|
2712
|
+
*/
|
|
2713
|
+
symbol: string;
|
|
2714
|
+
/**
|
|
2715
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2716
|
+
*/
|
|
2717
|
+
decimals: number;
|
|
2718
|
+
/**
|
|
2719
|
+
* The logo uri for the address.
|
|
2720
|
+
*/
|
|
2721
|
+
logoUri?: string;
|
|
2722
|
+
ercType: IcmRewardDetails.ercType;
|
|
2723
|
+
/**
|
|
2724
|
+
* The token price, if available.
|
|
2725
|
+
*/
|
|
2726
|
+
price?: Money;
|
|
2727
|
+
value: string;
|
|
2728
|
+
};
|
|
2729
|
+
declare namespace IcmRewardDetails {
|
|
2730
|
+
enum ercType {
|
|
2731
|
+
ERC_20 = "ERC-20"
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
type IcmSourceTransaction = {
|
|
2736
|
+
txHash: string;
|
|
2737
|
+
timestamp: number;
|
|
2738
|
+
gasSpent: string;
|
|
2739
|
+
};
|
|
2740
|
+
|
|
2741
|
+
type DeliveredIcmMessage = {
|
|
2742
|
+
messageId: string;
|
|
2743
|
+
icmContractAddress: string;
|
|
2744
|
+
sourceBlockchainId: string;
|
|
2745
|
+
destinationBlockchainId: string;
|
|
2746
|
+
sourceEvmChainId: string;
|
|
2747
|
+
destinationEvmChainId: string;
|
|
2748
|
+
messageNonce: string;
|
|
2749
|
+
from: string;
|
|
2750
|
+
to: string;
|
|
2751
|
+
data?: string;
|
|
2752
|
+
messageExecuted: boolean;
|
|
2753
|
+
receipts: Array<IcmReceipt>;
|
|
2754
|
+
receiptDelivered: boolean;
|
|
2755
|
+
rewardDetails: IcmRewardDetails;
|
|
2756
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2757
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2758
|
+
status: DeliveredIcmMessage.status;
|
|
2759
|
+
};
|
|
2760
|
+
declare namespace DeliveredIcmMessage {
|
|
2761
|
+
enum status {
|
|
2762
|
+
DELIVERED = "delivered"
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2767
|
+
messageId: string;
|
|
2768
|
+
icmContractAddress: string;
|
|
2769
|
+
sourceBlockchainId: string;
|
|
2770
|
+
destinationBlockchainId: string;
|
|
2771
|
+
sourceEvmChainId: string;
|
|
2772
|
+
destinationEvmChainId: string;
|
|
2773
|
+
messageNonce: string;
|
|
2774
|
+
from: string;
|
|
2775
|
+
to: string;
|
|
2776
|
+
data?: string;
|
|
2777
|
+
messageExecuted: boolean;
|
|
2778
|
+
receipts: Array<IcmReceipt>;
|
|
2779
|
+
receiptDelivered: boolean;
|
|
2780
|
+
rewardDetails: IcmRewardDetails;
|
|
2781
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2782
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2783
|
+
};
|
|
2784
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2785
|
+
enum status {
|
|
2786
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
type PendingIcmMessage = {
|
|
2791
|
+
messageId: string;
|
|
2792
|
+
icmContractAddress: string;
|
|
2793
|
+
sourceBlockchainId: string;
|
|
2794
|
+
destinationBlockchainId: string;
|
|
2795
|
+
sourceEvmChainId: string;
|
|
2796
|
+
destinationEvmChainId: string;
|
|
2797
|
+
messageNonce: string;
|
|
2798
|
+
from: string;
|
|
2799
|
+
to: string;
|
|
2800
|
+
data?: string;
|
|
2801
|
+
messageExecuted: boolean;
|
|
2802
|
+
receipts: Array<IcmReceipt>;
|
|
2803
|
+
receiptDelivered: boolean;
|
|
2804
|
+
rewardDetails: IcmRewardDetails;
|
|
2805
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2806
|
+
status: PendingIcmMessage.status;
|
|
2807
|
+
};
|
|
2808
|
+
declare namespace PendingIcmMessage {
|
|
2809
|
+
enum status {
|
|
2810
|
+
PENDING = "pending"
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
type ListIcmMessagesResponse = {
|
|
2815
|
+
/**
|
|
2816
|
+
* 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.
|
|
2817
|
+
*/
|
|
2818
|
+
nextPageToken?: string;
|
|
2819
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2820
|
+
};
|
|
2821
|
+
|
|
2822
|
+
declare class InterchainMessagingService {
|
|
2823
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2824
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2825
|
+
/**
|
|
2826
|
+
* Get an ICM message
|
|
2827
|
+
* Gets an ICM message by message ID.
|
|
2828
|
+
* @returns any Successful response
|
|
2829
|
+
* @throws ApiError
|
|
2830
|
+
*/
|
|
2831
|
+
getIcmMessage({ messageId, }: {
|
|
2832
|
+
/**
|
|
2833
|
+
* The message ID of the ICM message.
|
|
2262
2834
|
*/
|
|
2263
|
-
|
|
2835
|
+
messageId: string;
|
|
2836
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2837
|
+
/**
|
|
2838
|
+
* List ICM messages
|
|
2839
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2840
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2841
|
+
* @throws ApiError
|
|
2842
|
+
*/
|
|
2843
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2264
2844
|
/**
|
|
2265
2845
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2266
2846
|
*/
|
|
@@ -2269,84 +2849,42 @@ declare class EvmTransactionsService {
|
|
|
2269
2849
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2850
|
*/
|
|
2271
2851
|
pageSize?: number;
|
|
2272
|
-
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
2273
|
-
/**
|
|
2274
|
-
* List internal transactions
|
|
2275
|
-
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2276
|
-
*
|
|
2277
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2278
|
-
* @returns ListInternalTransactionsResponse Successful response
|
|
2279
|
-
* @throws ApiError
|
|
2280
|
-
*/
|
|
2281
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2282
|
-
/**
|
|
2283
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2284
|
-
*/
|
|
2285
|
-
chainId: string;
|
|
2286
|
-
/**
|
|
2287
|
-
* A wallet address.
|
|
2288
|
-
*/
|
|
2289
|
-
address: string;
|
|
2290
|
-
/**
|
|
2291
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2292
|
-
*/
|
|
2293
|
-
startBlock?: number;
|
|
2294
|
-
/**
|
|
2295
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2296
|
-
*/
|
|
2297
|
-
endBlock?: number;
|
|
2298
2852
|
/**
|
|
2299
|
-
*
|
|
2853
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2300
2854
|
*/
|
|
2301
|
-
|
|
2855
|
+
sourceBlockchainId?: string;
|
|
2302
2856
|
/**
|
|
2303
|
-
* The
|
|
2857
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2304
2858
|
*/
|
|
2305
|
-
|
|
2306
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2307
|
-
/**
|
|
2308
|
-
* Get transaction
|
|
2309
|
-
* Gets the details of a single transaction.
|
|
2310
|
-
* @returns GetTransactionResponse Successful response
|
|
2311
|
-
* @throws ApiError
|
|
2312
|
-
*/
|
|
2313
|
-
getTransaction({ chainId, txHash, }: {
|
|
2859
|
+
destinationBlockchainId?: string;
|
|
2314
2860
|
/**
|
|
2315
|
-
*
|
|
2861
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2316
2862
|
*/
|
|
2317
|
-
|
|
2863
|
+
blockchainId?: string;
|
|
2318
2864
|
/**
|
|
2319
|
-
*
|
|
2865
|
+
* The address of the recipient of the ICM message.
|
|
2320
2866
|
*/
|
|
2321
|
-
|
|
2322
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
2323
|
-
/**
|
|
2324
|
-
* List transactions for a block
|
|
2325
|
-
* Lists the transactions that occured in a given block.
|
|
2326
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
|
-
* @throws ApiError
|
|
2328
|
-
*/
|
|
2329
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2867
|
+
to?: string;
|
|
2330
2868
|
/**
|
|
2331
|
-
*
|
|
2869
|
+
* The address of the sender of the ICM message.
|
|
2332
2870
|
*/
|
|
2333
|
-
|
|
2871
|
+
from?: string;
|
|
2334
2872
|
/**
|
|
2335
|
-
*
|
|
2873
|
+
* Either mainnet or testnet/fuji.
|
|
2336
2874
|
*/
|
|
2337
|
-
|
|
2338
|
-
}): CancelablePromise<
|
|
2875
|
+
network?: Network;
|
|
2876
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2339
2877
|
/**
|
|
2340
|
-
* List
|
|
2341
|
-
* Lists
|
|
2342
|
-
* @returns
|
|
2878
|
+
* List ICM messages by address
|
|
2879
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2880
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2343
2881
|
* @throws ApiError
|
|
2344
2882
|
*/
|
|
2345
|
-
|
|
2883
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2346
2884
|
/**
|
|
2347
|
-
*
|
|
2885
|
+
* An EVM address.
|
|
2348
2886
|
*/
|
|
2349
|
-
|
|
2887
|
+
address: string;
|
|
2350
2888
|
/**
|
|
2351
2889
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2352
2890
|
*/
|
|
@@ -2356,26 +2894,10 @@ declare class EvmTransactionsService {
|
|
|
2356
2894
|
*/
|
|
2357
2895
|
pageSize?: number;
|
|
2358
2896
|
/**
|
|
2359
|
-
*
|
|
2897
|
+
* Either mainnet or testnet/fuji.
|
|
2360
2898
|
*/
|
|
2361
|
-
|
|
2362
|
-
}): CancelablePromise<
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
declare class HealthCheckService {
|
|
2366
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2367
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2368
|
-
/**
|
|
2369
|
-
* Get the health of the service
|
|
2370
|
-
* @returns any The Health Check is successful
|
|
2371
|
-
* @throws ApiError
|
|
2372
|
-
*/
|
|
2373
|
-
dataHealthCheck(): CancelablePromise<{
|
|
2374
|
-
status?: string;
|
|
2375
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2376
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2377
|
-
details?: Record<string, Record<string, string>>;
|
|
2378
|
-
}>;
|
|
2899
|
+
network?: Network;
|
|
2900
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2379
2901
|
}
|
|
2380
2902
|
|
|
2381
2903
|
type ListNftTokens = {
|
|
@@ -2607,16 +3129,31 @@ type DelegatorsDetails = {
|
|
|
2607
3129
|
};
|
|
2608
3130
|
|
|
2609
3131
|
type StakingDistribution = {
|
|
3132
|
+
/**
|
|
3133
|
+
* AvalancheGo version for the validator node.
|
|
3134
|
+
*/
|
|
2610
3135
|
version: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* The total amount staked by validators using this version.
|
|
3138
|
+
*/
|
|
2611
3139
|
amountStaked: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* The number of validators using this version.
|
|
3142
|
+
*/
|
|
2612
3143
|
validatorCount: number;
|
|
2613
3144
|
};
|
|
2614
3145
|
|
|
2615
3146
|
type ValidatorsDetails = {
|
|
2616
3147
|
validatorCount: number;
|
|
2617
3148
|
totalAmountStaked: string;
|
|
3149
|
+
/**
|
|
3150
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3151
|
+
*/
|
|
2618
3152
|
estimatedAnnualStakingReward: string;
|
|
2619
3153
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3154
|
+
/**
|
|
3155
|
+
* Ratio of total active stake amount to the current supply.
|
|
3156
|
+
*/
|
|
2620
3157
|
stakingRatio: string;
|
|
2621
3158
|
};
|
|
2622
3159
|
|
|
@@ -2668,7 +3205,13 @@ type CompletedDelegatorDetails = {
|
|
|
2668
3205
|
delegationFee: string;
|
|
2669
3206
|
startTimestamp: number;
|
|
2670
3207
|
endTimestamp: number;
|
|
3208
|
+
/**
|
|
3209
|
+
* Total rewards distributed for the successful delegation.
|
|
3210
|
+
*/
|
|
2671
3211
|
grossReward: string;
|
|
3212
|
+
/**
|
|
3213
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3214
|
+
*/
|
|
2672
3215
|
netReward: string;
|
|
2673
3216
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2674
3217
|
};
|
|
@@ -2686,7 +3229,13 @@ type PendingDelegatorDetails = {
|
|
|
2686
3229
|
delegationFee: string;
|
|
2687
3230
|
startTimestamp: number;
|
|
2688
3231
|
endTimestamp: number;
|
|
3232
|
+
/**
|
|
3233
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3234
|
+
*/
|
|
2689
3235
|
estimatedGrossReward: string;
|
|
3236
|
+
/**
|
|
3237
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3238
|
+
*/
|
|
2690
3239
|
estimatedNetReward: string;
|
|
2691
3240
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2692
3241
|
};
|
|
@@ -2707,10 +3256,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2707
3256
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2708
3257
|
};
|
|
2709
3258
|
|
|
3259
|
+
type BalanceOwner = {
|
|
3260
|
+
addresses: Array<string>;
|
|
3261
|
+
threshold: number;
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3264
|
+
type L1ValidatorDetailsFull = {
|
|
3265
|
+
/**
|
|
3266
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3267
|
+
*/
|
|
3268
|
+
validationId: string;
|
|
3269
|
+
nodeId: string;
|
|
3270
|
+
subnetId: string;
|
|
3271
|
+
/**
|
|
3272
|
+
* 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
|
|
3273
|
+
*/
|
|
3274
|
+
weight: number;
|
|
3275
|
+
/**
|
|
3276
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3277
|
+
*/
|
|
3278
|
+
remainingBalance: number;
|
|
3279
|
+
/**
|
|
3280
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3281
|
+
*/
|
|
3282
|
+
creationTimestamp: number;
|
|
3283
|
+
blsCredentials: Record<string, any>;
|
|
3284
|
+
/**
|
|
3285
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3286
|
+
*/
|
|
3287
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3288
|
+
/**
|
|
3289
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3290
|
+
*/
|
|
3291
|
+
deactivationOwner: BalanceOwner;
|
|
3292
|
+
};
|
|
3293
|
+
|
|
3294
|
+
type ListL1ValidatorsResponse = {
|
|
3295
|
+
/**
|
|
3296
|
+
* 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.
|
|
3297
|
+
*/
|
|
3298
|
+
nextPageToken?: string;
|
|
3299
|
+
/**
|
|
3300
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3301
|
+
*/
|
|
3302
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3303
|
+
};
|
|
3304
|
+
|
|
2710
3305
|
type BlockchainInfo = {
|
|
2711
3306
|
blockchainId: string;
|
|
2712
3307
|
};
|
|
2713
3308
|
|
|
3309
|
+
type L1ValidatorManagerDetails = {
|
|
3310
|
+
blockchainId: string;
|
|
3311
|
+
contractAddress: string;
|
|
3312
|
+
};
|
|
3313
|
+
|
|
2714
3314
|
type SubnetOwnershipInfo = {
|
|
2715
3315
|
/**
|
|
2716
3316
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2749,6 +3349,18 @@ type Subnet = {
|
|
|
2749
3349
|
* Latest subnet owner details for this Subnet.
|
|
2750
3350
|
*/
|
|
2751
3351
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
3352
|
+
/**
|
|
3353
|
+
* Whether the subnet is an L1 or not.
|
|
3354
|
+
*/
|
|
3355
|
+
isL1: boolean;
|
|
3356
|
+
/**
|
|
3357
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3358
|
+
*/
|
|
3359
|
+
l1ConversionTransactionHash?: string;
|
|
3360
|
+
/**
|
|
3361
|
+
* L1 validator manager details.
|
|
3362
|
+
*/
|
|
3363
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2752
3364
|
blockchains: Array<BlockchainInfo>;
|
|
2753
3365
|
};
|
|
2754
3366
|
|
|
@@ -2796,6 +3408,9 @@ type ActiveValidatorDetails = {
|
|
|
2796
3408
|
nodeId: string;
|
|
2797
3409
|
subnetId: string;
|
|
2798
3410
|
amountStaked: string;
|
|
3411
|
+
/**
|
|
3412
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3413
|
+
*/
|
|
2799
3414
|
delegationFee?: string;
|
|
2800
3415
|
startTimestamp: number;
|
|
2801
3416
|
endTimestamp: number;
|
|
@@ -2803,12 +3418,30 @@ type ActiveValidatorDetails = {
|
|
|
2803
3418
|
* Present for AddPermissionlessValidatorTx
|
|
2804
3419
|
*/
|
|
2805
3420
|
blsCredentials?: BlsCredentials;
|
|
3421
|
+
/**
|
|
3422
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3423
|
+
*/
|
|
2806
3424
|
stakePercentage: number;
|
|
3425
|
+
/**
|
|
3426
|
+
* The number of delegators linked to the validator.
|
|
3427
|
+
*/
|
|
2807
3428
|
delegatorCount: number;
|
|
3429
|
+
/**
|
|
3430
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3431
|
+
*/
|
|
2808
3432
|
amountDelegated?: string;
|
|
3433
|
+
/**
|
|
3434
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3435
|
+
*/
|
|
2809
3436
|
uptimePerformance: number;
|
|
2810
3437
|
avalancheGoVersion?: string;
|
|
3438
|
+
/**
|
|
3439
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3440
|
+
*/
|
|
2811
3441
|
delegationCapacity?: string;
|
|
3442
|
+
/**
|
|
3443
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3444
|
+
*/
|
|
2812
3445
|
potentialRewards: Rewards;
|
|
2813
3446
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2814
3447
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2824,6 +3457,9 @@ type CompletedValidatorDetails = {
|
|
|
2824
3457
|
nodeId: string;
|
|
2825
3458
|
subnetId: string;
|
|
2826
3459
|
amountStaked: string;
|
|
3460
|
+
/**
|
|
3461
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3462
|
+
*/
|
|
2827
3463
|
delegationFee?: string;
|
|
2828
3464
|
startTimestamp: number;
|
|
2829
3465
|
endTimestamp: number;
|
|
@@ -2847,6 +3483,9 @@ type PendingValidatorDetails = {
|
|
|
2847
3483
|
nodeId: string;
|
|
2848
3484
|
subnetId: string;
|
|
2849
3485
|
amountStaked: string;
|
|
3486
|
+
/**
|
|
3487
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3488
|
+
*/
|
|
2850
3489
|
delegationFee?: string;
|
|
2851
3490
|
startTimestamp: number;
|
|
2852
3491
|
endTimestamp: number;
|
|
@@ -2867,6 +3506,9 @@ type RemovedValidatorDetails = {
|
|
|
2867
3506
|
nodeId: string;
|
|
2868
3507
|
subnetId: string;
|
|
2869
3508
|
amountStaked: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3511
|
+
*/
|
|
2870
3512
|
delegationFee?: string;
|
|
2871
3513
|
startTimestamp: number;
|
|
2872
3514
|
endTimestamp: number;
|
|
@@ -2874,7 +3516,13 @@ type RemovedValidatorDetails = {
|
|
|
2874
3516
|
* Present for AddPermissionlessValidatorTx
|
|
2875
3517
|
*/
|
|
2876
3518
|
blsCredentials?: BlsCredentials;
|
|
3519
|
+
/**
|
|
3520
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3521
|
+
*/
|
|
2877
3522
|
removeTxHash: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3525
|
+
*/
|
|
2878
3526
|
removeTimestamp: number;
|
|
2879
3527
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2880
3528
|
};
|
|
@@ -3216,12 +3864,12 @@ declare class PrimaryNetworkService {
|
|
|
3216
3864
|
nodeIds?: string;
|
|
3217
3865
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3218
3866
|
/**
|
|
3219
|
-
* List
|
|
3220
|
-
* Lists details for
|
|
3221
|
-
* @returns
|
|
3867
|
+
* List L1 validators
|
|
3868
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3869
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3222
3870
|
* @throws ApiError
|
|
3223
3871
|
*/
|
|
3224
|
-
|
|
3872
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3225
3873
|
/**
|
|
3226
3874
|
* Either mainnet or testnet/fuji.
|
|
3227
3875
|
*/
|
|
@@ -3235,10 +3883,10 @@ declare class PrimaryNetworkService {
|
|
|
3235
3883
|
*/
|
|
3236
3884
|
pageSize?: number;
|
|
3237
3885
|
/**
|
|
3238
|
-
* The
|
|
3886
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3239
3887
|
*/
|
|
3240
|
-
|
|
3241
|
-
|
|
3888
|
+
l1ValidationId?: any;
|
|
3889
|
+
includeInactiveL1Validators?: boolean;
|
|
3242
3890
|
/**
|
|
3243
3891
|
* A valid node ID in format 'NodeID-HASH'.
|
|
3244
3892
|
*/
|
|
@@ -3247,7 +3895,7 @@ declare class PrimaryNetworkService {
|
|
|
3247
3895
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3248
3896
|
*/
|
|
3249
3897
|
subnetId?: any;
|
|
3250
|
-
}): CancelablePromise<
|
|
3898
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3251
3899
|
}
|
|
3252
3900
|
|
|
3253
3901
|
declare enum BlockchainId {
|
|
@@ -3494,8 +4142,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3494
4142
|
txCount: number;
|
|
3495
4143
|
transactions: Array<string>;
|
|
3496
4144
|
blockSizeBytes: number;
|
|
3497
|
-
|
|
3498
|
-
|
|
4145
|
+
l1ValidatorsAccruedFees?: number;
|
|
4146
|
+
activeL1Validators?: number;
|
|
3499
4147
|
currentSupply?: string;
|
|
3500
4148
|
proposerDetails?: ProposerDetails;
|
|
3501
4149
|
};
|
|
@@ -3509,8 +4157,8 @@ type PrimaryNetworkBlock = {
|
|
|
3509
4157
|
txCount: number;
|
|
3510
4158
|
transactions: Array<string>;
|
|
3511
4159
|
blockSizeBytes: number;
|
|
3512
|
-
|
|
3513
|
-
|
|
4160
|
+
l1ValidatorsAccruedFees?: number;
|
|
4161
|
+
activeL1Validators?: number;
|
|
3514
4162
|
currentSupply?: string;
|
|
3515
4163
|
proposerDetails?: ProposerDetails;
|
|
3516
4164
|
};
|
|
@@ -3553,7 +4201,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3553
4201
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3554
4202
|
* @throws ApiError
|
|
3555
4203
|
*/
|
|
3556
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4204
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3557
4205
|
/**
|
|
3558
4206
|
* A primary network blockchain id or alias.
|
|
3559
4207
|
*/
|
|
@@ -3566,6 +4214,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3566
4214
|
* A primary network (P or X chain) nodeId.
|
|
3567
4215
|
*/
|
|
3568
4216
|
nodeId: string;
|
|
4217
|
+
/**
|
|
4218
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4219
|
+
*/
|
|
4220
|
+
startTimestamp?: number;
|
|
4221
|
+
/**
|
|
4222
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4223
|
+
*/
|
|
4224
|
+
endTimestamp?: number;
|
|
3569
4225
|
/**
|
|
3570
4226
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3571
4227
|
*/
|
|
@@ -3581,7 +4237,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3581
4237
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3582
4238
|
* @throws ApiError
|
|
3583
4239
|
*/
|
|
3584
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4240
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3585
4241
|
/**
|
|
3586
4242
|
* A primary network blockchain id or alias.
|
|
3587
4243
|
*/
|
|
@@ -3590,6 +4246,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3590
4246
|
* Either mainnet or testnet/fuji.
|
|
3591
4247
|
*/
|
|
3592
4248
|
network: Network;
|
|
4249
|
+
/**
|
|
4250
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4251
|
+
*/
|
|
4252
|
+
startTimestamp?: number;
|
|
4253
|
+
/**
|
|
4254
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4255
|
+
*/
|
|
4256
|
+
endTimestamp?: number;
|
|
3593
4257
|
/**
|
|
3594
4258
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3595
4259
|
*/
|
|
@@ -3999,6 +4663,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3999
4663
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4000
4664
|
};
|
|
4001
4665
|
|
|
4666
|
+
type L1ValidatorDetailsTransaction = {
|
|
4667
|
+
/**
|
|
4668
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4669
|
+
*/
|
|
4670
|
+
validationId: string;
|
|
4671
|
+
nodeId: string;
|
|
4672
|
+
subnetId: string;
|
|
4673
|
+
/**
|
|
4674
|
+
* 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
|
|
4675
|
+
*/
|
|
4676
|
+
weight: number;
|
|
4677
|
+
/**
|
|
4678
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4679
|
+
*/
|
|
4680
|
+
remainingBalance: number;
|
|
4681
|
+
/**
|
|
4682
|
+
* 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
|
|
4683
|
+
*/
|
|
4684
|
+
balanceChange?: number;
|
|
4685
|
+
blsCredentials?: Record<string, any>;
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4002
4688
|
declare enum PChainTransactionType {
|
|
4003
4689
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
4004
4690
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -4015,14 +4701,17 @@ declare enum PChainTransactionType {
|
|
|
4015
4701
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4016
4702
|
BASE_TX = "BaseTx",
|
|
4017
4703
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4704
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4705
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4706
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4707
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4708
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4023
4709
|
UNKNOWN = "UNKNOWN"
|
|
4024
4710
|
}
|
|
4025
4711
|
|
|
4712
|
+
/**
|
|
4713
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4714
|
+
*/
|
|
4026
4715
|
declare enum UtxoType {
|
|
4027
4716
|
STAKE = "STAKE",
|
|
4028
4717
|
TRANSFER = "TRANSFER"
|
|
@@ -4060,25 +4749,47 @@ type PChainUtxo = {
|
|
|
4060
4749
|
assetId: string;
|
|
4061
4750
|
blockNumber: string;
|
|
4062
4751
|
blockTimestamp: number;
|
|
4752
|
+
/**
|
|
4753
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4754
|
+
*/
|
|
4063
4755
|
consumingBlockNumber?: string;
|
|
4756
|
+
/**
|
|
4757
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4758
|
+
*/
|
|
4064
4759
|
consumingBlockTimestamp?: number;
|
|
4760
|
+
/**
|
|
4761
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4762
|
+
*/
|
|
4065
4763
|
platformLocktime?: number;
|
|
4764
|
+
/**
|
|
4765
|
+
* The index of the UTXO in the transaction
|
|
4766
|
+
*/
|
|
4066
4767
|
outputIndex: number;
|
|
4067
4768
|
rewardType?: RewardType;
|
|
4769
|
+
/**
|
|
4770
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4771
|
+
*/
|
|
4068
4772
|
stakeableLocktime?: number;
|
|
4069
4773
|
staked?: boolean;
|
|
4774
|
+
/**
|
|
4775
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4776
|
+
*/
|
|
4070
4777
|
threshold?: number;
|
|
4778
|
+
/**
|
|
4779
|
+
* The hash of the transaction that created this UTXO
|
|
4780
|
+
*/
|
|
4071
4781
|
txHash: string;
|
|
4782
|
+
/**
|
|
4783
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4784
|
+
*/
|
|
4072
4785
|
utxoEndTimestamp?: number;
|
|
4786
|
+
/**
|
|
4787
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4788
|
+
*/
|
|
4073
4789
|
utxoStartTimestamp?: number;
|
|
4074
4790
|
utxoType: UtxoType;
|
|
4075
4791
|
};
|
|
4076
4792
|
|
|
4077
|
-
type SubnetValidatorManagerDetails = {
|
|
4078
|
-
blockchainId: string;
|
|
4079
|
-
evmContractAddress: string;
|
|
4080
|
-
};
|
|
4081
|
-
|
|
4082
4793
|
type PChainTransaction = {
|
|
4083
4794
|
/**
|
|
4084
4795
|
* A P-Chain transaction hash.
|
|
@@ -4089,9 +4800,18 @@ type PChainTransaction = {
|
|
|
4089
4800
|
* The block finality timestamp.
|
|
4090
4801
|
*/
|
|
4091
4802
|
blockTimestamp: number;
|
|
4803
|
+
/**
|
|
4804
|
+
* The height of the block in which the transaction was included
|
|
4805
|
+
*/
|
|
4092
4806
|
blockNumber: string;
|
|
4093
4807
|
blockHash: string;
|
|
4808
|
+
/**
|
|
4809
|
+
* The consumed UTXOs of the transaction
|
|
4810
|
+
*/
|
|
4094
4811
|
consumedUtxos: Array<PChainUtxo>;
|
|
4812
|
+
/**
|
|
4813
|
+
* The newly created UTXOs of the transaction
|
|
4814
|
+
*/
|
|
4095
4815
|
emittedUtxos: Array<PChainUtxo>;
|
|
4096
4816
|
/**
|
|
4097
4817
|
* Source chain for an atomic transaction.
|
|
@@ -4102,11 +4822,11 @@ type PChainTransaction = {
|
|
|
4102
4822
|
*/
|
|
4103
4823
|
destinationChain?: string;
|
|
4104
4824
|
/**
|
|
4105
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4825
|
+
* 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
|
|
4106
4826
|
*/
|
|
4107
4827
|
value: Array<AssetAmount>;
|
|
4108
4828
|
/**
|
|
4109
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4829
|
+
* 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
|
|
4110
4830
|
*/
|
|
4111
4831
|
amountBurned: Array<AssetAmount>;
|
|
4112
4832
|
/**
|
|
@@ -4114,9 +4834,9 @@ type PChainTransaction = {
|
|
|
4114
4834
|
*/
|
|
4115
4835
|
amountStaked: Array<AssetAmount>;
|
|
4116
4836
|
/**
|
|
4117
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4837
|
+
* 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.
|
|
4118
4838
|
*/
|
|
4119
|
-
|
|
4839
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4120
4840
|
/**
|
|
4121
4841
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4122
4842
|
*/
|
|
@@ -4126,11 +4846,11 @@ type PChainTransaction = {
|
|
|
4126
4846
|
*/
|
|
4127
4847
|
endTimestamp?: number;
|
|
4128
4848
|
/**
|
|
4129
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4849
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4130
4850
|
*/
|
|
4131
4851
|
delegationFeePercent?: string;
|
|
4132
4852
|
/**
|
|
4133
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4853
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4134
4854
|
*/
|
|
4135
4855
|
nodeId?: string;
|
|
4136
4856
|
/**
|
|
@@ -4138,22 +4858,25 @@ type PChainTransaction = {
|
|
|
4138
4858
|
*/
|
|
4139
4859
|
subnetId?: string;
|
|
4140
4860
|
/**
|
|
4141
|
-
* Present for
|
|
4861
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4142
4862
|
*/
|
|
4143
|
-
|
|
4863
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4144
4864
|
/**
|
|
4145
|
-
*
|
|
4865
|
+
* 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
|
|
4146
4866
|
*/
|
|
4147
|
-
|
|
4867
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4148
4868
|
/**
|
|
4149
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4869
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4150
4870
|
*/
|
|
4151
4871
|
estimatedReward?: string;
|
|
4872
|
+
/**
|
|
4873
|
+
* Reward transaction hash for the completed validations or delegations
|
|
4874
|
+
*/
|
|
4152
4875
|
rewardTxHash?: string;
|
|
4153
4876
|
rewardAddresses?: Array<string>;
|
|
4154
4877
|
memo?: string;
|
|
4155
4878
|
/**
|
|
4156
|
-
*
|
|
4879
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4157
4880
|
*/
|
|
4158
4881
|
stakingTxHash?: string;
|
|
4159
4882
|
/**
|
|
@@ -4161,7 +4884,7 @@ type PChainTransaction = {
|
|
|
4161
4884
|
*/
|
|
4162
4885
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4163
4886
|
/**
|
|
4164
|
-
* Present for AddPermissionlessValidatorTx
|
|
4887
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4165
4888
|
*/
|
|
4166
4889
|
blsCredentials?: BlsCredentials;
|
|
4167
4890
|
};
|
|
@@ -4346,11 +5069,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4346
5069
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4347
5070
|
BASE_TX = "BaseTx",
|
|
4348
5071
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
5072
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5073
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5074
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5075
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5076
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4354
5077
|
UNKNOWN = "UNKNOWN",
|
|
4355
5078
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4356
5079
|
OPERATION_TX = "OperationTx"
|
|
@@ -4385,11 +5108,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4385
5108
|
*
|
|
4386
5109
|
* 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.
|
|
4387
5110
|
*
|
|
5111
|
+
* 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.
|
|
5112
|
+
*
|
|
4388
5113
|
* 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.
|
|
4389
5114
|
* @returns any Successful response
|
|
4390
5115
|
* @throws ApiError
|
|
4391
5116
|
*/
|
|
4392
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5117
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4393
5118
|
/**
|
|
4394
5119
|
* A primary network blockchain id or alias.
|
|
4395
5120
|
*/
|
|
@@ -4402,6 +5127,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4402
5127
|
* 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.
|
|
4403
5128
|
*/
|
|
4404
5129
|
addresses?: string;
|
|
5130
|
+
l1ValidationId?: string;
|
|
4405
5131
|
/**
|
|
4406
5132
|
* Query param for filtering items based on transaction types.
|
|
4407
5133
|
*/
|
|
@@ -4682,13 +5408,7 @@ type SignatureAggregationResponse = {
|
|
|
4682
5408
|
};
|
|
4683
5409
|
|
|
4684
5410
|
type SignatureAggregatorRequest = {
|
|
4685
|
-
|
|
4686
|
-
* Must be defined if justification is not defined
|
|
4687
|
-
*/
|
|
4688
|
-
message?: string;
|
|
4689
|
-
/**
|
|
4690
|
-
* Must be defined if message is not defined
|
|
4691
|
-
*/
|
|
5411
|
+
message: string;
|
|
4692
5412
|
justification?: string;
|
|
4693
5413
|
signingSubnetId?: string;
|
|
4694
5414
|
quorumPercentage?: number;
|
|
@@ -4703,7 +5423,11 @@ declare class SignatureAggregatorService {
|
|
|
4703
5423
|
* @returns SignatureAggregationResponse Successful response
|
|
4704
5424
|
* @throws ApiError
|
|
4705
5425
|
*/
|
|
4706
|
-
aggregateSignatures({ requestBody, }: {
|
|
5426
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5427
|
+
/**
|
|
5428
|
+
* Either mainnet or testnet/fuji.
|
|
5429
|
+
*/
|
|
5430
|
+
network: Network;
|
|
4707
5431
|
requestBody: SignatureAggregatorRequest;
|
|
4708
5432
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4709
5433
|
}
|
|
@@ -4846,8 +5570,10 @@ declare class TeleporterService {
|
|
|
4846
5570
|
readonly httpRequest: BaseHttpRequest;
|
|
4847
5571
|
constructor(httpRequest: BaseHttpRequest);
|
|
4848
5572
|
/**
|
|
4849
|
-
*
|
|
4850
|
-
* Gets a teleporter message by message ID.
|
|
5573
|
+
* @deprecated
|
|
5574
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5575
|
+
*
|
|
5576
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4851
5577
|
* @returns any Successful response
|
|
4852
5578
|
* @throws ApiError
|
|
4853
5579
|
*/
|
|
@@ -4858,8 +5584,10 @@ declare class TeleporterService {
|
|
|
4858
5584
|
messageId: string;
|
|
4859
5585
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4860
5586
|
/**
|
|
4861
|
-
*
|
|
4862
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5587
|
+
* @deprecated
|
|
5588
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5589
|
+
*
|
|
5590
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4863
5591
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4864
5592
|
* @throws ApiError
|
|
4865
5593
|
*/
|
|
@@ -4898,8 +5626,10 @@ declare class TeleporterService {
|
|
|
4898
5626
|
network?: Network;
|
|
4899
5627
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4900
5628
|
/**
|
|
4901
|
-
*
|
|
4902
|
-
* Lists teleporter messages by address. Ordered by
|
|
5629
|
+
* @deprecated
|
|
5630
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5631
|
+
*
|
|
5632
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4903
5633
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4904
5634
|
* @throws ApiError
|
|
4905
5635
|
*/
|
|
@@ -4953,7 +5683,7 @@ type CreateWebhookRequest = {
|
|
|
4953
5683
|
name?: string;
|
|
4954
5684
|
description?: string;
|
|
4955
5685
|
/**
|
|
4956
|
-
* Whether to include traces in the webhook payload.
|
|
5686
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4957
5687
|
*/
|
|
4958
5688
|
includeInternalTxs?: boolean;
|
|
4959
5689
|
/**
|
|
@@ -5013,6 +5743,9 @@ type UpdateWebhookRequest = {
|
|
|
5013
5743
|
description?: string;
|
|
5014
5744
|
url?: string;
|
|
5015
5745
|
status?: WebhookStatusType;
|
|
5746
|
+
/**
|
|
5747
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5748
|
+
*/
|
|
5016
5749
|
includeInternalTxs?: boolean;
|
|
5017
5750
|
includeLogs?: boolean;
|
|
5018
5751
|
};
|
|
@@ -5163,6 +5896,7 @@ declare class Glacier {
|
|
|
5163
5896
|
readonly evmContracts: EvmContractsService;
|
|
5164
5897
|
readonly evmTransactions: EvmTransactionsService;
|
|
5165
5898
|
readonly healthCheck: HealthCheckService;
|
|
5899
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5166
5900
|
readonly nfTs: NfTsService;
|
|
5167
5901
|
readonly operations: OperationsService;
|
|
5168
5902
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
@@ -5327,4 +6061,4 @@ type Unauthorized = {
|
|
|
5327
6061
|
error: string;
|
|
5328
6062
|
};
|
|
5329
6063
|
|
|
5330
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics,
|
|
6064
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, 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, HealthCheckService, 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, 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, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|