@avalabs/glacier-sdk 3.1.0-canary.f0c54c3.0 → 3.1.0-canary.f255846.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 +930 -136
- 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/AccessListData.d.ts +12 -0
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -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/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +11 -5
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- 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/InternalTransaction.d.ts +15 -16
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +4 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +4 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- 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/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/Subnet.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- 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/PrimaryNetworkService.d.ts +18 -1
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +16 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +32 -3
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -151,11 +151,11 @@ type LogsResponseDTO = {
|
|
|
151
151
|
declare enum Network {
|
|
152
152
|
MAINNET = "mainnet",
|
|
153
153
|
FUJI = "fuji",
|
|
154
|
-
TESTNET = "testnet"
|
|
155
|
-
DEVNET = "devnet"
|
|
154
|
+
TESTNET = "testnet"
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
158
|
+
RPC_METHOD = "rpcMethod",
|
|
159
159
|
REQUEST_PATH = "requestPath",
|
|
160
160
|
RESPONSE_CODE = "responseCode",
|
|
161
161
|
COUNTRY = "country",
|
|
@@ -163,13 +163,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
163
|
USER_AGENT = "userAgent"
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
166
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
167
|
HOURLY = "hourly",
|
|
174
168
|
DAILY = "daily",
|
|
175
169
|
WEEKLY = "weekly",
|
|
@@ -222,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
216
|
RPC_METHOD = "rpcMethod",
|
|
223
217
|
RESPONSE_CODE = "responseCode",
|
|
224
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
225
223
|
NONE = "None"
|
|
226
224
|
}
|
|
227
225
|
}
|
|
@@ -237,6 +235,43 @@ type RpcMetrics = {
|
|
|
237
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
236
|
};
|
|
239
237
|
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
239
|
+
/**
|
|
240
|
+
* Duration in which the metrics value is aggregated
|
|
241
|
+
*/
|
|
242
|
+
aggregateDuration: string;
|
|
243
|
+
/**
|
|
244
|
+
* Metrics values
|
|
245
|
+
*/
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
240
275
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
276
|
/**
|
|
242
277
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +486,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
486
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
487
|
* @throws ApiError
|
|
453
488
|
*/
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
490
|
+
/**
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
493
|
+
*/
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
495
|
+
/**
|
|
496
|
+
* 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.
|
|
497
|
+
*/
|
|
498
|
+
startTimestamp?: number;
|
|
499
|
+
/**
|
|
500
|
+
* 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.
|
|
501
|
+
*/
|
|
502
|
+
endTimestamp?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Query param for the criterion used for grouping metrics
|
|
505
|
+
*/
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
507
|
+
/**
|
|
508
|
+
* Filter data by chain ID.
|
|
509
|
+
*/
|
|
510
|
+
chainId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Filter data by response status code.
|
|
513
|
+
*/
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
530
|
+
* @throws ApiError
|
|
531
|
+
*/
|
|
454
532
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
533
|
/**
|
|
456
534
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +567,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
567
|
/**
|
|
490
568
|
* Get usage metrics for the Primary Network RPC
|
|
491
569
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
570
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
571
|
* @throws ApiError
|
|
494
572
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
573
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
574
|
/**
|
|
497
575
|
* Either mainnet or testnet/fuji.
|
|
498
576
|
*/
|
|
@@ -501,7 +579,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
579
|
* Time interval granularity for data aggregation for subnet
|
|
502
580
|
* rpc metrics
|
|
503
581
|
*/
|
|
504
|
-
timeInterval?:
|
|
582
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
583
|
/**
|
|
506
584
|
* 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
585
|
*/
|
|
@@ -523,18 +601,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
601
|
*/
|
|
524
602
|
requestPath?: string;
|
|
525
603
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
604
|
+
* 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.
|
|
527
605
|
*/
|
|
528
606
|
country?: string;
|
|
529
607
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
608
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
609
|
*/
|
|
532
610
|
continent?: string;
|
|
533
611
|
/**
|
|
534
612
|
* Filter data by User Agent.
|
|
535
613
|
*/
|
|
536
614
|
userAgent?: string;
|
|
537
|
-
|
|
615
|
+
/**
|
|
616
|
+
* Filter data by RPC method.
|
|
617
|
+
*/
|
|
618
|
+
rpcMethod?: string;
|
|
619
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
620
|
}
|
|
539
621
|
|
|
540
622
|
declare class DefaultService {
|
|
@@ -782,16 +864,16 @@ type Erc20TokenBalance = {
|
|
|
782
864
|
*/
|
|
783
865
|
balanceValue?: Money;
|
|
784
866
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
867
|
+
* 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
868
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
870
|
};
|
|
789
871
|
declare namespace Erc20TokenBalance {
|
|
790
872
|
enum ercType {
|
|
791
873
|
ERC_20 = "ERC-20"
|
|
792
874
|
}
|
|
793
875
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
876
|
+
* 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
877
|
*/
|
|
796
878
|
enum tokenReputation {
|
|
797
879
|
MALICIOUS = "Malicious",
|
|
@@ -886,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
886
968
|
*/
|
|
887
969
|
pageToken?: string;
|
|
888
970
|
/**
|
|
889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
971
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
890
972
|
*/
|
|
891
973
|
pageSize?: number;
|
|
892
974
|
/**
|
|
@@ -924,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
924
1006
|
*/
|
|
925
1007
|
pageToken?: string;
|
|
926
1008
|
/**
|
|
927
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1009
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
928
1010
|
*/
|
|
929
1011
|
pageSize?: number;
|
|
930
1012
|
/**
|
|
@@ -960,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
960
1042
|
*/
|
|
961
1043
|
pageToken?: string;
|
|
962
1044
|
/**
|
|
963
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1045
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
964
1046
|
*/
|
|
965
1047
|
pageSize?: number;
|
|
966
1048
|
/**
|
|
@@ -990,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
990
1072
|
*/
|
|
991
1073
|
pageToken?: string;
|
|
992
1074
|
/**
|
|
993
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
994
1076
|
*/
|
|
995
1077
|
pageSize?: number;
|
|
996
1078
|
/**
|
|
@@ -2138,31 +2220,33 @@ type ListErc721TransactionsResponse = {
|
|
|
2138
2220
|
|
|
2139
2221
|
type InternalTransaction = {
|
|
2140
2222
|
/**
|
|
2141
|
-
*
|
|
2223
|
+
* Sender address
|
|
2142
2224
|
*/
|
|
2143
|
-
|
|
2225
|
+
from: string;
|
|
2144
2226
|
/**
|
|
2145
|
-
*
|
|
2227
|
+
* Recipient address
|
|
2146
2228
|
*/
|
|
2147
|
-
|
|
2229
|
+
to: string;
|
|
2148
2230
|
/**
|
|
2149
|
-
*
|
|
2231
|
+
* Internal transaction type
|
|
2150
2232
|
*/
|
|
2151
|
-
|
|
2233
|
+
internalTxType: string;
|
|
2152
2234
|
/**
|
|
2153
|
-
*
|
|
2235
|
+
* Value transferred
|
|
2154
2236
|
*/
|
|
2155
|
-
txHash: string;
|
|
2156
|
-
from: RichAddress;
|
|
2157
|
-
to: RichAddress;
|
|
2158
|
-
internalTxType: InternalTransactionOpCall;
|
|
2159
2237
|
value: string;
|
|
2160
2238
|
/**
|
|
2161
|
-
*
|
|
2239
|
+
* Gas used
|
|
2162
2240
|
*/
|
|
2163
|
-
isReverted: boolean;
|
|
2164
2241
|
gasUsed: string;
|
|
2242
|
+
/**
|
|
2243
|
+
* Gas limit
|
|
2244
|
+
*/
|
|
2165
2245
|
gasLimit: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* Transaction hash
|
|
2248
|
+
*/
|
|
2249
|
+
transactionHash: string;
|
|
2166
2250
|
};
|
|
2167
2251
|
|
|
2168
2252
|
type ListInternalTransactionsResponse = {
|
|
@@ -2586,68 +2670,204 @@ declare class EvmTransactionsService {
|
|
|
2586
2670
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2671
|
}
|
|
2588
2672
|
|
|
2673
|
+
type HealthIndicatorResultDto = {
|
|
2674
|
+
/**
|
|
2675
|
+
* Status of the health indicator.
|
|
2676
|
+
*/
|
|
2677
|
+
status?: HealthIndicatorResultDto.status;
|
|
2678
|
+
};
|
|
2679
|
+
declare namespace HealthIndicatorResultDto {
|
|
2680
|
+
/**
|
|
2681
|
+
* Status of the health indicator.
|
|
2682
|
+
*/
|
|
2683
|
+
enum status {
|
|
2684
|
+
UP = "up",
|
|
2685
|
+
DOWN = "down"
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
type HealthCheckResultDto = {
|
|
2690
|
+
status?: HealthCheckResultDto.status;
|
|
2691
|
+
info?: any | null;
|
|
2692
|
+
error?: any | null;
|
|
2693
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2694
|
+
};
|
|
2695
|
+
declare namespace HealthCheckResultDto {
|
|
2696
|
+
enum status {
|
|
2697
|
+
ERROR = "error",
|
|
2698
|
+
OK = "ok",
|
|
2699
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2589
2703
|
declare class HealthCheckService {
|
|
2590
2704
|
readonly httpRequest: BaseHttpRequest;
|
|
2591
2705
|
constructor(httpRequest: BaseHttpRequest);
|
|
2592
2706
|
/**
|
|
2593
2707
|
* Get the health of the service
|
|
2594
|
-
*
|
|
2708
|
+
* Check the health of the service.
|
|
2709
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2595
2710
|
* @throws ApiError
|
|
2596
2711
|
*/
|
|
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
|
-
}>;
|
|
2712
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2603
2713
|
}
|
|
2604
2714
|
|
|
2605
|
-
type
|
|
2715
|
+
type IcmDestinationTransaction = {
|
|
2716
|
+
txHash: string;
|
|
2717
|
+
timestamp: number;
|
|
2718
|
+
gasSpent: string;
|
|
2719
|
+
rewardRedeemer: string;
|
|
2720
|
+
delivererAddress: string;
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
type IcmReceipt = {
|
|
2724
|
+
receivedMessageNonce: string;
|
|
2725
|
+
relayerRewardAddress: string;
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
type IcmRewardDetails = {
|
|
2729
|
+
/**
|
|
2730
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2731
|
+
*/
|
|
2732
|
+
address: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* The contract name.
|
|
2735
|
+
*/
|
|
2736
|
+
name: string;
|
|
2737
|
+
/**
|
|
2738
|
+
* The contract symbol.
|
|
2739
|
+
*/
|
|
2740
|
+
symbol: string;
|
|
2741
|
+
/**
|
|
2742
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2743
|
+
*/
|
|
2744
|
+
decimals: number;
|
|
2745
|
+
/**
|
|
2746
|
+
* The logo uri for the address.
|
|
2747
|
+
*/
|
|
2748
|
+
logoUri?: string;
|
|
2749
|
+
ercType: IcmRewardDetails.ercType;
|
|
2750
|
+
/**
|
|
2751
|
+
* The token price, if available.
|
|
2752
|
+
*/
|
|
2753
|
+
price?: Money;
|
|
2754
|
+
value: string;
|
|
2755
|
+
};
|
|
2756
|
+
declare namespace IcmRewardDetails {
|
|
2757
|
+
enum ercType {
|
|
2758
|
+
ERC_20 = "ERC-20"
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
type IcmSourceTransaction = {
|
|
2763
|
+
txHash: string;
|
|
2764
|
+
timestamp: number;
|
|
2765
|
+
gasSpent: string;
|
|
2766
|
+
};
|
|
2767
|
+
|
|
2768
|
+
type DeliveredIcmMessage = {
|
|
2769
|
+
messageId: string;
|
|
2770
|
+
icmContractAddress: string;
|
|
2771
|
+
sourceBlockchainId: string;
|
|
2772
|
+
destinationBlockchainId: string;
|
|
2773
|
+
sourceEvmChainId: string;
|
|
2774
|
+
destinationEvmChainId: string;
|
|
2775
|
+
messageNonce: string;
|
|
2776
|
+
from: string;
|
|
2777
|
+
to: string;
|
|
2778
|
+
data?: string;
|
|
2779
|
+
messageExecuted: boolean;
|
|
2780
|
+
receipts: Array<IcmReceipt>;
|
|
2781
|
+
receiptDelivered: boolean;
|
|
2782
|
+
rewardDetails: IcmRewardDetails;
|
|
2783
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2784
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2785
|
+
status: DeliveredIcmMessage.status;
|
|
2786
|
+
};
|
|
2787
|
+
declare namespace DeliveredIcmMessage {
|
|
2788
|
+
enum status {
|
|
2789
|
+
DELIVERED = "delivered"
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2794
|
+
messageId: string;
|
|
2795
|
+
icmContractAddress: string;
|
|
2796
|
+
sourceBlockchainId: string;
|
|
2797
|
+
destinationBlockchainId: string;
|
|
2798
|
+
sourceEvmChainId: string;
|
|
2799
|
+
destinationEvmChainId: string;
|
|
2800
|
+
messageNonce: string;
|
|
2801
|
+
from: string;
|
|
2802
|
+
to: string;
|
|
2803
|
+
data?: string;
|
|
2804
|
+
messageExecuted: boolean;
|
|
2805
|
+
receipts: Array<IcmReceipt>;
|
|
2806
|
+
receiptDelivered: boolean;
|
|
2807
|
+
rewardDetails: IcmRewardDetails;
|
|
2808
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2809
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2810
|
+
};
|
|
2811
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2812
|
+
enum status {
|
|
2813
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
type PendingIcmMessage = {
|
|
2818
|
+
messageId: string;
|
|
2819
|
+
icmContractAddress: string;
|
|
2820
|
+
sourceBlockchainId: string;
|
|
2821
|
+
destinationBlockchainId: string;
|
|
2822
|
+
sourceEvmChainId: string;
|
|
2823
|
+
destinationEvmChainId: string;
|
|
2824
|
+
messageNonce: string;
|
|
2825
|
+
from: string;
|
|
2826
|
+
to: string;
|
|
2827
|
+
data?: string;
|
|
2828
|
+
messageExecuted: boolean;
|
|
2829
|
+
receipts: Array<IcmReceipt>;
|
|
2830
|
+
receiptDelivered: boolean;
|
|
2831
|
+
rewardDetails: IcmRewardDetails;
|
|
2832
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2833
|
+
status: PendingIcmMessage.status;
|
|
2834
|
+
};
|
|
2835
|
+
declare namespace PendingIcmMessage {
|
|
2836
|
+
enum status {
|
|
2837
|
+
PENDING = "pending"
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
type ListIcmMessagesResponse = {
|
|
2606
2842
|
/**
|
|
2607
2843
|
* 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.
|
|
2608
2844
|
*/
|
|
2609
2845
|
nextPageToken?: string;
|
|
2610
|
-
|
|
2846
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2611
2847
|
};
|
|
2612
2848
|
|
|
2613
|
-
declare class
|
|
2849
|
+
declare class InterchainMessagingService {
|
|
2614
2850
|
readonly httpRequest: BaseHttpRequest;
|
|
2615
2851
|
constructor(httpRequest: BaseHttpRequest);
|
|
2616
2852
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2853
|
+
* Get an ICM message
|
|
2854
|
+
* Gets an ICM message by message ID.
|
|
2619
2855
|
* @returns any Successful response
|
|
2620
2856
|
* @throws ApiError
|
|
2621
2857
|
*/
|
|
2622
|
-
|
|
2623
|
-
/**
|
|
2624
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2625
|
-
*/
|
|
2626
|
-
chainId: string;
|
|
2627
|
-
/**
|
|
2628
|
-
* Contract address on the relevant chain.
|
|
2629
|
-
*/
|
|
2630
|
-
address: string;
|
|
2858
|
+
getIcmMessage({ messageId, }: {
|
|
2631
2859
|
/**
|
|
2632
|
-
*
|
|
2860
|
+
* The message ID of the ICM message.
|
|
2633
2861
|
*/
|
|
2634
|
-
|
|
2635
|
-
}): CancelablePromise<
|
|
2862
|
+
messageId: string;
|
|
2863
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2636
2864
|
/**
|
|
2637
|
-
* List
|
|
2638
|
-
* Lists
|
|
2639
|
-
* @returns
|
|
2865
|
+
* List ICM messages
|
|
2866
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2867
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2640
2868
|
* @throws ApiError
|
|
2641
2869
|
*/
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
-
*/
|
|
2646
|
-
chainId: string;
|
|
2647
|
-
/**
|
|
2648
|
-
* Contract address on the relevant chain.
|
|
2649
|
-
*/
|
|
2650
|
-
address: string;
|
|
2870
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2651
2871
|
/**
|
|
2652
2872
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
2873
|
*/
|
|
@@ -2656,11 +2876,116 @@ declare class NfTsService {
|
|
|
2656
2876
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
2877
|
*/
|
|
2658
2878
|
pageSize?: number;
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2879
|
+
/**
|
|
2880
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2881
|
+
*/
|
|
2882
|
+
sourceBlockchainId?: string;
|
|
2883
|
+
/**
|
|
2884
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2885
|
+
*/
|
|
2886
|
+
destinationBlockchainId?: string;
|
|
2887
|
+
/**
|
|
2888
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2889
|
+
*/
|
|
2890
|
+
blockchainId?: string;
|
|
2891
|
+
/**
|
|
2892
|
+
* The address of the recipient of the ICM message.
|
|
2893
|
+
*/
|
|
2894
|
+
to?: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* The address of the sender of the ICM message.
|
|
2897
|
+
*/
|
|
2898
|
+
from?: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Either mainnet or testnet/fuji.
|
|
2901
|
+
*/
|
|
2902
|
+
network?: Network;
|
|
2903
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2904
|
+
/**
|
|
2905
|
+
* List ICM messages by address
|
|
2906
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2907
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2908
|
+
* @throws ApiError
|
|
2909
|
+
*/
|
|
2910
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2911
|
+
/**
|
|
2912
|
+
* An EVM address.
|
|
2913
|
+
*/
|
|
2914
|
+
address: string;
|
|
2915
|
+
/**
|
|
2916
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2917
|
+
*/
|
|
2918
|
+
pageToken?: string;
|
|
2919
|
+
/**
|
|
2920
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2921
|
+
*/
|
|
2922
|
+
pageSize?: number;
|
|
2923
|
+
/**
|
|
2924
|
+
* Either mainnet or testnet/fuji.
|
|
2925
|
+
*/
|
|
2926
|
+
network?: Network;
|
|
2927
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
type ListNftTokens = {
|
|
2931
|
+
/**
|
|
2932
|
+
* 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.
|
|
2933
|
+
*/
|
|
2934
|
+
nextPageToken?: string;
|
|
2935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
declare class NfTsService {
|
|
2939
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2940
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2941
|
+
/**
|
|
2942
|
+
* Reindex NFT metadata
|
|
2943
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2944
|
+
* @returns any Successful response
|
|
2945
|
+
* @throws ApiError
|
|
2946
|
+
*/
|
|
2947
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2948
|
+
/**
|
|
2949
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2950
|
+
*/
|
|
2951
|
+
chainId: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* Contract address on the relevant chain.
|
|
2954
|
+
*/
|
|
2955
|
+
address: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* TokenId on the contract
|
|
2958
|
+
*/
|
|
2959
|
+
tokenId: string;
|
|
2960
|
+
}): CancelablePromise<any>;
|
|
2961
|
+
/**
|
|
2962
|
+
* List tokens
|
|
2963
|
+
* Lists tokens for an NFT contract.
|
|
2964
|
+
* @returns ListNftTokens Successful response
|
|
2965
|
+
* @throws ApiError
|
|
2966
|
+
*/
|
|
2967
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2968
|
+
/**
|
|
2969
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2970
|
+
*/
|
|
2971
|
+
chainId: string;
|
|
2972
|
+
/**
|
|
2973
|
+
* Contract address on the relevant chain.
|
|
2974
|
+
*/
|
|
2975
|
+
address: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2978
|
+
*/
|
|
2979
|
+
pageToken?: string;
|
|
2980
|
+
/**
|
|
2981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2982
|
+
*/
|
|
2983
|
+
pageSize?: number;
|
|
2984
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2985
|
+
/**
|
|
2986
|
+
* Get token details
|
|
2987
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2988
|
+
* @returns any Successful response
|
|
2664
2989
|
* @throws ApiError
|
|
2665
2990
|
*/
|
|
2666
2991
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
@@ -2869,7 +3194,7 @@ type OperationStatusResponse = {
|
|
|
2869
3194
|
operationType: OperationType;
|
|
2870
3195
|
operationStatus: OperationStatus;
|
|
2871
3196
|
message?: string;
|
|
2872
|
-
metadata
|
|
3197
|
+
metadata?: TransactionExportMetadata;
|
|
2873
3198
|
createdAtTimestamp: number;
|
|
2874
3199
|
updatedAtTimestamp: number;
|
|
2875
3200
|
};
|
|
@@ -2902,6 +3227,15 @@ declare class OperationsService {
|
|
|
2902
3227
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2903
3228
|
}
|
|
2904
3229
|
|
|
3230
|
+
type Blockchain = {
|
|
3231
|
+
createBlockTimestamp: number;
|
|
3232
|
+
createBlockNumber: string;
|
|
3233
|
+
blockchainId: string;
|
|
3234
|
+
vmId: string;
|
|
3235
|
+
subnetId: string;
|
|
3236
|
+
blockchainName: string;
|
|
3237
|
+
};
|
|
3238
|
+
|
|
2905
3239
|
declare enum BlockchainIds {
|
|
2906
3240
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2907
3241
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
@@ -2966,15 +3300,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2966
3300
|
delegatorDetails: DelegatorsDetails;
|
|
2967
3301
|
};
|
|
2968
3302
|
|
|
2969
|
-
type Blockchain = {
|
|
2970
|
-
createBlockTimestamp: number;
|
|
2971
|
-
createBlockNumber: string;
|
|
2972
|
-
blockchainId: string;
|
|
2973
|
-
vmId: string;
|
|
2974
|
-
subnetId: string;
|
|
2975
|
-
blockchainName: string;
|
|
2976
|
-
};
|
|
2977
|
-
|
|
2978
3303
|
type ListBlockchainsResponse = {
|
|
2979
3304
|
/**
|
|
2980
3305
|
* 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.
|
|
@@ -3070,6 +3395,10 @@ type L1ValidatorDetailsFull = {
|
|
|
3070
3395
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3071
3396
|
*/
|
|
3072
3397
|
validationId: string;
|
|
3398
|
+
/**
|
|
3399
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3400
|
+
*/
|
|
3401
|
+
validationIdHex: string;
|
|
3073
3402
|
nodeId: string;
|
|
3074
3403
|
subnetId: string;
|
|
3075
3404
|
/**
|
|
@@ -3106,10 +3435,6 @@ type ListL1ValidatorsResponse = {
|
|
|
3106
3435
|
validators: Array<L1ValidatorDetailsFull>;
|
|
3107
3436
|
};
|
|
3108
3437
|
|
|
3109
|
-
type BlockchainInfo = {
|
|
3110
|
-
blockchainId: string;
|
|
3111
|
-
};
|
|
3112
|
-
|
|
3113
3438
|
type L1ValidatorManagerDetails = {
|
|
3114
3439
|
blockchainId: string;
|
|
3115
3440
|
contractAddress: string;
|
|
@@ -3165,7 +3490,7 @@ type Subnet = {
|
|
|
3165
3490
|
* L1 validator manager details.
|
|
3166
3491
|
*/
|
|
3167
3492
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3168
|
-
blockchains: Array<
|
|
3493
|
+
blockchains: Array<Blockchain>;
|
|
3169
3494
|
};
|
|
3170
3495
|
|
|
3171
3496
|
type ListSubnetsResponse = {
|
|
@@ -3485,6 +3810,22 @@ declare class PrimaryNetworkService {
|
|
|
3485
3810
|
*/
|
|
3486
3811
|
sortOrder?: SortOrder;
|
|
3487
3812
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3813
|
+
/**
|
|
3814
|
+
* Get blockchain details by ID
|
|
3815
|
+
* Get details of the blockchain registered on the network.
|
|
3816
|
+
* @returns Blockchain Successful response
|
|
3817
|
+
* @throws ApiError
|
|
3818
|
+
*/
|
|
3819
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3820
|
+
/**
|
|
3821
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3822
|
+
*/
|
|
3823
|
+
blockchainId: string;
|
|
3824
|
+
/**
|
|
3825
|
+
* Either mainnet or testnet/fuji.
|
|
3826
|
+
*/
|
|
3827
|
+
network: Network;
|
|
3828
|
+
}): CancelablePromise<Blockchain>;
|
|
3488
3829
|
/**
|
|
3489
3830
|
* List subnets
|
|
3490
3831
|
* Lists all subnets registered on the network.
|
|
@@ -3689,7 +4030,7 @@ declare class PrimaryNetworkService {
|
|
|
3689
4030
|
/**
|
|
3690
4031
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3691
4032
|
*/
|
|
3692
|
-
l1ValidationId?:
|
|
4033
|
+
l1ValidationId?: string;
|
|
3693
4034
|
includeInactiveL1Validators?: boolean;
|
|
3694
4035
|
/**
|
|
3695
4036
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -4472,6 +4813,10 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4472
4813
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4473
4814
|
*/
|
|
4474
4815
|
validationId: string;
|
|
4816
|
+
/**
|
|
4817
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4818
|
+
*/
|
|
4819
|
+
validationIdHex: string;
|
|
4475
4820
|
nodeId: string;
|
|
4476
4821
|
subnetId: string;
|
|
4477
4822
|
/**
|
|
@@ -5234,6 +5579,22 @@ declare class SignatureAggregatorService {
|
|
|
5234
5579
|
network: Network;
|
|
5235
5580
|
requestBody: SignatureAggregatorRequest;
|
|
5236
5581
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5582
|
+
/**
|
|
5583
|
+
* Get Aggregated Signatures
|
|
5584
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5585
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5586
|
+
* @throws ApiError
|
|
5587
|
+
*/
|
|
5588
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5589
|
+
/**
|
|
5590
|
+
* Either mainnet or testnet/fuji.
|
|
5591
|
+
*/
|
|
5592
|
+
network: Network;
|
|
5593
|
+
/**
|
|
5594
|
+
* A primary network (P or X chain) transaction hash.
|
|
5595
|
+
*/
|
|
5596
|
+
txHash: string;
|
|
5597
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5237
5598
|
}
|
|
5238
5599
|
|
|
5239
5600
|
type TeleporterDestinationTransaction = {
|
|
@@ -5374,8 +5735,10 @@ declare class TeleporterService {
|
|
|
5374
5735
|
readonly httpRequest: BaseHttpRequest;
|
|
5375
5736
|
constructor(httpRequest: BaseHttpRequest);
|
|
5376
5737
|
/**
|
|
5377
|
-
*
|
|
5378
|
-
* Gets a teleporter message by message ID.
|
|
5738
|
+
* @deprecated
|
|
5739
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5740
|
+
*
|
|
5741
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5379
5742
|
* @returns any Successful response
|
|
5380
5743
|
* @throws ApiError
|
|
5381
5744
|
*/
|
|
@@ -5386,8 +5749,10 @@ declare class TeleporterService {
|
|
|
5386
5749
|
messageId: string;
|
|
5387
5750
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5388
5751
|
/**
|
|
5389
|
-
*
|
|
5390
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5752
|
+
* @deprecated
|
|
5753
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5754
|
+
*
|
|
5755
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5391
5756
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5392
5757
|
* @throws ApiError
|
|
5393
5758
|
*/
|
|
@@ -5426,8 +5791,10 @@ declare class TeleporterService {
|
|
|
5426
5791
|
network?: Network;
|
|
5427
5792
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5428
5793
|
/**
|
|
5429
|
-
*
|
|
5430
|
-
* Lists teleporter messages by address. Ordered by
|
|
5794
|
+
* @deprecated
|
|
5795
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5796
|
+
*
|
|
5797
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5431
5798
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5432
5799
|
* @throws ApiError
|
|
5433
5800
|
*/
|
|
@@ -5469,15 +5836,16 @@ type AddressActivityMetadata = {
|
|
|
5469
5836
|
eventSignatures?: Array<string>;
|
|
5470
5837
|
};
|
|
5471
5838
|
|
|
5472
|
-
declare enum
|
|
5473
|
-
|
|
5839
|
+
declare enum PrimaryNetworkType {
|
|
5840
|
+
MAINNET = "mainnet",
|
|
5841
|
+
FUJI = "fuji"
|
|
5474
5842
|
}
|
|
5475
5843
|
|
|
5476
|
-
type
|
|
5844
|
+
type EVMAddressActivityRequest = {
|
|
5845
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5477
5846
|
url: string;
|
|
5478
5847
|
chainId: string;
|
|
5479
|
-
|
|
5480
|
-
metadata: AddressActivityMetadata;
|
|
5848
|
+
network?: PrimaryNetworkType;
|
|
5481
5849
|
name?: string;
|
|
5482
5850
|
description?: string;
|
|
5483
5851
|
/**
|
|
@@ -5488,25 +5856,34 @@ type CreateWebhookRequest = {
|
|
|
5488
5856
|
* Whether to include logs in the webhook payload.
|
|
5489
5857
|
*/
|
|
5490
5858
|
includeLogs?: boolean;
|
|
5859
|
+
metadata: AddressActivityMetadata;
|
|
5491
5860
|
};
|
|
5861
|
+
declare namespace EVMAddressActivityRequest {
|
|
5862
|
+
enum eventType {
|
|
5863
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5864
|
+
}
|
|
5865
|
+
}
|
|
5492
5866
|
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
addresses: Array<string>;
|
|
5499
|
-
totalAddresses: number;
|
|
5500
|
-
};
|
|
5867
|
+
declare enum EventType {
|
|
5868
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5869
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5870
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5871
|
+
}
|
|
5501
5872
|
|
|
5502
5873
|
declare enum WebhookStatusType {
|
|
5503
5874
|
ACTIVE = "active",
|
|
5504
5875
|
INACTIVE = "inactive"
|
|
5505
5876
|
}
|
|
5506
5877
|
|
|
5507
|
-
type
|
|
5878
|
+
type EVMAddressActivityResponse = {
|
|
5508
5879
|
id: string;
|
|
5509
5880
|
eventType: EventType;
|
|
5881
|
+
url: string;
|
|
5882
|
+
chainId: string;
|
|
5883
|
+
status: WebhookStatusType;
|
|
5884
|
+
createdAt: number;
|
|
5885
|
+
name: string;
|
|
5886
|
+
description: string;
|
|
5510
5887
|
metadata: AddressActivityMetadata;
|
|
5511
5888
|
/**
|
|
5512
5889
|
* Whether to include traces in the webhook payload.
|
|
@@ -5516,12 +5893,109 @@ type WebhookResponse = {
|
|
|
5516
5893
|
* Whether to include logs in the webhook payload.
|
|
5517
5894
|
*/
|
|
5518
5895
|
includeLogs?: boolean;
|
|
5896
|
+
};
|
|
5897
|
+
|
|
5898
|
+
type ListWebhookAddressesResponse = {
|
|
5899
|
+
/**
|
|
5900
|
+
* 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.
|
|
5901
|
+
*/
|
|
5902
|
+
nextPageToken?: string;
|
|
5903
|
+
addresses: Array<string>;
|
|
5904
|
+
totalAddresses: number;
|
|
5905
|
+
};
|
|
5906
|
+
|
|
5907
|
+
/**
|
|
5908
|
+
* The type of key for platform activity depending on the event type
|
|
5909
|
+
*/
|
|
5910
|
+
declare enum PlatformActivityKeyType {
|
|
5911
|
+
ADDRESSES = "addresses",
|
|
5912
|
+
NODE_ID = "nodeId",
|
|
5913
|
+
SUBNET_ID = "subnetId"
|
|
5914
|
+
}
|
|
5915
|
+
|
|
5916
|
+
/**
|
|
5917
|
+
* Array of address activity sub-event types
|
|
5918
|
+
*/
|
|
5919
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5920
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5921
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
5922
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5923
|
+
}
|
|
5924
|
+
|
|
5925
|
+
type PlatformActivitySubEvents = {
|
|
5926
|
+
/**
|
|
5927
|
+
* Array of validator activity sub-event types
|
|
5928
|
+
*/
|
|
5929
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5930
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5931
|
+
};
|
|
5932
|
+
|
|
5933
|
+
/**
|
|
5934
|
+
* Type of balance to monitor
|
|
5935
|
+
*/
|
|
5936
|
+
declare enum CommonBalanceType {
|
|
5937
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5938
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5939
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5940
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5941
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5942
|
+
PENDING_STAKED = "pendingStaked",
|
|
5943
|
+
UNLOCKED = "unlocked",
|
|
5944
|
+
LOCKED = "locked",
|
|
5945
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5946
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
type PlatformBalanceThresholdFilter = {
|
|
5950
|
+
balanceType: CommonBalanceType;
|
|
5951
|
+
/**
|
|
5952
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5953
|
+
*/
|
|
5954
|
+
balanceThreshold: string;
|
|
5955
|
+
};
|
|
5956
|
+
|
|
5957
|
+
type PlatformActivityMetadata = {
|
|
5958
|
+
keyType: PlatformActivityKeyType;
|
|
5959
|
+
/**
|
|
5960
|
+
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
5961
|
+
*/
|
|
5962
|
+
keys: Array<string>;
|
|
5963
|
+
/**
|
|
5964
|
+
* Sub-events to monitor
|
|
5965
|
+
*/
|
|
5966
|
+
subEvents?: PlatformActivitySubEvents;
|
|
5967
|
+
/**
|
|
5968
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5969
|
+
*/
|
|
5970
|
+
eventSignatures?: Array<string>;
|
|
5971
|
+
/**
|
|
5972
|
+
* Array of node IDs to filter the events
|
|
5973
|
+
*/
|
|
5974
|
+
nodeIds?: Array<string>;
|
|
5975
|
+
/**
|
|
5976
|
+
* Array of subnet IDs to filter the events
|
|
5977
|
+
*/
|
|
5978
|
+
subnetIds?: Array<string>;
|
|
5979
|
+
/**
|
|
5980
|
+
* Balance threshold filter
|
|
5981
|
+
*/
|
|
5982
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
5983
|
+
/**
|
|
5984
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5985
|
+
*/
|
|
5986
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
5987
|
+
};
|
|
5988
|
+
|
|
5989
|
+
type PlatformActivityResponse = {
|
|
5990
|
+
id: string;
|
|
5991
|
+
eventType: EventType;
|
|
5519
5992
|
url: string;
|
|
5520
5993
|
chainId: string;
|
|
5521
5994
|
status: WebhookStatusType;
|
|
5522
5995
|
createdAt: number;
|
|
5523
5996
|
name: string;
|
|
5524
5997
|
description: string;
|
|
5998
|
+
metadata: PlatformActivityMetadata;
|
|
5525
5999
|
};
|
|
5526
6000
|
|
|
5527
6001
|
type ListWebhooksResponse = {
|
|
@@ -5529,9 +6003,36 @@ type ListWebhooksResponse = {
|
|
|
5529
6003
|
* 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.
|
|
5530
6004
|
*/
|
|
5531
6005
|
nextPageToken?: string;
|
|
5532
|
-
webhooks: Array<
|
|
6006
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5533
6007
|
};
|
|
5534
6008
|
|
|
6009
|
+
type PlatformActivityRequest = {
|
|
6010
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6011
|
+
url: string;
|
|
6012
|
+
chainId: string;
|
|
6013
|
+
network?: PrimaryNetworkType;
|
|
6014
|
+
name?: string;
|
|
6015
|
+
description?: string;
|
|
6016
|
+
/**
|
|
6017
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6018
|
+
*/
|
|
6019
|
+
includeInternalTxs?: boolean;
|
|
6020
|
+
/**
|
|
6021
|
+
* Whether to include logs in the webhook payload.
|
|
6022
|
+
*/
|
|
6023
|
+
includeLogs?: boolean;
|
|
6024
|
+
/**
|
|
6025
|
+
* Metadata for platform activity
|
|
6026
|
+
*/
|
|
6027
|
+
metadata: PlatformActivityMetadata;
|
|
6028
|
+
};
|
|
6029
|
+
declare namespace PlatformActivityRequest {
|
|
6030
|
+
enum eventType {
|
|
6031
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6032
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6033
|
+
}
|
|
6034
|
+
}
|
|
6035
|
+
|
|
5535
6036
|
type SharedSecretsResponse = {
|
|
5536
6037
|
secret: string;
|
|
5537
6038
|
};
|
|
@@ -5559,12 +6060,12 @@ declare class WebhooksService {
|
|
|
5559
6060
|
/**
|
|
5560
6061
|
* Create a webhook
|
|
5561
6062
|
* Create a new webhook.
|
|
5562
|
-
* @returns
|
|
6063
|
+
* @returns any Successful response
|
|
5563
6064
|
* @throws ApiError
|
|
5564
6065
|
*/
|
|
5565
6066
|
createWebhook({ requestBody, }: {
|
|
5566
|
-
requestBody:
|
|
5567
|
-
}): CancelablePromise<
|
|
6067
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6068
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5568
6069
|
/**
|
|
5569
6070
|
* List webhooks
|
|
5570
6071
|
* Lists webhooks for the user.
|
|
@@ -5588,7 +6089,7 @@ declare class WebhooksService {
|
|
|
5588
6089
|
/**
|
|
5589
6090
|
* Get a webhook by ID
|
|
5590
6091
|
* Retrieves a webhook by ID.
|
|
5591
|
-
* @returns
|
|
6092
|
+
* @returns any Successful response
|
|
5592
6093
|
* @throws ApiError
|
|
5593
6094
|
*/
|
|
5594
6095
|
getWebhook({ id, }: {
|
|
@@ -5596,11 +6097,11 @@ declare class WebhooksService {
|
|
|
5596
6097
|
* The webhook identifier.
|
|
5597
6098
|
*/
|
|
5598
6099
|
id: string;
|
|
5599
|
-
}): CancelablePromise<
|
|
6100
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5600
6101
|
/**
|
|
5601
6102
|
* Deactivate a webhook
|
|
5602
6103
|
* Deactivates a webhook by ID.
|
|
5603
|
-
* @returns
|
|
6104
|
+
* @returns any Successful response
|
|
5604
6105
|
* @throws ApiError
|
|
5605
6106
|
*/
|
|
5606
6107
|
deactivateWebhook({ id, }: {
|
|
@@ -5608,11 +6109,11 @@ declare class WebhooksService {
|
|
|
5608
6109
|
* The webhook identifier.
|
|
5609
6110
|
*/
|
|
5610
6111
|
id: string;
|
|
5611
|
-
}): CancelablePromise<
|
|
6112
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5612
6113
|
/**
|
|
5613
6114
|
* Update a webhook
|
|
5614
6115
|
* Updates an existing webhook.
|
|
5615
|
-
* @returns
|
|
6116
|
+
* @returns any Successful response
|
|
5616
6117
|
* @throws ApiError
|
|
5617
6118
|
*/
|
|
5618
6119
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5621,14 +6122,14 @@ declare class WebhooksService {
|
|
|
5621
6122
|
*/
|
|
5622
6123
|
id: string;
|
|
5623
6124
|
requestBody: UpdateWebhookRequest;
|
|
5624
|
-
}): CancelablePromise<
|
|
6125
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5625
6126
|
/**
|
|
5626
|
-
* Generate a shared secret
|
|
5627
|
-
* Generates a new shared secret.
|
|
6127
|
+
* Generate or rotate a shared secret
|
|
6128
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5628
6129
|
* @returns SharedSecretsResponse Successful response
|
|
5629
6130
|
* @throws ApiError
|
|
5630
6131
|
*/
|
|
5631
|
-
|
|
6132
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5632
6133
|
/**
|
|
5633
6134
|
* Get a shared secret
|
|
5634
6135
|
* Get a previously generated shared secret.
|
|
@@ -5637,9 +6138,9 @@ declare class WebhooksService {
|
|
|
5637
6138
|
*/
|
|
5638
6139
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5639
6140
|
/**
|
|
5640
|
-
* Add addresses to webhook
|
|
5641
|
-
* Add addresses to webhook.
|
|
5642
|
-
* @returns
|
|
6141
|
+
* Add addresses to EVM activity webhook
|
|
6142
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6143
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5643
6144
|
* @throws ApiError
|
|
5644
6145
|
*/
|
|
5645
6146
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5648,11 +6149,11 @@ declare class WebhooksService {
|
|
|
5648
6149
|
*/
|
|
5649
6150
|
id: string;
|
|
5650
6151
|
requestBody: AddressesChangeRequest;
|
|
5651
|
-
}): CancelablePromise<
|
|
6152
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5652
6153
|
/**
|
|
5653
|
-
* Remove addresses from webhook
|
|
5654
|
-
* Remove addresses from webhook.
|
|
5655
|
-
* @returns
|
|
6154
|
+
* Remove addresses from EVM activity webhook
|
|
6155
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6156
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5656
6157
|
* @throws ApiError
|
|
5657
6158
|
*/
|
|
5658
6159
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5661,10 +6162,10 @@ declare class WebhooksService {
|
|
|
5661
6162
|
*/
|
|
5662
6163
|
id: string;
|
|
5663
6164
|
requestBody: AddressesChangeRequest;
|
|
5664
|
-
}): CancelablePromise<
|
|
6165
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5665
6166
|
/**
|
|
5666
|
-
* List adresses by
|
|
5667
|
-
* List adresses by webhook.
|
|
6167
|
+
* List adresses by EVM activity webhooks
|
|
6168
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5668
6169
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5669
6170
|
* @throws ApiError
|
|
5670
6171
|
*/
|
|
@@ -5694,6 +6195,7 @@ declare class Glacier {
|
|
|
5694
6195
|
readonly evmContracts: EvmContractsService;
|
|
5695
6196
|
readonly evmTransactions: EvmTransactionsService;
|
|
5696
6197
|
readonly healthCheck: HealthCheckService;
|
|
6198
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5697
6199
|
readonly nfTs: NfTsService;
|
|
5698
6200
|
readonly notifications: NotificationsService;
|
|
5699
6201
|
readonly operations: OperationsService;
|
|
@@ -5728,6 +6230,17 @@ declare class ApiError extends Error {
|
|
|
5728
6230
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5729
6231
|
}
|
|
5730
6232
|
|
|
6233
|
+
type AccessListData = {
|
|
6234
|
+
/**
|
|
6235
|
+
* Access Address
|
|
6236
|
+
*/
|
|
6237
|
+
accessAddresses: string;
|
|
6238
|
+
/**
|
|
6239
|
+
* Storage keys
|
|
6240
|
+
*/
|
|
6241
|
+
storageKeys: Array<string>;
|
|
6242
|
+
};
|
|
6243
|
+
|
|
5731
6244
|
type BadGateway = {
|
|
5732
6245
|
/**
|
|
5733
6246
|
* The error message describing the reason for the exception
|
|
@@ -5762,6 +6275,76 @@ type DataListChainsResponse = {
|
|
|
5762
6275
|
chains: Array<ChainInfo>;
|
|
5763
6276
|
};
|
|
5764
6277
|
|
|
6278
|
+
type ERCToken = {
|
|
6279
|
+
/**
|
|
6280
|
+
* Token contract address
|
|
6281
|
+
*/
|
|
6282
|
+
address: string;
|
|
6283
|
+
/**
|
|
6284
|
+
* Token name
|
|
6285
|
+
*/
|
|
6286
|
+
name: string;
|
|
6287
|
+
/**
|
|
6288
|
+
* Token symbol
|
|
6289
|
+
*/
|
|
6290
|
+
symbol: string;
|
|
6291
|
+
/**
|
|
6292
|
+
* Token decimals
|
|
6293
|
+
*/
|
|
6294
|
+
decimals: number;
|
|
6295
|
+
/**
|
|
6296
|
+
* Value including decimals
|
|
6297
|
+
*/
|
|
6298
|
+
valueWithDecimals: string;
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
type ERCTransfer = {
|
|
6302
|
+
/**
|
|
6303
|
+
* Transaction hash
|
|
6304
|
+
*/
|
|
6305
|
+
transactionHash: string;
|
|
6306
|
+
/**
|
|
6307
|
+
* Transfer type
|
|
6308
|
+
*/
|
|
6309
|
+
type: string;
|
|
6310
|
+
/**
|
|
6311
|
+
* Sender address
|
|
6312
|
+
*/
|
|
6313
|
+
from: string;
|
|
6314
|
+
/**
|
|
6315
|
+
* Recipient address
|
|
6316
|
+
*/
|
|
6317
|
+
to: string;
|
|
6318
|
+
/**
|
|
6319
|
+
* Amount transferred
|
|
6320
|
+
*/
|
|
6321
|
+
value: string;
|
|
6322
|
+
/**
|
|
6323
|
+
* Token Id
|
|
6324
|
+
*/
|
|
6325
|
+
tokenId?: string;
|
|
6326
|
+
/**
|
|
6327
|
+
* Block timestamp
|
|
6328
|
+
*/
|
|
6329
|
+
blockTimestamp: number;
|
|
6330
|
+
/**
|
|
6331
|
+
* Log index
|
|
6332
|
+
*/
|
|
6333
|
+
logIndex: number;
|
|
6334
|
+
/**
|
|
6335
|
+
* erc20 Token details
|
|
6336
|
+
*/
|
|
6337
|
+
erc20Token?: ERCToken;
|
|
6338
|
+
/**
|
|
6339
|
+
* erc721 Token details
|
|
6340
|
+
*/
|
|
6341
|
+
erc721Token?: ERCToken;
|
|
6342
|
+
/**
|
|
6343
|
+
* erc1155 Token details
|
|
6344
|
+
*/
|
|
6345
|
+
erc1155Token?: ERCToken;
|
|
6346
|
+
};
|
|
6347
|
+
|
|
5765
6348
|
type Forbidden = {
|
|
5766
6349
|
/**
|
|
5767
6350
|
* The error message describing the reason for the exception
|
|
@@ -5792,6 +6375,64 @@ type InternalServerError = {
|
|
|
5792
6375
|
error: string;
|
|
5793
6376
|
};
|
|
5794
6377
|
|
|
6378
|
+
type Log = {
|
|
6379
|
+
/**
|
|
6380
|
+
* Contract address
|
|
6381
|
+
*/
|
|
6382
|
+
address: string;
|
|
6383
|
+
/**
|
|
6384
|
+
* First topic
|
|
6385
|
+
*/
|
|
6386
|
+
topic0: string;
|
|
6387
|
+
/**
|
|
6388
|
+
* Second topic (optional)
|
|
6389
|
+
*/
|
|
6390
|
+
topic1?: string;
|
|
6391
|
+
/**
|
|
6392
|
+
* Third topic (optional)
|
|
6393
|
+
*/
|
|
6394
|
+
topic2?: string;
|
|
6395
|
+
/**
|
|
6396
|
+
* Fourth topic (optional)
|
|
6397
|
+
*/
|
|
6398
|
+
topic3?: string;
|
|
6399
|
+
/**
|
|
6400
|
+
* Event data
|
|
6401
|
+
*/
|
|
6402
|
+
data: string;
|
|
6403
|
+
/**
|
|
6404
|
+
* Transaction index
|
|
6405
|
+
*/
|
|
6406
|
+
transactionIndex: number;
|
|
6407
|
+
/**
|
|
6408
|
+
* Log index
|
|
6409
|
+
*/
|
|
6410
|
+
logIndex: number;
|
|
6411
|
+
/**
|
|
6412
|
+
* Indicates if the log was removed
|
|
6413
|
+
*/
|
|
6414
|
+
removed: boolean;
|
|
6415
|
+
};
|
|
6416
|
+
|
|
6417
|
+
type NetworkTokenInfo = {
|
|
6418
|
+
/**
|
|
6419
|
+
* Token name
|
|
6420
|
+
*/
|
|
6421
|
+
tokenName?: string;
|
|
6422
|
+
/**
|
|
6423
|
+
* Token symbol
|
|
6424
|
+
*/
|
|
6425
|
+
tokenSymbol?: string;
|
|
6426
|
+
/**
|
|
6427
|
+
* Token decimals
|
|
6428
|
+
*/
|
|
6429
|
+
tokenDecimals?: number;
|
|
6430
|
+
/**
|
|
6431
|
+
* Value including decimals
|
|
6432
|
+
*/
|
|
6433
|
+
valueWithDecimals?: string;
|
|
6434
|
+
};
|
|
6435
|
+
|
|
5795
6436
|
type NextPageToken = {
|
|
5796
6437
|
/**
|
|
5797
6438
|
* 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.
|
|
@@ -5844,6 +6485,132 @@ type TooManyRequests = {
|
|
|
5844
6485
|
error: string;
|
|
5845
6486
|
};
|
|
5846
6487
|
|
|
6488
|
+
type Transaction = {
|
|
6489
|
+
/**
|
|
6490
|
+
* Block hash of the transaction
|
|
6491
|
+
*/
|
|
6492
|
+
blockHash: string;
|
|
6493
|
+
/**
|
|
6494
|
+
* Block number of the transaction
|
|
6495
|
+
*/
|
|
6496
|
+
blockNumber: string;
|
|
6497
|
+
/**
|
|
6498
|
+
* Sender address
|
|
6499
|
+
*/
|
|
6500
|
+
from: string;
|
|
6501
|
+
/**
|
|
6502
|
+
* Gas limit for the transaction
|
|
6503
|
+
*/
|
|
6504
|
+
gas: string;
|
|
6505
|
+
/**
|
|
6506
|
+
* Gas price used
|
|
6507
|
+
*/
|
|
6508
|
+
gasPrice: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Maximum fee per gas
|
|
6511
|
+
*/
|
|
6512
|
+
maxFeePerGas: string;
|
|
6513
|
+
/**
|
|
6514
|
+
* Maximum priority fee per gas
|
|
6515
|
+
*/
|
|
6516
|
+
maxPriorityFeePerGas: string;
|
|
6517
|
+
/**
|
|
6518
|
+
* Transaction hash
|
|
6519
|
+
*/
|
|
6520
|
+
txHash: string;
|
|
6521
|
+
/**
|
|
6522
|
+
* Transaction status
|
|
6523
|
+
*/
|
|
6524
|
+
txStatus: string;
|
|
6525
|
+
/**
|
|
6526
|
+
* Input data
|
|
6527
|
+
*/
|
|
6528
|
+
input: string;
|
|
6529
|
+
/**
|
|
6530
|
+
* Nonce value
|
|
6531
|
+
*/
|
|
6532
|
+
nonce: string;
|
|
6533
|
+
/**
|
|
6534
|
+
* Recipient address
|
|
6535
|
+
*/
|
|
6536
|
+
to: string;
|
|
6537
|
+
/**
|
|
6538
|
+
* Transaction index
|
|
6539
|
+
*/
|
|
6540
|
+
transactionIndex: number;
|
|
6541
|
+
/**
|
|
6542
|
+
* Value transferred in the transaction
|
|
6543
|
+
*/
|
|
6544
|
+
value: string;
|
|
6545
|
+
/**
|
|
6546
|
+
* Transaction type
|
|
6547
|
+
*/
|
|
6548
|
+
type: number;
|
|
6549
|
+
/**
|
|
6550
|
+
* Chain ID of the network
|
|
6551
|
+
*/
|
|
6552
|
+
chainId: string;
|
|
6553
|
+
/**
|
|
6554
|
+
* Cumulative gas used
|
|
6555
|
+
*/
|
|
6556
|
+
receiptCumulativeGasUsed: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Gas used
|
|
6559
|
+
*/
|
|
6560
|
+
receiptGasUsed: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* Effective gas price
|
|
6563
|
+
*/
|
|
6564
|
+
receiptEffectiveGasPrice: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Receipt root
|
|
6567
|
+
*/
|
|
6568
|
+
receiptRoot: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Block timestamp
|
|
6571
|
+
*/
|
|
6572
|
+
blockTimestamp: number;
|
|
6573
|
+
/**
|
|
6574
|
+
* Contract address (optional)
|
|
6575
|
+
*/
|
|
6576
|
+
contractAddress?: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* ERC20 transfers
|
|
6579
|
+
*/
|
|
6580
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6581
|
+
/**
|
|
6582
|
+
* ERC721 transfers
|
|
6583
|
+
*/
|
|
6584
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6585
|
+
/**
|
|
6586
|
+
* ERC1155 transfers
|
|
6587
|
+
*/
|
|
6588
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6589
|
+
/**
|
|
6590
|
+
* Internal transactions (optional)
|
|
6591
|
+
*/
|
|
6592
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
6593
|
+
/**
|
|
6594
|
+
* Access list (optional)
|
|
6595
|
+
*/
|
|
6596
|
+
accessList?: Array<AccessListData>;
|
|
6597
|
+
/**
|
|
6598
|
+
* Network token info (optional)
|
|
6599
|
+
*/
|
|
6600
|
+
networkToken?: NetworkTokenInfo;
|
|
6601
|
+
};
|
|
6602
|
+
|
|
6603
|
+
type TransactionEvent = {
|
|
6604
|
+
/**
|
|
6605
|
+
* Transaction details
|
|
6606
|
+
*/
|
|
6607
|
+
transaction: Transaction;
|
|
6608
|
+
/**
|
|
6609
|
+
* Array of log events
|
|
6610
|
+
*/
|
|
6611
|
+
logs?: Array<Log>;
|
|
6612
|
+
};
|
|
6613
|
+
|
|
5847
6614
|
type Unauthorized = {
|
|
5848
6615
|
/**
|
|
5849
6616
|
* The error message describing the reason for the exception
|
|
@@ -5859,4 +6626,31 @@ type Unauthorized = {
|
|
|
5859
6626
|
error: string;
|
|
5860
6627
|
};
|
|
5861
6628
|
|
|
5862
|
-
|
|
6629
|
+
type WebhookAddressActivityResponse = {
|
|
6630
|
+
/**
|
|
6631
|
+
* Webhook ID
|
|
6632
|
+
*/
|
|
6633
|
+
webhookId: string;
|
|
6634
|
+
/**
|
|
6635
|
+
* Event type
|
|
6636
|
+
*/
|
|
6637
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6638
|
+
/**
|
|
6639
|
+
* Message ID
|
|
6640
|
+
*/
|
|
6641
|
+
messageId: string;
|
|
6642
|
+
/**
|
|
6643
|
+
* Event details
|
|
6644
|
+
*/
|
|
6645
|
+
event: TransactionEvent;
|
|
6646
|
+
};
|
|
6647
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6648
|
+
/**
|
|
6649
|
+
* Event type
|
|
6650
|
+
*/
|
|
6651
|
+
enum eventType {
|
|
6652
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6653
|
+
}
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6656
|
+
export { AccessListData, AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, ERCToken, ERCTransfer, EVMAddressActivityRequest, EVMAddressActivityResponse, 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, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityMetadata, PlatformActivityRequest, PlatformActivityResponse, PlatformActivitySubEvents, PlatformAddressActivitySubEventType, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, 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, Transaction, TransactionDetails, TransactionDirectionType, TransactionEvent, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|