@avalabs/glacier-sdk 3.1.0-canary.805b421.0 → 3.1.0-canary.85a0322.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 +939 -246
- 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 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/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 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.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 +4 -0
- 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 +72 -22
- 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 +72 -6
- 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 +34 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/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 +19 -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,34 @@ 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
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
167
|
+
RPC_METHOD = "rpcMethod",
|
|
168
|
+
RESPONSE_CODE = "responseCode",
|
|
169
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
173
|
+
HOURLY = "hourly",
|
|
174
|
+
DAILY = "daily",
|
|
175
|
+
WEEKLY = "weekly",
|
|
176
|
+
MONTHLY = "monthly"
|
|
177
|
+
}
|
|
178
|
+
|
|
151
179
|
type RpcUsageMetricsValueAggregated = {
|
|
152
180
|
/**
|
|
153
181
|
* The total number of requests
|
|
@@ -173,6 +201,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
201
|
* The number of invalid requests
|
|
174
202
|
*/
|
|
175
203
|
invalidRequests: number;
|
|
204
|
+
/**
|
|
205
|
+
* The number of API credits wasted on invalid requests
|
|
206
|
+
*/
|
|
207
|
+
apiCreditsWasted: number;
|
|
176
208
|
/**
|
|
177
209
|
* Column name used for data aggregation
|
|
178
210
|
*/
|
|
@@ -205,19 +237,19 @@ type RpcMetrics = {
|
|
|
205
237
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
238
|
};
|
|
207
239
|
|
|
208
|
-
type
|
|
240
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
209
241
|
/**
|
|
210
242
|
* Duration in which the metrics value is aggregated
|
|
211
243
|
*/
|
|
212
244
|
aggregateDuration: string;
|
|
213
|
-
/**
|
|
214
|
-
* ChainId for which the metrics are aggregated
|
|
215
|
-
*/
|
|
216
|
-
chainId: string;
|
|
217
245
|
/**
|
|
218
246
|
* Metrics values
|
|
219
247
|
*/
|
|
220
248
|
metrics: Array<RpcMetrics>;
|
|
249
|
+
/**
|
|
250
|
+
* ChainId for which the metrics are aggregated
|
|
251
|
+
*/
|
|
252
|
+
chainId: string;
|
|
221
253
|
};
|
|
222
254
|
|
|
223
255
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +355,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
355
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
356
|
* @throws ApiError
|
|
325
357
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
358
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
359
|
/**
|
|
328
360
|
* Organization ID to fetch usage metrics for
|
|
329
361
|
*/
|
|
@@ -348,10 +380,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
380
|
* Filter data by chain ID.
|
|
349
381
|
*/
|
|
350
382
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
383
|
/**
|
|
356
384
|
* Filter data by response status code.
|
|
357
385
|
*/
|
|
@@ -364,6 +392,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
392
|
* Filter data by API key ID.
|
|
365
393
|
*/
|
|
366
394
|
apiKeyId?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Filter data by request path.
|
|
397
|
+
*/
|
|
398
|
+
requestPath?: string;
|
|
367
399
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
400
|
/**
|
|
369
401
|
* Get logs for requests made by client
|
|
@@ -371,7 +403,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
403
|
* @returns LogsResponseDTO Successful response
|
|
372
404
|
* @throws ApiError
|
|
373
405
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
406
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
407
|
/**
|
|
376
408
|
* Organization ID to fetch usage metrics for
|
|
377
409
|
*/
|
|
@@ -388,10 +420,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
420
|
* Filter data by chain ID.
|
|
389
421
|
*/
|
|
390
422
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
423
|
/**
|
|
396
424
|
* Filter data by response status code.
|
|
397
425
|
*/
|
|
@@ -404,6 +432,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
432
|
* Filter data by API key ID.
|
|
405
433
|
*/
|
|
406
434
|
apiKeyId?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Filter data by request path.
|
|
437
|
+
*/
|
|
438
|
+
requestPath?: string;
|
|
407
439
|
/**
|
|
408
440
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
441
|
*/
|
|
@@ -415,15 +447,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
447
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
448
|
/**
|
|
417
449
|
* 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
|
|
450
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
451
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
420
452
|
* @throws ApiError
|
|
421
453
|
*/
|
|
422
|
-
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId,
|
|
454
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
455
|
/**
|
|
424
|
-
*
|
|
456
|
+
* Time interval granularity for data aggregation for subnet
|
|
457
|
+
* rpc metrics
|
|
425
458
|
*/
|
|
426
|
-
timeInterval?:
|
|
459
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
460
|
/**
|
|
428
461
|
* 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
462
|
*/
|
|
@@ -435,15 +468,11 @@ declare class DataApiUsageMetricsService {
|
|
|
435
468
|
/**
|
|
436
469
|
* Query param for the criterion used for grouping metrics
|
|
437
470
|
*/
|
|
438
|
-
groupBy?:
|
|
471
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
472
|
/**
|
|
440
473
|
* Filter data by chain ID.
|
|
441
474
|
*/
|
|
442
475
|
chainId?: string;
|
|
443
|
-
/**
|
|
444
|
-
* Filter data by request path.
|
|
445
|
-
*/
|
|
446
|
-
requestPath?: string;
|
|
447
476
|
/**
|
|
448
477
|
* Filter data by response status code.
|
|
449
478
|
*/
|
|
@@ -456,7 +485,56 @@ declare class DataApiUsageMetricsService {
|
|
|
456
485
|
* Filter data by Rl Bypass API Token.
|
|
457
486
|
*/
|
|
458
487
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
488
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
489
|
+
/**
|
|
490
|
+
* Get usage metrics for the Primary Network RPC
|
|
491
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
493
|
+
* @throws ApiError
|
|
494
|
+
*/
|
|
495
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
496
|
+
/**
|
|
497
|
+
* Either mainnet or testnet/fuji.
|
|
498
|
+
*/
|
|
499
|
+
network: Network;
|
|
500
|
+
/**
|
|
501
|
+
* Time interval granularity for data aggregation for subnet
|
|
502
|
+
* rpc metrics
|
|
503
|
+
*/
|
|
504
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
505
|
+
/**
|
|
506
|
+
* 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.
|
|
507
|
+
*/
|
|
508
|
+
startTimestamp?: number;
|
|
509
|
+
/**
|
|
510
|
+
* 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.
|
|
511
|
+
*/
|
|
512
|
+
endTimestamp?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Query param for the criterion used for grouping metrics
|
|
515
|
+
*/
|
|
516
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
517
|
+
/**
|
|
518
|
+
* Filter data by response status code.
|
|
519
|
+
*/
|
|
520
|
+
responseCode?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Filter data by request path.
|
|
523
|
+
*/
|
|
524
|
+
requestPath?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Filter data by Country.
|
|
527
|
+
*/
|
|
528
|
+
country?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by Continent.
|
|
531
|
+
*/
|
|
532
|
+
continent?: string;
|
|
533
|
+
/**
|
|
534
|
+
* Filter data by User Agent.
|
|
535
|
+
*/
|
|
536
|
+
userAgent?: string;
|
|
537
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
460
538
|
}
|
|
461
539
|
|
|
462
540
|
declare class DefaultService {
|
|
@@ -655,6 +733,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
733
|
* 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
734
|
*/
|
|
657
735
|
nextPageToken?: string;
|
|
736
|
+
/**
|
|
737
|
+
* The native token balance for the address.
|
|
738
|
+
*/
|
|
739
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
740
|
/**
|
|
659
741
|
* The list of ERC-1155 token balances for the address.
|
|
660
742
|
*/
|
|
@@ -699,11 +781,22 @@ type Erc20TokenBalance = {
|
|
|
699
781
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
782
|
*/
|
|
701
783
|
balanceValue?: Money;
|
|
784
|
+
/**
|
|
785
|
+
* 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.
|
|
786
|
+
*/
|
|
787
|
+
tokenReputation: Erc20TokenBalance.tokenReputation | null;
|
|
702
788
|
};
|
|
703
789
|
declare namespace Erc20TokenBalance {
|
|
704
790
|
enum ercType {
|
|
705
791
|
ERC_20 = "ERC-20"
|
|
706
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* 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.
|
|
795
|
+
*/
|
|
796
|
+
enum tokenReputation {
|
|
797
|
+
MALICIOUS = "Malicious",
|
|
798
|
+
BENIGN = "Benign"
|
|
799
|
+
}
|
|
707
800
|
}
|
|
708
801
|
|
|
709
802
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +804,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
804
|
* 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
805
|
*/
|
|
713
806
|
nextPageToken?: string;
|
|
807
|
+
/**
|
|
808
|
+
* The native token balance for the address.
|
|
809
|
+
*/
|
|
810
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
811
|
/**
|
|
715
812
|
* The list of ERC-20 token balances for the address.
|
|
716
813
|
*/
|
|
@@ -722,6 +819,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
819
|
* 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
820
|
*/
|
|
724
821
|
nextPageToken?: string;
|
|
822
|
+
/**
|
|
823
|
+
* The native token balance for the address.
|
|
824
|
+
*/
|
|
825
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
826
|
/**
|
|
726
827
|
* The list of ERC-721 token balances for the address.
|
|
727
828
|
*/
|
|
@@ -900,6 +1001,10 @@ declare class EvmBalancesService {
|
|
|
900
1001
|
}
|
|
901
1002
|
|
|
902
1003
|
type GetEvmBlockResponse = {
|
|
1004
|
+
/**
|
|
1005
|
+
* The EVM chain ID on which the block was created.
|
|
1006
|
+
*/
|
|
1007
|
+
chainId: string;
|
|
903
1008
|
/**
|
|
904
1009
|
* The block number on the chain.
|
|
905
1010
|
*/
|
|
@@ -944,6 +1049,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1049
|
};
|
|
945
1050
|
|
|
946
1051
|
type EvmBlock = {
|
|
1052
|
+
/**
|
|
1053
|
+
* The EVM chain ID on which the block was created.
|
|
1054
|
+
*/
|
|
1055
|
+
chainId: string;
|
|
947
1056
|
/**
|
|
948
1057
|
* The block number on the chain.
|
|
949
1058
|
*/
|
|
@@ -998,6 +1107,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1107
|
declare class EvmBlocksService {
|
|
999
1108
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1109
|
constructor(httpRequest: BaseHttpRequest);
|
|
1110
|
+
/**
|
|
1111
|
+
* List latest blocks across all supported EVM chains
|
|
1112
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1113
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1114
|
+
* @throws ApiError
|
|
1115
|
+
*/
|
|
1116
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1117
|
+
/**
|
|
1118
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1119
|
+
*/
|
|
1120
|
+
pageToken?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1123
|
+
*/
|
|
1124
|
+
pageSize?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Either mainnet or testnet/fuji.
|
|
1127
|
+
*/
|
|
1128
|
+
network?: Network;
|
|
1129
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1130
|
/**
|
|
1002
1131
|
* List latest blocks
|
|
1003
1132
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1120,23 +1249,145 @@ type ChainInfo = {
|
|
|
1120
1249
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1250
|
};
|
|
1122
1251
|
|
|
1252
|
+
type ListAddressChainsResponse = {
|
|
1253
|
+
indexedChains?: Array<ChainInfo>;
|
|
1254
|
+
unindexedChains?: Array<string>;
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1123
1257
|
type ListChainsResponse = {
|
|
1124
1258
|
chains: Array<ChainInfo>;
|
|
1125
1259
|
};
|
|
1126
1260
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1261
|
+
/**
|
|
1262
|
+
* 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.
|
|
1263
|
+
*/
|
|
1264
|
+
declare enum TransactionMethodType {
|
|
1265
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1266
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1267
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
type Method = {
|
|
1271
|
+
callType: TransactionMethodType;
|
|
1272
|
+
/**
|
|
1273
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1274
|
+
*/
|
|
1275
|
+
methodHash: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* 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'.
|
|
1278
|
+
*/
|
|
1279
|
+
methodName?: string;
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
type RichAddress = {
|
|
1283
|
+
/**
|
|
1284
|
+
* The contract name.
|
|
1285
|
+
*/
|
|
1286
|
+
name?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* The contract symbol.
|
|
1289
|
+
*/
|
|
1290
|
+
symbol?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1293
|
+
*/
|
|
1294
|
+
decimals?: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* The logo uri for the address.
|
|
1297
|
+
*/
|
|
1298
|
+
logoUri?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1301
|
+
*/
|
|
1302
|
+
address: string;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
type NativeTransaction = {
|
|
1306
|
+
/**
|
|
1307
|
+
* The block number on the chain.
|
|
1308
|
+
*/
|
|
1309
|
+
blockNumber: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* The block finality timestamp.
|
|
1312
|
+
*/
|
|
1313
|
+
blockTimestamp: number;
|
|
1314
|
+
/**
|
|
1315
|
+
* The block hash identifier.
|
|
1316
|
+
*/
|
|
1317
|
+
blockHash: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* The EVM chain ID on which the transaction occured.
|
|
1320
|
+
*/
|
|
1321
|
+
chainId: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1324
|
+
*/
|
|
1325
|
+
blockIndex: number;
|
|
1326
|
+
/**
|
|
1327
|
+
* The transaction hash identifier.
|
|
1328
|
+
*/
|
|
1329
|
+
txHash: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1332
|
+
*/
|
|
1333
|
+
txStatus: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* The transaction type.
|
|
1336
|
+
*/
|
|
1337
|
+
txType: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* The gas limit set for the transaction.
|
|
1340
|
+
*/
|
|
1341
|
+
gasLimit: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* The amount of gas used.
|
|
1344
|
+
*/
|
|
1345
|
+
gasUsed: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1348
|
+
*/
|
|
1349
|
+
gasPrice: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* The nonce used by the sender of the transaction.
|
|
1352
|
+
*/
|
|
1353
|
+
nonce: string;
|
|
1354
|
+
from: RichAddress;
|
|
1355
|
+
to: RichAddress;
|
|
1356
|
+
method?: Method;
|
|
1357
|
+
value: string;
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
type ListNativeTransactionsResponse = {
|
|
1361
|
+
/**
|
|
1362
|
+
* 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.
|
|
1363
|
+
*/
|
|
1364
|
+
nextPageToken?: string;
|
|
1365
|
+
transactions: Array<NativeTransaction>;
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1368
|
+
declare enum TransactionStatus {
|
|
1369
|
+
FAILED = "failed",
|
|
1370
|
+
SUCCESS = "success"
|
|
1132
1371
|
}
|
|
1133
1372
|
|
|
1134
1373
|
declare class EvmChainsService {
|
|
1135
1374
|
readonly httpRequest: BaseHttpRequest;
|
|
1136
1375
|
constructor(httpRequest: BaseHttpRequest);
|
|
1376
|
+
/**
|
|
1377
|
+
* List all chains associated with a given address
|
|
1378
|
+
* 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.
|
|
1379
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1380
|
+
* @throws ApiError
|
|
1381
|
+
*/
|
|
1382
|
+
listAddressChains({ address, }: {
|
|
1383
|
+
/**
|
|
1384
|
+
* A wallet address.
|
|
1385
|
+
*/
|
|
1386
|
+
address: string;
|
|
1387
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1137
1388
|
/**
|
|
1138
1389
|
* List chains
|
|
1139
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1390
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1140
1391
|
* @returns ListChainsResponse Successful response
|
|
1141
1392
|
* @throws ApiError
|
|
1142
1393
|
*/
|
|
@@ -1152,7 +1403,7 @@ declare class EvmChainsService {
|
|
|
1152
1403
|
}): CancelablePromise<ListChainsResponse>;
|
|
1153
1404
|
/**
|
|
1154
1405
|
* Get chain information
|
|
1155
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1406
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1156
1407
|
* @returns GetChainResponse Successful response
|
|
1157
1408
|
* @throws ApiError
|
|
1158
1409
|
*/
|
|
@@ -1163,9 +1414,11 @@ declare class EvmChainsService {
|
|
|
1163
1414
|
chainId: string;
|
|
1164
1415
|
}): CancelablePromise<GetChainResponse>;
|
|
1165
1416
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
* Gets
|
|
1168
|
-
*
|
|
1417
|
+
* @deprecated
|
|
1418
|
+
* **[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.
|
|
1419
|
+
*
|
|
1420
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1421
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1169
1422
|
* @throws ApiError
|
|
1170
1423
|
*/
|
|
1171
1424
|
getAddressChains({ address, }: {
|
|
@@ -1173,9 +1426,57 @@ declare class EvmChainsService {
|
|
|
1173
1426
|
* A wallet address.
|
|
1174
1427
|
*/
|
|
1175
1428
|
address: string;
|
|
1176
|
-
}): CancelablePromise<
|
|
1177
|
-
|
|
1178
|
-
|
|
1429
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1430
|
+
/**
|
|
1431
|
+
* @deprecated
|
|
1432
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1433
|
+
*
|
|
1434
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1435
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1436
|
+
* @throws ApiError
|
|
1437
|
+
*/
|
|
1438
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1439
|
+
/**
|
|
1440
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1441
|
+
*/
|
|
1442
|
+
pageToken?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1445
|
+
*/
|
|
1446
|
+
pageSize?: number;
|
|
1447
|
+
/**
|
|
1448
|
+
* Either mainnet or testnet/fuji.
|
|
1449
|
+
*/
|
|
1450
|
+
network?: Network;
|
|
1451
|
+
/**
|
|
1452
|
+
* A status filter for listed transactions.
|
|
1453
|
+
*/
|
|
1454
|
+
status?: TransactionStatus;
|
|
1455
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1456
|
+
/**
|
|
1457
|
+
* @deprecated
|
|
1458
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1459
|
+
*
|
|
1460
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1461
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1465
|
+
/**
|
|
1466
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
|
+
*/
|
|
1468
|
+
pageToken?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1471
|
+
*/
|
|
1472
|
+
pageSize?: number;
|
|
1473
|
+
/**
|
|
1474
|
+
* Either mainnet or testnet/fuji.
|
|
1475
|
+
*/
|
|
1476
|
+
network?: Network;
|
|
1477
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1179
1480
|
type ImageAsset = {
|
|
1180
1481
|
assetId?: string;
|
|
1181
1482
|
/**
|
|
@@ -1508,29 +1809,6 @@ declare namespace Erc1155Token {
|
|
|
1508
1809
|
}
|
|
1509
1810
|
}
|
|
1510
1811
|
|
|
1511
|
-
type RichAddress = {
|
|
1512
|
-
/**
|
|
1513
|
-
* The contract name.
|
|
1514
|
-
*/
|
|
1515
|
-
name?: string;
|
|
1516
|
-
/**
|
|
1517
|
-
* The contract symbol.
|
|
1518
|
-
*/
|
|
1519
|
-
symbol?: string;
|
|
1520
|
-
/**
|
|
1521
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1522
|
-
*/
|
|
1523
|
-
decimals?: number;
|
|
1524
|
-
/**
|
|
1525
|
-
* The logo uri for the address.
|
|
1526
|
-
*/
|
|
1527
|
-
logoUri?: string;
|
|
1528
|
-
/**
|
|
1529
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1530
|
-
*/
|
|
1531
|
-
address: string;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
1812
|
type Erc1155TransferDetails = {
|
|
1535
1813
|
from: RichAddress;
|
|
1536
1814
|
to: RichAddress;
|
|
@@ -1615,27 +1893,6 @@ type Erc721TransferDetails = {
|
|
|
1615
1893
|
erc721Token: Erc721Token;
|
|
1616
1894
|
};
|
|
1617
1895
|
|
|
1618
|
-
/**
|
|
1619
|
-
* 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.
|
|
1620
|
-
*/
|
|
1621
|
-
declare enum TransactionMethodType {
|
|
1622
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1623
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1624
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
type Method = {
|
|
1628
|
-
callType: TransactionMethodType;
|
|
1629
|
-
/**
|
|
1630
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1631
|
-
*/
|
|
1632
|
-
methodHash: string;
|
|
1633
|
-
/**
|
|
1634
|
-
* 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'.
|
|
1635
|
-
*/
|
|
1636
|
-
methodName?: string;
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
1896
|
type FullNativeTransactionDetails = {
|
|
1640
1897
|
/**
|
|
1641
1898
|
* The block number on the chain.
|
|
@@ -1649,6 +1906,10 @@ type FullNativeTransactionDetails = {
|
|
|
1649
1906
|
* The block hash identifier.
|
|
1650
1907
|
*/
|
|
1651
1908
|
blockHash: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* The EVM chain ID on which the transaction occured.
|
|
1911
|
+
*/
|
|
1912
|
+
chainId: string;
|
|
1652
1913
|
/**
|
|
1653
1914
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1654
1915
|
*/
|
|
@@ -1912,65 +2173,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1912
2173
|
transactions: Array<InternalTransaction>;
|
|
1913
2174
|
};
|
|
1914
2175
|
|
|
1915
|
-
type NativeTransaction = {
|
|
1916
|
-
/**
|
|
1917
|
-
* The block number on the chain.
|
|
1918
|
-
*/
|
|
1919
|
-
blockNumber: string;
|
|
1920
|
-
/**
|
|
1921
|
-
* The block finality timestamp.
|
|
1922
|
-
*/
|
|
1923
|
-
blockTimestamp: number;
|
|
1924
|
-
/**
|
|
1925
|
-
* The block hash identifier.
|
|
1926
|
-
*/
|
|
1927
|
-
blockHash: string;
|
|
1928
|
-
/**
|
|
1929
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1930
|
-
*/
|
|
1931
|
-
blockIndex: number;
|
|
1932
|
-
/**
|
|
1933
|
-
* The transaction hash identifier.
|
|
1934
|
-
*/
|
|
1935
|
-
txHash: string;
|
|
1936
|
-
/**
|
|
1937
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1938
|
-
*/
|
|
1939
|
-
txStatus: string;
|
|
1940
|
-
/**
|
|
1941
|
-
* The transaction type.
|
|
1942
|
-
*/
|
|
1943
|
-
txType: number;
|
|
1944
|
-
/**
|
|
1945
|
-
* The gas limit set for the transaction.
|
|
1946
|
-
*/
|
|
1947
|
-
gasLimit: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* The amount of gas used.
|
|
1950
|
-
*/
|
|
1951
|
-
gasUsed: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1954
|
-
*/
|
|
1955
|
-
gasPrice: string;
|
|
1956
|
-
/**
|
|
1957
|
-
* The nonce used by the sender of the transaction.
|
|
1958
|
-
*/
|
|
1959
|
-
nonce: string;
|
|
1960
|
-
from: RichAddress;
|
|
1961
|
-
to: RichAddress;
|
|
1962
|
-
method?: Method;
|
|
1963
|
-
value: string;
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
|
-
type ListNativeTransactionsResponse = {
|
|
1967
|
-
/**
|
|
1968
|
-
* 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.
|
|
1969
|
-
*/
|
|
1970
|
-
nextPageToken?: string;
|
|
1971
|
-
transactions: Array<NativeTransaction>;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
2176
|
type TransactionDetails = {
|
|
1975
2177
|
/**
|
|
1976
2178
|
* The native (top-level) transaction details.
|
|
@@ -2015,14 +2217,33 @@ declare enum SortOrder {
|
|
|
2015
2217
|
DESC = "desc"
|
|
2016
2218
|
}
|
|
2017
2219
|
|
|
2018
|
-
declare enum TransactionStatus {
|
|
2019
|
-
FAILED = "failed",
|
|
2020
|
-
SUCCESS = "success"
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
2220
|
declare class EvmTransactionsService {
|
|
2024
2221
|
readonly httpRequest: BaseHttpRequest;
|
|
2025
2222
|
constructor(httpRequest: BaseHttpRequest);
|
|
2223
|
+
/**
|
|
2224
|
+
* List the latest transactions across all supported EVM chains
|
|
2225
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2226
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2230
|
+
/**
|
|
2231
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2232
|
+
*/
|
|
2233
|
+
pageToken?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2236
|
+
*/
|
|
2237
|
+
pageSize?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Either mainnet or testnet/fuji.
|
|
2240
|
+
*/
|
|
2241
|
+
network?: Network;
|
|
2242
|
+
/**
|
|
2243
|
+
* A status filter for listed transactions.
|
|
2244
|
+
*/
|
|
2245
|
+
status?: TransactionStatus;
|
|
2246
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2026
2247
|
/**
|
|
2027
2248
|
* Get deployment transaction
|
|
2028
2249
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2287,9 +2508,256 @@ declare class EvmTransactionsService {
|
|
|
2287
2508
|
*/
|
|
2288
2509
|
startBlock?: number;
|
|
2289
2510
|
/**
|
|
2290
|
-
* 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.
|
|
2511
|
+
* 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.
|
|
2512
|
+
*/
|
|
2513
|
+
endBlock?: number;
|
|
2514
|
+
/**
|
|
2515
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2516
|
+
*/
|
|
2517
|
+
pageToken?: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2520
|
+
*/
|
|
2521
|
+
pageSize?: number;
|
|
2522
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2523
|
+
/**
|
|
2524
|
+
* Get transaction
|
|
2525
|
+
* Gets the details of a single transaction.
|
|
2526
|
+
* @returns GetTransactionResponse Successful response
|
|
2527
|
+
* @throws ApiError
|
|
2528
|
+
*/
|
|
2529
|
+
getTransaction({ chainId, txHash, }: {
|
|
2530
|
+
/**
|
|
2531
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2532
|
+
*/
|
|
2533
|
+
chainId: string;
|
|
2534
|
+
/**
|
|
2535
|
+
* A transaction hash.
|
|
2536
|
+
*/
|
|
2537
|
+
txHash: string;
|
|
2538
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
2539
|
+
/**
|
|
2540
|
+
* List transactions for a block
|
|
2541
|
+
* Lists the transactions that occured in a given block.
|
|
2542
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2543
|
+
* @throws ApiError
|
|
2544
|
+
*/
|
|
2545
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2546
|
+
/**
|
|
2547
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2548
|
+
*/
|
|
2549
|
+
chainId: string;
|
|
2550
|
+
/**
|
|
2551
|
+
* A block identifier which is either a block number or the block hash.
|
|
2552
|
+
*/
|
|
2553
|
+
blockId: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2556
|
+
*/
|
|
2557
|
+
pageToken?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2560
|
+
*/
|
|
2561
|
+
pageSize?: number;
|
|
2562
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2563
|
+
/**
|
|
2564
|
+
* List latest transactions
|
|
2565
|
+
* Lists the latest transactions. Filterable by status.
|
|
2566
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2567
|
+
* @throws ApiError
|
|
2568
|
+
*/
|
|
2569
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2570
|
+
/**
|
|
2571
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2572
|
+
*/
|
|
2573
|
+
chainId: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2576
|
+
*/
|
|
2577
|
+
pageToken?: string;
|
|
2578
|
+
/**
|
|
2579
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2580
|
+
*/
|
|
2581
|
+
pageSize?: number;
|
|
2582
|
+
/**
|
|
2583
|
+
* A status filter for listed transactions.
|
|
2584
|
+
*/
|
|
2585
|
+
status?: TransactionStatus;
|
|
2586
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
declare class HealthCheckService {
|
|
2590
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2591
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2592
|
+
/**
|
|
2593
|
+
* Get the health of the service
|
|
2594
|
+
* @returns any The Health Check is successful
|
|
2595
|
+
* @throws ApiError
|
|
2596
|
+
*/
|
|
2597
|
+
dataHealthCheck(): CancelablePromise<{
|
|
2598
|
+
status?: string;
|
|
2599
|
+
info?: Record<string, Record<string, string>> | null;
|
|
2600
|
+
error?: Record<string, Record<string, string>> | null;
|
|
2601
|
+
details?: Record<string, Record<string, string>>;
|
|
2602
|
+
}>;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
type IcmDestinationTransaction = {
|
|
2606
|
+
txHash: string;
|
|
2607
|
+
timestamp: number;
|
|
2608
|
+
gasSpent: string;
|
|
2609
|
+
rewardRedeemer: string;
|
|
2610
|
+
delivererAddress: string;
|
|
2611
|
+
};
|
|
2612
|
+
|
|
2613
|
+
type IcmReceipt = {
|
|
2614
|
+
receivedMessageNonce: string;
|
|
2615
|
+
relayerRewardAddress: string;
|
|
2616
|
+
};
|
|
2617
|
+
|
|
2618
|
+
type IcmRewardDetails = {
|
|
2619
|
+
/**
|
|
2620
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2621
|
+
*/
|
|
2622
|
+
address: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* The contract name.
|
|
2625
|
+
*/
|
|
2626
|
+
name: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* The contract symbol.
|
|
2629
|
+
*/
|
|
2630
|
+
symbol: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2633
|
+
*/
|
|
2634
|
+
decimals: number;
|
|
2635
|
+
/**
|
|
2636
|
+
* The logo uri for the address.
|
|
2637
|
+
*/
|
|
2638
|
+
logoUri?: string;
|
|
2639
|
+
ercType: IcmRewardDetails.ercType;
|
|
2640
|
+
/**
|
|
2641
|
+
* The token price, if available.
|
|
2642
|
+
*/
|
|
2643
|
+
price?: Money;
|
|
2644
|
+
value: string;
|
|
2645
|
+
};
|
|
2646
|
+
declare namespace IcmRewardDetails {
|
|
2647
|
+
enum ercType {
|
|
2648
|
+
ERC_20 = "ERC-20"
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
type IcmSourceTransaction = {
|
|
2653
|
+
txHash: string;
|
|
2654
|
+
timestamp: number;
|
|
2655
|
+
gasSpent: string;
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
type DeliveredIcmMessage = {
|
|
2659
|
+
messageId: string;
|
|
2660
|
+
icmContractAddress: string;
|
|
2661
|
+
sourceBlockchainId: string;
|
|
2662
|
+
destinationBlockchainId: string;
|
|
2663
|
+
sourceEvmChainId: string;
|
|
2664
|
+
destinationEvmChainId: string;
|
|
2665
|
+
messageNonce: string;
|
|
2666
|
+
from: string;
|
|
2667
|
+
to: string;
|
|
2668
|
+
data?: string;
|
|
2669
|
+
messageExecuted: boolean;
|
|
2670
|
+
receipts: Array<IcmReceipt>;
|
|
2671
|
+
receiptDelivered: boolean;
|
|
2672
|
+
rewardDetails: IcmRewardDetails;
|
|
2673
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2674
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2675
|
+
status: DeliveredIcmMessage.status;
|
|
2676
|
+
};
|
|
2677
|
+
declare namespace DeliveredIcmMessage {
|
|
2678
|
+
enum status {
|
|
2679
|
+
DELIVERED = "delivered"
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2684
|
+
messageId: string;
|
|
2685
|
+
icmContractAddress: string;
|
|
2686
|
+
sourceBlockchainId: string;
|
|
2687
|
+
destinationBlockchainId: string;
|
|
2688
|
+
sourceEvmChainId: string;
|
|
2689
|
+
destinationEvmChainId: string;
|
|
2690
|
+
messageNonce: string;
|
|
2691
|
+
from: string;
|
|
2692
|
+
to: string;
|
|
2693
|
+
data?: string;
|
|
2694
|
+
messageExecuted: boolean;
|
|
2695
|
+
receipts: Array<IcmReceipt>;
|
|
2696
|
+
receiptDelivered: boolean;
|
|
2697
|
+
rewardDetails: IcmRewardDetails;
|
|
2698
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2699
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2700
|
+
};
|
|
2701
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2702
|
+
enum status {
|
|
2703
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
type PendingIcmMessage = {
|
|
2708
|
+
messageId: string;
|
|
2709
|
+
icmContractAddress: string;
|
|
2710
|
+
sourceBlockchainId: string;
|
|
2711
|
+
destinationBlockchainId: string;
|
|
2712
|
+
sourceEvmChainId: string;
|
|
2713
|
+
destinationEvmChainId: string;
|
|
2714
|
+
messageNonce: string;
|
|
2715
|
+
from: string;
|
|
2716
|
+
to: string;
|
|
2717
|
+
data?: string;
|
|
2718
|
+
messageExecuted: boolean;
|
|
2719
|
+
receipts: Array<IcmReceipt>;
|
|
2720
|
+
receiptDelivered: boolean;
|
|
2721
|
+
rewardDetails: IcmRewardDetails;
|
|
2722
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2723
|
+
status: PendingIcmMessage.status;
|
|
2724
|
+
};
|
|
2725
|
+
declare namespace PendingIcmMessage {
|
|
2726
|
+
enum status {
|
|
2727
|
+
PENDING = "pending"
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
type ListIcmMessagesResponse = {
|
|
2732
|
+
/**
|
|
2733
|
+
* 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.
|
|
2734
|
+
*/
|
|
2735
|
+
nextPageToken?: string;
|
|
2736
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
declare class InterchainMessagingService {
|
|
2740
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2741
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2742
|
+
/**
|
|
2743
|
+
* Get an ICM message
|
|
2744
|
+
* Gets an ICM message by message ID.
|
|
2745
|
+
* @returns any Successful response
|
|
2746
|
+
* @throws ApiError
|
|
2747
|
+
*/
|
|
2748
|
+
getIcmMessage({ messageId, }: {
|
|
2749
|
+
/**
|
|
2750
|
+
* The message ID of the ICM message.
|
|
2291
2751
|
*/
|
|
2292
|
-
|
|
2752
|
+
messageId: string;
|
|
2753
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2754
|
+
/**
|
|
2755
|
+
* List ICM messages
|
|
2756
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2757
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2758
|
+
* @throws ApiError
|
|
2759
|
+
*/
|
|
2760
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2293
2761
|
/**
|
|
2294
2762
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2295
2763
|
*/
|
|
@@ -2298,50 +2766,42 @@ declare class EvmTransactionsService {
|
|
|
2298
2766
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2299
2767
|
*/
|
|
2300
2768
|
pageSize?: number;
|
|
2301
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2302
|
-
/**
|
|
2303
|
-
* Get transaction
|
|
2304
|
-
* Gets the details of a single transaction.
|
|
2305
|
-
* @returns GetTransactionResponse Successful response
|
|
2306
|
-
* @throws ApiError
|
|
2307
|
-
*/
|
|
2308
|
-
getTransaction({ chainId, txHash, }: {
|
|
2309
2769
|
/**
|
|
2310
|
-
*
|
|
2770
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2311
2771
|
*/
|
|
2312
|
-
|
|
2772
|
+
sourceBlockchainId?: string;
|
|
2313
2773
|
/**
|
|
2314
|
-
*
|
|
2774
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2315
2775
|
*/
|
|
2316
|
-
|
|
2317
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
2318
|
-
/**
|
|
2319
|
-
* List transactions for a block
|
|
2320
|
-
* Lists the transactions that occured in a given block.
|
|
2321
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
|
-
* @throws ApiError
|
|
2323
|
-
*/
|
|
2324
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2776
|
+
destinationBlockchainId?: string;
|
|
2325
2777
|
/**
|
|
2326
|
-
*
|
|
2778
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2327
2779
|
*/
|
|
2328
|
-
|
|
2780
|
+
blockchainId?: string;
|
|
2329
2781
|
/**
|
|
2330
|
-
*
|
|
2782
|
+
* The address of the recipient of the ICM message.
|
|
2331
2783
|
*/
|
|
2332
|
-
|
|
2333
|
-
|
|
2784
|
+
to?: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* The address of the sender of the ICM message.
|
|
2787
|
+
*/
|
|
2788
|
+
from?: string;
|
|
2789
|
+
/**
|
|
2790
|
+
* Either mainnet or testnet/fuji.
|
|
2791
|
+
*/
|
|
2792
|
+
network?: Network;
|
|
2793
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2334
2794
|
/**
|
|
2335
|
-
* List
|
|
2336
|
-
* Lists
|
|
2337
|
-
* @returns
|
|
2795
|
+
* List ICM messages by address
|
|
2796
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2797
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2338
2798
|
* @throws ApiError
|
|
2339
2799
|
*/
|
|
2340
|
-
|
|
2800
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2341
2801
|
/**
|
|
2342
|
-
*
|
|
2802
|
+
* An EVM address.
|
|
2343
2803
|
*/
|
|
2344
|
-
|
|
2804
|
+
address: string;
|
|
2345
2805
|
/**
|
|
2346
2806
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2347
2807
|
*/
|
|
@@ -2351,26 +2811,10 @@ declare class EvmTransactionsService {
|
|
|
2351
2811
|
*/
|
|
2352
2812
|
pageSize?: number;
|
|
2353
2813
|
/**
|
|
2354
|
-
*
|
|
2814
|
+
* Either mainnet or testnet/fuji.
|
|
2355
2815
|
*/
|
|
2356
|
-
|
|
2357
|
-
}): CancelablePromise<
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
declare class HealthCheckService {
|
|
2361
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2362
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2363
|
-
/**
|
|
2364
|
-
* Get the health of the service
|
|
2365
|
-
* @returns any The Health Check is successful
|
|
2366
|
-
* @throws ApiError
|
|
2367
|
-
*/
|
|
2368
|
-
dataHealthCheck(): CancelablePromise<{
|
|
2369
|
-
status?: string;
|
|
2370
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2371
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2372
|
-
details?: Record<string, Record<string, string>>;
|
|
2373
|
-
}>;
|
|
2816
|
+
network?: Network;
|
|
2817
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2374
2818
|
}
|
|
2375
2819
|
|
|
2376
2820
|
type ListNftTokens = {
|
|
@@ -2602,16 +3046,31 @@ type DelegatorsDetails = {
|
|
|
2602
3046
|
};
|
|
2603
3047
|
|
|
2604
3048
|
type StakingDistribution = {
|
|
3049
|
+
/**
|
|
3050
|
+
* AvalancheGo version for the validator node.
|
|
3051
|
+
*/
|
|
2605
3052
|
version: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The total amount staked by validators using this version.
|
|
3055
|
+
*/
|
|
2606
3056
|
amountStaked: string;
|
|
3057
|
+
/**
|
|
3058
|
+
* The number of validators using this version.
|
|
3059
|
+
*/
|
|
2607
3060
|
validatorCount: number;
|
|
2608
3061
|
};
|
|
2609
3062
|
|
|
2610
3063
|
type ValidatorsDetails = {
|
|
2611
3064
|
validatorCount: number;
|
|
2612
3065
|
totalAmountStaked: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3068
|
+
*/
|
|
2613
3069
|
estimatedAnnualStakingReward: string;
|
|
2614
3070
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3071
|
+
/**
|
|
3072
|
+
* Ratio of total active stake amount to the current supply.
|
|
3073
|
+
*/
|
|
2615
3074
|
stakingRatio: string;
|
|
2616
3075
|
};
|
|
2617
3076
|
|
|
@@ -2663,7 +3122,13 @@ type CompletedDelegatorDetails = {
|
|
|
2663
3122
|
delegationFee: string;
|
|
2664
3123
|
startTimestamp: number;
|
|
2665
3124
|
endTimestamp: number;
|
|
3125
|
+
/**
|
|
3126
|
+
* Total rewards distributed for the successful delegation.
|
|
3127
|
+
*/
|
|
2666
3128
|
grossReward: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3131
|
+
*/
|
|
2667
3132
|
netReward: string;
|
|
2668
3133
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2669
3134
|
};
|
|
@@ -2681,7 +3146,13 @@ type PendingDelegatorDetails = {
|
|
|
2681
3146
|
delegationFee: string;
|
|
2682
3147
|
startTimestamp: number;
|
|
2683
3148
|
endTimestamp: number;
|
|
3149
|
+
/**
|
|
3150
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3151
|
+
*/
|
|
2684
3152
|
estimatedGrossReward: string;
|
|
3153
|
+
/**
|
|
3154
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3155
|
+
*/
|
|
2685
3156
|
estimatedNetReward: string;
|
|
2686
3157
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2687
3158
|
};
|
|
@@ -2702,10 +3173,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2702
3173
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2703
3174
|
};
|
|
2704
3175
|
|
|
3176
|
+
type BalanceOwner = {
|
|
3177
|
+
addresses: Array<string>;
|
|
3178
|
+
threshold: number;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
3181
|
+
type L1ValidatorDetailsFull = {
|
|
3182
|
+
/**
|
|
3183
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3184
|
+
*/
|
|
3185
|
+
validationId: string;
|
|
3186
|
+
nodeId: string;
|
|
3187
|
+
subnetId: string;
|
|
3188
|
+
/**
|
|
3189
|
+
* 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
|
|
3190
|
+
*/
|
|
3191
|
+
weight: number;
|
|
3192
|
+
/**
|
|
3193
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3194
|
+
*/
|
|
3195
|
+
remainingBalance: number;
|
|
3196
|
+
/**
|
|
3197
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3198
|
+
*/
|
|
3199
|
+
creationTimestamp: number;
|
|
3200
|
+
blsCredentials: Record<string, any>;
|
|
3201
|
+
/**
|
|
3202
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3203
|
+
*/
|
|
3204
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3205
|
+
/**
|
|
3206
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3207
|
+
*/
|
|
3208
|
+
deactivationOwner: BalanceOwner;
|
|
3209
|
+
};
|
|
3210
|
+
|
|
3211
|
+
type ListL1ValidatorsResponse = {
|
|
3212
|
+
/**
|
|
3213
|
+
* 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.
|
|
3214
|
+
*/
|
|
3215
|
+
nextPageToken?: string;
|
|
3216
|
+
/**
|
|
3217
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3218
|
+
*/
|
|
3219
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3220
|
+
};
|
|
3221
|
+
|
|
2705
3222
|
type BlockchainInfo = {
|
|
2706
3223
|
blockchainId: string;
|
|
2707
3224
|
};
|
|
2708
3225
|
|
|
3226
|
+
type L1ValidatorManagerDetails = {
|
|
3227
|
+
blockchainId: string;
|
|
3228
|
+
contractAddress: string;
|
|
3229
|
+
};
|
|
3230
|
+
|
|
2709
3231
|
type SubnetOwnershipInfo = {
|
|
2710
3232
|
/**
|
|
2711
3233
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2744,6 +3266,18 @@ type Subnet = {
|
|
|
2744
3266
|
* Latest subnet owner details for this Subnet.
|
|
2745
3267
|
*/
|
|
2746
3268
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
3269
|
+
/**
|
|
3270
|
+
* Whether the subnet is an L1 or not.
|
|
3271
|
+
*/
|
|
3272
|
+
isL1: boolean;
|
|
3273
|
+
/**
|
|
3274
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3275
|
+
*/
|
|
3276
|
+
l1ConversionTransactionHash?: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* L1 validator manager details.
|
|
3279
|
+
*/
|
|
3280
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2747
3281
|
blockchains: Array<BlockchainInfo>;
|
|
2748
3282
|
};
|
|
2749
3283
|
|
|
@@ -2791,6 +3325,9 @@ type ActiveValidatorDetails = {
|
|
|
2791
3325
|
nodeId: string;
|
|
2792
3326
|
subnetId: string;
|
|
2793
3327
|
amountStaked: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3330
|
+
*/
|
|
2794
3331
|
delegationFee?: string;
|
|
2795
3332
|
startTimestamp: number;
|
|
2796
3333
|
endTimestamp: number;
|
|
@@ -2798,12 +3335,30 @@ type ActiveValidatorDetails = {
|
|
|
2798
3335
|
* Present for AddPermissionlessValidatorTx
|
|
2799
3336
|
*/
|
|
2800
3337
|
blsCredentials?: BlsCredentials;
|
|
3338
|
+
/**
|
|
3339
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3340
|
+
*/
|
|
2801
3341
|
stakePercentage: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* The number of delegators linked to the validator.
|
|
3344
|
+
*/
|
|
2802
3345
|
delegatorCount: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3348
|
+
*/
|
|
2803
3349
|
amountDelegated?: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3352
|
+
*/
|
|
2804
3353
|
uptimePerformance: number;
|
|
2805
3354
|
avalancheGoVersion?: string;
|
|
3355
|
+
/**
|
|
3356
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3357
|
+
*/
|
|
2806
3358
|
delegationCapacity?: string;
|
|
3359
|
+
/**
|
|
3360
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3361
|
+
*/
|
|
2807
3362
|
potentialRewards: Rewards;
|
|
2808
3363
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2809
3364
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2819,6 +3374,9 @@ type CompletedValidatorDetails = {
|
|
|
2819
3374
|
nodeId: string;
|
|
2820
3375
|
subnetId: string;
|
|
2821
3376
|
amountStaked: string;
|
|
3377
|
+
/**
|
|
3378
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3379
|
+
*/
|
|
2822
3380
|
delegationFee?: string;
|
|
2823
3381
|
startTimestamp: number;
|
|
2824
3382
|
endTimestamp: number;
|
|
@@ -2842,6 +3400,9 @@ type PendingValidatorDetails = {
|
|
|
2842
3400
|
nodeId: string;
|
|
2843
3401
|
subnetId: string;
|
|
2844
3402
|
amountStaked: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3405
|
+
*/
|
|
2845
3406
|
delegationFee?: string;
|
|
2846
3407
|
startTimestamp: number;
|
|
2847
3408
|
endTimestamp: number;
|
|
@@ -2862,6 +3423,9 @@ type RemovedValidatorDetails = {
|
|
|
2862
3423
|
nodeId: string;
|
|
2863
3424
|
subnetId: string;
|
|
2864
3425
|
amountStaked: string;
|
|
3426
|
+
/**
|
|
3427
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3428
|
+
*/
|
|
2865
3429
|
delegationFee?: string;
|
|
2866
3430
|
startTimestamp: number;
|
|
2867
3431
|
endTimestamp: number;
|
|
@@ -2869,7 +3433,13 @@ type RemovedValidatorDetails = {
|
|
|
2869
3433
|
* Present for AddPermissionlessValidatorTx
|
|
2870
3434
|
*/
|
|
2871
3435
|
blsCredentials?: BlsCredentials;
|
|
3436
|
+
/**
|
|
3437
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3438
|
+
*/
|
|
2872
3439
|
removeTxHash: string;
|
|
3440
|
+
/**
|
|
3441
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3442
|
+
*/
|
|
2873
3443
|
removeTimestamp: number;
|
|
2874
3444
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2875
3445
|
};
|
|
@@ -3210,6 +3780,39 @@ declare class PrimaryNetworkService {
|
|
|
3210
3780
|
*/
|
|
3211
3781
|
nodeIds?: string;
|
|
3212
3782
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3783
|
+
/**
|
|
3784
|
+
* List L1 validators
|
|
3785
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3786
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3787
|
+
* @throws ApiError
|
|
3788
|
+
*/
|
|
3789
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3790
|
+
/**
|
|
3791
|
+
* Either mainnet or testnet/fuji.
|
|
3792
|
+
*/
|
|
3793
|
+
network: Network;
|
|
3794
|
+
/**
|
|
3795
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3796
|
+
*/
|
|
3797
|
+
pageToken?: string;
|
|
3798
|
+
/**
|
|
3799
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3800
|
+
*/
|
|
3801
|
+
pageSize?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3804
|
+
*/
|
|
3805
|
+
l1ValidationId?: any;
|
|
3806
|
+
includeInactiveL1Validators?: boolean;
|
|
3807
|
+
/**
|
|
3808
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3809
|
+
*/
|
|
3810
|
+
nodeId?: string;
|
|
3811
|
+
/**
|
|
3812
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3813
|
+
*/
|
|
3814
|
+
subnetId?: any;
|
|
3815
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3213
3816
|
}
|
|
3214
3817
|
|
|
3215
3818
|
declare enum BlockchainId {
|
|
@@ -3456,6 +4059,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3456
4059
|
txCount: number;
|
|
3457
4060
|
transactions: Array<string>;
|
|
3458
4061
|
blockSizeBytes: number;
|
|
4062
|
+
l1ValidatorsAccruedFees?: number;
|
|
4063
|
+
activeL1Validators?: number;
|
|
3459
4064
|
currentSupply?: string;
|
|
3460
4065
|
proposerDetails?: ProposerDetails;
|
|
3461
4066
|
};
|
|
@@ -3469,6 +4074,8 @@ type PrimaryNetworkBlock = {
|
|
|
3469
4074
|
txCount: number;
|
|
3470
4075
|
transactions: Array<string>;
|
|
3471
4076
|
blockSizeBytes: number;
|
|
4077
|
+
l1ValidatorsAccruedFees?: number;
|
|
4078
|
+
activeL1Validators?: number;
|
|
3472
4079
|
currentSupply?: string;
|
|
3473
4080
|
proposerDetails?: ProposerDetails;
|
|
3474
4081
|
};
|
|
@@ -3511,7 +4118,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3511
4118
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3512
4119
|
* @throws ApiError
|
|
3513
4120
|
*/
|
|
3514
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4121
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3515
4122
|
/**
|
|
3516
4123
|
* A primary network blockchain id or alias.
|
|
3517
4124
|
*/
|
|
@@ -3524,6 +4131,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3524
4131
|
* A primary network (P or X chain) nodeId.
|
|
3525
4132
|
*/
|
|
3526
4133
|
nodeId: string;
|
|
4134
|
+
/**
|
|
4135
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4136
|
+
*/
|
|
4137
|
+
startTimestamp?: number;
|
|
4138
|
+
/**
|
|
4139
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4140
|
+
*/
|
|
4141
|
+
endTimestamp?: number;
|
|
3527
4142
|
/**
|
|
3528
4143
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3529
4144
|
*/
|
|
@@ -3539,7 +4154,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3539
4154
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3540
4155
|
* @throws ApiError
|
|
3541
4156
|
*/
|
|
3542
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4157
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3543
4158
|
/**
|
|
3544
4159
|
* A primary network blockchain id or alias.
|
|
3545
4160
|
*/
|
|
@@ -3548,6 +4163,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3548
4163
|
* Either mainnet or testnet/fuji.
|
|
3549
4164
|
*/
|
|
3550
4165
|
network: Network;
|
|
4166
|
+
/**
|
|
4167
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4168
|
+
*/
|
|
4169
|
+
startTimestamp?: number;
|
|
4170
|
+
/**
|
|
4171
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4172
|
+
*/
|
|
4173
|
+
endTimestamp?: number;
|
|
3551
4174
|
/**
|
|
3552
4175
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3553
4176
|
*/
|
|
@@ -3957,6 +4580,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3957
4580
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3958
4581
|
};
|
|
3959
4582
|
|
|
4583
|
+
type L1ValidatorDetailsTransaction = {
|
|
4584
|
+
/**
|
|
4585
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4586
|
+
*/
|
|
4587
|
+
validationId: string;
|
|
4588
|
+
nodeId: string;
|
|
4589
|
+
subnetId: string;
|
|
4590
|
+
/**
|
|
4591
|
+
* 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
|
|
4592
|
+
*/
|
|
4593
|
+
weight: number;
|
|
4594
|
+
/**
|
|
4595
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4596
|
+
*/
|
|
4597
|
+
remainingBalance: number;
|
|
4598
|
+
/**
|
|
4599
|
+
* 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
|
|
4600
|
+
*/
|
|
4601
|
+
balanceChange?: number;
|
|
4602
|
+
blsCredentials?: Record<string, any>;
|
|
4603
|
+
};
|
|
4604
|
+
|
|
3960
4605
|
declare enum PChainTransactionType {
|
|
3961
4606
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3962
4607
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3973,14 +4618,17 @@ declare enum PChainTransactionType {
|
|
|
3973
4618
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3974
4619
|
BASE_TX = "BaseTx",
|
|
3975
4620
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
4621
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4622
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4623
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4624
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4625
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3981
4626
|
UNKNOWN = "UNKNOWN"
|
|
3982
4627
|
}
|
|
3983
4628
|
|
|
4629
|
+
/**
|
|
4630
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4631
|
+
*/
|
|
3984
4632
|
declare enum UtxoType {
|
|
3985
4633
|
STAKE = "STAKE",
|
|
3986
4634
|
TRANSFER = "TRANSFER"
|
|
@@ -4018,25 +4666,47 @@ type PChainUtxo = {
|
|
|
4018
4666
|
assetId: string;
|
|
4019
4667
|
blockNumber: string;
|
|
4020
4668
|
blockTimestamp: number;
|
|
4669
|
+
/**
|
|
4670
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4671
|
+
*/
|
|
4021
4672
|
consumingBlockNumber?: string;
|
|
4673
|
+
/**
|
|
4674
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4675
|
+
*/
|
|
4022
4676
|
consumingBlockTimestamp?: number;
|
|
4677
|
+
/**
|
|
4678
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4679
|
+
*/
|
|
4023
4680
|
platformLocktime?: number;
|
|
4681
|
+
/**
|
|
4682
|
+
* The index of the UTXO in the transaction
|
|
4683
|
+
*/
|
|
4024
4684
|
outputIndex: number;
|
|
4025
4685
|
rewardType?: RewardType;
|
|
4686
|
+
/**
|
|
4687
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4688
|
+
*/
|
|
4026
4689
|
stakeableLocktime?: number;
|
|
4027
4690
|
staked?: boolean;
|
|
4691
|
+
/**
|
|
4692
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4693
|
+
*/
|
|
4028
4694
|
threshold?: number;
|
|
4695
|
+
/**
|
|
4696
|
+
* The hash of the transaction that created this UTXO
|
|
4697
|
+
*/
|
|
4029
4698
|
txHash: string;
|
|
4699
|
+
/**
|
|
4700
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4701
|
+
*/
|
|
4030
4702
|
utxoEndTimestamp?: number;
|
|
4703
|
+
/**
|
|
4704
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4705
|
+
*/
|
|
4031
4706
|
utxoStartTimestamp?: number;
|
|
4032
4707
|
utxoType: UtxoType;
|
|
4033
4708
|
};
|
|
4034
4709
|
|
|
4035
|
-
type SubnetValidatorManagerDetails = {
|
|
4036
|
-
blockchainId: string;
|
|
4037
|
-
evmContractAddress: string;
|
|
4038
|
-
};
|
|
4039
|
-
|
|
4040
4710
|
type PChainTransaction = {
|
|
4041
4711
|
/**
|
|
4042
4712
|
* A P-Chain transaction hash.
|
|
@@ -4047,9 +4717,18 @@ type PChainTransaction = {
|
|
|
4047
4717
|
* The block finality timestamp.
|
|
4048
4718
|
*/
|
|
4049
4719
|
blockTimestamp: number;
|
|
4720
|
+
/**
|
|
4721
|
+
* The height of the block in which the transaction was included
|
|
4722
|
+
*/
|
|
4050
4723
|
blockNumber: string;
|
|
4051
4724
|
blockHash: string;
|
|
4725
|
+
/**
|
|
4726
|
+
* The consumed UTXOs of the transaction
|
|
4727
|
+
*/
|
|
4052
4728
|
consumedUtxos: Array<PChainUtxo>;
|
|
4729
|
+
/**
|
|
4730
|
+
* The newly created UTXOs of the transaction
|
|
4731
|
+
*/
|
|
4053
4732
|
emittedUtxos: Array<PChainUtxo>;
|
|
4054
4733
|
/**
|
|
4055
4734
|
* Source chain for an atomic transaction.
|
|
@@ -4060,11 +4739,11 @@ type PChainTransaction = {
|
|
|
4060
4739
|
*/
|
|
4061
4740
|
destinationChain?: string;
|
|
4062
4741
|
/**
|
|
4063
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4742
|
+
* 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
|
|
4064
4743
|
*/
|
|
4065
4744
|
value: Array<AssetAmount>;
|
|
4066
4745
|
/**
|
|
4067
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4746
|
+
* 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
|
|
4068
4747
|
*/
|
|
4069
4748
|
amountBurned: Array<AssetAmount>;
|
|
4070
4749
|
/**
|
|
@@ -4072,9 +4751,9 @@ type PChainTransaction = {
|
|
|
4072
4751
|
*/
|
|
4073
4752
|
amountStaked: Array<AssetAmount>;
|
|
4074
4753
|
/**
|
|
4075
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4754
|
+
* 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.
|
|
4076
4755
|
*/
|
|
4077
|
-
|
|
4756
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4078
4757
|
/**
|
|
4079
4758
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4080
4759
|
*/
|
|
@@ -4084,11 +4763,11 @@ type PChainTransaction = {
|
|
|
4084
4763
|
*/
|
|
4085
4764
|
endTimestamp?: number;
|
|
4086
4765
|
/**
|
|
4087
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4766
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4088
4767
|
*/
|
|
4089
4768
|
delegationFeePercent?: string;
|
|
4090
4769
|
/**
|
|
4091
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4770
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4092
4771
|
*/
|
|
4093
4772
|
nodeId?: string;
|
|
4094
4773
|
/**
|
|
@@ -4096,22 +4775,25 @@ type PChainTransaction = {
|
|
|
4096
4775
|
*/
|
|
4097
4776
|
subnetId?: string;
|
|
4098
4777
|
/**
|
|
4099
|
-
* Present for
|
|
4778
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4100
4779
|
*/
|
|
4101
|
-
|
|
4780
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4102
4781
|
/**
|
|
4103
|
-
*
|
|
4782
|
+
* 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
|
|
4104
4783
|
*/
|
|
4105
|
-
|
|
4784
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4106
4785
|
/**
|
|
4107
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4786
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4108
4787
|
*/
|
|
4109
4788
|
estimatedReward?: string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Reward transaction hash for the completed validations or delegations
|
|
4791
|
+
*/
|
|
4110
4792
|
rewardTxHash?: string;
|
|
4111
4793
|
rewardAddresses?: Array<string>;
|
|
4112
4794
|
memo?: string;
|
|
4113
4795
|
/**
|
|
4114
|
-
*
|
|
4796
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4115
4797
|
*/
|
|
4116
4798
|
stakingTxHash?: string;
|
|
4117
4799
|
/**
|
|
@@ -4119,7 +4801,7 @@ type PChainTransaction = {
|
|
|
4119
4801
|
*/
|
|
4120
4802
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4121
4803
|
/**
|
|
4122
|
-
* Present for AddPermissionlessValidatorTx
|
|
4804
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4123
4805
|
*/
|
|
4124
4806
|
blsCredentials?: BlsCredentials;
|
|
4125
4807
|
};
|
|
@@ -4304,11 +4986,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4304
4986
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4305
4987
|
BASE_TX = "BaseTx",
|
|
4306
4988
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4989
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4990
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4991
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4992
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4993
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4312
4994
|
UNKNOWN = "UNKNOWN",
|
|
4313
4995
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4314
4996
|
OPERATION_TX = "OperationTx"
|
|
@@ -4343,11 +5025,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4343
5025
|
*
|
|
4344
5026
|
* 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.
|
|
4345
5027
|
*
|
|
5028
|
+
* 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.
|
|
5029
|
+
*
|
|
4346
5030
|
* 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.
|
|
4347
5031
|
* @returns any Successful response
|
|
4348
5032
|
* @throws ApiError
|
|
4349
5033
|
*/
|
|
4350
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5034
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4351
5035
|
/**
|
|
4352
5036
|
* A primary network blockchain id or alias.
|
|
4353
5037
|
*/
|
|
@@ -4360,6 +5044,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4360
5044
|
* 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.
|
|
4361
5045
|
*/
|
|
4362
5046
|
addresses?: string;
|
|
5047
|
+
l1ValidationId?: string;
|
|
4363
5048
|
/**
|
|
4364
5049
|
* Query param for filtering items based on transaction types.
|
|
4365
5050
|
*/
|
|
@@ -4640,13 +5325,7 @@ type SignatureAggregationResponse = {
|
|
|
4640
5325
|
};
|
|
4641
5326
|
|
|
4642
5327
|
type SignatureAggregatorRequest = {
|
|
4643
|
-
|
|
4644
|
-
* Must be defined if justification is not defined
|
|
4645
|
-
*/
|
|
4646
|
-
message?: string;
|
|
4647
|
-
/**
|
|
4648
|
-
* Must be defined if message is not defined
|
|
4649
|
-
*/
|
|
5328
|
+
message: string;
|
|
4650
5329
|
justification?: string;
|
|
4651
5330
|
signingSubnetId?: string;
|
|
4652
5331
|
quorumPercentage?: number;
|
|
@@ -4661,7 +5340,11 @@ declare class SignatureAggregatorService {
|
|
|
4661
5340
|
* @returns SignatureAggregationResponse Successful response
|
|
4662
5341
|
* @throws ApiError
|
|
4663
5342
|
*/
|
|
4664
|
-
aggregateSignatures({ requestBody, }: {
|
|
5343
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5344
|
+
/**
|
|
5345
|
+
* Either mainnet or testnet/fuji.
|
|
5346
|
+
*/
|
|
5347
|
+
network: Network;
|
|
4665
5348
|
requestBody: SignatureAggregatorRequest;
|
|
4666
5349
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4667
5350
|
}
|
|
@@ -4804,8 +5487,10 @@ declare class TeleporterService {
|
|
|
4804
5487
|
readonly httpRequest: BaseHttpRequest;
|
|
4805
5488
|
constructor(httpRequest: BaseHttpRequest);
|
|
4806
5489
|
/**
|
|
4807
|
-
*
|
|
4808
|
-
* Gets a teleporter message by message ID.
|
|
5490
|
+
* @deprecated
|
|
5491
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5492
|
+
*
|
|
5493
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4809
5494
|
* @returns any Successful response
|
|
4810
5495
|
* @throws ApiError
|
|
4811
5496
|
*/
|
|
@@ -4816,8 +5501,10 @@ declare class TeleporterService {
|
|
|
4816
5501
|
messageId: string;
|
|
4817
5502
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4818
5503
|
/**
|
|
4819
|
-
*
|
|
4820
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5504
|
+
* @deprecated
|
|
5505
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5506
|
+
*
|
|
5507
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4821
5508
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4822
5509
|
* @throws ApiError
|
|
4823
5510
|
*/
|
|
@@ -4856,8 +5543,10 @@ declare class TeleporterService {
|
|
|
4856
5543
|
network?: Network;
|
|
4857
5544
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4858
5545
|
/**
|
|
4859
|
-
*
|
|
4860
|
-
* Lists teleporter messages by address. Ordered by
|
|
5546
|
+
* @deprecated
|
|
5547
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5548
|
+
*
|
|
5549
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4861
5550
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4862
5551
|
* @throws ApiError
|
|
4863
5552
|
*/
|
|
@@ -4911,7 +5600,7 @@ type CreateWebhookRequest = {
|
|
|
4911
5600
|
name?: string;
|
|
4912
5601
|
description?: string;
|
|
4913
5602
|
/**
|
|
4914
|
-
* Whether to include traces in the webhook payload.
|
|
5603
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4915
5604
|
*/
|
|
4916
5605
|
includeInternalTxs?: boolean;
|
|
4917
5606
|
/**
|
|
@@ -4971,6 +5660,9 @@ type UpdateWebhookRequest = {
|
|
|
4971
5660
|
description?: string;
|
|
4972
5661
|
url?: string;
|
|
4973
5662
|
status?: WebhookStatusType;
|
|
5663
|
+
/**
|
|
5664
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5665
|
+
*/
|
|
4974
5666
|
includeInternalTxs?: boolean;
|
|
4975
5667
|
includeLogs?: boolean;
|
|
4976
5668
|
};
|
|
@@ -5121,6 +5813,7 @@ declare class Glacier {
|
|
|
5121
5813
|
readonly evmContracts: EvmContractsService;
|
|
5122
5814
|
readonly evmTransactions: EvmTransactionsService;
|
|
5123
5815
|
readonly healthCheck: HealthCheckService;
|
|
5816
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5124
5817
|
readonly nfTs: NfTsService;
|
|
5125
5818
|
readonly operations: OperationsService;
|
|
5126
5819
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
@@ -5285,4 +5978,4 @@ type Unauthorized = {
|
|
|
5285
5978
|
error: string;
|
|
5286
5979
|
};
|
|
5287
5980
|
|
|
5288
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics,
|
|
5981
|
+
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, 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 };
|