@avalabs/glacier-sdk 3.1.0-alpha.4 → 3.1.0-alpha.40
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 +1562 -469
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +6 -4
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -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 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -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/InternalServerError.d.ts +16 -0
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/PChainTransaction.d.ts +33 -7
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RequestType.d.ts +2 -2
- package/esm/generated/models/RequestType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +51 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +204 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +10 -10
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +25 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +88 -10
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +4 -4
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +39 -9
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +10 -10
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +39 -9
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
- package/esm/generated/models/GlacierApiFeature.js +0 -1
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -85
- package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,489 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type LogsFormatMetadata = {
|
|
58
|
+
/**
|
|
59
|
+
* The IP address of the client that made the request.
|
|
60
|
+
*/
|
|
61
|
+
ipAddress: string;
|
|
62
|
+
/**
|
|
63
|
+
* The host for the request made by the client.
|
|
64
|
+
*/
|
|
65
|
+
host: string;
|
|
66
|
+
/**
|
|
67
|
+
* The user agent of the client that made the request.
|
|
68
|
+
*/
|
|
69
|
+
userAgent: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The type of request made by the client.
|
|
74
|
+
*/
|
|
75
|
+
declare enum RequestType {
|
|
76
|
+
DATA = "data",
|
|
77
|
+
RPC = "rpc"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type LogsFormat = {
|
|
81
|
+
/**
|
|
82
|
+
* The organization id of the request.
|
|
83
|
+
*/
|
|
84
|
+
orgId: string;
|
|
85
|
+
/**
|
|
86
|
+
* The unique log id of the request.
|
|
87
|
+
*/
|
|
88
|
+
logId: string;
|
|
89
|
+
/**
|
|
90
|
+
* The timestamp of the request.
|
|
91
|
+
*/
|
|
92
|
+
eventTimestamp: number;
|
|
93
|
+
/**
|
|
94
|
+
* The apiKey used to make the request.
|
|
95
|
+
*/
|
|
96
|
+
apiKeyId: string;
|
|
97
|
+
/**
|
|
98
|
+
* The alias of the apiKey used to make the request.
|
|
99
|
+
*/
|
|
100
|
+
apiKeyAlias: string;
|
|
101
|
+
/**
|
|
102
|
+
* The region of the host for the request made by the client.
|
|
103
|
+
*/
|
|
104
|
+
hostRegion: string;
|
|
105
|
+
requestType: RequestType;
|
|
106
|
+
/**
|
|
107
|
+
* The path of the request made by the client.
|
|
108
|
+
*/
|
|
109
|
+
requestPath: string;
|
|
110
|
+
/**
|
|
111
|
+
* The number of API credits consumed by the request.
|
|
112
|
+
*/
|
|
113
|
+
apiCreditsConsumed: number;
|
|
114
|
+
/**
|
|
115
|
+
* The duration of the request in milliseconds.
|
|
116
|
+
*/
|
|
117
|
+
requestDurationMsecs: number;
|
|
118
|
+
/**
|
|
119
|
+
* The response code of the request.
|
|
120
|
+
*/
|
|
121
|
+
responseCode: number;
|
|
122
|
+
/**
|
|
123
|
+
* The chain id of the request.
|
|
124
|
+
*/
|
|
125
|
+
chainId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The rpc method of the request.
|
|
128
|
+
*/
|
|
129
|
+
rpcMethod?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The metadata of the request.
|
|
132
|
+
*/
|
|
133
|
+
metadata: LogsFormatMetadata;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
type LogsResponseDTO = {
|
|
137
|
+
/**
|
|
138
|
+
* 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.
|
|
139
|
+
*/
|
|
140
|
+
nextPageToken?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The organization id of the request.
|
|
143
|
+
*/
|
|
144
|
+
orgId: string;
|
|
145
|
+
/**
|
|
146
|
+
* An array of logs representing the requests made by clients.
|
|
147
|
+
*/
|
|
148
|
+
logs: Array<LogsFormat>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet",
|
|
155
|
+
DEVNET = "devnet"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
167
|
+
RPC_METHOD = "rpcMethod",
|
|
168
|
+
RESPONSE_CODE = "responseCode",
|
|
169
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
173
|
+
HOURLY = "hourly",
|
|
174
|
+
DAILY = "daily",
|
|
175
|
+
WEEKLY = "weekly",
|
|
176
|
+
MONTHLY = "monthly"
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type RpcUsageMetricsValueAggregated = {
|
|
180
|
+
/**
|
|
181
|
+
* The total number of requests
|
|
182
|
+
*/
|
|
183
|
+
totalRequests: number;
|
|
184
|
+
/**
|
|
185
|
+
* The number of API credits used
|
|
186
|
+
*/
|
|
187
|
+
apiCreditsUsed: number;
|
|
188
|
+
/**
|
|
189
|
+
* The number of requests per second
|
|
190
|
+
*/
|
|
191
|
+
requestsPerSecond: number;
|
|
192
|
+
/**
|
|
193
|
+
* The success rate percentage
|
|
194
|
+
*/
|
|
195
|
+
successRatePercent: number;
|
|
196
|
+
/**
|
|
197
|
+
* The median response time in milliseconds
|
|
198
|
+
*/
|
|
199
|
+
medianResponseTimeMsecs: number;
|
|
200
|
+
/**
|
|
201
|
+
* The number of invalid requests
|
|
202
|
+
*/
|
|
203
|
+
invalidRequests: number;
|
|
204
|
+
/**
|
|
205
|
+
* The number of API credits wasted on invalid requests
|
|
206
|
+
*/
|
|
207
|
+
apiCreditsWasted: number;
|
|
208
|
+
/**
|
|
209
|
+
* Column name used for data aggregation
|
|
210
|
+
*/
|
|
211
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
212
|
+
/**
|
|
213
|
+
* The value of the column used for data aggregation
|
|
214
|
+
*/
|
|
215
|
+
groupValue?: (string | number);
|
|
216
|
+
};
|
|
217
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
218
|
+
/**
|
|
219
|
+
* Column name used for data aggregation
|
|
220
|
+
*/
|
|
221
|
+
enum groupedBy {
|
|
222
|
+
RPC_METHOD = "rpcMethod",
|
|
223
|
+
RESPONSE_CODE = "responseCode",
|
|
224
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
225
|
+
NONE = "None"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
type RpcMetrics = {
|
|
230
|
+
/**
|
|
231
|
+
* The timestamp of the metrics value
|
|
232
|
+
*/
|
|
233
|
+
timestamp: number;
|
|
234
|
+
/**
|
|
235
|
+
* The metrics values for the timestamp
|
|
236
|
+
*/
|
|
237
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
|
+
/**
|
|
242
|
+
* Duration in which the metrics value is aggregated
|
|
243
|
+
*/
|
|
244
|
+
aggregateDuration: string;
|
|
245
|
+
/**
|
|
246
|
+
* Metrics values
|
|
247
|
+
*/
|
|
248
|
+
metrics: Array<RpcMetrics>;
|
|
249
|
+
/**
|
|
250
|
+
* ChainId for which the metrics are aggregated
|
|
251
|
+
*/
|
|
252
|
+
chainId: string;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
declare enum TimeIntervalGranularityExtended {
|
|
256
|
+
MINUTE = "minute",
|
|
257
|
+
HOURLY = "hourly",
|
|
258
|
+
DAILY = "daily",
|
|
259
|
+
WEEKLY = "weekly",
|
|
260
|
+
MONTHLY = "monthly"
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare enum UsageMetricsGroupByEnum {
|
|
264
|
+
REQUEST_PATH = "requestPath",
|
|
265
|
+
RESPONSE_CODE = "responseCode",
|
|
266
|
+
CHAIN_ID = "chainId",
|
|
267
|
+
API_KEY_ID = "apiKeyId",
|
|
268
|
+
REQUEST_TYPE = "requestType"
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
type UsageMetricsValueDTO = {
|
|
272
|
+
/**
|
|
273
|
+
* Column name used for data aggregation
|
|
274
|
+
*/
|
|
275
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
276
|
+
/**
|
|
277
|
+
* The value of the column used for data aggregation
|
|
278
|
+
*/
|
|
279
|
+
groupValue?: (string | number);
|
|
280
|
+
/**
|
|
281
|
+
* The total number of requests
|
|
282
|
+
*/
|
|
283
|
+
totalRequests: number;
|
|
284
|
+
/**
|
|
285
|
+
* The number of requests per second
|
|
286
|
+
*/
|
|
287
|
+
requestsPerSecond: number;
|
|
288
|
+
/**
|
|
289
|
+
* The success rate percentage
|
|
290
|
+
*/
|
|
291
|
+
successRatePercent: number;
|
|
292
|
+
/**
|
|
293
|
+
* The median response time in milliseconds
|
|
294
|
+
*/
|
|
295
|
+
medianResponseTimeMsecs: number;
|
|
296
|
+
/**
|
|
297
|
+
* The number of invalid requests
|
|
298
|
+
*/
|
|
299
|
+
invalidRequests: number;
|
|
300
|
+
/**
|
|
301
|
+
* The number of API credits used
|
|
302
|
+
*/
|
|
303
|
+
apiCreditsUsed: number;
|
|
304
|
+
/**
|
|
305
|
+
* The number of API credits wasted on invalid requests
|
|
306
|
+
*/
|
|
307
|
+
apiCreditsWasted: number;
|
|
308
|
+
};
|
|
309
|
+
declare namespace UsageMetricsValueDTO {
|
|
310
|
+
/**
|
|
311
|
+
* Column name used for data aggregation
|
|
312
|
+
*/
|
|
313
|
+
enum groupedBy {
|
|
314
|
+
REQUEST_PATH = "requestPath",
|
|
315
|
+
RESPONSE_CODE = "responseCode",
|
|
316
|
+
CHAIN_ID = "chainId",
|
|
317
|
+
API_KEY_ID = "apiKeyId",
|
|
318
|
+
REQUEST_TYPE = "requestType",
|
|
319
|
+
NONE = "None"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
type Metric = {
|
|
324
|
+
/**
|
|
325
|
+
* The timestamp of the metrics value
|
|
326
|
+
*/
|
|
327
|
+
timestamp: number;
|
|
328
|
+
/**
|
|
329
|
+
* The metrics values for the timestamp
|
|
330
|
+
*/
|
|
331
|
+
values: Array<UsageMetricsValueDTO>;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
type UsageMetricsResponseDTO = {
|
|
335
|
+
/**
|
|
336
|
+
* Duration in which the metrics value is aggregated
|
|
337
|
+
*/
|
|
338
|
+
aggregateDuration: string;
|
|
339
|
+
/**
|
|
340
|
+
* Org ID for which the metrics are aggregated
|
|
341
|
+
*/
|
|
342
|
+
orgId: string;
|
|
343
|
+
/**
|
|
344
|
+
* Metrics values
|
|
345
|
+
*/
|
|
346
|
+
metrics: Array<Metric>;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
declare class DataApiUsageMetricsService {
|
|
350
|
+
readonly httpRequest: BaseHttpRequest;
|
|
351
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
352
|
+
/**
|
|
353
|
+
* Get usage metrics for the Data API
|
|
354
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
355
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
356
|
+
* @throws ApiError
|
|
357
|
+
*/
|
|
358
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
359
|
+
/**
|
|
360
|
+
* Organization ID to fetch usage metrics for
|
|
361
|
+
*/
|
|
362
|
+
orgId?: string;
|
|
363
|
+
/**
|
|
364
|
+
* 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.
|
|
365
|
+
*/
|
|
366
|
+
startTimestamp?: number;
|
|
367
|
+
/**
|
|
368
|
+
* 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.
|
|
369
|
+
*/
|
|
370
|
+
endTimestamp?: number;
|
|
371
|
+
/**
|
|
372
|
+
* Time interval granularity for data aggregation
|
|
373
|
+
*/
|
|
374
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
375
|
+
/**
|
|
376
|
+
* Query param for the criterion used for grouping metrics
|
|
377
|
+
*/
|
|
378
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
379
|
+
/**
|
|
380
|
+
* Filter data by chain ID.
|
|
381
|
+
*/
|
|
382
|
+
chainId?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Filter data by response status code.
|
|
385
|
+
*/
|
|
386
|
+
responseCode?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Filter data by request type.
|
|
389
|
+
*/
|
|
390
|
+
requestType?: 'data' | 'rpc';
|
|
391
|
+
/**
|
|
392
|
+
* Filter data by API key ID.
|
|
393
|
+
*/
|
|
394
|
+
apiKeyId?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Filter data by request path.
|
|
397
|
+
*/
|
|
398
|
+
requestPath?: string;
|
|
399
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
400
|
+
/**
|
|
401
|
+
* Get logs for requests made by client
|
|
402
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
403
|
+
* @returns LogsResponseDTO Successful response
|
|
404
|
+
* @throws ApiError
|
|
405
|
+
*/
|
|
406
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
407
|
+
/**
|
|
408
|
+
* Organization ID to fetch usage metrics for
|
|
409
|
+
*/
|
|
410
|
+
orgId?: string;
|
|
411
|
+
/**
|
|
412
|
+
* 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.
|
|
413
|
+
*/
|
|
414
|
+
startTimestamp?: number;
|
|
415
|
+
/**
|
|
416
|
+
* 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.
|
|
417
|
+
*/
|
|
418
|
+
endTimestamp?: number;
|
|
419
|
+
/**
|
|
420
|
+
* Filter data by chain ID.
|
|
421
|
+
*/
|
|
422
|
+
chainId?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Filter data by response status code.
|
|
425
|
+
*/
|
|
426
|
+
responseCode?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Filter data by request type.
|
|
429
|
+
*/
|
|
430
|
+
requestType?: 'data' | 'rpc';
|
|
431
|
+
/**
|
|
432
|
+
* Filter data by API key ID.
|
|
433
|
+
*/
|
|
434
|
+
apiKeyId?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Filter data by request path.
|
|
437
|
+
*/
|
|
438
|
+
requestPath?: string;
|
|
439
|
+
/**
|
|
440
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
441
|
+
*/
|
|
442
|
+
pageToken?: string;
|
|
443
|
+
/**
|
|
444
|
+
* The maximum number of items to return.
|
|
445
|
+
*/
|
|
446
|
+
pageSize?: number;
|
|
447
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
448
|
+
/**
|
|
449
|
+
* Get usage metrics for the Subnet RPC
|
|
450
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
451
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
|
+
* @throws ApiError
|
|
453
|
+
*/
|
|
454
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
|
+
/**
|
|
456
|
+
* Time interval granularity for data aggregation for subnet
|
|
457
|
+
* rpc metrics
|
|
458
|
+
*/
|
|
459
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
460
|
+
/**
|
|
461
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
462
|
+
*/
|
|
463
|
+
startTimestamp?: number;
|
|
464
|
+
/**
|
|
465
|
+
* 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.
|
|
466
|
+
*/
|
|
467
|
+
endTimestamp?: number;
|
|
468
|
+
/**
|
|
469
|
+
* Query param for the criterion used for grouping metrics
|
|
470
|
+
*/
|
|
471
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
472
|
+
/**
|
|
473
|
+
* Filter data by chain ID.
|
|
474
|
+
*/
|
|
475
|
+
chainId?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Filter data by response status code.
|
|
478
|
+
*/
|
|
479
|
+
responseCode?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Filter data by RPC method.
|
|
482
|
+
*/
|
|
483
|
+
rpcMethod?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Filter data by Rl Bypass API Token.
|
|
486
|
+
*/
|
|
487
|
+
rlBypassApiToken?: string;
|
|
488
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
489
|
+
/**
|
|
490
|
+
* Get usage metrics for the Primary Network RPC
|
|
491
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
493
|
+
* @throws ApiError
|
|
494
|
+
*/
|
|
495
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
496
|
+
/**
|
|
497
|
+
* Either mainnet or testnet/fuji.
|
|
498
|
+
*/
|
|
499
|
+
network: Network;
|
|
500
|
+
/**
|
|
501
|
+
* Time interval granularity for data aggregation for subnet
|
|
502
|
+
* rpc metrics
|
|
503
|
+
*/
|
|
504
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
505
|
+
/**
|
|
506
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
507
|
+
*/
|
|
508
|
+
startTimestamp?: number;
|
|
509
|
+
/**
|
|
510
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
511
|
+
*/
|
|
512
|
+
endTimestamp?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Query param for the criterion used for grouping metrics
|
|
515
|
+
*/
|
|
516
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
517
|
+
/**
|
|
518
|
+
* Filter data by response status code.
|
|
519
|
+
*/
|
|
520
|
+
responseCode?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Filter data by request path.
|
|
523
|
+
*/
|
|
524
|
+
requestPath?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Filter data by Country.
|
|
527
|
+
*/
|
|
528
|
+
country?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by Continent.
|
|
531
|
+
*/
|
|
532
|
+
continent?: string;
|
|
533
|
+
/**
|
|
534
|
+
* Filter data by User Agent.
|
|
535
|
+
*/
|
|
536
|
+
userAgent?: string;
|
|
537
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
538
|
+
}
|
|
539
|
+
|
|
57
540
|
declare class DefaultService {
|
|
58
541
|
readonly httpRequest: BaseHttpRequest;
|
|
59
542
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -250,6 +733,10 @@ type ListErc1155BalancesResponse = {
|
|
|
250
733
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
251
734
|
*/
|
|
252
735
|
nextPageToken?: string;
|
|
736
|
+
/**
|
|
737
|
+
* The native token balance for the address.
|
|
738
|
+
*/
|
|
739
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
253
740
|
/**
|
|
254
741
|
* The list of ERC-1155 token balances for the address.
|
|
255
742
|
*/
|
|
@@ -294,11 +781,22 @@ type Erc20TokenBalance = {
|
|
|
294
781
|
* The monetary value of the balance, if a price is available for the token.
|
|
295
782
|
*/
|
|
296
783
|
balanceValue?: Money;
|
|
784
|
+
/**
|
|
785
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
786
|
+
*/
|
|
787
|
+
tokenReputation: Erc20TokenBalance.tokenReputation | null;
|
|
297
788
|
};
|
|
298
789
|
declare namespace Erc20TokenBalance {
|
|
299
790
|
enum ercType {
|
|
300
791
|
ERC_20 = "ERC-20"
|
|
301
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
795
|
+
*/
|
|
796
|
+
enum tokenReputation {
|
|
797
|
+
MALICIOUS = "Malicious",
|
|
798
|
+
BENIGN = "Benign"
|
|
799
|
+
}
|
|
302
800
|
}
|
|
303
801
|
|
|
304
802
|
type ListErc20BalancesResponse = {
|
|
@@ -306,6 +804,10 @@ type ListErc20BalancesResponse = {
|
|
|
306
804
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
307
805
|
*/
|
|
308
806
|
nextPageToken?: string;
|
|
807
|
+
/**
|
|
808
|
+
* The native token balance for the address.
|
|
809
|
+
*/
|
|
810
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
309
811
|
/**
|
|
310
812
|
* The list of ERC-20 token balances for the address.
|
|
311
813
|
*/
|
|
@@ -317,6 +819,10 @@ type ListErc721BalancesResponse = {
|
|
|
317
819
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
318
820
|
*/
|
|
319
821
|
nextPageToken?: string;
|
|
822
|
+
/**
|
|
823
|
+
* The native token balance for the address.
|
|
824
|
+
*/
|
|
825
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
320
826
|
/**
|
|
321
827
|
* The list of ERC-721 token balances for the address.
|
|
322
828
|
*/
|
|
@@ -331,12 +837,12 @@ declare class EvmBalancesService {
|
|
|
331
837
|
* Gets native token balance of a wallet address.
|
|
332
838
|
*
|
|
333
839
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
840
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
841
|
* @throws ApiError
|
|
336
842
|
*/
|
|
337
843
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
338
844
|
/**
|
|
339
|
-
* A supported evm chain id
|
|
845
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
846
|
*/
|
|
341
847
|
chainId: string;
|
|
342
848
|
/**
|
|
@@ -359,12 +865,12 @@ declare class EvmBalancesService {
|
|
|
359
865
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
866
|
*
|
|
361
867
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
868
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
869
|
* @throws ApiError
|
|
364
870
|
*/
|
|
365
871
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
366
872
|
/**
|
|
367
|
-
* A supported evm chain id
|
|
873
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
874
|
*/
|
|
369
875
|
chainId: string;
|
|
370
876
|
/**
|
|
@@ -401,12 +907,12 @@ declare class EvmBalancesService {
|
|
|
401
907
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
908
|
*
|
|
403
909
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
910
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
911
|
* @throws ApiError
|
|
406
912
|
*/
|
|
407
913
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
408
914
|
/**
|
|
409
|
-
* A supported evm chain id
|
|
915
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
410
916
|
*/
|
|
411
917
|
chainId: string;
|
|
412
918
|
/**
|
|
@@ -433,12 +939,12 @@ declare class EvmBalancesService {
|
|
|
433
939
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
940
|
*
|
|
435
941
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
942
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
943
|
* @throws ApiError
|
|
438
944
|
*/
|
|
439
945
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
440
946
|
/**
|
|
441
|
-
* A supported evm chain id
|
|
947
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
442
948
|
*/
|
|
443
949
|
chainId: string;
|
|
444
950
|
/**
|
|
@@ -467,12 +973,12 @@ declare class EvmBalancesService {
|
|
|
467
973
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
974
|
*
|
|
469
975
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
976
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
977
|
* @throws ApiError
|
|
472
978
|
*/
|
|
473
979
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
474
980
|
/**
|
|
475
|
-
* A supported evm chain id
|
|
981
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
476
982
|
*/
|
|
477
983
|
chainId: string;
|
|
478
984
|
/**
|
|
@@ -495,6 +1001,10 @@ declare class EvmBalancesService {
|
|
|
495
1001
|
}
|
|
496
1002
|
|
|
497
1003
|
type GetEvmBlockResponse = {
|
|
1004
|
+
/**
|
|
1005
|
+
* The EVM chain ID on which the block was created.
|
|
1006
|
+
*/
|
|
1007
|
+
chainId: string;
|
|
498
1008
|
/**
|
|
499
1009
|
* The block number on the chain.
|
|
500
1010
|
*/
|
|
@@ -539,6 +1049,10 @@ type GetEvmBlockResponse = {
|
|
|
539
1049
|
};
|
|
540
1050
|
|
|
541
1051
|
type EvmBlock = {
|
|
1052
|
+
/**
|
|
1053
|
+
* The EVM chain ID on which the block was created.
|
|
1054
|
+
*/
|
|
1055
|
+
chainId: string;
|
|
542
1056
|
/**
|
|
543
1057
|
* The block number on the chain.
|
|
544
1058
|
*/
|
|
@@ -593,15 +1107,35 @@ type ListEvmBlocksResponse = {
|
|
|
593
1107
|
declare class EvmBlocksService {
|
|
594
1108
|
readonly httpRequest: BaseHttpRequest;
|
|
595
1109
|
constructor(httpRequest: BaseHttpRequest);
|
|
1110
|
+
/**
|
|
1111
|
+
* List latest blocks across all supported EVM chains
|
|
1112
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1113
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1114
|
+
* @throws ApiError
|
|
1115
|
+
*/
|
|
1116
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1117
|
+
/**
|
|
1118
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1119
|
+
*/
|
|
1120
|
+
pageToken?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1123
|
+
*/
|
|
1124
|
+
pageSize?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Either mainnet or testnet/fuji.
|
|
1127
|
+
*/
|
|
1128
|
+
network?: Network;
|
|
1129
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
596
1130
|
/**
|
|
597
1131
|
* List latest blocks
|
|
598
1132
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
1133
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
1134
|
* @throws ApiError
|
|
601
1135
|
*/
|
|
602
1136
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
603
1137
|
/**
|
|
604
|
-
* A supported evm chain id
|
|
1138
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
1139
|
*/
|
|
606
1140
|
chainId: string;
|
|
607
1141
|
/**
|
|
@@ -616,12 +1150,12 @@ declare class EvmBlocksService {
|
|
|
616
1150
|
/**
|
|
617
1151
|
* Get block
|
|
618
1152
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
1153
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
1154
|
* @throws ApiError
|
|
621
1155
|
*/
|
|
622
1156
|
getBlock({ chainId, blockId, }: {
|
|
623
1157
|
/**
|
|
624
|
-
* A supported evm chain id
|
|
1158
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
1159
|
*/
|
|
626
1160
|
chainId: string;
|
|
627
1161
|
/**
|
|
@@ -631,6 +1165,12 @@ declare class EvmBlocksService {
|
|
|
631
1165
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
1166
|
}
|
|
633
1167
|
|
|
1168
|
+
declare enum ApiFeature {
|
|
1169
|
+
NFT_INDEXING = "nftIndexing",
|
|
1170
|
+
WEBHOOKS = "webhooks",
|
|
1171
|
+
TELEPORTER = "teleporter"
|
|
1172
|
+
}
|
|
1173
|
+
|
|
634
1174
|
/**
|
|
635
1175
|
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
636
1176
|
*/
|
|
@@ -686,14 +1226,9 @@ type GetChainResponse = {
|
|
|
686
1226
|
networkToken: NetworkToken;
|
|
687
1227
|
chainLogoUri?: string;
|
|
688
1228
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1229
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
1230
|
};
|
|
691
1231
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1232
|
type ChainInfo = {
|
|
698
1233
|
chainId: string;
|
|
699
1234
|
status: ChainStatus;
|
|
@@ -711,49 +1246,235 @@ type ChainInfo = {
|
|
|
711
1246
|
networkToken: NetworkToken;
|
|
712
1247
|
chainLogoUri?: string;
|
|
713
1248
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1249
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
type ListAddressChainsResponse = {
|
|
1253
|
+
indexedChains?: Array<ChainInfo>;
|
|
1254
|
+
unindexedChains?: Array<string>;
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
type ListChainsResponse = {
|
|
1258
|
+
chains: Array<ChainInfo>;
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1263
|
+
*/
|
|
1264
|
+
declare enum TransactionMethodType {
|
|
1265
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1266
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1267
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
type Method = {
|
|
1271
|
+
callType: TransactionMethodType;
|
|
1272
|
+
/**
|
|
1273
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1274
|
+
*/
|
|
1275
|
+
methodHash: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1278
|
+
*/
|
|
1279
|
+
methodName?: string;
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
type RichAddress = {
|
|
1283
|
+
/**
|
|
1284
|
+
* The contract name.
|
|
1285
|
+
*/
|
|
1286
|
+
name?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* The contract symbol.
|
|
1289
|
+
*/
|
|
1290
|
+
symbol?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1293
|
+
*/
|
|
1294
|
+
decimals?: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* The logo uri for the address.
|
|
1297
|
+
*/
|
|
1298
|
+
logoUri?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1301
|
+
*/
|
|
1302
|
+
address: string;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
type NativeTransaction = {
|
|
1306
|
+
/**
|
|
1307
|
+
* The block number on the chain.
|
|
1308
|
+
*/
|
|
1309
|
+
blockNumber: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* The block finality timestamp.
|
|
1312
|
+
*/
|
|
1313
|
+
blockTimestamp: number;
|
|
1314
|
+
/**
|
|
1315
|
+
* The block hash identifier.
|
|
1316
|
+
*/
|
|
1317
|
+
blockHash: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* The EVM chain ID on which the transaction occured.
|
|
1320
|
+
*/
|
|
1321
|
+
chainId: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1324
|
+
*/
|
|
1325
|
+
blockIndex: number;
|
|
1326
|
+
/**
|
|
1327
|
+
* The transaction hash identifier.
|
|
1328
|
+
*/
|
|
1329
|
+
txHash: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1332
|
+
*/
|
|
1333
|
+
txStatus: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* The transaction type.
|
|
1336
|
+
*/
|
|
1337
|
+
txType: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* The gas limit set for the transaction.
|
|
1340
|
+
*/
|
|
1341
|
+
gasLimit: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* The amount of gas used.
|
|
1344
|
+
*/
|
|
1345
|
+
gasUsed: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1348
|
+
*/
|
|
1349
|
+
gasPrice: string;
|
|
1350
|
+
/**
|
|
1351
|
+
* The nonce used by the sender of the transaction.
|
|
1352
|
+
*/
|
|
1353
|
+
nonce: string;
|
|
1354
|
+
from: RichAddress;
|
|
1355
|
+
to: RichAddress;
|
|
1356
|
+
method?: Method;
|
|
1357
|
+
value: string;
|
|
715
1358
|
};
|
|
716
1359
|
|
|
717
|
-
type
|
|
718
|
-
|
|
1360
|
+
type ListNativeTransactionsResponse = {
|
|
1361
|
+
/**
|
|
1362
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1363
|
+
*/
|
|
1364
|
+
nextPageToken?: string;
|
|
1365
|
+
transactions: Array<NativeTransaction>;
|
|
719
1366
|
};
|
|
720
1367
|
|
|
721
|
-
declare enum
|
|
722
|
-
|
|
723
|
-
|
|
1368
|
+
declare enum TransactionStatus {
|
|
1369
|
+
FAILED = "failed",
|
|
1370
|
+
SUCCESS = "success"
|
|
724
1371
|
}
|
|
725
1372
|
|
|
726
1373
|
declare class EvmChainsService {
|
|
727
1374
|
readonly httpRequest: BaseHttpRequest;
|
|
728
1375
|
constructor(httpRequest: BaseHttpRequest);
|
|
1376
|
+
/**
|
|
1377
|
+
* List all chains associated with a given address
|
|
1378
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1379
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1380
|
+
* @throws ApiError
|
|
1381
|
+
*/
|
|
1382
|
+
listAddressChains({ address, }: {
|
|
1383
|
+
/**
|
|
1384
|
+
* A wallet address.
|
|
1385
|
+
*/
|
|
1386
|
+
address: string;
|
|
1387
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
729
1388
|
/**
|
|
730
1389
|
* List chains
|
|
731
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1390
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1391
|
+
* @returns ListChainsResponse Successful response
|
|
733
1392
|
* @throws ApiError
|
|
734
1393
|
*/
|
|
735
1394
|
supportedChains({ network, feature, }: {
|
|
736
1395
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1396
|
+
* Either mainnet or testnet/fuji.
|
|
738
1397
|
*/
|
|
739
|
-
network?:
|
|
1398
|
+
network?: Network;
|
|
740
1399
|
/**
|
|
741
1400
|
* Filter by feature.
|
|
742
1401
|
*/
|
|
743
|
-
feature?:
|
|
1402
|
+
feature?: ApiFeature;
|
|
744
1403
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1404
|
/**
|
|
746
1405
|
* Get chain information
|
|
747
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
748
|
-
* @returns GetChainResponse
|
|
1406
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1407
|
+
* @returns GetChainResponse Successful response
|
|
749
1408
|
* @throws ApiError
|
|
750
1409
|
*/
|
|
751
1410
|
getChainInfo({ chainId, }: {
|
|
752
1411
|
/**
|
|
753
|
-
* A supported evm chain id
|
|
1412
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
1413
|
*/
|
|
755
1414
|
chainId: string;
|
|
756
1415
|
}): CancelablePromise<GetChainResponse>;
|
|
1416
|
+
/**
|
|
1417
|
+
* @deprecated
|
|
1418
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1419
|
+
*
|
|
1420
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1421
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1422
|
+
* @throws ApiError
|
|
1423
|
+
*/
|
|
1424
|
+
getAddressChains({ address, }: {
|
|
1425
|
+
/**
|
|
1426
|
+
* A wallet address.
|
|
1427
|
+
*/
|
|
1428
|
+
address: string;
|
|
1429
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1430
|
+
/**
|
|
1431
|
+
* @deprecated
|
|
1432
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1433
|
+
*
|
|
1434
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1435
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1436
|
+
* @throws ApiError
|
|
1437
|
+
*/
|
|
1438
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1439
|
+
/**
|
|
1440
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1441
|
+
*/
|
|
1442
|
+
pageToken?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1445
|
+
*/
|
|
1446
|
+
pageSize?: number;
|
|
1447
|
+
/**
|
|
1448
|
+
* Either mainnet or testnet/fuji.
|
|
1449
|
+
*/
|
|
1450
|
+
network?: Network;
|
|
1451
|
+
/**
|
|
1452
|
+
* A status filter for listed transactions.
|
|
1453
|
+
*/
|
|
1454
|
+
status?: TransactionStatus;
|
|
1455
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1456
|
+
/**
|
|
1457
|
+
* @deprecated
|
|
1458
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1459
|
+
*
|
|
1460
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1461
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1465
|
+
/**
|
|
1466
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
|
+
*/
|
|
1468
|
+
pageToken?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1471
|
+
*/
|
|
1472
|
+
pageSize?: number;
|
|
1473
|
+
/**
|
|
1474
|
+
* Either mainnet or testnet/fuji.
|
|
1475
|
+
*/
|
|
1476
|
+
network?: Network;
|
|
1477
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
757
1478
|
}
|
|
758
1479
|
|
|
759
1480
|
type ImageAsset = {
|
|
@@ -1040,12 +1761,12 @@ declare class EvmContractsService {
|
|
|
1040
1761
|
/**
|
|
1041
1762
|
* Get contract metadata
|
|
1042
1763
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1764
|
+
* @returns any Successful response
|
|
1044
1765
|
* @throws ApiError
|
|
1045
1766
|
*/
|
|
1046
1767
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1768
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1769
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1770
|
*/
|
|
1050
1771
|
chainId: string;
|
|
1051
1772
|
/**
|
|
@@ -1056,12 +1777,12 @@ declare class EvmContractsService {
|
|
|
1056
1777
|
/**
|
|
1057
1778
|
* Update contract information
|
|
1058
1779
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1780
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1781
|
* @throws ApiError
|
|
1061
1782
|
*/
|
|
1062
1783
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1784
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1785
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1786
|
*/
|
|
1066
1787
|
chainId: string;
|
|
1067
1788
|
/**
|
|
@@ -1088,29 +1809,6 @@ declare namespace Erc1155Token {
|
|
|
1088
1809
|
}
|
|
1089
1810
|
}
|
|
1090
1811
|
|
|
1091
|
-
type RichAddress = {
|
|
1092
|
-
/**
|
|
1093
|
-
* The contract name.
|
|
1094
|
-
*/
|
|
1095
|
-
name?: string;
|
|
1096
|
-
/**
|
|
1097
|
-
* The contract symbol.
|
|
1098
|
-
*/
|
|
1099
|
-
symbol?: string;
|
|
1100
|
-
/**
|
|
1101
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1102
|
-
*/
|
|
1103
|
-
decimals?: number;
|
|
1104
|
-
/**
|
|
1105
|
-
* The logo uri for the address.
|
|
1106
|
-
*/
|
|
1107
|
-
logoUri?: string;
|
|
1108
|
-
/**
|
|
1109
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1110
|
-
*/
|
|
1111
|
-
address: string;
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
1812
|
type Erc1155TransferDetails = {
|
|
1115
1813
|
from: RichAddress;
|
|
1116
1814
|
to: RichAddress;
|
|
@@ -1195,27 +1893,6 @@ type Erc721TransferDetails = {
|
|
|
1195
1893
|
erc721Token: Erc721Token;
|
|
1196
1894
|
};
|
|
1197
1895
|
|
|
1198
|
-
/**
|
|
1199
|
-
* 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.
|
|
1200
|
-
*/
|
|
1201
|
-
declare enum TransactionMethodType {
|
|
1202
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1203
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1204
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
type Method = {
|
|
1208
|
-
callType: TransactionMethodType;
|
|
1209
|
-
/**
|
|
1210
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1211
|
-
*/
|
|
1212
|
-
methodHash: string;
|
|
1213
|
-
/**
|
|
1214
|
-
* 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'.
|
|
1215
|
-
*/
|
|
1216
|
-
methodName?: string;
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
1896
|
type FullNativeTransactionDetails = {
|
|
1220
1897
|
/**
|
|
1221
1898
|
* The block number on the chain.
|
|
@@ -1229,6 +1906,10 @@ type FullNativeTransactionDetails = {
|
|
|
1229
1906
|
* The block hash identifier.
|
|
1230
1907
|
*/
|
|
1231
1908
|
blockHash: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* The EVM chain ID on which the transaction occured.
|
|
1911
|
+
*/
|
|
1912
|
+
chainId: string;
|
|
1232
1913
|
/**
|
|
1233
1914
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1234
1915
|
*/
|
|
@@ -1309,6 +1990,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1990
|
historicalPrice?: Money;
|
|
1310
1991
|
};
|
|
1311
1992
|
|
|
1993
|
+
declare enum TransactionDirectionType {
|
|
1994
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1995
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
type TeleporterMessageInfo = {
|
|
1999
|
+
teleporterMessageId: string;
|
|
2000
|
+
direction: TransactionDirectionType;
|
|
2001
|
+
/**
|
|
2002
|
+
* chain id of the source chain. valid only for destination transactions
|
|
2003
|
+
*/
|
|
2004
|
+
sourceChainId?: Record<string, any>;
|
|
2005
|
+
/**
|
|
2006
|
+
* chain id of the destination chain. valid only for source transactions
|
|
2007
|
+
*/
|
|
2008
|
+
destinationChainId?: Record<string, any>;
|
|
2009
|
+
};
|
|
2010
|
+
|
|
1312
2011
|
type GetTransactionResponse = {
|
|
1313
2012
|
/**
|
|
1314
2013
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +2027,10 @@ type GetTransactionResponse = {
|
|
|
1328
2027
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
2028
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
2029
|
nativeTransaction: FullNativeTransactionDetails;
|
|
2030
|
+
/**
|
|
2031
|
+
* Corresponding teleporter message info if available.
|
|
2032
|
+
*/
|
|
2033
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
2034
|
};
|
|
1332
2035
|
|
|
1333
2036
|
type ListContractsResponse = {
|
|
@@ -1470,65 +2173,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1470
2173
|
transactions: Array<InternalTransaction>;
|
|
1471
2174
|
};
|
|
1472
2175
|
|
|
1473
|
-
type NativeTransaction = {
|
|
1474
|
-
/**
|
|
1475
|
-
* The block number on the chain.
|
|
1476
|
-
*/
|
|
1477
|
-
blockNumber: string;
|
|
1478
|
-
/**
|
|
1479
|
-
* The block finality timestamp.
|
|
1480
|
-
*/
|
|
1481
|
-
blockTimestamp: number;
|
|
1482
|
-
/**
|
|
1483
|
-
* The block hash identifier.
|
|
1484
|
-
*/
|
|
1485
|
-
blockHash: string;
|
|
1486
|
-
/**
|
|
1487
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1488
|
-
*/
|
|
1489
|
-
blockIndex: number;
|
|
1490
|
-
/**
|
|
1491
|
-
* The transaction hash identifier.
|
|
1492
|
-
*/
|
|
1493
|
-
txHash: string;
|
|
1494
|
-
/**
|
|
1495
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1496
|
-
*/
|
|
1497
|
-
txStatus: string;
|
|
1498
|
-
/**
|
|
1499
|
-
* The transaction type.
|
|
1500
|
-
*/
|
|
1501
|
-
txType: number;
|
|
1502
|
-
/**
|
|
1503
|
-
* The gas limit set for the transaction.
|
|
1504
|
-
*/
|
|
1505
|
-
gasLimit: string;
|
|
1506
|
-
/**
|
|
1507
|
-
* The amount of gas used.
|
|
1508
|
-
*/
|
|
1509
|
-
gasUsed: string;
|
|
1510
|
-
/**
|
|
1511
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1512
|
-
*/
|
|
1513
|
-
gasPrice: string;
|
|
1514
|
-
/**
|
|
1515
|
-
* The nonce used by the sender of the transaction.
|
|
1516
|
-
*/
|
|
1517
|
-
nonce: string;
|
|
1518
|
-
from: RichAddress;
|
|
1519
|
-
to: RichAddress;
|
|
1520
|
-
method?: Method;
|
|
1521
|
-
value: string;
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
|
-
type ListNativeTransactionsResponse = {
|
|
1525
|
-
/**
|
|
1526
|
-
* 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.
|
|
1527
|
-
*/
|
|
1528
|
-
nextPageToken?: string;
|
|
1529
|
-
transactions: Array<NativeTransaction>;
|
|
1530
|
-
};
|
|
1531
|
-
|
|
1532
2176
|
type TransactionDetails = {
|
|
1533
2177
|
/**
|
|
1534
2178
|
* The native (top-level) transaction details.
|
|
@@ -1573,23 +2217,42 @@ declare enum SortOrder {
|
|
|
1573
2217
|
DESC = "desc"
|
|
1574
2218
|
}
|
|
1575
2219
|
|
|
1576
|
-
declare enum TransactionStatus {
|
|
1577
|
-
FAILED = "failed",
|
|
1578
|
-
SUCCESS = "success"
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
2220
|
declare class EvmTransactionsService {
|
|
1582
2221
|
readonly httpRequest: BaseHttpRequest;
|
|
1583
2222
|
constructor(httpRequest: BaseHttpRequest);
|
|
2223
|
+
/**
|
|
2224
|
+
* List the latest transactions across all supported EVM chains
|
|
2225
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2226
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2230
|
+
/**
|
|
2231
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2232
|
+
*/
|
|
2233
|
+
pageToken?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2236
|
+
*/
|
|
2237
|
+
pageSize?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Either mainnet or testnet/fuji.
|
|
2240
|
+
*/
|
|
2241
|
+
network?: Network;
|
|
2242
|
+
/**
|
|
2243
|
+
* A status filter for listed transactions.
|
|
2244
|
+
*/
|
|
2245
|
+
status?: TransactionStatus;
|
|
2246
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1584
2247
|
/**
|
|
1585
2248
|
* Get deployment transaction
|
|
1586
2249
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
2250
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
2251
|
* @throws ApiError
|
|
1589
2252
|
*/
|
|
1590
2253
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1591
2254
|
/**
|
|
1592
|
-
* A supported evm chain id
|
|
2255
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
2256
|
*/
|
|
1594
2257
|
chainId: string;
|
|
1595
2258
|
/**
|
|
@@ -1604,12 +2267,12 @@ declare class EvmTransactionsService {
|
|
|
1604
2267
|
/**
|
|
1605
2268
|
* List deployed contracts
|
|
1606
2269
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
2270
|
+
* @returns ListContractsResponse Successful response
|
|
1608
2271
|
* @throws ApiError
|
|
1609
2272
|
*/
|
|
1610
2273
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1611
2274
|
/**
|
|
1612
|
-
* A supported evm chain id
|
|
2275
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
2276
|
*/
|
|
1614
2277
|
chainId: string;
|
|
1615
2278
|
/**
|
|
@@ -1628,12 +2291,12 @@ declare class EvmTransactionsService {
|
|
|
1628
2291
|
/**
|
|
1629
2292
|
* List ERC transfers
|
|
1630
2293
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
2294
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
2295
|
* @throws ApiError
|
|
1633
2296
|
*/
|
|
1634
2297
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
2298
|
/**
|
|
1636
|
-
* A supported evm chain id
|
|
2299
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
2300
|
*/
|
|
1638
2301
|
chainId: string;
|
|
1639
2302
|
/**
|
|
@@ -1662,12 +2325,12 @@ declare class EvmTransactionsService {
|
|
|
1662
2325
|
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
1663
2326
|
*
|
|
1664
2327
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
2328
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
2329
|
* @throws ApiError
|
|
1667
2330
|
*/
|
|
1668
2331
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1669
2332
|
/**
|
|
1670
|
-
* A supported evm chain id
|
|
2333
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
2334
|
*/
|
|
1672
2335
|
chainId: string;
|
|
1673
2336
|
/**
|
|
@@ -1698,12 +2361,12 @@ declare class EvmTransactionsService {
|
|
|
1698
2361
|
/**
|
|
1699
2362
|
* List native transactions
|
|
1700
2363
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
2364
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
2365
|
* @throws ApiError
|
|
1703
2366
|
*/
|
|
1704
2367
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1705
2368
|
/**
|
|
1706
|
-
* A supported evm chain id
|
|
2369
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
2370
|
*/
|
|
1708
2371
|
chainId: string;
|
|
1709
2372
|
/**
|
|
@@ -1730,12 +2393,12 @@ declare class EvmTransactionsService {
|
|
|
1730
2393
|
/**
|
|
1731
2394
|
* List ERC-20 transfers
|
|
1732
2395
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
2396
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
2397
|
* @throws ApiError
|
|
1735
2398
|
*/
|
|
1736
2399
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
2400
|
/**
|
|
1738
|
-
* A supported evm chain id
|
|
2401
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
2402
|
*/
|
|
1740
2403
|
chainId: string;
|
|
1741
2404
|
/**
|
|
@@ -1762,12 +2425,12 @@ declare class EvmTransactionsService {
|
|
|
1762
2425
|
/**
|
|
1763
2426
|
* List ERC-721 transfers
|
|
1764
2427
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
2428
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
2429
|
* @throws ApiError
|
|
1767
2430
|
*/
|
|
1768
2431
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1769
2432
|
/**
|
|
1770
|
-
* A supported evm chain id
|
|
2433
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
2434
|
*/
|
|
1772
2435
|
chainId: string;
|
|
1773
2436
|
/**
|
|
@@ -1794,12 +2457,12 @@ declare class EvmTransactionsService {
|
|
|
1794
2457
|
/**
|
|
1795
2458
|
* List ERC-1155 transfers
|
|
1796
2459
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
2460
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
2461
|
* @throws ApiError
|
|
1799
2462
|
*/
|
|
1800
2463
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1801
2464
|
/**
|
|
1802
|
-
* A supported evm chain id
|
|
2465
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
2466
|
*/
|
|
1804
2467
|
chainId: string;
|
|
1805
2468
|
/**
|
|
@@ -1828,12 +2491,12 @@ declare class EvmTransactionsService {
|
|
|
1828
2491
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
2492
|
*
|
|
1830
2493
|
* 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.
|
|
1831
|
-
* @returns ListInternalTransactionsResponse
|
|
2494
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
2495
|
* @throws ApiError
|
|
1833
2496
|
*/
|
|
1834
2497
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1835
2498
|
/**
|
|
1836
|
-
* A supported evm chain id
|
|
2499
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
2500
|
*/
|
|
1838
2501
|
chainId: string;
|
|
1839
2502
|
/**
|
|
@@ -1860,12 +2523,12 @@ declare class EvmTransactionsService {
|
|
|
1860
2523
|
/**
|
|
1861
2524
|
* Get transaction
|
|
1862
2525
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
2526
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
2527
|
* @throws ApiError
|
|
1865
2528
|
*/
|
|
1866
2529
|
getTransaction({ chainId, txHash, }: {
|
|
1867
2530
|
/**
|
|
1868
|
-
* A supported evm chain id
|
|
2531
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
2532
|
*/
|
|
1870
2533
|
chainId: string;
|
|
1871
2534
|
/**
|
|
@@ -1876,28 +2539,36 @@ declare class EvmTransactionsService {
|
|
|
1876
2539
|
/**
|
|
1877
2540
|
* List transactions for a block
|
|
1878
2541
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
2542
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
2543
|
* @throws ApiError
|
|
1881
2544
|
*/
|
|
1882
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2545
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
1883
2546
|
/**
|
|
1884
|
-
* A supported evm chain id
|
|
2547
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
2548
|
*/
|
|
1886
2549
|
chainId: string;
|
|
1887
2550
|
/**
|
|
1888
2551
|
* A block identifier which is either a block number or the block hash.
|
|
1889
2552
|
*/
|
|
1890
2553
|
blockId: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2556
|
+
*/
|
|
2557
|
+
pageToken?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2560
|
+
*/
|
|
2561
|
+
pageSize?: number;
|
|
1891
2562
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1892
2563
|
/**
|
|
1893
2564
|
* List latest transactions
|
|
1894
2565
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
2566
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
2567
|
* @throws ApiError
|
|
1897
2568
|
*/
|
|
1898
2569
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1899
2570
|
/**
|
|
1900
|
-
* A supported evm chain id
|
|
2571
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
2572
|
*/
|
|
1902
2573
|
chainId: string;
|
|
1903
2574
|
/**
|
|
@@ -1915,221 +2586,235 @@ declare class EvmTransactionsService {
|
|
|
1915
2586
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1916
2587
|
}
|
|
1917
2588
|
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
*/
|
|
1922
|
-
ipAddress: string;
|
|
1923
|
-
/**
|
|
1924
|
-
* The host for the request made by the client.
|
|
1925
|
-
*/
|
|
1926
|
-
host: string;
|
|
2589
|
+
declare class HealthCheckService {
|
|
2590
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2591
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1927
2592
|
/**
|
|
1928
|
-
*
|
|
2593
|
+
* Get the health of the service
|
|
2594
|
+
* @returns any The Health Check is successful
|
|
2595
|
+
* @throws ApiError
|
|
1929
2596
|
*/
|
|
1930
|
-
|
|
2597
|
+
dataHealthCheck(): CancelablePromise<{
|
|
2598
|
+
status?: string;
|
|
2599
|
+
info?: Record<string, Record<string, string>> | null;
|
|
2600
|
+
error?: Record<string, Record<string, string>> | null;
|
|
2601
|
+
details?: Record<string, Record<string, string>>;
|
|
2602
|
+
}>;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
type IcmDestinationTransaction = {
|
|
2606
|
+
txHash: string;
|
|
2607
|
+
timestamp: number;
|
|
2608
|
+
gasSpent: string;
|
|
2609
|
+
rewardRedeemer: string;
|
|
2610
|
+
delivererAddress: string;
|
|
1931
2611
|
};
|
|
1932
2612
|
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
GLACIER_API_REQUEST = "Glacier API Request",
|
|
1938
|
-
GLACIER_RPC_REQUEST = "Glacier RPC Request"
|
|
1939
|
-
}
|
|
2613
|
+
type IcmReceipt = {
|
|
2614
|
+
receivedMessageNonce: string;
|
|
2615
|
+
relayerRewardAddress: string;
|
|
2616
|
+
};
|
|
1940
2617
|
|
|
1941
|
-
type
|
|
1942
|
-
/**
|
|
1943
|
-
* The organization id of the request.
|
|
1944
|
-
*/
|
|
1945
|
-
orgId: string;
|
|
1946
|
-
/**
|
|
1947
|
-
* The unique log id of the request.
|
|
1948
|
-
*/
|
|
1949
|
-
logId: string;
|
|
1950
|
-
/**
|
|
1951
|
-
* The timestamp of the request.
|
|
1952
|
-
*/
|
|
1953
|
-
eventTimestamp: number;
|
|
1954
|
-
/**
|
|
1955
|
-
* The apiKey used to make the request.
|
|
1956
|
-
*/
|
|
1957
|
-
apiKeyId: string;
|
|
1958
|
-
/**
|
|
1959
|
-
* The alias of the apiKey used to make the request.
|
|
1960
|
-
*/
|
|
1961
|
-
apiKeyAlias: string;
|
|
1962
|
-
/**
|
|
1963
|
-
* The region of the host for the request made by the client.
|
|
1964
|
-
*/
|
|
1965
|
-
hostRegion: string;
|
|
1966
|
-
requestType: RequestType;
|
|
1967
|
-
/**
|
|
1968
|
-
* The path of the request made by the client.
|
|
1969
|
-
*/
|
|
1970
|
-
requestPath: string;
|
|
2618
|
+
type IcmRewardDetails = {
|
|
1971
2619
|
/**
|
|
1972
|
-
*
|
|
2620
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1973
2621
|
*/
|
|
1974
|
-
|
|
2622
|
+
address: string;
|
|
1975
2623
|
/**
|
|
1976
|
-
* The
|
|
2624
|
+
* The contract name.
|
|
1977
2625
|
*/
|
|
1978
|
-
|
|
2626
|
+
name: string;
|
|
1979
2627
|
/**
|
|
1980
|
-
* The
|
|
2628
|
+
* The contract symbol.
|
|
1981
2629
|
*/
|
|
1982
|
-
|
|
2630
|
+
symbol: string;
|
|
1983
2631
|
/**
|
|
1984
|
-
* The
|
|
2632
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1985
2633
|
*/
|
|
1986
|
-
|
|
2634
|
+
decimals: number;
|
|
1987
2635
|
/**
|
|
1988
|
-
* The
|
|
2636
|
+
* The logo uri for the address.
|
|
1989
2637
|
*/
|
|
1990
|
-
|
|
2638
|
+
logoUri?: string;
|
|
2639
|
+
ercType: IcmRewardDetails.ercType;
|
|
1991
2640
|
/**
|
|
1992
|
-
* The
|
|
2641
|
+
* The token price, if available.
|
|
1993
2642
|
*/
|
|
1994
|
-
|
|
2643
|
+
price?: Money;
|
|
2644
|
+
value: string;
|
|
1995
2645
|
};
|
|
2646
|
+
declare namespace IcmRewardDetails {
|
|
2647
|
+
enum ercType {
|
|
2648
|
+
ERC_20 = "ERC-20"
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
1996
2651
|
|
|
1997
|
-
type
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
nextPageToken?: string;
|
|
2002
|
-
/**
|
|
2003
|
-
* The organization id of the request.
|
|
2004
|
-
*/
|
|
2005
|
-
orgId: string;
|
|
2006
|
-
/**
|
|
2007
|
-
* An array of logs representing the requests made by clients.
|
|
2008
|
-
*/
|
|
2009
|
-
logs: Array<LogsFormat>;
|
|
2652
|
+
type IcmSourceTransaction = {
|
|
2653
|
+
txHash: string;
|
|
2654
|
+
timestamp: number;
|
|
2655
|
+
gasSpent: string;
|
|
2010
2656
|
};
|
|
2011
2657
|
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2658
|
+
type DeliveredIcmMessage = {
|
|
2659
|
+
messageId: string;
|
|
2660
|
+
icmContractAddress: string;
|
|
2661
|
+
sourceBlockchainId: string;
|
|
2662
|
+
destinationBlockchainId: string;
|
|
2663
|
+
sourceEvmChainId: string;
|
|
2664
|
+
destinationEvmChainId: string;
|
|
2665
|
+
messageNonce: string;
|
|
2666
|
+
from: string;
|
|
2667
|
+
to: string;
|
|
2668
|
+
data?: string;
|
|
2669
|
+
messageExecuted: boolean;
|
|
2670
|
+
receipts: Array<IcmReceipt>;
|
|
2671
|
+
receiptDelivered: boolean;
|
|
2672
|
+
rewardDetails: IcmRewardDetails;
|
|
2673
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2674
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2675
|
+
status: DeliveredIcmMessage.status;
|
|
2676
|
+
};
|
|
2677
|
+
declare namespace DeliveredIcmMessage {
|
|
2678
|
+
enum status {
|
|
2679
|
+
DELIVERED = "delivered"
|
|
2680
|
+
}
|
|
2018
2681
|
}
|
|
2019
2682
|
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2683
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2684
|
+
messageId: string;
|
|
2685
|
+
icmContractAddress: string;
|
|
2686
|
+
sourceBlockchainId: string;
|
|
2687
|
+
destinationBlockchainId: string;
|
|
2688
|
+
sourceEvmChainId: string;
|
|
2689
|
+
destinationEvmChainId: string;
|
|
2690
|
+
messageNonce: string;
|
|
2691
|
+
from: string;
|
|
2692
|
+
to: string;
|
|
2693
|
+
data?: string;
|
|
2694
|
+
messageExecuted: boolean;
|
|
2695
|
+
receipts: Array<IcmReceipt>;
|
|
2696
|
+
receiptDelivered: boolean;
|
|
2697
|
+
rewardDetails: IcmRewardDetails;
|
|
2698
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2699
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2700
|
+
};
|
|
2701
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2702
|
+
enum status {
|
|
2703
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2704
|
+
}
|
|
2025
2705
|
}
|
|
2026
2706
|
|
|
2027
|
-
type
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2707
|
+
type PendingIcmMessage = {
|
|
2708
|
+
messageId: string;
|
|
2709
|
+
icmContractAddress: string;
|
|
2710
|
+
sourceBlockchainId: string;
|
|
2711
|
+
destinationBlockchainId: string;
|
|
2712
|
+
sourceEvmChainId: string;
|
|
2713
|
+
destinationEvmChainId: string;
|
|
2714
|
+
messageNonce: string;
|
|
2715
|
+
from: string;
|
|
2716
|
+
to: string;
|
|
2717
|
+
data?: string;
|
|
2718
|
+
messageExecuted: boolean;
|
|
2719
|
+
receipts: Array<IcmReceipt>;
|
|
2720
|
+
receiptDelivered: boolean;
|
|
2721
|
+
rewardDetails: IcmRewardDetails;
|
|
2722
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2723
|
+
status: PendingIcmMessage.status;
|
|
2724
|
+
};
|
|
2725
|
+
declare namespace PendingIcmMessage {
|
|
2726
|
+
enum status {
|
|
2727
|
+
PENDING = "pending"
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
type ListIcmMessagesResponse = {
|
|
2036
2732
|
/**
|
|
2037
|
-
*
|
|
2733
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2038
2734
|
*/
|
|
2039
|
-
|
|
2735
|
+
nextPageToken?: string;
|
|
2736
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2040
2737
|
};
|
|
2041
2738
|
|
|
2042
|
-
declare class
|
|
2739
|
+
declare class InterchainMessagingService {
|
|
2043
2740
|
readonly httpRequest: BaseHttpRequest;
|
|
2044
2741
|
constructor(httpRequest: BaseHttpRequest);
|
|
2045
2742
|
/**
|
|
2046
|
-
* Get
|
|
2047
|
-
* Gets
|
|
2048
|
-
* @returns
|
|
2743
|
+
* Get an ICM message
|
|
2744
|
+
* Gets an ICM message by message ID.
|
|
2745
|
+
* @returns any Successful response
|
|
2049
2746
|
* @throws ApiError
|
|
2050
2747
|
*/
|
|
2051
|
-
|
|
2748
|
+
getIcmMessage({ messageId, }: {
|
|
2052
2749
|
/**
|
|
2053
|
-
*
|
|
2750
|
+
* The message ID of the ICM message.
|
|
2054
2751
|
*/
|
|
2055
|
-
|
|
2752
|
+
messageId: string;
|
|
2753
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2754
|
+
/**
|
|
2755
|
+
* List ICM messages
|
|
2756
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2757
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2758
|
+
* @throws ApiError
|
|
2759
|
+
*/
|
|
2760
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2056
2761
|
/**
|
|
2057
|
-
*
|
|
2762
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2058
2763
|
*/
|
|
2059
|
-
|
|
2764
|
+
pageToken?: string;
|
|
2060
2765
|
/**
|
|
2061
|
-
*
|
|
2766
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2062
2767
|
*/
|
|
2063
|
-
|
|
2768
|
+
pageSize?: number;
|
|
2064
2769
|
/**
|
|
2065
|
-
*
|
|
2770
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2066
2771
|
*/
|
|
2067
|
-
|
|
2772
|
+
sourceBlockchainId?: string;
|
|
2068
2773
|
/**
|
|
2069
|
-
*
|
|
2774
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2070
2775
|
*/
|
|
2071
|
-
|
|
2776
|
+
destinationBlockchainId?: string;
|
|
2072
2777
|
/**
|
|
2073
|
-
*
|
|
2778
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2074
2779
|
*/
|
|
2075
|
-
|
|
2780
|
+
blockchainId?: string;
|
|
2076
2781
|
/**
|
|
2077
|
-
*
|
|
2782
|
+
* The address of the recipient of the ICM message.
|
|
2078
2783
|
*/
|
|
2079
|
-
|
|
2784
|
+
to?: string;
|
|
2080
2785
|
/**
|
|
2081
|
-
*
|
|
2786
|
+
* The address of the sender of the ICM message.
|
|
2082
2787
|
*/
|
|
2083
|
-
|
|
2788
|
+
from?: string;
|
|
2084
2789
|
/**
|
|
2085
|
-
*
|
|
2790
|
+
* Either mainnet or testnet/fuji.
|
|
2086
2791
|
*/
|
|
2087
|
-
|
|
2088
|
-
}): CancelablePromise<
|
|
2792
|
+
network?: Network;
|
|
2793
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2089
2794
|
/**
|
|
2090
|
-
*
|
|
2091
|
-
*
|
|
2092
|
-
* @returns
|
|
2795
|
+
* List ICM messages by address
|
|
2796
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2797
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2093
2798
|
* @throws ApiError
|
|
2094
2799
|
*/
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* Organization ID to fetch usage metrics for
|
|
2098
|
-
*/
|
|
2099
|
-
orgId?: string;
|
|
2800
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2100
2801
|
/**
|
|
2101
|
-
*
|
|
2102
|
-
*/
|
|
2103
|
-
startTimestamp?: number;
|
|
2104
|
-
/**
|
|
2105
|
-
* Query param for retrieving items before a specific timestamp.
|
|
2802
|
+
* An EVM address.
|
|
2106
2803
|
*/
|
|
2107
|
-
|
|
2804
|
+
address: string;
|
|
2108
2805
|
/**
|
|
2109
2806
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2110
2807
|
*/
|
|
2111
2808
|
pageToken?: string;
|
|
2112
2809
|
/**
|
|
2113
|
-
* The maximum number of items to return.
|
|
2810
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2114
2811
|
*/
|
|
2115
2812
|
pageSize?: number;
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2122
|
-
/**
|
|
2123
|
-
* Get the health of the service
|
|
2124
|
-
* @returns any The Health Check is successful
|
|
2125
|
-
* @throws ApiError
|
|
2126
|
-
*/
|
|
2127
|
-
healthCheck(): CancelablePromise<{
|
|
2128
|
-
status?: string;
|
|
2129
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2130
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2131
|
-
details?: Record<string, Record<string, string>>;
|
|
2132
|
-
}>;
|
|
2813
|
+
/**
|
|
2814
|
+
* Either mainnet or testnet/fuji.
|
|
2815
|
+
*/
|
|
2816
|
+
network?: Network;
|
|
2817
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2133
2818
|
}
|
|
2134
2819
|
|
|
2135
2820
|
type ListNftTokens = {
|
|
@@ -2146,12 +2831,12 @@ declare class NfTsService {
|
|
|
2146
2831
|
/**
|
|
2147
2832
|
* Reindex NFT metadata
|
|
2148
2833
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2149
|
-
* @returns any
|
|
2834
|
+
* @returns any Successful response
|
|
2150
2835
|
* @throws ApiError
|
|
2151
2836
|
*/
|
|
2152
2837
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2153
2838
|
/**
|
|
2154
|
-
* A supported evm chain id
|
|
2839
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2155
2840
|
*/
|
|
2156
2841
|
chainId: string;
|
|
2157
2842
|
/**
|
|
@@ -2166,12 +2851,12 @@ declare class NfTsService {
|
|
|
2166
2851
|
/**
|
|
2167
2852
|
* List tokens
|
|
2168
2853
|
* Lists tokens for an NFT contract.
|
|
2169
|
-
* @returns ListNftTokens
|
|
2854
|
+
* @returns ListNftTokens Successful response
|
|
2170
2855
|
* @throws ApiError
|
|
2171
2856
|
*/
|
|
2172
2857
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2173
2858
|
/**
|
|
2174
|
-
* A supported evm chain id
|
|
2859
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2175
2860
|
*/
|
|
2176
2861
|
chainId: string;
|
|
2177
2862
|
/**
|
|
@@ -2190,12 +2875,12 @@ declare class NfTsService {
|
|
|
2190
2875
|
/**
|
|
2191
2876
|
* Get token details
|
|
2192
2877
|
* Gets token details for a specific token of an NFT contract.
|
|
2193
|
-
* @returns any
|
|
2878
|
+
* @returns any Successful response
|
|
2194
2879
|
* @throws ApiError
|
|
2195
2880
|
*/
|
|
2196
2881
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2197
2882
|
/**
|
|
2198
|
-
* A supported evm chain id
|
|
2883
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2199
2884
|
*/
|
|
2200
2885
|
chainId: string;
|
|
2201
2886
|
/**
|
|
@@ -2220,16 +2905,16 @@ declare enum EVMOperationType {
|
|
|
2220
2905
|
|
|
2221
2906
|
type CreateEvmTransactionExportRequest = {
|
|
2222
2907
|
type: EVMOperationType;
|
|
2223
|
-
firstDate
|
|
2224
|
-
lastDate
|
|
2908
|
+
firstDate?: string;
|
|
2909
|
+
lastDate?: string;
|
|
2225
2910
|
/**
|
|
2226
2911
|
* @deprecated
|
|
2227
2912
|
*/
|
|
2228
|
-
startDate
|
|
2913
|
+
startDate?: string;
|
|
2229
2914
|
/**
|
|
2230
2915
|
* @deprecated
|
|
2231
2916
|
*/
|
|
2232
|
-
endDate
|
|
2917
|
+
endDate?: string;
|
|
2233
2918
|
options: EvmNetworkOptions;
|
|
2234
2919
|
};
|
|
2235
2920
|
|
|
@@ -2242,21 +2927,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2242
2927
|
type PrimaryNetworkOptions = {
|
|
2243
2928
|
addresses?: Array<string>;
|
|
2244
2929
|
cChainEvmAddresses?: Array<string>;
|
|
2245
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2930
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2246
2931
|
};
|
|
2247
2932
|
|
|
2248
2933
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2249
2934
|
type: PrimaryNetworkOperationType;
|
|
2250
|
-
firstDate
|
|
2251
|
-
lastDate
|
|
2935
|
+
firstDate?: string;
|
|
2936
|
+
lastDate?: string;
|
|
2252
2937
|
/**
|
|
2253
2938
|
* @deprecated
|
|
2254
2939
|
*/
|
|
2255
|
-
startDate
|
|
2940
|
+
startDate?: string;
|
|
2256
2941
|
/**
|
|
2257
2942
|
* @deprecated
|
|
2258
2943
|
*/
|
|
2259
|
-
endDate
|
|
2944
|
+
endDate?: string;
|
|
2260
2945
|
options: PrimaryNetworkOptions;
|
|
2261
2946
|
};
|
|
2262
2947
|
|
|
@@ -2308,7 +2993,7 @@ declare class OperationsService {
|
|
|
2308
2993
|
/**
|
|
2309
2994
|
* Get operation
|
|
2310
2995
|
* Gets operation details for the given operation id.
|
|
2311
|
-
* @returns OperationStatusResponse
|
|
2996
|
+
* @returns OperationStatusResponse Successful response
|
|
2312
2997
|
* @throws ApiError
|
|
2313
2998
|
*/
|
|
2314
2999
|
getOperationResult({ operationId, }: {
|
|
@@ -2322,7 +3007,7 @@ declare class OperationsService {
|
|
|
2322
3007
|
* Trigger a transaction export operation with given parameters.
|
|
2323
3008
|
*
|
|
2324
3009
|
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2325
|
-
* @returns OperationStatusResponse
|
|
3010
|
+
* @returns OperationStatusResponse Successful response
|
|
2326
3011
|
* @throws ApiError
|
|
2327
3012
|
*/
|
|
2328
3013
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2334,8 +3019,10 @@ declare enum BlockchainIds {
|
|
|
2334
3019
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2335
3020
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2336
3021
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3022
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2337
3023
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2338
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3024
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3025
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2339
3026
|
}
|
|
2340
3027
|
|
|
2341
3028
|
type ChainAddressChainIdMap = {
|
|
@@ -2359,16 +3046,31 @@ type DelegatorsDetails = {
|
|
|
2359
3046
|
};
|
|
2360
3047
|
|
|
2361
3048
|
type StakingDistribution = {
|
|
3049
|
+
/**
|
|
3050
|
+
* AvalancheGo version for the validator node.
|
|
3051
|
+
*/
|
|
2362
3052
|
version: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The total amount staked by validators using this version.
|
|
3055
|
+
*/
|
|
2363
3056
|
amountStaked: string;
|
|
3057
|
+
/**
|
|
3058
|
+
* The number of validators using this version.
|
|
3059
|
+
*/
|
|
2364
3060
|
validatorCount: number;
|
|
2365
3061
|
};
|
|
2366
3062
|
|
|
2367
3063
|
type ValidatorsDetails = {
|
|
2368
3064
|
validatorCount: number;
|
|
2369
3065
|
totalAmountStaked: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3068
|
+
*/
|
|
2370
3069
|
estimatedAnnualStakingReward: string;
|
|
2371
3070
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3071
|
+
/**
|
|
3072
|
+
* Ratio of total active stake amount to the current supply.
|
|
3073
|
+
*/
|
|
2372
3074
|
stakingRatio: string;
|
|
2373
3075
|
};
|
|
2374
3076
|
|
|
@@ -2420,7 +3122,13 @@ type CompletedDelegatorDetails = {
|
|
|
2420
3122
|
delegationFee: string;
|
|
2421
3123
|
startTimestamp: number;
|
|
2422
3124
|
endTimestamp: number;
|
|
3125
|
+
/**
|
|
3126
|
+
* Total rewards distributed for the successful delegation.
|
|
3127
|
+
*/
|
|
2423
3128
|
grossReward: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3131
|
+
*/
|
|
2424
3132
|
netReward: string;
|
|
2425
3133
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2426
3134
|
};
|
|
@@ -2438,31 +3146,88 @@ type PendingDelegatorDetails = {
|
|
|
2438
3146
|
delegationFee: string;
|
|
2439
3147
|
startTimestamp: number;
|
|
2440
3148
|
endTimestamp: number;
|
|
3149
|
+
/**
|
|
3150
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3151
|
+
*/
|
|
2441
3152
|
estimatedGrossReward: string;
|
|
3153
|
+
/**
|
|
3154
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3155
|
+
*/
|
|
2442
3156
|
estimatedNetReward: string;
|
|
2443
3157
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2444
3158
|
};
|
|
2445
|
-
declare namespace PendingDelegatorDetails {
|
|
2446
|
-
enum delegationStatus {
|
|
2447
|
-
PENDING = "pending"
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
3159
|
+
declare namespace PendingDelegatorDetails {
|
|
3160
|
+
enum delegationStatus {
|
|
3161
|
+
PENDING = "pending"
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
type ListDelegatorDetailsResponse = {
|
|
3166
|
+
/**
|
|
3167
|
+
* 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.
|
|
3168
|
+
*/
|
|
3169
|
+
nextPageToken?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* The list of Delegator Details.
|
|
3172
|
+
*/
|
|
3173
|
+
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
3174
|
+
};
|
|
3175
|
+
|
|
3176
|
+
type BalanceOwner = {
|
|
3177
|
+
addresses: Array<string>;
|
|
3178
|
+
threshold: number;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
3181
|
+
type L1ValidatorDetailsFull = {
|
|
3182
|
+
/**
|
|
3183
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3184
|
+
*/
|
|
3185
|
+
validationId: string;
|
|
3186
|
+
nodeId: string;
|
|
3187
|
+
subnetId: string;
|
|
3188
|
+
/**
|
|
3189
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
3190
|
+
*/
|
|
3191
|
+
weight: number;
|
|
3192
|
+
/**
|
|
3193
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3194
|
+
*/
|
|
3195
|
+
remainingBalance: number;
|
|
3196
|
+
/**
|
|
3197
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3198
|
+
*/
|
|
3199
|
+
creationTimestamp: number;
|
|
3200
|
+
blsCredentials: Record<string, any>;
|
|
3201
|
+
/**
|
|
3202
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3203
|
+
*/
|
|
3204
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3205
|
+
/**
|
|
3206
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3207
|
+
*/
|
|
3208
|
+
deactivationOwner: BalanceOwner;
|
|
3209
|
+
};
|
|
2450
3210
|
|
|
2451
|
-
type
|
|
3211
|
+
type ListL1ValidatorsResponse = {
|
|
2452
3212
|
/**
|
|
2453
3213
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2454
3214
|
*/
|
|
2455
3215
|
nextPageToken?: string;
|
|
2456
3216
|
/**
|
|
2457
|
-
* The list of
|
|
3217
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2458
3218
|
*/
|
|
2459
|
-
|
|
3219
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2460
3220
|
};
|
|
2461
3221
|
|
|
2462
3222
|
type BlockchainInfo = {
|
|
2463
3223
|
blockchainId: string;
|
|
2464
3224
|
};
|
|
2465
3225
|
|
|
3226
|
+
type L1ValidatorManagerDetails = {
|
|
3227
|
+
blockchainId: string;
|
|
3228
|
+
contractAddress: string;
|
|
3229
|
+
};
|
|
3230
|
+
|
|
2466
3231
|
type SubnetOwnershipInfo = {
|
|
2467
3232
|
/**
|
|
2468
3233
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2501,6 +3266,18 @@ type Subnet = {
|
|
|
2501
3266
|
* Latest subnet owner details for this Subnet.
|
|
2502
3267
|
*/
|
|
2503
3268
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
3269
|
+
/**
|
|
3270
|
+
* Whether the subnet is an L1 or not.
|
|
3271
|
+
*/
|
|
3272
|
+
isL1: boolean;
|
|
3273
|
+
/**
|
|
3274
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3275
|
+
*/
|
|
3276
|
+
l1ConversionTransactionHash?: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* L1 validator manager details.
|
|
3279
|
+
*/
|
|
3280
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2504
3281
|
blockchains: Array<BlockchainInfo>;
|
|
2505
3282
|
};
|
|
2506
3283
|
|
|
@@ -2548,6 +3325,9 @@ type ActiveValidatorDetails = {
|
|
|
2548
3325
|
nodeId: string;
|
|
2549
3326
|
subnetId: string;
|
|
2550
3327
|
amountStaked: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3330
|
+
*/
|
|
2551
3331
|
delegationFee?: string;
|
|
2552
3332
|
startTimestamp: number;
|
|
2553
3333
|
endTimestamp: number;
|
|
@@ -2555,12 +3335,30 @@ type ActiveValidatorDetails = {
|
|
|
2555
3335
|
* Present for AddPermissionlessValidatorTx
|
|
2556
3336
|
*/
|
|
2557
3337
|
blsCredentials?: BlsCredentials;
|
|
3338
|
+
/**
|
|
3339
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3340
|
+
*/
|
|
2558
3341
|
stakePercentage: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* The number of delegators linked to the validator.
|
|
3344
|
+
*/
|
|
2559
3345
|
delegatorCount: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3348
|
+
*/
|
|
2560
3349
|
amountDelegated?: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3352
|
+
*/
|
|
2561
3353
|
uptimePerformance: number;
|
|
2562
3354
|
avalancheGoVersion?: string;
|
|
3355
|
+
/**
|
|
3356
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3357
|
+
*/
|
|
2563
3358
|
delegationCapacity?: string;
|
|
3359
|
+
/**
|
|
3360
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3361
|
+
*/
|
|
2564
3362
|
potentialRewards: Rewards;
|
|
2565
3363
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2566
3364
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2576,6 +3374,9 @@ type CompletedValidatorDetails = {
|
|
|
2576
3374
|
nodeId: string;
|
|
2577
3375
|
subnetId: string;
|
|
2578
3376
|
amountStaked: string;
|
|
3377
|
+
/**
|
|
3378
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3379
|
+
*/
|
|
2579
3380
|
delegationFee?: string;
|
|
2580
3381
|
startTimestamp: number;
|
|
2581
3382
|
endTimestamp: number;
|
|
@@ -2584,6 +3385,7 @@ type CompletedValidatorDetails = {
|
|
|
2584
3385
|
*/
|
|
2585
3386
|
blsCredentials?: BlsCredentials;
|
|
2586
3387
|
delegatorCount: number;
|
|
3388
|
+
amountDelegated?: string;
|
|
2587
3389
|
rewards: Rewards;
|
|
2588
3390
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2589
3391
|
};
|
|
@@ -2598,6 +3400,9 @@ type PendingValidatorDetails = {
|
|
|
2598
3400
|
nodeId: string;
|
|
2599
3401
|
subnetId: string;
|
|
2600
3402
|
amountStaked: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3405
|
+
*/
|
|
2601
3406
|
delegationFee?: string;
|
|
2602
3407
|
startTimestamp: number;
|
|
2603
3408
|
endTimestamp: number;
|
|
@@ -2618,6 +3423,9 @@ type RemovedValidatorDetails = {
|
|
|
2618
3423
|
nodeId: string;
|
|
2619
3424
|
subnetId: string;
|
|
2620
3425
|
amountStaked: string;
|
|
3426
|
+
/**
|
|
3427
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3428
|
+
*/
|
|
2621
3429
|
delegationFee?: string;
|
|
2622
3430
|
startTimestamp: number;
|
|
2623
3431
|
endTimestamp: number;
|
|
@@ -2625,7 +3433,13 @@ type RemovedValidatorDetails = {
|
|
|
2625
3433
|
* Present for AddPermissionlessValidatorTx
|
|
2626
3434
|
*/
|
|
2627
3435
|
blsCredentials?: BlsCredentials;
|
|
3436
|
+
/**
|
|
3437
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3438
|
+
*/
|
|
2628
3439
|
removeTxHash: string;
|
|
3440
|
+
/**
|
|
3441
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3442
|
+
*/
|
|
2629
3443
|
removeTimestamp: number;
|
|
2630
3444
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2631
3445
|
};
|
|
@@ -2646,11 +3460,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2646
3460
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2647
3461
|
};
|
|
2648
3462
|
|
|
2649
|
-
declare enum Network {
|
|
2650
|
-
MAINNET = "mainnet",
|
|
2651
|
-
FUJI = "fuji"
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
3463
|
declare enum SortByOption {
|
|
2655
3464
|
BLOCK_INDEX = "blockIndex",
|
|
2656
3465
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2710,6 +3519,7 @@ type XChainAssetDetails = {
|
|
|
2710
3519
|
declare enum XChainId {
|
|
2711
3520
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2712
3521
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3522
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2713
3523
|
X_CHAIN = "x-chain"
|
|
2714
3524
|
}
|
|
2715
3525
|
|
|
@@ -2719,7 +3529,7 @@ declare class PrimaryNetworkService {
|
|
|
2719
3529
|
/**
|
|
2720
3530
|
* Get asset details
|
|
2721
3531
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2722
|
-
* @returns XChainAssetDetails
|
|
3532
|
+
* @returns XChainAssetDetails Successful response
|
|
2723
3533
|
* @throws ApiError
|
|
2724
3534
|
*/
|
|
2725
3535
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2728,7 +3538,7 @@ declare class PrimaryNetworkService {
|
|
|
2728
3538
|
*/
|
|
2729
3539
|
blockchainId: XChainId;
|
|
2730
3540
|
/**
|
|
2731
|
-
* Either mainnet or
|
|
3541
|
+
* Either mainnet or testnet/fuji.
|
|
2732
3542
|
*/
|
|
2733
3543
|
network: Network;
|
|
2734
3544
|
/**
|
|
@@ -2739,7 +3549,7 @@ declare class PrimaryNetworkService {
|
|
|
2739
3549
|
/**
|
|
2740
3550
|
* Get chain interactions for addresses
|
|
2741
3551
|
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
2742
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
3552
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2743
3553
|
* @throws ApiError
|
|
2744
3554
|
*/
|
|
2745
3555
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2748,31 +3558,31 @@ declare class PrimaryNetworkService {
|
|
|
2748
3558
|
*/
|
|
2749
3559
|
addresses: string;
|
|
2750
3560
|
/**
|
|
2751
|
-
* Either mainnet or
|
|
3561
|
+
* Either mainnet or testnet/fuji.
|
|
2752
3562
|
*/
|
|
2753
3563
|
network: Network;
|
|
2754
3564
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2755
3565
|
/**
|
|
2756
3566
|
* Get network details
|
|
2757
3567
|
* Gets network details such as validator and delegator stats.
|
|
2758
|
-
* @returns GetNetworkDetailsResponse
|
|
3568
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2759
3569
|
* @throws ApiError
|
|
2760
3570
|
*/
|
|
2761
3571
|
getNetworkDetails({ network, }: {
|
|
2762
3572
|
/**
|
|
2763
|
-
* Either mainnet or
|
|
3573
|
+
* Either mainnet or testnet/fuji.
|
|
2764
3574
|
*/
|
|
2765
3575
|
network: Network;
|
|
2766
3576
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2767
3577
|
/**
|
|
2768
3578
|
* List blockchains
|
|
2769
3579
|
* Lists all blockchains registered on the network.
|
|
2770
|
-
* @returns ListBlockchainsResponse
|
|
3580
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2771
3581
|
* @throws ApiError
|
|
2772
3582
|
*/
|
|
2773
3583
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2774
3584
|
/**
|
|
2775
|
-
* Either mainnet or
|
|
3585
|
+
* Either mainnet or testnet/fuji.
|
|
2776
3586
|
*/
|
|
2777
3587
|
network: Network;
|
|
2778
3588
|
/**
|
|
@@ -2791,12 +3601,12 @@ declare class PrimaryNetworkService {
|
|
|
2791
3601
|
/**
|
|
2792
3602
|
* List subnets
|
|
2793
3603
|
* Lists all subnets registered on the network.
|
|
2794
|
-
* @returns ListSubnetsResponse
|
|
3604
|
+
* @returns ListSubnetsResponse Successful response
|
|
2795
3605
|
* @throws ApiError
|
|
2796
3606
|
*/
|
|
2797
3607
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2798
3608
|
/**
|
|
2799
|
-
* Either mainnet or
|
|
3609
|
+
* Either mainnet or testnet/fuji.
|
|
2800
3610
|
*/
|
|
2801
3611
|
network: Network;
|
|
2802
3612
|
/**
|
|
@@ -2815,12 +3625,12 @@ declare class PrimaryNetworkService {
|
|
|
2815
3625
|
/**
|
|
2816
3626
|
* Get Subnet details by ID
|
|
2817
3627
|
* Get details of the Subnet registered on the network.
|
|
2818
|
-
* @returns Subnet
|
|
3628
|
+
* @returns Subnet Successful response
|
|
2819
3629
|
* @throws ApiError
|
|
2820
3630
|
*/
|
|
2821
3631
|
getSubnetById({ network, subnetId, }: {
|
|
2822
3632
|
/**
|
|
2823
|
-
* Either mainnet or
|
|
3633
|
+
* Either mainnet or testnet/fuji.
|
|
2824
3634
|
*/
|
|
2825
3635
|
network: Network;
|
|
2826
3636
|
/**
|
|
@@ -2831,12 +3641,12 @@ declare class PrimaryNetworkService {
|
|
|
2831
3641
|
/**
|
|
2832
3642
|
* List validators
|
|
2833
3643
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2834
|
-
* @returns ListValidatorDetailsResponse
|
|
3644
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2835
3645
|
* @throws ApiError
|
|
2836
3646
|
*/
|
|
2837
3647
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2838
3648
|
/**
|
|
2839
|
-
* Either mainnet or
|
|
3649
|
+
* Either mainnet or testnet/fuji.
|
|
2840
3650
|
*/
|
|
2841
3651
|
network: Network;
|
|
2842
3652
|
/**
|
|
@@ -2905,12 +3715,12 @@ declare class PrimaryNetworkService {
|
|
|
2905
3715
|
/**
|
|
2906
3716
|
* Get single validator details
|
|
2907
3717
|
* List validator details for a single validator. Filterable by validation status.
|
|
2908
|
-
* @returns ListValidatorDetailsResponse
|
|
3718
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2909
3719
|
* @throws ApiError
|
|
2910
3720
|
*/
|
|
2911
3721
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2912
3722
|
/**
|
|
2913
|
-
* Either mainnet or
|
|
3723
|
+
* Either mainnet or testnet/fuji.
|
|
2914
3724
|
*/
|
|
2915
3725
|
network: Network;
|
|
2916
3726
|
/**
|
|
@@ -2937,12 +3747,12 @@ declare class PrimaryNetworkService {
|
|
|
2937
3747
|
/**
|
|
2938
3748
|
* List delegators
|
|
2939
3749
|
* Lists details for delegators.
|
|
2940
|
-
* @returns ListDelegatorDetailsResponse
|
|
3750
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2941
3751
|
* @throws ApiError
|
|
2942
3752
|
*/
|
|
2943
3753
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2944
3754
|
/**
|
|
2945
|
-
* Either mainnet or
|
|
3755
|
+
* Either mainnet or testnet/fuji.
|
|
2946
3756
|
*/
|
|
2947
3757
|
network: Network;
|
|
2948
3758
|
/**
|
|
@@ -2970,14 +3780,49 @@ declare class PrimaryNetworkService {
|
|
|
2970
3780
|
*/
|
|
2971
3781
|
nodeIds?: string;
|
|
2972
3782
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3783
|
+
/**
|
|
3784
|
+
* List L1 validators
|
|
3785
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3786
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3787
|
+
* @throws ApiError
|
|
3788
|
+
*/
|
|
3789
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3790
|
+
/**
|
|
3791
|
+
* Either mainnet or testnet/fuji.
|
|
3792
|
+
*/
|
|
3793
|
+
network: Network;
|
|
3794
|
+
/**
|
|
3795
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3796
|
+
*/
|
|
3797
|
+
pageToken?: string;
|
|
3798
|
+
/**
|
|
3799
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3800
|
+
*/
|
|
3801
|
+
pageSize?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3804
|
+
*/
|
|
3805
|
+
l1ValidationId?: any;
|
|
3806
|
+
includeInactiveL1Validators?: boolean;
|
|
3807
|
+
/**
|
|
3808
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3809
|
+
*/
|
|
3810
|
+
nodeId?: string;
|
|
3811
|
+
/**
|
|
3812
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3813
|
+
*/
|
|
3814
|
+
subnetId?: any;
|
|
3815
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
2973
3816
|
}
|
|
2974
3817
|
|
|
2975
3818
|
declare enum BlockchainId {
|
|
2976
3819
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2977
3820
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2978
3821
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3822
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2979
3823
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2980
3824
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3825
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
2981
3826
|
P_CHAIN = "p-chain",
|
|
2982
3827
|
X_CHAIN = "x-chain",
|
|
2983
3828
|
C_CHAIN = "c-chain"
|
|
@@ -3014,11 +3859,6 @@ type CChainAtomicBalances = {
|
|
|
3014
3859
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3015
3860
|
};
|
|
3016
3861
|
|
|
3017
|
-
declare enum PrimaryNetwork {
|
|
3018
|
-
MAINNET = "mainnet",
|
|
3019
|
-
FUJI = "fuji"
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
3862
|
declare enum PrimaryNetworkChainName {
|
|
3023
3863
|
P_CHAIN = "p-chain",
|
|
3024
3864
|
X_CHAIN = "x-chain",
|
|
@@ -3027,7 +3867,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3027
3867
|
|
|
3028
3868
|
type PrimaryNetworkChainInfo = {
|
|
3029
3869
|
chainName: PrimaryNetworkChainName;
|
|
3030
|
-
network:
|
|
3870
|
+
network: Network;
|
|
3031
3871
|
};
|
|
3032
3872
|
|
|
3033
3873
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3179,7 +4019,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3179
4019
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
3180
4020
|
*
|
|
3181
4021
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
3182
|
-
* @returns any
|
|
4022
|
+
* @returns any Successful response
|
|
3183
4023
|
* @throws ApiError
|
|
3184
4024
|
*/
|
|
3185
4025
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3188,7 +4028,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3188
4028
|
*/
|
|
3189
4029
|
blockchainId: BlockchainId;
|
|
3190
4030
|
/**
|
|
3191
|
-
* Either mainnet or
|
|
4031
|
+
* Either mainnet or testnet/fuji.
|
|
3192
4032
|
*/
|
|
3193
4033
|
network: Network;
|
|
3194
4034
|
/**
|
|
@@ -3219,6 +4059,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3219
4059
|
txCount: number;
|
|
3220
4060
|
transactions: Array<string>;
|
|
3221
4061
|
blockSizeBytes: number;
|
|
4062
|
+
l1ValidatorsAccruedFees?: number;
|
|
4063
|
+
activeL1Validators?: number;
|
|
3222
4064
|
currentSupply?: string;
|
|
3223
4065
|
proposerDetails?: ProposerDetails;
|
|
3224
4066
|
};
|
|
@@ -3232,6 +4074,8 @@ type PrimaryNetworkBlock = {
|
|
|
3232
4074
|
txCount: number;
|
|
3233
4075
|
transactions: Array<string>;
|
|
3234
4076
|
blockSizeBytes: number;
|
|
4077
|
+
l1ValidatorsAccruedFees?: number;
|
|
4078
|
+
activeL1Validators?: number;
|
|
3235
4079
|
currentSupply?: string;
|
|
3236
4080
|
proposerDetails?: ProposerDetails;
|
|
3237
4081
|
};
|
|
@@ -3251,7 +4095,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3251
4095
|
/**
|
|
3252
4096
|
* Get block
|
|
3253
4097
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3254
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
4098
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3255
4099
|
* @throws ApiError
|
|
3256
4100
|
*/
|
|
3257
4101
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3260,7 +4104,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3260
4104
|
*/
|
|
3261
4105
|
blockchainId: BlockchainId;
|
|
3262
4106
|
/**
|
|
3263
|
-
* Either mainnet or
|
|
4107
|
+
* Either mainnet or testnet/fuji.
|
|
3264
4108
|
*/
|
|
3265
4109
|
network: Network;
|
|
3266
4110
|
/**
|
|
@@ -3271,22 +4115,30 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3271
4115
|
/**
|
|
3272
4116
|
* List blocks proposed by node
|
|
3273
4117
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3274
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
4118
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3275
4119
|
* @throws ApiError
|
|
3276
4120
|
*/
|
|
3277
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4121
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3278
4122
|
/**
|
|
3279
4123
|
* A primary network blockchain id or alias.
|
|
3280
4124
|
*/
|
|
3281
4125
|
blockchainId: BlockchainId;
|
|
3282
4126
|
/**
|
|
3283
|
-
* Either mainnet or
|
|
4127
|
+
* Either mainnet or testnet/fuji.
|
|
3284
4128
|
*/
|
|
3285
4129
|
network: Network;
|
|
3286
4130
|
/**
|
|
3287
4131
|
* A primary network (P or X chain) nodeId.
|
|
3288
4132
|
*/
|
|
3289
4133
|
nodeId: string;
|
|
4134
|
+
/**
|
|
4135
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4136
|
+
*/
|
|
4137
|
+
startTimestamp?: number;
|
|
4138
|
+
/**
|
|
4139
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4140
|
+
*/
|
|
4141
|
+
endTimestamp?: number;
|
|
3290
4142
|
/**
|
|
3291
4143
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3292
4144
|
*/
|
|
@@ -3299,18 +4151,26 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3299
4151
|
/**
|
|
3300
4152
|
* List latest blocks
|
|
3301
4153
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3302
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
4154
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3303
4155
|
* @throws ApiError
|
|
3304
4156
|
*/
|
|
3305
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4157
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3306
4158
|
/**
|
|
3307
4159
|
* A primary network blockchain id or alias.
|
|
3308
4160
|
*/
|
|
3309
4161
|
blockchainId: BlockchainId;
|
|
3310
4162
|
/**
|
|
3311
|
-
* Either mainnet or
|
|
4163
|
+
* Either mainnet or testnet/fuji.
|
|
3312
4164
|
*/
|
|
3313
4165
|
network: Network;
|
|
4166
|
+
/**
|
|
4167
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4168
|
+
*/
|
|
4169
|
+
startTimestamp?: number;
|
|
4170
|
+
/**
|
|
4171
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4172
|
+
*/
|
|
4173
|
+
endTimestamp?: number;
|
|
3314
4174
|
/**
|
|
3315
4175
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3316
4176
|
*/
|
|
@@ -3437,12 +4297,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3437
4297
|
/**
|
|
3438
4298
|
* List pending rewards
|
|
3439
4299
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3440
|
-
* @returns ListPendingRewardsResponse
|
|
4300
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3441
4301
|
* @throws ApiError
|
|
3442
4302
|
*/
|
|
3443
4303
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3444
4304
|
/**
|
|
3445
|
-
* Either mainnet or
|
|
4305
|
+
* Either mainnet or testnet/fuji.
|
|
3446
4306
|
*/
|
|
3447
4307
|
network: Network;
|
|
3448
4308
|
/**
|
|
@@ -3469,12 +4329,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3469
4329
|
/**
|
|
3470
4330
|
* List historical rewards
|
|
3471
4331
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3472
|
-
* @returns ListHistoricalRewardsResponse
|
|
4332
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3473
4333
|
* @throws ApiError
|
|
3474
4334
|
*/
|
|
3475
4335
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3476
4336
|
/**
|
|
3477
|
-
* Either mainnet or
|
|
4337
|
+
* Either mainnet or testnet/fuji.
|
|
3478
4338
|
*/
|
|
3479
4339
|
network: Network;
|
|
3480
4340
|
/**
|
|
@@ -3720,6 +4580,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3720
4580
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3721
4581
|
};
|
|
3722
4582
|
|
|
4583
|
+
type L1ValidatorDetailsTransaction = {
|
|
4584
|
+
/**
|
|
4585
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4586
|
+
*/
|
|
4587
|
+
validationId: string;
|
|
4588
|
+
nodeId: string;
|
|
4589
|
+
subnetId: string;
|
|
4590
|
+
/**
|
|
4591
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4592
|
+
*/
|
|
4593
|
+
weight: number;
|
|
4594
|
+
/**
|
|
4595
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4596
|
+
*/
|
|
4597
|
+
remainingBalance: number;
|
|
4598
|
+
/**
|
|
4599
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4600
|
+
*/
|
|
4601
|
+
balanceChange?: number;
|
|
4602
|
+
blsCredentials?: Record<string, any>;
|
|
4603
|
+
};
|
|
4604
|
+
|
|
3723
4605
|
declare enum PChainTransactionType {
|
|
3724
4606
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3725
4607
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3736,9 +4618,17 @@ declare enum PChainTransactionType {
|
|
|
3736
4618
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3737
4619
|
BASE_TX = "BaseTx",
|
|
3738
4620
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4621
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4622
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4623
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4624
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4625
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3739
4626
|
UNKNOWN = "UNKNOWN"
|
|
3740
4627
|
}
|
|
3741
4628
|
|
|
4629
|
+
/**
|
|
4630
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4631
|
+
*/
|
|
3742
4632
|
declare enum UtxoType {
|
|
3743
4633
|
STAKE = "STAKE",
|
|
3744
4634
|
TRANSFER = "TRANSFER"
|
|
@@ -3776,16 +4666,43 @@ type PChainUtxo = {
|
|
|
3776
4666
|
assetId: string;
|
|
3777
4667
|
blockNumber: string;
|
|
3778
4668
|
blockTimestamp: number;
|
|
4669
|
+
/**
|
|
4670
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4671
|
+
*/
|
|
3779
4672
|
consumingBlockNumber?: string;
|
|
4673
|
+
/**
|
|
4674
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4675
|
+
*/
|
|
3780
4676
|
consumingBlockTimestamp?: number;
|
|
4677
|
+
/**
|
|
4678
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4679
|
+
*/
|
|
3781
4680
|
platformLocktime?: number;
|
|
4681
|
+
/**
|
|
4682
|
+
* The index of the UTXO in the transaction
|
|
4683
|
+
*/
|
|
3782
4684
|
outputIndex: number;
|
|
3783
4685
|
rewardType?: RewardType;
|
|
4686
|
+
/**
|
|
4687
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4688
|
+
*/
|
|
3784
4689
|
stakeableLocktime?: number;
|
|
3785
4690
|
staked?: boolean;
|
|
4691
|
+
/**
|
|
4692
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4693
|
+
*/
|
|
3786
4694
|
threshold?: number;
|
|
4695
|
+
/**
|
|
4696
|
+
* The hash of the transaction that created this UTXO
|
|
4697
|
+
*/
|
|
3787
4698
|
txHash: string;
|
|
4699
|
+
/**
|
|
4700
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4701
|
+
*/
|
|
3788
4702
|
utxoEndTimestamp?: number;
|
|
4703
|
+
/**
|
|
4704
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4705
|
+
*/
|
|
3789
4706
|
utxoStartTimestamp?: number;
|
|
3790
4707
|
utxoType: UtxoType;
|
|
3791
4708
|
};
|
|
@@ -3800,9 +4717,18 @@ type PChainTransaction = {
|
|
|
3800
4717
|
* The block finality timestamp.
|
|
3801
4718
|
*/
|
|
3802
4719
|
blockTimestamp: number;
|
|
4720
|
+
/**
|
|
4721
|
+
* The height of the block in which the transaction was included
|
|
4722
|
+
*/
|
|
3803
4723
|
blockNumber: string;
|
|
3804
4724
|
blockHash: string;
|
|
4725
|
+
/**
|
|
4726
|
+
* The consumed UTXOs of the transaction
|
|
4727
|
+
*/
|
|
3805
4728
|
consumedUtxos: Array<PChainUtxo>;
|
|
4729
|
+
/**
|
|
4730
|
+
* The newly created UTXOs of the transaction
|
|
4731
|
+
*/
|
|
3806
4732
|
emittedUtxos: Array<PChainUtxo>;
|
|
3807
4733
|
/**
|
|
3808
4734
|
* Source chain for an atomic transaction.
|
|
@@ -3813,17 +4739,21 @@ type PChainTransaction = {
|
|
|
3813
4739
|
*/
|
|
3814
4740
|
destinationChain?: string;
|
|
3815
4741
|
/**
|
|
3816
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4742
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
3817
4743
|
*/
|
|
3818
4744
|
value: Array<AssetAmount>;
|
|
3819
4745
|
/**
|
|
3820
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4746
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
3821
4747
|
*/
|
|
3822
4748
|
amountBurned: Array<AssetAmount>;
|
|
3823
4749
|
/**
|
|
3824
4750
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3825
4751
|
*/
|
|
3826
4752
|
amountStaked: Array<AssetAmount>;
|
|
4753
|
+
/**
|
|
4754
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4755
|
+
*/
|
|
4756
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3827
4757
|
/**
|
|
3828
4758
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3829
4759
|
*/
|
|
@@ -3833,11 +4763,11 @@ type PChainTransaction = {
|
|
|
3833
4763
|
*/
|
|
3834
4764
|
endTimestamp?: number;
|
|
3835
4765
|
/**
|
|
3836
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4766
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3837
4767
|
*/
|
|
3838
4768
|
delegationFeePercent?: string;
|
|
3839
4769
|
/**
|
|
3840
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4770
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3841
4771
|
*/
|
|
3842
4772
|
nodeId?: string;
|
|
3843
4773
|
/**
|
|
@@ -3845,14 +4775,25 @@ type PChainTransaction = {
|
|
|
3845
4775
|
*/
|
|
3846
4776
|
subnetId?: string;
|
|
3847
4777
|
/**
|
|
3848
|
-
* Present for
|
|
4778
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4779
|
+
*/
|
|
4780
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4781
|
+
/**
|
|
4782
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4783
|
+
*/
|
|
4784
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4785
|
+
/**
|
|
4786
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3849
4787
|
*/
|
|
3850
4788
|
estimatedReward?: string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Reward transaction hash for the completed validations or delegations
|
|
4791
|
+
*/
|
|
3851
4792
|
rewardTxHash?: string;
|
|
3852
4793
|
rewardAddresses?: Array<string>;
|
|
3853
4794
|
memo?: string;
|
|
3854
4795
|
/**
|
|
3855
|
-
*
|
|
4796
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3856
4797
|
*/
|
|
3857
4798
|
stakingTxHash?: string;
|
|
3858
4799
|
/**
|
|
@@ -3860,7 +4801,7 @@ type PChainTransaction = {
|
|
|
3860
4801
|
*/
|
|
3861
4802
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3862
4803
|
/**
|
|
3863
|
-
* Present for AddPermissionlessValidatorTx
|
|
4804
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3864
4805
|
*/
|
|
3865
4806
|
blsCredentials?: BlsCredentials;
|
|
3866
4807
|
};
|
|
@@ -4045,6 +4986,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4045
4986
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4046
4987
|
BASE_TX = "BaseTx",
|
|
4047
4988
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4989
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4990
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4991
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4992
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4993
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4048
4994
|
UNKNOWN = "UNKNOWN",
|
|
4049
4995
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4050
4996
|
OPERATION_TX = "OperationTx"
|
|
@@ -4056,7 +5002,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4056
5002
|
/**
|
|
4057
5003
|
* Get transaction
|
|
4058
5004
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
4059
|
-
* @returns any
|
|
5005
|
+
* @returns any Successful response
|
|
4060
5006
|
* @throws ApiError
|
|
4061
5007
|
*/
|
|
4062
5008
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -4065,7 +5011,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4065
5011
|
*/
|
|
4066
5012
|
blockchainId: BlockchainId;
|
|
4067
5013
|
/**
|
|
4068
|
-
* Either mainnet or
|
|
5014
|
+
* Either mainnet or testnet/fuji.
|
|
4069
5015
|
*/
|
|
4070
5016
|
network: Network;
|
|
4071
5017
|
/**
|
|
@@ -4079,23 +5025,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4079
5025
|
*
|
|
4080
5026
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4081
5027
|
*
|
|
5028
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
5029
|
+
*
|
|
4082
5030
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4083
|
-
* @returns any
|
|
5031
|
+
* @returns any Successful response
|
|
4084
5032
|
* @throws ApiError
|
|
4085
5033
|
*/
|
|
4086
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5034
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4087
5035
|
/**
|
|
4088
5036
|
* A primary network blockchain id or alias.
|
|
4089
5037
|
*/
|
|
4090
5038
|
blockchainId: BlockchainId;
|
|
4091
5039
|
/**
|
|
4092
|
-
* Either mainnet or
|
|
5040
|
+
* Either mainnet or testnet/fuji.
|
|
4093
5041
|
*/
|
|
4094
5042
|
network: Network;
|
|
4095
5043
|
/**
|
|
4096
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
5044
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4097
5045
|
*/
|
|
4098
5046
|
addresses?: string;
|
|
5047
|
+
l1ValidationId?: string;
|
|
4099
5048
|
/**
|
|
4100
5049
|
* Query param for filtering items based on transaction types.
|
|
4101
5050
|
*/
|
|
@@ -4124,7 +5073,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4124
5073
|
/**
|
|
4125
5074
|
* List staking transactions
|
|
4126
5075
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4127
|
-
* @returns ListPChainTransactionsResponse
|
|
5076
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
4128
5077
|
* @throws ApiError
|
|
4129
5078
|
*/
|
|
4130
5079
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4133,7 +5082,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4133
5082
|
*/
|
|
4134
5083
|
blockchainId: PChainId;
|
|
4135
5084
|
/**
|
|
4136
|
-
* Either mainnet or
|
|
5085
|
+
* Either mainnet or testnet/fuji.
|
|
4137
5086
|
*/
|
|
4138
5087
|
network: Network;
|
|
4139
5088
|
/**
|
|
@@ -4168,7 +5117,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4168
5117
|
/**
|
|
4169
5118
|
* List asset transactions
|
|
4170
5119
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
4171
|
-
* @returns ListXChainTransactionsResponse
|
|
5120
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
4172
5121
|
* @throws ApiError
|
|
4173
5122
|
*/
|
|
4174
5123
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4177,7 +5126,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4177
5126
|
*/
|
|
4178
5127
|
blockchainId: XChainId;
|
|
4179
5128
|
/**
|
|
4180
|
-
* Either mainnet or
|
|
5129
|
+
* Either mainnet or testnet/fuji.
|
|
4181
5130
|
*/
|
|
4182
5131
|
network: Network;
|
|
4183
5132
|
/**
|
|
@@ -4231,7 +5180,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4231
5180
|
/**
|
|
4232
5181
|
* List UTXOs
|
|
4233
5182
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4234
|
-
* @returns any
|
|
5183
|
+
* @returns any Successful response
|
|
4235
5184
|
* @throws ApiError
|
|
4236
5185
|
*/
|
|
4237
5186
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4240,7 +5189,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4240
5189
|
*/
|
|
4241
5190
|
blockchainId: BlockchainId;
|
|
4242
5191
|
/**
|
|
4243
|
-
* Either mainnet or
|
|
5192
|
+
* Either mainnet or testnet/fuji.
|
|
4244
5193
|
*/
|
|
4245
5194
|
network: Network;
|
|
4246
5195
|
/**
|
|
@@ -4296,7 +5245,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4296
5245
|
/**
|
|
4297
5246
|
* List vertices
|
|
4298
5247
|
* Lists latest vertices on the X-Chain.
|
|
4299
|
-
* @returns ListXChainVerticesResponse
|
|
5248
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4300
5249
|
* @throws ApiError
|
|
4301
5250
|
*/
|
|
4302
5251
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4305,7 +5254,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4305
5254
|
*/
|
|
4306
5255
|
blockchainId: XChainId;
|
|
4307
5256
|
/**
|
|
4308
|
-
* Either mainnet or
|
|
5257
|
+
* Either mainnet or testnet/fuji.
|
|
4309
5258
|
*/
|
|
4310
5259
|
network: Network;
|
|
4311
5260
|
/**
|
|
@@ -4320,7 +5269,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4320
5269
|
/**
|
|
4321
5270
|
* Get vertex
|
|
4322
5271
|
* Gets a single vertex on the X-Chain.
|
|
4323
|
-
* @returns XChainVertex
|
|
5272
|
+
* @returns XChainVertex Successful response
|
|
4324
5273
|
* @throws ApiError
|
|
4325
5274
|
*/
|
|
4326
5275
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4333,14 +5282,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4333
5282
|
*/
|
|
4334
5283
|
blockchainId: XChainId;
|
|
4335
5284
|
/**
|
|
4336
|
-
* Either mainnet or
|
|
5285
|
+
* Either mainnet or testnet/fuji.
|
|
4337
5286
|
*/
|
|
4338
5287
|
network: Network;
|
|
4339
5288
|
}): CancelablePromise<XChainVertex>;
|
|
4340
5289
|
/**
|
|
4341
5290
|
* List vertices by height
|
|
4342
5291
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4343
|
-
* @returns ListXChainVerticesResponse
|
|
5292
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4344
5293
|
* @throws ApiError
|
|
4345
5294
|
*/
|
|
4346
5295
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4353,7 +5302,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4353
5302
|
*/
|
|
4354
5303
|
blockchainId: XChainId;
|
|
4355
5304
|
/**
|
|
4356
|
-
* Either mainnet or
|
|
5305
|
+
* Either mainnet or testnet/fuji.
|
|
4357
5306
|
*/
|
|
4358
5307
|
network: Network;
|
|
4359
5308
|
/**
|
|
@@ -4371,47 +5320,33 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4371
5320
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4372
5321
|
}
|
|
4373
5322
|
|
|
4374
|
-
type
|
|
4375
|
-
|
|
4376
|
-
message: string;
|
|
4377
|
-
data?: Record<string, any>;
|
|
4378
|
-
};
|
|
4379
|
-
|
|
4380
|
-
type RpcErrorResponseDto = {
|
|
4381
|
-
jsonrpc: string;
|
|
4382
|
-
id?: (string | number);
|
|
4383
|
-
error: RpcErrorDto;
|
|
4384
|
-
};
|
|
4385
|
-
|
|
4386
|
-
type RpcRequestBodyDto = {
|
|
4387
|
-
method: string;
|
|
4388
|
-
params?: Record<string, any>;
|
|
4389
|
-
id?: (string | number);
|
|
4390
|
-
jsonrpc?: string;
|
|
5323
|
+
type SignatureAggregationResponse = {
|
|
5324
|
+
signedMessage: string;
|
|
4391
5325
|
};
|
|
4392
5326
|
|
|
4393
|
-
type
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
5327
|
+
type SignatureAggregatorRequest = {
|
|
5328
|
+
message: string;
|
|
5329
|
+
justification?: string;
|
|
5330
|
+
signingSubnetId?: string;
|
|
5331
|
+
quorumPercentage?: number;
|
|
4397
5332
|
};
|
|
4398
5333
|
|
|
4399
|
-
declare class
|
|
5334
|
+
declare class SignatureAggregatorService {
|
|
4400
5335
|
readonly httpRequest: BaseHttpRequest;
|
|
4401
5336
|
constructor(httpRequest: BaseHttpRequest);
|
|
4402
5337
|
/**
|
|
4403
|
-
*
|
|
4404
|
-
*
|
|
4405
|
-
* @returns
|
|
5338
|
+
* Aggregate Signatures
|
|
5339
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
5340
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4406
5341
|
* @throws ApiError
|
|
4407
5342
|
*/
|
|
4408
|
-
|
|
5343
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
4409
5344
|
/**
|
|
4410
|
-
*
|
|
5345
|
+
* Either mainnet or testnet/fuji.
|
|
4411
5346
|
*/
|
|
4412
|
-
|
|
4413
|
-
requestBody:
|
|
4414
|
-
}): CancelablePromise<
|
|
5347
|
+
network: Network;
|
|
5348
|
+
requestBody: SignatureAggregatorRequest;
|
|
5349
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4415
5350
|
}
|
|
4416
5351
|
|
|
4417
5352
|
type TeleporterDestinationTransaction = {
|
|
@@ -4552,9 +5487,11 @@ declare class TeleporterService {
|
|
|
4552
5487
|
readonly httpRequest: BaseHttpRequest;
|
|
4553
5488
|
constructor(httpRequest: BaseHttpRequest);
|
|
4554
5489
|
/**
|
|
4555
|
-
*
|
|
4556
|
-
* Gets a teleporter message by message ID.
|
|
4557
|
-
*
|
|
5490
|
+
* @deprecated
|
|
5491
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5492
|
+
*
|
|
5493
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5494
|
+
* @returns any Successful response
|
|
4558
5495
|
* @throws ApiError
|
|
4559
5496
|
*/
|
|
4560
5497
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4564,9 +5501,11 @@ declare class TeleporterService {
|
|
|
4564
5501
|
messageId: string;
|
|
4565
5502
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4566
5503
|
/**
|
|
4567
|
-
*
|
|
4568
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
4569
|
-
*
|
|
5504
|
+
* @deprecated
|
|
5505
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5506
|
+
*
|
|
5507
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5508
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4570
5509
|
* @throws ApiError
|
|
4571
5510
|
*/
|
|
4572
5511
|
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
@@ -4599,9 +5538,35 @@ declare class TeleporterService {
|
|
|
4599
5538
|
*/
|
|
4600
5539
|
from?: string;
|
|
4601
5540
|
/**
|
|
4602
|
-
* mainnet or testnet.
|
|
5541
|
+
* Either mainnet or testnet/fuji.
|
|
5542
|
+
*/
|
|
5543
|
+
network?: Network;
|
|
5544
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5545
|
+
/**
|
|
5546
|
+
* @deprecated
|
|
5547
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5548
|
+
*
|
|
5549
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5550
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
5551
|
+
* @throws ApiError
|
|
5552
|
+
*/
|
|
5553
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
5554
|
+
/**
|
|
5555
|
+
* An EVM address.
|
|
5556
|
+
*/
|
|
5557
|
+
address: string;
|
|
5558
|
+
/**
|
|
5559
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5560
|
+
*/
|
|
5561
|
+
pageToken?: string;
|
|
5562
|
+
/**
|
|
5563
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
5564
|
+
*/
|
|
5565
|
+
pageSize?: number;
|
|
5566
|
+
/**
|
|
5567
|
+
* Either mainnet or testnet/fuji.
|
|
4603
5568
|
*/
|
|
4604
|
-
network?:
|
|
5569
|
+
network?: Network;
|
|
4605
5570
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4606
5571
|
}
|
|
4607
5572
|
|
|
@@ -4609,7 +5574,7 @@ type AddressesChangeRequest = {
|
|
|
4609
5574
|
/**
|
|
4610
5575
|
* Ethereum address(es) for the address_activity event type
|
|
4611
5576
|
*/
|
|
4612
|
-
addresses: Array<
|
|
5577
|
+
addresses: Array<string>;
|
|
4613
5578
|
};
|
|
4614
5579
|
|
|
4615
5580
|
type AddressActivityMetadata = {
|
|
@@ -4635,7 +5600,7 @@ type CreateWebhookRequest = {
|
|
|
4635
5600
|
name?: string;
|
|
4636
5601
|
description?: string;
|
|
4637
5602
|
/**
|
|
4638
|
-
* Whether to include traces in the webhook payload.
|
|
5603
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4639
5604
|
*/
|
|
4640
5605
|
includeInternalTxs?: boolean;
|
|
4641
5606
|
/**
|
|
@@ -4695,6 +5660,9 @@ type UpdateWebhookRequest = {
|
|
|
4695
5660
|
description?: string;
|
|
4696
5661
|
url?: string;
|
|
4697
5662
|
status?: WebhookStatusType;
|
|
5663
|
+
/**
|
|
5664
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5665
|
+
*/
|
|
4698
5666
|
includeInternalTxs?: boolean;
|
|
4699
5667
|
includeLogs?: boolean;
|
|
4700
5668
|
};
|
|
@@ -4710,7 +5678,7 @@ declare class WebhooksService {
|
|
|
4710
5678
|
/**
|
|
4711
5679
|
* Create a webhook
|
|
4712
5680
|
* Create a new webhook.
|
|
4713
|
-
* @returns WebhookResponse
|
|
5681
|
+
* @returns WebhookResponse Successful response
|
|
4714
5682
|
* @throws ApiError
|
|
4715
5683
|
*/
|
|
4716
5684
|
createWebhook({ requestBody, }: {
|
|
@@ -4719,7 +5687,7 @@ declare class WebhooksService {
|
|
|
4719
5687
|
/**
|
|
4720
5688
|
* List webhooks
|
|
4721
5689
|
* Lists webhooks for the user.
|
|
4722
|
-
* @returns ListWebhooksResponse
|
|
5690
|
+
* @returns ListWebhooksResponse Successful response
|
|
4723
5691
|
* @throws ApiError
|
|
4724
5692
|
*/
|
|
4725
5693
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4739,7 +5707,7 @@ declare class WebhooksService {
|
|
|
4739
5707
|
/**
|
|
4740
5708
|
* Get a webhook by ID
|
|
4741
5709
|
* Retrieves a webhook by ID.
|
|
4742
|
-
* @returns WebhookResponse
|
|
5710
|
+
* @returns WebhookResponse Successful response
|
|
4743
5711
|
* @throws ApiError
|
|
4744
5712
|
*/
|
|
4745
5713
|
getWebhook({ id, }: {
|
|
@@ -4751,7 +5719,7 @@ declare class WebhooksService {
|
|
|
4751
5719
|
/**
|
|
4752
5720
|
* Deactivate a webhook
|
|
4753
5721
|
* Deactivates a webhook by ID.
|
|
4754
|
-
* @returns WebhookResponse
|
|
5722
|
+
* @returns WebhookResponse Successful response
|
|
4755
5723
|
* @throws ApiError
|
|
4756
5724
|
*/
|
|
4757
5725
|
deactivateWebhook({ id, }: {
|
|
@@ -4763,7 +5731,7 @@ declare class WebhooksService {
|
|
|
4763
5731
|
/**
|
|
4764
5732
|
* Update a webhook
|
|
4765
5733
|
* Updates an existing webhook.
|
|
4766
|
-
* @returns WebhookResponse
|
|
5734
|
+
* @returns WebhookResponse Successful response
|
|
4767
5735
|
* @throws ApiError
|
|
4768
5736
|
*/
|
|
4769
5737
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4776,21 +5744,21 @@ declare class WebhooksService {
|
|
|
4776
5744
|
/**
|
|
4777
5745
|
* Generate a shared secret
|
|
4778
5746
|
* Generates a new shared secret.
|
|
4779
|
-
* @returns SharedSecretsResponse
|
|
5747
|
+
* @returns SharedSecretsResponse Successful response
|
|
4780
5748
|
* @throws ApiError
|
|
4781
5749
|
*/
|
|
4782
5750
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4783
5751
|
/**
|
|
4784
5752
|
* Get a shared secret
|
|
4785
5753
|
* Get a previously generated shared secret.
|
|
4786
|
-
* @returns SharedSecretsResponse
|
|
5754
|
+
* @returns SharedSecretsResponse Successful response
|
|
4787
5755
|
* @throws ApiError
|
|
4788
5756
|
*/
|
|
4789
5757
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4790
5758
|
/**
|
|
4791
5759
|
* Add addresses to webhook
|
|
4792
5760
|
* Add addresses to webhook.
|
|
4793
|
-
* @returns WebhookResponse
|
|
5761
|
+
* @returns WebhookResponse Successful response
|
|
4794
5762
|
* @throws ApiError
|
|
4795
5763
|
*/
|
|
4796
5764
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4803,7 +5771,7 @@ declare class WebhooksService {
|
|
|
4803
5771
|
/**
|
|
4804
5772
|
* Remove addresses from webhook
|
|
4805
5773
|
* Remove addresses from webhook.
|
|
4806
|
-
* @returns WebhookResponse
|
|
5774
|
+
* @returns WebhookResponse Successful response
|
|
4807
5775
|
* @throws ApiError
|
|
4808
5776
|
*/
|
|
4809
5777
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4816,7 +5784,7 @@ declare class WebhooksService {
|
|
|
4816
5784
|
/**
|
|
4817
5785
|
* List adresses by webhook
|
|
4818
5786
|
* List adresses by webhook.
|
|
4819
|
-
* @returns ListWebhookAddressesResponse
|
|
5787
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4820
5788
|
* @throws ApiError
|
|
4821
5789
|
*/
|
|
4822
5790
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4837,14 +5805,15 @@ declare class WebhooksService {
|
|
|
4837
5805
|
|
|
4838
5806
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4839
5807
|
declare class Glacier {
|
|
5808
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4840
5809
|
readonly default: DefaultService;
|
|
4841
5810
|
readonly evmBalances: EvmBalancesService;
|
|
4842
5811
|
readonly evmBlocks: EvmBlocksService;
|
|
4843
5812
|
readonly evmChains: EvmChainsService;
|
|
4844
5813
|
readonly evmContracts: EvmContractsService;
|
|
4845
5814
|
readonly evmTransactions: EvmTransactionsService;
|
|
4846
|
-
readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
|
|
4847
5815
|
readonly healthCheck: HealthCheckService;
|
|
5816
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
4848
5817
|
readonly nfTs: NfTsService;
|
|
4849
5818
|
readonly operations: OperationsService;
|
|
4850
5819
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
@@ -4854,7 +5823,7 @@ declare class Glacier {
|
|
|
4854
5823
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4855
5824
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4856
5825
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4857
|
-
readonly
|
|
5826
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4858
5827
|
readonly teleporter: TeleporterService;
|
|
4859
5828
|
readonly webhooks: WebhooksService;
|
|
4860
5829
|
readonly request: BaseHttpRequest;
|
|
@@ -4878,6 +5847,70 @@ declare class ApiError extends Error {
|
|
|
4878
5847
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4879
5848
|
}
|
|
4880
5849
|
|
|
5850
|
+
type BadGateway = {
|
|
5851
|
+
/**
|
|
5852
|
+
* The error message describing the reason for the exception
|
|
5853
|
+
*/
|
|
5854
|
+
message: (string | Array<string>);
|
|
5855
|
+
/**
|
|
5856
|
+
* The HTTP status code of the response
|
|
5857
|
+
*/
|
|
5858
|
+
statusCode: number;
|
|
5859
|
+
/**
|
|
5860
|
+
* The type of error
|
|
5861
|
+
*/
|
|
5862
|
+
error: string;
|
|
5863
|
+
};
|
|
5864
|
+
|
|
5865
|
+
type BadRequest = {
|
|
5866
|
+
/**
|
|
5867
|
+
* The error message describing the reason for the exception
|
|
5868
|
+
*/
|
|
5869
|
+
message: (string | Array<string>);
|
|
5870
|
+
/**
|
|
5871
|
+
* The HTTP status code of the response
|
|
5872
|
+
*/
|
|
5873
|
+
statusCode: number;
|
|
5874
|
+
/**
|
|
5875
|
+
* The type of error
|
|
5876
|
+
*/
|
|
5877
|
+
error: string;
|
|
5878
|
+
};
|
|
5879
|
+
|
|
5880
|
+
type DataListChainsResponse = {
|
|
5881
|
+
chains: Array<ChainInfo>;
|
|
5882
|
+
};
|
|
5883
|
+
|
|
5884
|
+
type Forbidden = {
|
|
5885
|
+
/**
|
|
5886
|
+
* The error message describing the reason for the exception
|
|
5887
|
+
*/
|
|
5888
|
+
message: (string | Array<string>);
|
|
5889
|
+
/**
|
|
5890
|
+
* The HTTP status code of the response
|
|
5891
|
+
*/
|
|
5892
|
+
statusCode: number;
|
|
5893
|
+
/**
|
|
5894
|
+
* The type of error
|
|
5895
|
+
*/
|
|
5896
|
+
error: string;
|
|
5897
|
+
};
|
|
5898
|
+
|
|
5899
|
+
type InternalServerError = {
|
|
5900
|
+
/**
|
|
5901
|
+
* The error message describing the reason for the exception
|
|
5902
|
+
*/
|
|
5903
|
+
message: (string | Array<string>);
|
|
5904
|
+
/**
|
|
5905
|
+
* The HTTP status code of the response
|
|
5906
|
+
*/
|
|
5907
|
+
statusCode: number;
|
|
5908
|
+
/**
|
|
5909
|
+
* The type of error
|
|
5910
|
+
*/
|
|
5911
|
+
error: string;
|
|
5912
|
+
};
|
|
5913
|
+
|
|
4881
5914
|
type NextPageToken = {
|
|
4882
5915
|
/**
|
|
4883
5916
|
* 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.
|
|
@@ -4885,4 +5918,64 @@ type NextPageToken = {
|
|
|
4885
5918
|
nextPageToken?: string;
|
|
4886
5919
|
};
|
|
4887
5920
|
|
|
4888
|
-
|
|
5921
|
+
type NotFound = {
|
|
5922
|
+
/**
|
|
5923
|
+
* The error message describing the reason for the exception
|
|
5924
|
+
*/
|
|
5925
|
+
message: (string | Array<string>);
|
|
5926
|
+
/**
|
|
5927
|
+
* The HTTP status code of the response
|
|
5928
|
+
*/
|
|
5929
|
+
statusCode: number;
|
|
5930
|
+
/**
|
|
5931
|
+
* The type of error
|
|
5932
|
+
*/
|
|
5933
|
+
error: string;
|
|
5934
|
+
};
|
|
5935
|
+
|
|
5936
|
+
type ServiceUnavailable = {
|
|
5937
|
+
/**
|
|
5938
|
+
* The error message describing the reason for the exception
|
|
5939
|
+
*/
|
|
5940
|
+
message: (string | Array<string>);
|
|
5941
|
+
/**
|
|
5942
|
+
* The HTTP status code of the response
|
|
5943
|
+
*/
|
|
5944
|
+
statusCode: number;
|
|
5945
|
+
/**
|
|
5946
|
+
* The type of error
|
|
5947
|
+
*/
|
|
5948
|
+
error: string;
|
|
5949
|
+
};
|
|
5950
|
+
|
|
5951
|
+
type TooManyRequests = {
|
|
5952
|
+
/**
|
|
5953
|
+
* The error message describing the reason for the exception
|
|
5954
|
+
*/
|
|
5955
|
+
message: (string | Array<string>);
|
|
5956
|
+
/**
|
|
5957
|
+
* The HTTP status code of the response
|
|
5958
|
+
*/
|
|
5959
|
+
statusCode: number;
|
|
5960
|
+
/**
|
|
5961
|
+
* The type of error
|
|
5962
|
+
*/
|
|
5963
|
+
error: string;
|
|
5964
|
+
};
|
|
5965
|
+
|
|
5966
|
+
type Unauthorized = {
|
|
5967
|
+
/**
|
|
5968
|
+
* The error message describing the reason for the exception
|
|
5969
|
+
*/
|
|
5970
|
+
message: (string | Array<string>);
|
|
5971
|
+
/**
|
|
5972
|
+
* The HTTP status code of the response
|
|
5973
|
+
*/
|
|
5974
|
+
statusCode: number;
|
|
5975
|
+
/**
|
|
5976
|
+
* The type of error
|
|
5977
|
+
*/
|
|
5978
|
+
error: string;
|
|
5979
|
+
};
|
|
5980
|
+
|
|
5981
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|