@avalabs/glacier-sdk 3.1.0-canary.4320153.0 → 3.1.0-canary.44ad717.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 +1070 -314
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- 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 -1
- 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/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +1 -1
- 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/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +20 -8
- 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/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/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +4 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +103 -3
- 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/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- 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/generated/services/WebhooksService.d.ts +3 -3
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +22 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -148,10 +148,27 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
declare enum
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet",
|
|
155
|
+
DEVNET = "devnet"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
152
159
|
RPC_METHOD = "rpcMethod",
|
|
160
|
+
REQUEST_PATH = "requestPath",
|
|
153
161
|
RESPONSE_CODE = "responseCode",
|
|
154
|
-
|
|
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"
|
|
155
172
|
}
|
|
156
173
|
|
|
157
174
|
type RpcUsageMetricsValueAggregated = {
|
|
@@ -200,6 +217,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
200
217
|
RPC_METHOD = "rpcMethod",
|
|
201
218
|
RESPONSE_CODE = "responseCode",
|
|
202
219
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
220
|
+
REQUEST_PATH = "requestPath",
|
|
221
|
+
COUNTRY = "country",
|
|
222
|
+
CONTINENT = "continent",
|
|
223
|
+
USER_AGENT = "userAgent",
|
|
203
224
|
NONE = "None"
|
|
204
225
|
}
|
|
205
226
|
}
|
|
@@ -215,20 +236,35 @@ type RpcMetrics = {
|
|
|
215
236
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
216
237
|
};
|
|
217
238
|
|
|
218
|
-
type
|
|
239
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
219
240
|
/**
|
|
220
241
|
* Duration in which the metrics value is aggregated
|
|
221
242
|
*/
|
|
222
243
|
aggregateDuration: string;
|
|
223
|
-
/**
|
|
224
|
-
* ChainId for which the metrics are aggregated
|
|
225
|
-
*/
|
|
226
|
-
chainId: string;
|
|
227
244
|
/**
|
|
228
245
|
* Metrics values
|
|
229
246
|
*/
|
|
230
247
|
metrics: Array<RpcMetrics>;
|
|
248
|
+
/**
|
|
249
|
+
* Network type for which the metrics are aggregated
|
|
250
|
+
*/
|
|
251
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
231
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
|
+
}
|
|
232
268
|
|
|
233
269
|
declare enum SubnetRpcTimeIntervalGranularity {
|
|
234
270
|
HOURLY = "hourly",
|
|
@@ -237,6 +273,21 @@ declare enum SubnetRpcTimeIntervalGranularity {
|
|
|
237
273
|
MONTHLY = "monthly"
|
|
238
274
|
}
|
|
239
275
|
|
|
276
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
277
|
+
/**
|
|
278
|
+
* Duration in which the metrics value is aggregated
|
|
279
|
+
*/
|
|
280
|
+
aggregateDuration: string;
|
|
281
|
+
/**
|
|
282
|
+
* Metrics values
|
|
283
|
+
*/
|
|
284
|
+
metrics: Array<RpcMetrics>;
|
|
285
|
+
/**
|
|
286
|
+
* ChainId for which the metrics are aggregated
|
|
287
|
+
*/
|
|
288
|
+
chainId: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
240
291
|
declare enum TimeIntervalGranularityExtended {
|
|
241
292
|
MINUTE = "minute",
|
|
242
293
|
HOURLY = "hourly",
|
|
@@ -433,7 +484,50 @@ declare class DataApiUsageMetricsService {
|
|
|
433
484
|
/**
|
|
434
485
|
* Get usage metrics for the Subnet RPC
|
|
435
486
|
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
436
|
-
* @returns
|
|
487
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
488
|
+
* @throws ApiError
|
|
489
|
+
*/
|
|
490
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
491
|
+
/**
|
|
492
|
+
* Time interval granularity for data aggregation for subnet
|
|
493
|
+
* rpc metrics
|
|
494
|
+
*/
|
|
495
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
496
|
+
/**
|
|
497
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
498
|
+
*/
|
|
499
|
+
startTimestamp?: number;
|
|
500
|
+
/**
|
|
501
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
502
|
+
*/
|
|
503
|
+
endTimestamp?: number;
|
|
504
|
+
/**
|
|
505
|
+
* Query param for the criterion used for grouping metrics
|
|
506
|
+
*/
|
|
507
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
508
|
+
/**
|
|
509
|
+
* Filter data by chain ID.
|
|
510
|
+
*/
|
|
511
|
+
chainId?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Filter data by response status code.
|
|
514
|
+
*/
|
|
515
|
+
responseCode?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Filter data by RPC method.
|
|
518
|
+
*/
|
|
519
|
+
rpcMethod?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Filter data by Rl Bypass API Token.
|
|
522
|
+
*/
|
|
523
|
+
rlBypassApiToken?: string;
|
|
524
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
525
|
+
/**
|
|
526
|
+
* @deprecated
|
|
527
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
528
|
+
*
|
|
529
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
530
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
437
531
|
* @throws ApiError
|
|
438
532
|
*/
|
|
439
533
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
@@ -470,7 +564,60 @@ declare class DataApiUsageMetricsService {
|
|
|
470
564
|
* Filter data by Rl Bypass API Token.
|
|
471
565
|
*/
|
|
472
566
|
rlBypassApiToken?: string;
|
|
473
|
-
}): 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>;
|
|
474
621
|
}
|
|
475
622
|
|
|
476
623
|
declare class DefaultService {
|
|
@@ -669,6 +816,10 @@ type ListErc1155BalancesResponse = {
|
|
|
669
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.
|
|
670
817
|
*/
|
|
671
818
|
nextPageToken?: string;
|
|
819
|
+
/**
|
|
820
|
+
* The native token balance for the address.
|
|
821
|
+
*/
|
|
822
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
672
823
|
/**
|
|
673
824
|
* The list of ERC-1155 token balances for the address.
|
|
674
825
|
*/
|
|
@@ -713,12 +864,22 @@ type Erc20TokenBalance = {
|
|
|
713
864
|
* The monetary value of the balance, if a price is available for the token.
|
|
714
865
|
*/
|
|
715
866
|
balanceValue?: Money;
|
|
716
|
-
|
|
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;
|
|
717
871
|
};
|
|
718
872
|
declare namespace Erc20TokenBalance {
|
|
719
873
|
enum ercType {
|
|
720
874
|
ERC_20 = "ERC-20"
|
|
721
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
|
+
}
|
|
722
883
|
}
|
|
723
884
|
|
|
724
885
|
type ListErc20BalancesResponse = {
|
|
@@ -726,6 +887,10 @@ type ListErc20BalancesResponse = {
|
|
|
726
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.
|
|
727
888
|
*/
|
|
728
889
|
nextPageToken?: string;
|
|
890
|
+
/**
|
|
891
|
+
* The native token balance for the address.
|
|
892
|
+
*/
|
|
893
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
729
894
|
/**
|
|
730
895
|
* The list of ERC-20 token balances for the address.
|
|
731
896
|
*/
|
|
@@ -737,6 +902,10 @@ type ListErc721BalancesResponse = {
|
|
|
737
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.
|
|
738
903
|
*/
|
|
739
904
|
nextPageToken?: string;
|
|
905
|
+
/**
|
|
906
|
+
* The native token balance for the address.
|
|
907
|
+
*/
|
|
908
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
740
909
|
/**
|
|
741
910
|
* The list of ERC-721 token balances for the address.
|
|
742
911
|
*/
|
|
@@ -915,6 +1084,10 @@ declare class EvmBalancesService {
|
|
|
915
1084
|
}
|
|
916
1085
|
|
|
917
1086
|
type GetEvmBlockResponse = {
|
|
1087
|
+
/**
|
|
1088
|
+
* The EVM chain ID on which the block was created.
|
|
1089
|
+
*/
|
|
1090
|
+
chainId: string;
|
|
918
1091
|
/**
|
|
919
1092
|
* The block number on the chain.
|
|
920
1093
|
*/
|
|
@@ -959,6 +1132,10 @@ type GetEvmBlockResponse = {
|
|
|
959
1132
|
};
|
|
960
1133
|
|
|
961
1134
|
type EvmBlock = {
|
|
1135
|
+
/**
|
|
1136
|
+
* The EVM chain ID on which the block was created.
|
|
1137
|
+
*/
|
|
1138
|
+
chainId: string;
|
|
962
1139
|
/**
|
|
963
1140
|
* The block number on the chain.
|
|
964
1141
|
*/
|
|
@@ -1013,6 +1190,26 @@ type ListEvmBlocksResponse = {
|
|
|
1013
1190
|
declare class EvmBlocksService {
|
|
1014
1191
|
readonly httpRequest: BaseHttpRequest;
|
|
1015
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>;
|
|
1016
1213
|
/**
|
|
1017
1214
|
* List latest blocks
|
|
1018
1215
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1144,81 +1341,248 @@ type ListChainsResponse = {
|
|
|
1144
1341
|
chains: Array<ChainInfo>;
|
|
1145
1342
|
};
|
|
1146
1343
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
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"
|
|
1152
1351
|
}
|
|
1153
1352
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1353
|
+
type Method = {
|
|
1354
|
+
callType: TransactionMethodType;
|
|
1157
1355
|
/**
|
|
1158
|
-
*
|
|
1159
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1160
|
-
* @returns ListChainsResponse Successful response
|
|
1161
|
-
* @throws ApiError
|
|
1356
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1162
1357
|
*/
|
|
1163
|
-
|
|
1164
|
-
/**
|
|
1165
|
-
* Either mainnet or testnet/fuji.
|
|
1166
|
-
*/
|
|
1167
|
-
network?: Network;
|
|
1168
|
-
/**
|
|
1169
|
-
* Filter by feature.
|
|
1170
|
-
*/
|
|
1171
|
-
feature?: ApiFeature;
|
|
1172
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1358
|
+
methodHash: string;
|
|
1173
1359
|
/**
|
|
1174
|
-
*
|
|
1175
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1176
|
-
* @returns GetChainResponse Successful response
|
|
1177
|
-
* @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'.
|
|
1178
1361
|
*/
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
chainId: string;
|
|
1184
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1362
|
+
methodName?: string;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
type RichAddress = {
|
|
1185
1366
|
/**
|
|
1186
|
-
*
|
|
1187
|
-
* 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.
|
|
1188
|
-
* @returns ListAddressChainsResponse Successful response
|
|
1189
|
-
* @throws ApiError
|
|
1367
|
+
* The contract name.
|
|
1190
1368
|
*/
|
|
1191
|
-
|
|
1192
|
-
/**
|
|
1193
|
-
* A wallet address.
|
|
1194
|
-
*/
|
|
1195
|
-
address: string;
|
|
1196
|
-
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
type ImageAsset = {
|
|
1200
|
-
assetId?: string;
|
|
1369
|
+
name?: string;
|
|
1201
1370
|
/**
|
|
1202
|
-
*
|
|
1371
|
+
* The contract symbol.
|
|
1203
1372
|
*/
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
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;
|
|
1209
1386
|
};
|
|
1210
1387
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
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;
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
type PricingProviders = {
|
|
1572
|
+
coingeckoCoinId?: string;
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
declare enum ResourceLinkType {
|
|
1576
|
+
BLOG = "Blog",
|
|
1577
|
+
COIN_GECKO = "CoinGecko",
|
|
1578
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1579
|
+
DISCORD = "Discord",
|
|
1580
|
+
DOCUMENTATION = "Documentation",
|
|
1581
|
+
FACEBOOK = "Facebook",
|
|
1582
|
+
GITHUB = "Github",
|
|
1583
|
+
INSTAGRAM = "Instagram",
|
|
1584
|
+
LINKED_IN = "LinkedIn",
|
|
1585
|
+
MEDIUM = "Medium",
|
|
1222
1586
|
REDDIT = "Reddit",
|
|
1223
1587
|
SUPPORT = "Support",
|
|
1224
1588
|
TELEGRAM = "Telegram",
|
|
@@ -1528,29 +1892,6 @@ declare namespace Erc1155Token {
|
|
|
1528
1892
|
}
|
|
1529
1893
|
}
|
|
1530
1894
|
|
|
1531
|
-
type RichAddress = {
|
|
1532
|
-
/**
|
|
1533
|
-
* The contract name.
|
|
1534
|
-
*/
|
|
1535
|
-
name?: string;
|
|
1536
|
-
/**
|
|
1537
|
-
* The contract symbol.
|
|
1538
|
-
*/
|
|
1539
|
-
symbol?: string;
|
|
1540
|
-
/**
|
|
1541
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1542
|
-
*/
|
|
1543
|
-
decimals?: number;
|
|
1544
|
-
/**
|
|
1545
|
-
* The logo uri for the address.
|
|
1546
|
-
*/
|
|
1547
|
-
logoUri?: string;
|
|
1548
|
-
/**
|
|
1549
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1550
|
-
*/
|
|
1551
|
-
address: string;
|
|
1552
|
-
};
|
|
1553
|
-
|
|
1554
1895
|
type Erc1155TransferDetails = {
|
|
1555
1896
|
from: RichAddress;
|
|
1556
1897
|
to: RichAddress;
|
|
@@ -1635,27 +1976,6 @@ type Erc721TransferDetails = {
|
|
|
1635
1976
|
erc721Token: Erc721Token;
|
|
1636
1977
|
};
|
|
1637
1978
|
|
|
1638
|
-
/**
|
|
1639
|
-
* 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.
|
|
1640
|
-
*/
|
|
1641
|
-
declare enum TransactionMethodType {
|
|
1642
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1643
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1644
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
type Method = {
|
|
1648
|
-
callType: TransactionMethodType;
|
|
1649
|
-
/**
|
|
1650
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1651
|
-
*/
|
|
1652
|
-
methodHash: string;
|
|
1653
|
-
/**
|
|
1654
|
-
* 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'.
|
|
1655
|
-
*/
|
|
1656
|
-
methodName?: string;
|
|
1657
|
-
};
|
|
1658
|
-
|
|
1659
1979
|
type FullNativeTransactionDetails = {
|
|
1660
1980
|
/**
|
|
1661
1981
|
* The block number on the chain.
|
|
@@ -1669,6 +1989,10 @@ type FullNativeTransactionDetails = {
|
|
|
1669
1989
|
* The block hash identifier.
|
|
1670
1990
|
*/
|
|
1671
1991
|
blockHash: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* The EVM chain ID on which the transaction occured.
|
|
1994
|
+
*/
|
|
1995
|
+
chainId: string;
|
|
1672
1996
|
/**
|
|
1673
1997
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1674
1998
|
*/
|
|
@@ -1932,89 +2256,30 @@ type ListInternalTransactionsResponse = {
|
|
|
1932
2256
|
transactions: Array<InternalTransaction>;
|
|
1933
2257
|
};
|
|
1934
2258
|
|
|
1935
|
-
type
|
|
2259
|
+
type TransactionDetails = {
|
|
1936
2260
|
/**
|
|
1937
|
-
* The
|
|
2261
|
+
* The native (top-level) transaction details.
|
|
1938
2262
|
*/
|
|
1939
|
-
|
|
2263
|
+
nativeTransaction: NativeTransaction;
|
|
1940
2264
|
/**
|
|
1941
|
-
* The
|
|
2265
|
+
* The list of ERC-20 transfers.
|
|
1942
2266
|
*/
|
|
1943
|
-
|
|
2267
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1944
2268
|
/**
|
|
1945
|
-
* The
|
|
2269
|
+
* The list of ERC-721 transfers.
|
|
1946
2270
|
*/
|
|
1947
|
-
|
|
2271
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1948
2272
|
/**
|
|
1949
|
-
* The
|
|
2273
|
+
* The list of ERC-1155 transfers.
|
|
1950
2274
|
*/
|
|
1951
|
-
|
|
2275
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1952
2276
|
/**
|
|
1953
|
-
* 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.
|
|
1954
2278
|
*/
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
txStatus: string;
|
|
1960
|
-
/**
|
|
1961
|
-
* The transaction type.
|
|
1962
|
-
*/
|
|
1963
|
-
txType: number;
|
|
1964
|
-
/**
|
|
1965
|
-
* The gas limit set for the transaction.
|
|
1966
|
-
*/
|
|
1967
|
-
gasLimit: string;
|
|
1968
|
-
/**
|
|
1969
|
-
* The amount of gas used.
|
|
1970
|
-
*/
|
|
1971
|
-
gasUsed: string;
|
|
1972
|
-
/**
|
|
1973
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1974
|
-
*/
|
|
1975
|
-
gasPrice: string;
|
|
1976
|
-
/**
|
|
1977
|
-
* The nonce used by the sender of the transaction.
|
|
1978
|
-
*/
|
|
1979
|
-
nonce: string;
|
|
1980
|
-
from: RichAddress;
|
|
1981
|
-
to: RichAddress;
|
|
1982
|
-
method?: Method;
|
|
1983
|
-
value: string;
|
|
1984
|
-
};
|
|
1985
|
-
|
|
1986
|
-
type ListNativeTransactionsResponse = {
|
|
1987
|
-
/**
|
|
1988
|
-
* 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.
|
|
1989
|
-
*/
|
|
1990
|
-
nextPageToken?: string;
|
|
1991
|
-
transactions: Array<NativeTransaction>;
|
|
1992
|
-
};
|
|
1993
|
-
|
|
1994
|
-
type TransactionDetails = {
|
|
1995
|
-
/**
|
|
1996
|
-
* The native (top-level) transaction details.
|
|
1997
|
-
*/
|
|
1998
|
-
nativeTransaction: NativeTransaction;
|
|
1999
|
-
/**
|
|
2000
|
-
* The list of ERC-20 transfers.
|
|
2001
|
-
*/
|
|
2002
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
2003
|
-
/**
|
|
2004
|
-
* The list of ERC-721 transfers.
|
|
2005
|
-
*/
|
|
2006
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
2007
|
-
/**
|
|
2008
|
-
* The list of ERC-1155 transfers.
|
|
2009
|
-
*/
|
|
2010
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2011
|
-
/**
|
|
2012
|
-
* 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.
|
|
2013
|
-
*/
|
|
2014
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2015
|
-
};
|
|
2016
|
-
|
|
2017
|
-
type ListTransactionDetailsResponse = {
|
|
2279
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
type ListTransactionDetailsResponse = {
|
|
2018
2283
|
/**
|
|
2019
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.
|
|
2020
2285
|
*/
|
|
@@ -2035,14 +2300,33 @@ declare enum SortOrder {
|
|
|
2035
2300
|
DESC = "desc"
|
|
2036
2301
|
}
|
|
2037
2302
|
|
|
2038
|
-
declare enum TransactionStatus {
|
|
2039
|
-
FAILED = "failed",
|
|
2040
|
-
SUCCESS = "success"
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
2303
|
declare class EvmTransactionsService {
|
|
2044
2304
|
readonly httpRequest: BaseHttpRequest;
|
|
2045
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>;
|
|
2046
2330
|
/**
|
|
2047
2331
|
* Get deployment transaction
|
|
2048
2332
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2254,28 +2538,335 @@ declare class EvmTransactionsService {
|
|
|
2254
2538
|
pageSize?: number;
|
|
2255
2539
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
2256
2540
|
/**
|
|
2257
|
-
* List ERC-1155 transfers
|
|
2258
|
-
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
2259
|
-
* @returns ListErc1155TransactionsResponse Successful response
|
|
2541
|
+
* List ERC-1155 transfers
|
|
2542
|
+
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
2543
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
2544
|
+
* @throws ApiError
|
|
2545
|
+
*/
|
|
2546
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2547
|
+
/**
|
|
2548
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2549
|
+
*/
|
|
2550
|
+
chainId: string;
|
|
2551
|
+
/**
|
|
2552
|
+
* A wallet address.
|
|
2553
|
+
*/
|
|
2554
|
+
address: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* 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.
|
|
2557
|
+
*/
|
|
2558
|
+
startBlock?: number;
|
|
2559
|
+
/**
|
|
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
|
+
type HealthIndicatorResultDto = {
|
|
2673
|
+
/**
|
|
2674
|
+
* Status of the health indicator.
|
|
2675
|
+
*/
|
|
2676
|
+
status?: HealthIndicatorResultDto.status;
|
|
2677
|
+
};
|
|
2678
|
+
declare namespace HealthIndicatorResultDto {
|
|
2679
|
+
/**
|
|
2680
|
+
* Status of the health indicator.
|
|
2681
|
+
*/
|
|
2682
|
+
enum status {
|
|
2683
|
+
UP = "up",
|
|
2684
|
+
DOWN = "down"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
type HealthCheckResultDto = {
|
|
2689
|
+
status?: HealthCheckResultDto.status;
|
|
2690
|
+
info?: any | null;
|
|
2691
|
+
error?: any | null;
|
|
2692
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2693
|
+
};
|
|
2694
|
+
declare namespace HealthCheckResultDto {
|
|
2695
|
+
enum status {
|
|
2696
|
+
ERROR = "error",
|
|
2697
|
+
OK = "ok",
|
|
2698
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
declare class HealthCheckService {
|
|
2703
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2704
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2705
|
+
/**
|
|
2706
|
+
* Get the health of the service
|
|
2707
|
+
* Check the health of the service.
|
|
2708
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2709
|
+
* @throws ApiError
|
|
2710
|
+
*/
|
|
2711
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
type IcmDestinationTransaction = {
|
|
2715
|
+
txHash: string;
|
|
2716
|
+
timestamp: number;
|
|
2717
|
+
gasSpent: string;
|
|
2718
|
+
rewardRedeemer: string;
|
|
2719
|
+
delivererAddress: string;
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
type IcmReceipt = {
|
|
2723
|
+
receivedMessageNonce: string;
|
|
2724
|
+
relayerRewardAddress: string;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
type IcmRewardDetails = {
|
|
2728
|
+
/**
|
|
2729
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2730
|
+
*/
|
|
2731
|
+
address: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* The contract name.
|
|
2734
|
+
*/
|
|
2735
|
+
name: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* The contract symbol.
|
|
2738
|
+
*/
|
|
2739
|
+
symbol: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2742
|
+
*/
|
|
2743
|
+
decimals: number;
|
|
2744
|
+
/**
|
|
2745
|
+
* The logo uri for the address.
|
|
2746
|
+
*/
|
|
2747
|
+
logoUri?: string;
|
|
2748
|
+
ercType: IcmRewardDetails.ercType;
|
|
2749
|
+
/**
|
|
2750
|
+
* The token price, if available.
|
|
2751
|
+
*/
|
|
2752
|
+
price?: Money;
|
|
2753
|
+
value: string;
|
|
2754
|
+
};
|
|
2755
|
+
declare namespace IcmRewardDetails {
|
|
2756
|
+
enum ercType {
|
|
2757
|
+
ERC_20 = "ERC-20"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
type IcmSourceTransaction = {
|
|
2762
|
+
txHash: string;
|
|
2763
|
+
timestamp: number;
|
|
2764
|
+
gasSpent: string;
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
type DeliveredIcmMessage = {
|
|
2768
|
+
messageId: string;
|
|
2769
|
+
icmContractAddress: string;
|
|
2770
|
+
sourceBlockchainId: string;
|
|
2771
|
+
destinationBlockchainId: string;
|
|
2772
|
+
sourceEvmChainId: string;
|
|
2773
|
+
destinationEvmChainId: string;
|
|
2774
|
+
messageNonce: string;
|
|
2775
|
+
from: string;
|
|
2776
|
+
to: string;
|
|
2777
|
+
data?: string;
|
|
2778
|
+
messageExecuted: boolean;
|
|
2779
|
+
receipts: Array<IcmReceipt>;
|
|
2780
|
+
receiptDelivered: boolean;
|
|
2781
|
+
rewardDetails: IcmRewardDetails;
|
|
2782
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2783
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2784
|
+
status: DeliveredIcmMessage.status;
|
|
2785
|
+
};
|
|
2786
|
+
declare namespace DeliveredIcmMessage {
|
|
2787
|
+
enum status {
|
|
2788
|
+
DELIVERED = "delivered"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2793
|
+
messageId: string;
|
|
2794
|
+
icmContractAddress: string;
|
|
2795
|
+
sourceBlockchainId: string;
|
|
2796
|
+
destinationBlockchainId: string;
|
|
2797
|
+
sourceEvmChainId: string;
|
|
2798
|
+
destinationEvmChainId: string;
|
|
2799
|
+
messageNonce: string;
|
|
2800
|
+
from: string;
|
|
2801
|
+
to: string;
|
|
2802
|
+
data?: string;
|
|
2803
|
+
messageExecuted: boolean;
|
|
2804
|
+
receipts: Array<IcmReceipt>;
|
|
2805
|
+
receiptDelivered: boolean;
|
|
2806
|
+
rewardDetails: IcmRewardDetails;
|
|
2807
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2808
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2809
|
+
};
|
|
2810
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2811
|
+
enum status {
|
|
2812
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
type PendingIcmMessage = {
|
|
2817
|
+
messageId: string;
|
|
2818
|
+
icmContractAddress: string;
|
|
2819
|
+
sourceBlockchainId: string;
|
|
2820
|
+
destinationBlockchainId: string;
|
|
2821
|
+
sourceEvmChainId: string;
|
|
2822
|
+
destinationEvmChainId: string;
|
|
2823
|
+
messageNonce: string;
|
|
2824
|
+
from: string;
|
|
2825
|
+
to: string;
|
|
2826
|
+
data?: string;
|
|
2827
|
+
messageExecuted: boolean;
|
|
2828
|
+
receipts: Array<IcmReceipt>;
|
|
2829
|
+
receiptDelivered: boolean;
|
|
2830
|
+
rewardDetails: IcmRewardDetails;
|
|
2831
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2832
|
+
status: PendingIcmMessage.status;
|
|
2833
|
+
};
|
|
2834
|
+
declare namespace PendingIcmMessage {
|
|
2835
|
+
enum status {
|
|
2836
|
+
PENDING = "pending"
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type ListIcmMessagesResponse = {
|
|
2841
|
+
/**
|
|
2842
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2843
|
+
*/
|
|
2844
|
+
nextPageToken?: string;
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
declare class InterchainMessagingService {
|
|
2849
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2850
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2851
|
+
/**
|
|
2852
|
+
* Get an ICM message
|
|
2853
|
+
* Gets an ICM message by message ID.
|
|
2854
|
+
* @returns any Successful response
|
|
2260
2855
|
* @throws ApiError
|
|
2261
2856
|
*/
|
|
2262
|
-
|
|
2263
|
-
/**
|
|
2264
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2265
|
-
*/
|
|
2266
|
-
chainId: string;
|
|
2267
|
-
/**
|
|
2268
|
-
* A wallet address.
|
|
2269
|
-
*/
|
|
2270
|
-
address: string;
|
|
2271
|
-
/**
|
|
2272
|
-
* 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.
|
|
2273
|
-
*/
|
|
2274
|
-
startBlock?: number;
|
|
2857
|
+
getIcmMessage({ messageId, }: {
|
|
2275
2858
|
/**
|
|
2276
|
-
* The
|
|
2859
|
+
* The message ID of the ICM message.
|
|
2277
2860
|
*/
|
|
2278
|
-
|
|
2861
|
+
messageId: string;
|
|
2862
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2863
|
+
/**
|
|
2864
|
+
* List ICM messages
|
|
2865
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2866
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2867
|
+
* @throws ApiError
|
|
2868
|
+
*/
|
|
2869
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2279
2870
|
/**
|
|
2280
2871
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2281
2872
|
*/
|
|
@@ -2284,84 +2875,42 @@ declare class EvmTransactionsService {
|
|
|
2284
2875
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2285
2876
|
*/
|
|
2286
2877
|
pageSize?: number;
|
|
2287
|
-
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
2288
|
-
/**
|
|
2289
|
-
* List internal transactions
|
|
2290
|
-
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2291
|
-
*
|
|
2292
|
-
* 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.
|
|
2293
|
-
* @returns ListInternalTransactionsResponse Successful response
|
|
2294
|
-
* @throws ApiError
|
|
2295
|
-
*/
|
|
2296
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2297
|
-
/**
|
|
2298
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2299
|
-
*/
|
|
2300
|
-
chainId: string;
|
|
2301
|
-
/**
|
|
2302
|
-
* A wallet address.
|
|
2303
|
-
*/
|
|
2304
|
-
address: string;
|
|
2305
|
-
/**
|
|
2306
|
-
* 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.
|
|
2307
|
-
*/
|
|
2308
|
-
startBlock?: number;
|
|
2309
|
-
/**
|
|
2310
|
-
* 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.
|
|
2311
|
-
*/
|
|
2312
|
-
endBlock?: number;
|
|
2313
2878
|
/**
|
|
2314
|
-
*
|
|
2879
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2315
2880
|
*/
|
|
2316
|
-
|
|
2881
|
+
sourceBlockchainId?: string;
|
|
2317
2882
|
/**
|
|
2318
|
-
* The
|
|
2883
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2319
2884
|
*/
|
|
2320
|
-
|
|
2321
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2322
|
-
/**
|
|
2323
|
-
* Get transaction
|
|
2324
|
-
* Gets the details of a single transaction.
|
|
2325
|
-
* @returns GetTransactionResponse Successful response
|
|
2326
|
-
* @throws ApiError
|
|
2327
|
-
*/
|
|
2328
|
-
getTransaction({ chainId, txHash, }: {
|
|
2885
|
+
destinationBlockchainId?: string;
|
|
2329
2886
|
/**
|
|
2330
|
-
*
|
|
2887
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2331
2888
|
*/
|
|
2332
|
-
|
|
2889
|
+
blockchainId?: string;
|
|
2333
2890
|
/**
|
|
2334
|
-
*
|
|
2891
|
+
* The address of the recipient of the ICM message.
|
|
2335
2892
|
*/
|
|
2336
|
-
|
|
2337
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
2338
|
-
/**
|
|
2339
|
-
* List transactions for a block
|
|
2340
|
-
* Lists the transactions that occured in a given block.
|
|
2341
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
2342
|
-
* @throws ApiError
|
|
2343
|
-
*/
|
|
2344
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2893
|
+
to?: string;
|
|
2345
2894
|
/**
|
|
2346
|
-
*
|
|
2895
|
+
* The address of the sender of the ICM message.
|
|
2347
2896
|
*/
|
|
2348
|
-
|
|
2897
|
+
from?: string;
|
|
2349
2898
|
/**
|
|
2350
|
-
*
|
|
2899
|
+
* Either mainnet or testnet/fuji.
|
|
2351
2900
|
*/
|
|
2352
|
-
|
|
2353
|
-
}): CancelablePromise<
|
|
2901
|
+
network?: Network;
|
|
2902
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2354
2903
|
/**
|
|
2355
|
-
* List
|
|
2356
|
-
* Lists
|
|
2357
|
-
* @returns
|
|
2904
|
+
* List ICM messages by address
|
|
2905
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2906
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2358
2907
|
* @throws ApiError
|
|
2359
2908
|
*/
|
|
2360
|
-
|
|
2909
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2361
2910
|
/**
|
|
2362
|
-
*
|
|
2911
|
+
* An EVM address.
|
|
2363
2912
|
*/
|
|
2364
|
-
|
|
2913
|
+
address: string;
|
|
2365
2914
|
/**
|
|
2366
2915
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2367
2916
|
*/
|
|
@@ -2371,26 +2920,10 @@ declare class EvmTransactionsService {
|
|
|
2371
2920
|
*/
|
|
2372
2921
|
pageSize?: number;
|
|
2373
2922
|
/**
|
|
2374
|
-
*
|
|
2923
|
+
* Either mainnet or testnet/fuji.
|
|
2375
2924
|
*/
|
|
2376
|
-
|
|
2377
|
-
}): CancelablePromise<
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
declare class HealthCheckService {
|
|
2381
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2382
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2383
|
-
/**
|
|
2384
|
-
* Get the health of the service
|
|
2385
|
-
* @returns any The Health Check is successful
|
|
2386
|
-
* @throws ApiError
|
|
2387
|
-
*/
|
|
2388
|
-
dataHealthCheck(): CancelablePromise<{
|
|
2389
|
-
status?: string;
|
|
2390
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2391
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2392
|
-
details?: Record<string, Record<string, string>>;
|
|
2393
|
-
}>;
|
|
2925
|
+
network?: Network;
|
|
2926
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2394
2927
|
}
|
|
2395
2928
|
|
|
2396
2929
|
type ListNftTokens = {
|
|
@@ -2470,6 +3003,108 @@ declare class NfTsService {
|
|
|
2470
3003
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2471
3004
|
}
|
|
2472
3005
|
|
|
3006
|
+
type AccessRequest = {
|
|
3007
|
+
/**
|
|
3008
|
+
* The email address to send the access token to
|
|
3009
|
+
*/
|
|
3010
|
+
email: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* The captcha to verify the user
|
|
3013
|
+
*/
|
|
3014
|
+
captcha: string;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
type NotificationsResponse = {
|
|
3018
|
+
message: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
type SubscribeRequest = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The access token to use for authentication
|
|
3024
|
+
*/
|
|
3025
|
+
accessToken: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* The node ID to subscribe to
|
|
3028
|
+
*/
|
|
3029
|
+
nodeId: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3032
|
+
*/
|
|
3033
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
type SubscriptionsRequest = {
|
|
3037
|
+
/**
|
|
3038
|
+
* The access token to use for authentication
|
|
3039
|
+
*/
|
|
3040
|
+
accessToken: string;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
type SubscriptionsResponse = {
|
|
3044
|
+
/**
|
|
3045
|
+
* The email address of the user
|
|
3046
|
+
*/
|
|
3047
|
+
email: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* The subscriptions of the user
|
|
3050
|
+
*/
|
|
3051
|
+
subscriptions: Record<string, {
|
|
3052
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3053
|
+
}>;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
type UnsubscribeRequest = {
|
|
3057
|
+
/**
|
|
3058
|
+
* The access token to use for authentication
|
|
3059
|
+
*/
|
|
3060
|
+
accessToken: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The node ID to subscribe to
|
|
3063
|
+
*/
|
|
3064
|
+
nodeId: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare class NotificationsService {
|
|
3068
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3069
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3070
|
+
/**
|
|
3071
|
+
* Access Notifications
|
|
3072
|
+
* Access notifications.
|
|
3073
|
+
* @returns NotificationsResponse Successful response
|
|
3074
|
+
* @throws ApiError
|
|
3075
|
+
*/
|
|
3076
|
+
access({ requestBody, }: {
|
|
3077
|
+
requestBody: AccessRequest;
|
|
3078
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Subscribe to Notifications
|
|
3081
|
+
* Subscribe to receive notifications.
|
|
3082
|
+
* @returns NotificationsResponse Successful response
|
|
3083
|
+
* @throws ApiError
|
|
3084
|
+
*/
|
|
3085
|
+
subscribe({ requestBody, }: {
|
|
3086
|
+
requestBody: SubscribeRequest;
|
|
3087
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Unsubscribe from Notifications
|
|
3090
|
+
* Unsubscribe from receiving notifications.
|
|
3091
|
+
* @returns NotificationsResponse Successful response
|
|
3092
|
+
* @throws ApiError
|
|
3093
|
+
*/
|
|
3094
|
+
unsubscribe({ requestBody, }: {
|
|
3095
|
+
requestBody: UnsubscribeRequest;
|
|
3096
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get Subscriptions
|
|
3099
|
+
* Get subscriptions.
|
|
3100
|
+
* @returns SubscriptionsResponse Successful response
|
|
3101
|
+
* @throws ApiError
|
|
3102
|
+
*/
|
|
3103
|
+
subscriptions({ requestBody, }: {
|
|
3104
|
+
requestBody: SubscriptionsRequest;
|
|
3105
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
2473
3108
|
type EvmNetworkOptions = {
|
|
2474
3109
|
addresses: Array<string>;
|
|
2475
3110
|
includeChains: Array<string>;
|
|
@@ -2558,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2558
3193
|
operationType: OperationType;
|
|
2559
3194
|
operationStatus: OperationStatus;
|
|
2560
3195
|
message?: string;
|
|
2561
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2562
3197
|
createdAtTimestamp: number;
|
|
2563
3198
|
updatedAtTimestamp: number;
|
|
2564
3199
|
};
|
|
@@ -2622,16 +3257,31 @@ type DelegatorsDetails = {
|
|
|
2622
3257
|
};
|
|
2623
3258
|
|
|
2624
3259
|
type StakingDistribution = {
|
|
3260
|
+
/**
|
|
3261
|
+
* AvalancheGo version for the validator node.
|
|
3262
|
+
*/
|
|
2625
3263
|
version: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* The total amount staked by validators using this version.
|
|
3266
|
+
*/
|
|
2626
3267
|
amountStaked: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* The number of validators using this version.
|
|
3270
|
+
*/
|
|
2627
3271
|
validatorCount: number;
|
|
2628
3272
|
};
|
|
2629
3273
|
|
|
2630
3274
|
type ValidatorsDetails = {
|
|
2631
3275
|
validatorCount: number;
|
|
2632
3276
|
totalAmountStaked: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3279
|
+
*/
|
|
2633
3280
|
estimatedAnnualStakingReward: string;
|
|
2634
3281
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3282
|
+
/**
|
|
3283
|
+
* Ratio of total active stake amount to the current supply.
|
|
3284
|
+
*/
|
|
2635
3285
|
stakingRatio: string;
|
|
2636
3286
|
};
|
|
2637
3287
|
|
|
@@ -2683,7 +3333,13 @@ type CompletedDelegatorDetails = {
|
|
|
2683
3333
|
delegationFee: string;
|
|
2684
3334
|
startTimestamp: number;
|
|
2685
3335
|
endTimestamp: number;
|
|
3336
|
+
/**
|
|
3337
|
+
* Total rewards distributed for the successful delegation.
|
|
3338
|
+
*/
|
|
2686
3339
|
grossReward: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3342
|
+
*/
|
|
2687
3343
|
netReward: string;
|
|
2688
3344
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2689
3345
|
};
|
|
@@ -2701,7 +3357,13 @@ type PendingDelegatorDetails = {
|
|
|
2701
3357
|
delegationFee: string;
|
|
2702
3358
|
startTimestamp: number;
|
|
2703
3359
|
endTimestamp: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3362
|
+
*/
|
|
2704
3363
|
estimatedGrossReward: string;
|
|
3364
|
+
/**
|
|
3365
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3366
|
+
*/
|
|
2705
3367
|
estimatedNetReward: string;
|
|
2706
3368
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2707
3369
|
};
|
|
@@ -2819,6 +3481,10 @@ type Subnet = {
|
|
|
2819
3481
|
* Whether the subnet is an L1 or not.
|
|
2820
3482
|
*/
|
|
2821
3483
|
isL1: boolean;
|
|
3484
|
+
/**
|
|
3485
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3486
|
+
*/
|
|
3487
|
+
l1ConversionTransactionHash?: string;
|
|
2822
3488
|
/**
|
|
2823
3489
|
* L1 validator manager details.
|
|
2824
3490
|
*/
|
|
@@ -2870,6 +3536,9 @@ type ActiveValidatorDetails = {
|
|
|
2870
3536
|
nodeId: string;
|
|
2871
3537
|
subnetId: string;
|
|
2872
3538
|
amountStaked: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3541
|
+
*/
|
|
2873
3542
|
delegationFee?: string;
|
|
2874
3543
|
startTimestamp: number;
|
|
2875
3544
|
endTimestamp: number;
|
|
@@ -2877,12 +3546,30 @@ type ActiveValidatorDetails = {
|
|
|
2877
3546
|
* Present for AddPermissionlessValidatorTx
|
|
2878
3547
|
*/
|
|
2879
3548
|
blsCredentials?: BlsCredentials;
|
|
3549
|
+
/**
|
|
3550
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3551
|
+
*/
|
|
2880
3552
|
stakePercentage: number;
|
|
3553
|
+
/**
|
|
3554
|
+
* The number of delegators linked to the validator.
|
|
3555
|
+
*/
|
|
2881
3556
|
delegatorCount: number;
|
|
3557
|
+
/**
|
|
3558
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3559
|
+
*/
|
|
2882
3560
|
amountDelegated?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3563
|
+
*/
|
|
2883
3564
|
uptimePerformance: number;
|
|
2884
3565
|
avalancheGoVersion?: string;
|
|
3566
|
+
/**
|
|
3567
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3568
|
+
*/
|
|
2885
3569
|
delegationCapacity?: string;
|
|
3570
|
+
/**
|
|
3571
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3572
|
+
*/
|
|
2886
3573
|
potentialRewards: Rewards;
|
|
2887
3574
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2888
3575
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2898,6 +3585,9 @@ type CompletedValidatorDetails = {
|
|
|
2898
3585
|
nodeId: string;
|
|
2899
3586
|
subnetId: string;
|
|
2900
3587
|
amountStaked: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3590
|
+
*/
|
|
2901
3591
|
delegationFee?: string;
|
|
2902
3592
|
startTimestamp: number;
|
|
2903
3593
|
endTimestamp: number;
|
|
@@ -2921,6 +3611,9 @@ type PendingValidatorDetails = {
|
|
|
2921
3611
|
nodeId: string;
|
|
2922
3612
|
subnetId: string;
|
|
2923
3613
|
amountStaked: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3616
|
+
*/
|
|
2924
3617
|
delegationFee?: string;
|
|
2925
3618
|
startTimestamp: number;
|
|
2926
3619
|
endTimestamp: number;
|
|
@@ -2941,6 +3634,9 @@ type RemovedValidatorDetails = {
|
|
|
2941
3634
|
nodeId: string;
|
|
2942
3635
|
subnetId: string;
|
|
2943
3636
|
amountStaked: string;
|
|
3637
|
+
/**
|
|
3638
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3639
|
+
*/
|
|
2944
3640
|
delegationFee?: string;
|
|
2945
3641
|
startTimestamp: number;
|
|
2946
3642
|
endTimestamp: number;
|
|
@@ -2948,7 +3644,13 @@ type RemovedValidatorDetails = {
|
|
|
2948
3644
|
* Present for AddPermissionlessValidatorTx
|
|
2949
3645
|
*/
|
|
2950
3646
|
blsCredentials?: BlsCredentials;
|
|
3647
|
+
/**
|
|
3648
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3649
|
+
*/
|
|
2951
3650
|
removeTxHash: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3653
|
+
*/
|
|
2952
3654
|
removeTimestamp: number;
|
|
2953
3655
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2954
3656
|
};
|
|
@@ -4105,7 +4807,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4105
4807
|
*/
|
|
4106
4808
|
remainingBalance: number;
|
|
4107
4809
|
/**
|
|
4108
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4810
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4109
4811
|
*/
|
|
4110
4812
|
balanceChange?: number;
|
|
4111
4813
|
blsCredentials?: Record<string, any>;
|
|
@@ -4135,6 +4837,9 @@ declare enum PChainTransactionType {
|
|
|
4135
4837
|
UNKNOWN = "UNKNOWN"
|
|
4136
4838
|
}
|
|
4137
4839
|
|
|
4840
|
+
/**
|
|
4841
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4842
|
+
*/
|
|
4138
4843
|
declare enum UtxoType {
|
|
4139
4844
|
STAKE = "STAKE",
|
|
4140
4845
|
TRANSFER = "TRANSFER"
|
|
@@ -4172,16 +4877,43 @@ type PChainUtxo = {
|
|
|
4172
4877
|
assetId: string;
|
|
4173
4878
|
blockNumber: string;
|
|
4174
4879
|
blockTimestamp: number;
|
|
4880
|
+
/**
|
|
4881
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4882
|
+
*/
|
|
4175
4883
|
consumingBlockNumber?: string;
|
|
4884
|
+
/**
|
|
4885
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4886
|
+
*/
|
|
4176
4887
|
consumingBlockTimestamp?: number;
|
|
4888
|
+
/**
|
|
4889
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4890
|
+
*/
|
|
4177
4891
|
platformLocktime?: number;
|
|
4892
|
+
/**
|
|
4893
|
+
* The index of the UTXO in the transaction
|
|
4894
|
+
*/
|
|
4178
4895
|
outputIndex: number;
|
|
4179
4896
|
rewardType?: RewardType;
|
|
4897
|
+
/**
|
|
4898
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4899
|
+
*/
|
|
4180
4900
|
stakeableLocktime?: number;
|
|
4181
4901
|
staked?: boolean;
|
|
4902
|
+
/**
|
|
4903
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4904
|
+
*/
|
|
4182
4905
|
threshold?: number;
|
|
4906
|
+
/**
|
|
4907
|
+
* The hash of the transaction that created this UTXO
|
|
4908
|
+
*/
|
|
4183
4909
|
txHash: string;
|
|
4910
|
+
/**
|
|
4911
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4912
|
+
*/
|
|
4184
4913
|
utxoEndTimestamp?: number;
|
|
4914
|
+
/**
|
|
4915
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4916
|
+
*/
|
|
4185
4917
|
utxoStartTimestamp?: number;
|
|
4186
4918
|
utxoType: UtxoType;
|
|
4187
4919
|
};
|
|
@@ -4196,9 +4928,18 @@ type PChainTransaction = {
|
|
|
4196
4928
|
* The block finality timestamp.
|
|
4197
4929
|
*/
|
|
4198
4930
|
blockTimestamp: number;
|
|
4931
|
+
/**
|
|
4932
|
+
* The height of the block in which the transaction was included
|
|
4933
|
+
*/
|
|
4199
4934
|
blockNumber: string;
|
|
4200
4935
|
blockHash: string;
|
|
4936
|
+
/**
|
|
4937
|
+
* The consumed UTXOs of the transaction
|
|
4938
|
+
*/
|
|
4201
4939
|
consumedUtxos: Array<PChainUtxo>;
|
|
4940
|
+
/**
|
|
4941
|
+
* The newly created UTXOs of the transaction
|
|
4942
|
+
*/
|
|
4202
4943
|
emittedUtxos: Array<PChainUtxo>;
|
|
4203
4944
|
/**
|
|
4204
4945
|
* Source chain for an atomic transaction.
|
|
@@ -4209,11 +4950,11 @@ type PChainTransaction = {
|
|
|
4209
4950
|
*/
|
|
4210
4951
|
destinationChain?: string;
|
|
4211
4952
|
/**
|
|
4212
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4953
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4213
4954
|
*/
|
|
4214
4955
|
value: Array<AssetAmount>;
|
|
4215
4956
|
/**
|
|
4216
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4957
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4217
4958
|
*/
|
|
4218
4959
|
amountBurned: Array<AssetAmount>;
|
|
4219
4960
|
/**
|
|
@@ -4221,7 +4962,7 @@ type PChainTransaction = {
|
|
|
4221
4962
|
*/
|
|
4222
4963
|
amountStaked: Array<AssetAmount>;
|
|
4223
4964
|
/**
|
|
4224
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4965
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4225
4966
|
*/
|
|
4226
4967
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4227
4968
|
/**
|
|
@@ -4233,11 +4974,11 @@ type PChainTransaction = {
|
|
|
4233
4974
|
*/
|
|
4234
4975
|
endTimestamp?: number;
|
|
4235
4976
|
/**
|
|
4236
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4977
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4237
4978
|
*/
|
|
4238
4979
|
delegationFeePercent?: string;
|
|
4239
4980
|
/**
|
|
4240
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4981
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4241
4982
|
*/
|
|
4242
4983
|
nodeId?: string;
|
|
4243
4984
|
/**
|
|
@@ -4253,14 +4994,17 @@ type PChainTransaction = {
|
|
|
4253
4994
|
*/
|
|
4254
4995
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4255
4996
|
/**
|
|
4256
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4997
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4257
4998
|
*/
|
|
4258
4999
|
estimatedReward?: string;
|
|
5000
|
+
/**
|
|
5001
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5002
|
+
*/
|
|
4259
5003
|
rewardTxHash?: string;
|
|
4260
5004
|
rewardAddresses?: Array<string>;
|
|
4261
5005
|
memo?: string;
|
|
4262
5006
|
/**
|
|
4263
|
-
*
|
|
5007
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4264
5008
|
*/
|
|
4265
5009
|
stakingTxHash?: string;
|
|
4266
5010
|
/**
|
|
@@ -4268,7 +5012,7 @@ type PChainTransaction = {
|
|
|
4268
5012
|
*/
|
|
4269
5013
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4270
5014
|
/**
|
|
4271
|
-
* Present for AddPermissionlessValidatorTx
|
|
5015
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4272
5016
|
*/
|
|
4273
5017
|
blsCredentials?: BlsCredentials;
|
|
4274
5018
|
};
|
|
@@ -4807,7 +5551,11 @@ declare class SignatureAggregatorService {
|
|
|
4807
5551
|
* @returns SignatureAggregationResponse Successful response
|
|
4808
5552
|
* @throws ApiError
|
|
4809
5553
|
*/
|
|
4810
|
-
aggregateSignatures({ requestBody, }: {
|
|
5554
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5555
|
+
/**
|
|
5556
|
+
* Either mainnet or testnet/fuji.
|
|
5557
|
+
*/
|
|
5558
|
+
network: Network;
|
|
4811
5559
|
requestBody: SignatureAggregatorRequest;
|
|
4812
5560
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4813
5561
|
}
|
|
@@ -4950,8 +5698,10 @@ declare class TeleporterService {
|
|
|
4950
5698
|
readonly httpRequest: BaseHttpRequest;
|
|
4951
5699
|
constructor(httpRequest: BaseHttpRequest);
|
|
4952
5700
|
/**
|
|
4953
|
-
*
|
|
4954
|
-
* Gets a teleporter message by message ID.
|
|
5701
|
+
* @deprecated
|
|
5702
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5703
|
+
*
|
|
5704
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4955
5705
|
* @returns any Successful response
|
|
4956
5706
|
* @throws ApiError
|
|
4957
5707
|
*/
|
|
@@ -4962,8 +5712,10 @@ declare class TeleporterService {
|
|
|
4962
5712
|
messageId: string;
|
|
4963
5713
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4964
5714
|
/**
|
|
4965
|
-
*
|
|
4966
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5715
|
+
* @deprecated
|
|
5716
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5717
|
+
*
|
|
5718
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4967
5719
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4968
5720
|
* @throws ApiError
|
|
4969
5721
|
*/
|
|
@@ -5002,8 +5754,10 @@ declare class TeleporterService {
|
|
|
5002
5754
|
network?: Network;
|
|
5003
5755
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5004
5756
|
/**
|
|
5005
|
-
*
|
|
5006
|
-
* Lists teleporter messages by address. Ordered by
|
|
5757
|
+
* @deprecated
|
|
5758
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5759
|
+
*
|
|
5760
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5007
5761
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5008
5762
|
* @throws ApiError
|
|
5009
5763
|
*/
|
|
@@ -5199,12 +5953,12 @@ declare class WebhooksService {
|
|
|
5199
5953
|
requestBody: UpdateWebhookRequest;
|
|
5200
5954
|
}): CancelablePromise<WebhookResponse>;
|
|
5201
5955
|
/**
|
|
5202
|
-
* Generate a shared secret
|
|
5203
|
-
* Generates a new shared secret.
|
|
5956
|
+
* Generate or rotate a shared secret
|
|
5957
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5204
5958
|
* @returns SharedSecretsResponse Successful response
|
|
5205
5959
|
* @throws ApiError
|
|
5206
5960
|
*/
|
|
5207
|
-
|
|
5961
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5208
5962
|
/**
|
|
5209
5963
|
* Get a shared secret
|
|
5210
5964
|
* Get a previously generated shared secret.
|
|
@@ -5270,7 +6024,9 @@ declare class Glacier {
|
|
|
5270
6024
|
readonly evmContracts: EvmContractsService;
|
|
5271
6025
|
readonly evmTransactions: EvmTransactionsService;
|
|
5272
6026
|
readonly healthCheck: HealthCheckService;
|
|
6027
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5273
6028
|
readonly nfTs: NfTsService;
|
|
6029
|
+
readonly notifications: NotificationsService;
|
|
5274
6030
|
readonly operations: OperationsService;
|
|
5275
6031
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5276
6032
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5434,4 +6190,4 @@ type Unauthorized = {
|
|
|
5434
6190
|
error: string;
|
|
5435
6191
|
};
|
|
5436
6192
|
|
|
5437
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum,
|
|
6193
|
+
export { AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|