@avalabs/glacier-sdk 3.0.1-canary.89a5561.0 → 3.0.1-canary.9128de8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +942 -188
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -2
- package/esm/generated/Glacier.js +1 -1
- 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/CompletedValidatorDetails.d.ts +1 -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/Forbidden.d.ts +16 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -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/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/LogsFormat.d.ts +60 -0
- package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
- package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
- package/esm/generated/models/Metric.d.ts +14 -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 +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- 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/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RequestType.d.ts +9 -0
- package/esm/generated/models/RequestType.js +1 -0
- 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/RpcUsageMetricsResponseDTO.d.ts +18 -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/Subnet.d.ts +9 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -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 +9 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -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 +153 -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 +4 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +21 -8
- 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 +24 -24
- 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/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 +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +34 -6
- 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 +36 -8
- 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/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,425 @@ 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 RpcUsageMetricsGroupByEnum {
|
|
152
|
+
RPC_METHOD = "rpcMethod",
|
|
153
|
+
RESPONSE_CODE = "responseCode",
|
|
154
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
type RpcUsageMetricsValueAggregated = {
|
|
158
|
+
/**
|
|
159
|
+
* The total number of requests
|
|
160
|
+
*/
|
|
161
|
+
totalRequests: number;
|
|
162
|
+
/**
|
|
163
|
+
* The number of API credits used
|
|
164
|
+
*/
|
|
165
|
+
apiCreditsUsed: number;
|
|
166
|
+
/**
|
|
167
|
+
* The number of requests per second
|
|
168
|
+
*/
|
|
169
|
+
requestsPerSecond: number;
|
|
170
|
+
/**
|
|
171
|
+
* The success rate percentage
|
|
172
|
+
*/
|
|
173
|
+
successRatePercent: number;
|
|
174
|
+
/**
|
|
175
|
+
* The median response time in milliseconds
|
|
176
|
+
*/
|
|
177
|
+
medianResponseTimeMsecs: number;
|
|
178
|
+
/**
|
|
179
|
+
* The number of invalid requests
|
|
180
|
+
*/
|
|
181
|
+
invalidRequests: number;
|
|
182
|
+
/**
|
|
183
|
+
* The number of API credits wasted on invalid requests
|
|
184
|
+
*/
|
|
185
|
+
apiCreditsWasted: number;
|
|
186
|
+
/**
|
|
187
|
+
* Column name used for data aggregation
|
|
188
|
+
*/
|
|
189
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
190
|
+
/**
|
|
191
|
+
* The value of the column used for data aggregation
|
|
192
|
+
*/
|
|
193
|
+
groupValue?: (string | number);
|
|
194
|
+
};
|
|
195
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
196
|
+
/**
|
|
197
|
+
* Column name used for data aggregation
|
|
198
|
+
*/
|
|
199
|
+
enum groupedBy {
|
|
200
|
+
RPC_METHOD = "rpcMethod",
|
|
201
|
+
RESPONSE_CODE = "responseCode",
|
|
202
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
203
|
+
NONE = "None"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type RpcMetrics = {
|
|
208
|
+
/**
|
|
209
|
+
* The timestamp of the metrics value
|
|
210
|
+
*/
|
|
211
|
+
timestamp: number;
|
|
212
|
+
/**
|
|
213
|
+
* The metrics values for the timestamp
|
|
214
|
+
*/
|
|
215
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
type RpcUsageMetricsResponseDTO = {
|
|
219
|
+
/**
|
|
220
|
+
* Duration in which the metrics value is aggregated
|
|
221
|
+
*/
|
|
222
|
+
aggregateDuration: string;
|
|
223
|
+
/**
|
|
224
|
+
* ChainId for which the metrics are aggregated
|
|
225
|
+
*/
|
|
226
|
+
chainId: string;
|
|
227
|
+
/**
|
|
228
|
+
* Metrics values
|
|
229
|
+
*/
|
|
230
|
+
metrics: Array<RpcMetrics>;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
234
|
+
HOURLY = "hourly",
|
|
235
|
+
DAILY = "daily",
|
|
236
|
+
WEEKLY = "weekly",
|
|
237
|
+
MONTHLY = "monthly"
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare enum TimeIntervalGranularityExtended {
|
|
241
|
+
MINUTE = "minute",
|
|
242
|
+
HOURLY = "hourly",
|
|
243
|
+
DAILY = "daily",
|
|
244
|
+
WEEKLY = "weekly",
|
|
245
|
+
MONTHLY = "monthly"
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare enum UsageMetricsGroupByEnum {
|
|
249
|
+
REQUEST_PATH = "requestPath",
|
|
250
|
+
RESPONSE_CODE = "responseCode",
|
|
251
|
+
CHAIN_ID = "chainId",
|
|
252
|
+
API_KEY_ID = "apiKeyId",
|
|
253
|
+
REQUEST_TYPE = "requestType"
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
type UsageMetricsValueDTO = {
|
|
257
|
+
/**
|
|
258
|
+
* Column name used for data aggregation
|
|
259
|
+
*/
|
|
260
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
261
|
+
/**
|
|
262
|
+
* The value of the column used for data aggregation
|
|
263
|
+
*/
|
|
264
|
+
groupValue?: (string | number);
|
|
265
|
+
/**
|
|
266
|
+
* The total number of requests
|
|
267
|
+
*/
|
|
268
|
+
totalRequests: number;
|
|
269
|
+
/**
|
|
270
|
+
* The number of requests per second
|
|
271
|
+
*/
|
|
272
|
+
requestsPerSecond: number;
|
|
273
|
+
/**
|
|
274
|
+
* The success rate percentage
|
|
275
|
+
*/
|
|
276
|
+
successRatePercent: number;
|
|
277
|
+
/**
|
|
278
|
+
* The median response time in milliseconds
|
|
279
|
+
*/
|
|
280
|
+
medianResponseTimeMsecs: number;
|
|
281
|
+
/**
|
|
282
|
+
* The number of invalid requests
|
|
283
|
+
*/
|
|
284
|
+
invalidRequests: number;
|
|
285
|
+
/**
|
|
286
|
+
* The number of API credits used
|
|
287
|
+
*/
|
|
288
|
+
apiCreditsUsed: number;
|
|
289
|
+
/**
|
|
290
|
+
* The number of API credits wasted on invalid requests
|
|
291
|
+
*/
|
|
292
|
+
apiCreditsWasted: number;
|
|
293
|
+
};
|
|
294
|
+
declare namespace UsageMetricsValueDTO {
|
|
295
|
+
/**
|
|
296
|
+
* Column name used for data aggregation
|
|
297
|
+
*/
|
|
298
|
+
enum groupedBy {
|
|
299
|
+
REQUEST_PATH = "requestPath",
|
|
300
|
+
RESPONSE_CODE = "responseCode",
|
|
301
|
+
CHAIN_ID = "chainId",
|
|
302
|
+
API_KEY_ID = "apiKeyId",
|
|
303
|
+
REQUEST_TYPE = "requestType",
|
|
304
|
+
NONE = "None"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
type Metric = {
|
|
309
|
+
/**
|
|
310
|
+
* The timestamp of the metrics value
|
|
311
|
+
*/
|
|
312
|
+
timestamp: number;
|
|
313
|
+
/**
|
|
314
|
+
* The metrics values for the timestamp
|
|
315
|
+
*/
|
|
316
|
+
values: Array<UsageMetricsValueDTO>;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
type UsageMetricsResponseDTO = {
|
|
320
|
+
/**
|
|
321
|
+
* Duration in which the metrics value is aggregated
|
|
322
|
+
*/
|
|
323
|
+
aggregateDuration: string;
|
|
324
|
+
/**
|
|
325
|
+
* Org ID for which the metrics are aggregated
|
|
326
|
+
*/
|
|
327
|
+
orgId: string;
|
|
328
|
+
/**
|
|
329
|
+
* Metrics values
|
|
330
|
+
*/
|
|
331
|
+
metrics: Array<Metric>;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
declare class DataApiUsageMetricsService {
|
|
335
|
+
readonly httpRequest: BaseHttpRequest;
|
|
336
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
337
|
+
/**
|
|
338
|
+
* Get usage metrics for the Data API
|
|
339
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
340
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
341
|
+
* @throws ApiError
|
|
342
|
+
*/
|
|
343
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
344
|
+
/**
|
|
345
|
+
* Organization ID to fetch usage metrics for
|
|
346
|
+
*/
|
|
347
|
+
orgId?: string;
|
|
348
|
+
/**
|
|
349
|
+
* 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.
|
|
350
|
+
*/
|
|
351
|
+
startTimestamp?: number;
|
|
352
|
+
/**
|
|
353
|
+
* 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.
|
|
354
|
+
*/
|
|
355
|
+
endTimestamp?: number;
|
|
356
|
+
/**
|
|
357
|
+
* Time interval granularity for data aggregation
|
|
358
|
+
*/
|
|
359
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
360
|
+
/**
|
|
361
|
+
* Query param for the criterion used for grouping metrics
|
|
362
|
+
*/
|
|
363
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
364
|
+
/**
|
|
365
|
+
* Filter data by chain ID.
|
|
366
|
+
*/
|
|
367
|
+
chainId?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Filter data by response status code.
|
|
370
|
+
*/
|
|
371
|
+
responseCode?: string;
|
|
372
|
+
/**
|
|
373
|
+
* Filter data by request type.
|
|
374
|
+
*/
|
|
375
|
+
requestType?: 'data' | 'rpc';
|
|
376
|
+
/**
|
|
377
|
+
* Filter data by API key ID.
|
|
378
|
+
*/
|
|
379
|
+
apiKeyId?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Filter data by request path.
|
|
382
|
+
*/
|
|
383
|
+
requestPath?: string;
|
|
384
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
385
|
+
/**
|
|
386
|
+
* Get logs for requests made by client
|
|
387
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
388
|
+
* @returns LogsResponseDTO Successful response
|
|
389
|
+
* @throws ApiError
|
|
390
|
+
*/
|
|
391
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
392
|
+
/**
|
|
393
|
+
* Organization ID to fetch usage metrics for
|
|
394
|
+
*/
|
|
395
|
+
orgId?: string;
|
|
396
|
+
/**
|
|
397
|
+
* 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.
|
|
398
|
+
*/
|
|
399
|
+
startTimestamp?: number;
|
|
400
|
+
/**
|
|
401
|
+
* 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.
|
|
402
|
+
*/
|
|
403
|
+
endTimestamp?: number;
|
|
404
|
+
/**
|
|
405
|
+
* Filter data by chain ID.
|
|
406
|
+
*/
|
|
407
|
+
chainId?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Filter data by response status code.
|
|
410
|
+
*/
|
|
411
|
+
responseCode?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Filter data by request type.
|
|
414
|
+
*/
|
|
415
|
+
requestType?: 'data' | 'rpc';
|
|
416
|
+
/**
|
|
417
|
+
* Filter data by API key ID.
|
|
418
|
+
*/
|
|
419
|
+
apiKeyId?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Filter data by request path.
|
|
422
|
+
*/
|
|
423
|
+
requestPath?: string;
|
|
424
|
+
/**
|
|
425
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
426
|
+
*/
|
|
427
|
+
pageToken?: string;
|
|
428
|
+
/**
|
|
429
|
+
* The maximum number of items to return.
|
|
430
|
+
*/
|
|
431
|
+
pageSize?: number;
|
|
432
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
433
|
+
/**
|
|
434
|
+
* Get usage metrics for the Subnet RPC
|
|
435
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
436
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
437
|
+
* @throws ApiError
|
|
438
|
+
*/
|
|
439
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
440
|
+
/**
|
|
441
|
+
* Time interval granularity for data aggregation for subnet
|
|
442
|
+
* rpc metrics
|
|
443
|
+
*/
|
|
444
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
445
|
+
/**
|
|
446
|
+
* 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.
|
|
447
|
+
*/
|
|
448
|
+
startTimestamp?: number;
|
|
449
|
+
/**
|
|
450
|
+
* 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.
|
|
451
|
+
*/
|
|
452
|
+
endTimestamp?: number;
|
|
453
|
+
/**
|
|
454
|
+
* Query param for the criterion used for grouping metrics
|
|
455
|
+
*/
|
|
456
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
457
|
+
/**
|
|
458
|
+
* Filter data by chain ID.
|
|
459
|
+
*/
|
|
460
|
+
chainId?: string;
|
|
461
|
+
/**
|
|
462
|
+
* Filter data by response status code.
|
|
463
|
+
*/
|
|
464
|
+
responseCode?: string;
|
|
465
|
+
/**
|
|
466
|
+
* Filter data by RPC method.
|
|
467
|
+
*/
|
|
468
|
+
rpcMethod?: string;
|
|
469
|
+
/**
|
|
470
|
+
* Filter data by Rl Bypass API Token.
|
|
471
|
+
*/
|
|
472
|
+
rlBypassApiToken?: string;
|
|
473
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
474
|
+
}
|
|
475
|
+
|
|
57
476
|
declare class DefaultService {
|
|
58
477
|
readonly httpRequest: BaseHttpRequest;
|
|
59
478
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -331,12 +750,12 @@ declare class EvmBalancesService {
|
|
|
331
750
|
* Gets native token balance of a wallet address.
|
|
332
751
|
*
|
|
333
752
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
753
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
754
|
* @throws ApiError
|
|
336
755
|
*/
|
|
337
756
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
338
757
|
/**
|
|
339
|
-
* A supported evm chain id
|
|
758
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
759
|
*/
|
|
341
760
|
chainId: string;
|
|
342
761
|
/**
|
|
@@ -359,12 +778,12 @@ declare class EvmBalancesService {
|
|
|
359
778
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
779
|
*
|
|
361
780
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
781
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
782
|
* @throws ApiError
|
|
364
783
|
*/
|
|
365
784
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
366
785
|
/**
|
|
367
|
-
* A supported evm chain id
|
|
786
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
787
|
*/
|
|
369
788
|
chainId: string;
|
|
370
789
|
/**
|
|
@@ -401,12 +820,12 @@ declare class EvmBalancesService {
|
|
|
401
820
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
821
|
*
|
|
403
822
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
823
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
824
|
* @throws ApiError
|
|
406
825
|
*/
|
|
407
826
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
408
827
|
/**
|
|
409
|
-
* A supported evm chain id
|
|
828
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
410
829
|
*/
|
|
411
830
|
chainId: string;
|
|
412
831
|
/**
|
|
@@ -433,12 +852,12 @@ declare class EvmBalancesService {
|
|
|
433
852
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
853
|
*
|
|
435
854
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
855
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
856
|
* @throws ApiError
|
|
438
857
|
*/
|
|
439
858
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
440
859
|
/**
|
|
441
|
-
* A supported evm chain id
|
|
860
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
442
861
|
*/
|
|
443
862
|
chainId: string;
|
|
444
863
|
/**
|
|
@@ -467,12 +886,12 @@ declare class EvmBalancesService {
|
|
|
467
886
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
887
|
*
|
|
469
888
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
889
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
890
|
* @throws ApiError
|
|
472
891
|
*/
|
|
473
892
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
474
893
|
/**
|
|
475
|
-
* A supported evm chain id
|
|
894
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
476
895
|
*/
|
|
477
896
|
chainId: string;
|
|
478
897
|
/**
|
|
@@ -596,12 +1015,12 @@ declare class EvmBlocksService {
|
|
|
596
1015
|
/**
|
|
597
1016
|
* List latest blocks
|
|
598
1017
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
1018
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
1019
|
* @throws ApiError
|
|
601
1020
|
*/
|
|
602
1021
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
603
1022
|
/**
|
|
604
|
-
* A supported evm chain id
|
|
1023
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
1024
|
*/
|
|
606
1025
|
chainId: string;
|
|
607
1026
|
/**
|
|
@@ -616,12 +1035,12 @@ declare class EvmBlocksService {
|
|
|
616
1035
|
/**
|
|
617
1036
|
* Get block
|
|
618
1037
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
1038
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
1039
|
* @throws ApiError
|
|
621
1040
|
*/
|
|
622
1041
|
getBlock({ chainId, blockId, }: {
|
|
623
1042
|
/**
|
|
624
|
-
* A supported evm chain id
|
|
1043
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
1044
|
*/
|
|
626
1045
|
chainId: string;
|
|
627
1046
|
/**
|
|
@@ -631,6 +1050,12 @@ declare class EvmBlocksService {
|
|
|
631
1050
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
1051
|
}
|
|
633
1052
|
|
|
1053
|
+
declare enum ApiFeature {
|
|
1054
|
+
NFT_INDEXING = "nftIndexing",
|
|
1055
|
+
WEBHOOKS = "webhooks",
|
|
1056
|
+
TELEPORTER = "teleporter"
|
|
1057
|
+
}
|
|
1058
|
+
|
|
634
1059
|
/**
|
|
635
1060
|
* 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
1061
|
*/
|
|
@@ -686,14 +1111,9 @@ type GetChainResponse = {
|
|
|
686
1111
|
networkToken: NetworkToken;
|
|
687
1112
|
chainLogoUri?: string;
|
|
688
1113
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1114
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
1115
|
};
|
|
691
1116
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1117
|
type ChainInfo = {
|
|
698
1118
|
chainId: string;
|
|
699
1119
|
status: ChainStatus;
|
|
@@ -711,16 +1131,23 @@ type ChainInfo = {
|
|
|
711
1131
|
networkToken: NetworkToken;
|
|
712
1132
|
chainLogoUri?: string;
|
|
713
1133
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1134
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
type ListAddressChainsResponse = {
|
|
1138
|
+
indexedChains?: Array<ChainInfo>;
|
|
1139
|
+
unindexedChains?: Array<string>;
|
|
715
1140
|
};
|
|
716
1141
|
|
|
717
1142
|
type ListChainsResponse = {
|
|
718
1143
|
chains: Array<ChainInfo>;
|
|
719
1144
|
};
|
|
720
1145
|
|
|
721
|
-
declare enum
|
|
1146
|
+
declare enum Network {
|
|
722
1147
|
MAINNET = "mainnet",
|
|
723
|
-
|
|
1148
|
+
FUJI = "fuji",
|
|
1149
|
+
TESTNET = "testnet",
|
|
1150
|
+
DEVNET = "devnet"
|
|
724
1151
|
}
|
|
725
1152
|
|
|
726
1153
|
declare class EvmChainsService {
|
|
@@ -729,31 +1156,43 @@ declare class EvmChainsService {
|
|
|
729
1156
|
/**
|
|
730
1157
|
* List chains
|
|
731
1158
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1159
|
+
* @returns ListChainsResponse Successful response
|
|
733
1160
|
* @throws ApiError
|
|
734
1161
|
*/
|
|
735
1162
|
supportedChains({ network, feature, }: {
|
|
736
1163
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1164
|
+
* Either mainnet or testnet/fuji.
|
|
738
1165
|
*/
|
|
739
|
-
network?:
|
|
1166
|
+
network?: Network;
|
|
740
1167
|
/**
|
|
741
1168
|
* Filter by feature.
|
|
742
1169
|
*/
|
|
743
|
-
feature?:
|
|
1170
|
+
feature?: ApiFeature;
|
|
744
1171
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1172
|
/**
|
|
746
1173
|
* Get chain information
|
|
747
1174
|
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
748
|
-
* @returns GetChainResponse
|
|
1175
|
+
* @returns GetChainResponse Successful response
|
|
749
1176
|
* @throws ApiError
|
|
750
1177
|
*/
|
|
751
1178
|
getChainInfo({ chainId, }: {
|
|
752
1179
|
/**
|
|
753
|
-
* A supported evm chain id
|
|
1180
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
1181
|
*/
|
|
755
1182
|
chainId: string;
|
|
756
1183
|
}): CancelablePromise<GetChainResponse>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Get chains for address
|
|
1186
|
+
* Gets the list of chains an address has interacted with.
|
|
1187
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1188
|
+
* @throws ApiError
|
|
1189
|
+
*/
|
|
1190
|
+
getAddressChains({ address, }: {
|
|
1191
|
+
/**
|
|
1192
|
+
* A wallet address.
|
|
1193
|
+
*/
|
|
1194
|
+
address: string;
|
|
1195
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
757
1196
|
}
|
|
758
1197
|
|
|
759
1198
|
type ImageAsset = {
|
|
@@ -1040,12 +1479,12 @@ declare class EvmContractsService {
|
|
|
1040
1479
|
/**
|
|
1041
1480
|
* Get contract metadata
|
|
1042
1481
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1482
|
+
* @returns any Successful response
|
|
1044
1483
|
* @throws ApiError
|
|
1045
1484
|
*/
|
|
1046
1485
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1486
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1487
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1488
|
*/
|
|
1050
1489
|
chainId: string;
|
|
1051
1490
|
/**
|
|
@@ -1056,12 +1495,12 @@ declare class EvmContractsService {
|
|
|
1056
1495
|
/**
|
|
1057
1496
|
* Update contract information
|
|
1058
1497
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1498
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1499
|
* @throws ApiError
|
|
1061
1500
|
*/
|
|
1062
1501
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1502
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1503
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1504
|
*/
|
|
1066
1505
|
chainId: string;
|
|
1067
1506
|
/**
|
|
@@ -1309,6 +1748,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1748
|
historicalPrice?: Money;
|
|
1310
1749
|
};
|
|
1311
1750
|
|
|
1751
|
+
declare enum TransactionDirectionType {
|
|
1752
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1753
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
type TeleporterMessageInfo = {
|
|
1757
|
+
teleporterMessageId: string;
|
|
1758
|
+
direction: TransactionDirectionType;
|
|
1759
|
+
/**
|
|
1760
|
+
* chain id of the source chain. valid only for destination transactions
|
|
1761
|
+
*/
|
|
1762
|
+
sourceChainId?: Record<string, any>;
|
|
1763
|
+
/**
|
|
1764
|
+
* chain id of the destination chain. valid only for source transactions
|
|
1765
|
+
*/
|
|
1766
|
+
destinationChainId?: Record<string, any>;
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1312
1769
|
type GetTransactionResponse = {
|
|
1313
1770
|
/**
|
|
1314
1771
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +1785,10 @@ type GetTransactionResponse = {
|
|
|
1328
1785
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
1786
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
1787
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1788
|
+
/**
|
|
1789
|
+
* Corresponding teleporter message info if available.
|
|
1790
|
+
*/
|
|
1791
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
1792
|
};
|
|
1332
1793
|
|
|
1333
1794
|
type ListContractsResponse = {
|
|
@@ -1584,12 +2045,12 @@ declare class EvmTransactionsService {
|
|
|
1584
2045
|
/**
|
|
1585
2046
|
* Get deployment transaction
|
|
1586
2047
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
2048
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
2049
|
* @throws ApiError
|
|
1589
2050
|
*/
|
|
1590
2051
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1591
2052
|
/**
|
|
1592
|
-
* A supported evm chain id
|
|
2053
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
2054
|
*/
|
|
1594
2055
|
chainId: string;
|
|
1595
2056
|
/**
|
|
@@ -1604,12 +2065,12 @@ declare class EvmTransactionsService {
|
|
|
1604
2065
|
/**
|
|
1605
2066
|
* List deployed contracts
|
|
1606
2067
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
2068
|
+
* @returns ListContractsResponse Successful response
|
|
1608
2069
|
* @throws ApiError
|
|
1609
2070
|
*/
|
|
1610
2071
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1611
2072
|
/**
|
|
1612
|
-
* A supported evm chain id
|
|
2073
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
2074
|
*/
|
|
1614
2075
|
chainId: string;
|
|
1615
2076
|
/**
|
|
@@ -1628,12 +2089,12 @@ declare class EvmTransactionsService {
|
|
|
1628
2089
|
/**
|
|
1629
2090
|
* List ERC transfers
|
|
1630
2091
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
2092
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
2093
|
* @throws ApiError
|
|
1633
2094
|
*/
|
|
1634
2095
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
2096
|
/**
|
|
1636
|
-
* A supported evm chain id
|
|
2097
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
2098
|
*/
|
|
1638
2099
|
chainId: string;
|
|
1639
2100
|
/**
|
|
@@ -1662,12 +2123,12 @@ declare class EvmTransactionsService {
|
|
|
1662
2123
|
* 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
2124
|
*
|
|
1664
2125
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
2126
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
2127
|
* @throws ApiError
|
|
1667
2128
|
*/
|
|
1668
2129
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1669
2130
|
/**
|
|
1670
|
-
* A supported evm chain id
|
|
2131
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
2132
|
*/
|
|
1672
2133
|
chainId: string;
|
|
1673
2134
|
/**
|
|
@@ -1698,12 +2159,12 @@ declare class EvmTransactionsService {
|
|
|
1698
2159
|
/**
|
|
1699
2160
|
* List native transactions
|
|
1700
2161
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
2162
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
2163
|
* @throws ApiError
|
|
1703
2164
|
*/
|
|
1704
2165
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1705
2166
|
/**
|
|
1706
|
-
* A supported evm chain id
|
|
2167
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
2168
|
*/
|
|
1708
2169
|
chainId: string;
|
|
1709
2170
|
/**
|
|
@@ -1730,12 +2191,12 @@ declare class EvmTransactionsService {
|
|
|
1730
2191
|
/**
|
|
1731
2192
|
* List ERC-20 transfers
|
|
1732
2193
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
2194
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
2195
|
* @throws ApiError
|
|
1735
2196
|
*/
|
|
1736
2197
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
2198
|
/**
|
|
1738
|
-
* A supported evm chain id
|
|
2199
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
2200
|
*/
|
|
1740
2201
|
chainId: string;
|
|
1741
2202
|
/**
|
|
@@ -1762,12 +2223,12 @@ declare class EvmTransactionsService {
|
|
|
1762
2223
|
/**
|
|
1763
2224
|
* List ERC-721 transfers
|
|
1764
2225
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
2226
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
2227
|
* @throws ApiError
|
|
1767
2228
|
*/
|
|
1768
2229
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1769
2230
|
/**
|
|
1770
|
-
* A supported evm chain id
|
|
2231
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
2232
|
*/
|
|
1772
2233
|
chainId: string;
|
|
1773
2234
|
/**
|
|
@@ -1794,12 +2255,12 @@ declare class EvmTransactionsService {
|
|
|
1794
2255
|
/**
|
|
1795
2256
|
* List ERC-1155 transfers
|
|
1796
2257
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
2258
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
2259
|
* @throws ApiError
|
|
1799
2260
|
*/
|
|
1800
2261
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1801
2262
|
/**
|
|
1802
|
-
* A supported evm chain id
|
|
2263
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
2264
|
*/
|
|
1804
2265
|
chainId: string;
|
|
1805
2266
|
/**
|
|
@@ -1828,12 +2289,12 @@ declare class EvmTransactionsService {
|
|
|
1828
2289
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
2290
|
*
|
|
1830
2291
|
* 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
|
|
2292
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
2293
|
* @throws ApiError
|
|
1833
2294
|
*/
|
|
1834
2295
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1835
2296
|
/**
|
|
1836
|
-
* A supported evm chain id
|
|
2297
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
2298
|
*/
|
|
1838
2299
|
chainId: string;
|
|
1839
2300
|
/**
|
|
@@ -1860,12 +2321,12 @@ declare class EvmTransactionsService {
|
|
|
1860
2321
|
/**
|
|
1861
2322
|
* Get transaction
|
|
1862
2323
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
2324
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
2325
|
* @throws ApiError
|
|
1865
2326
|
*/
|
|
1866
2327
|
getTransaction({ chainId, txHash, }: {
|
|
1867
2328
|
/**
|
|
1868
|
-
* A supported evm chain id
|
|
2329
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
2330
|
*/
|
|
1870
2331
|
chainId: string;
|
|
1871
2332
|
/**
|
|
@@ -1876,12 +2337,12 @@ declare class EvmTransactionsService {
|
|
|
1876
2337
|
/**
|
|
1877
2338
|
* List transactions for a block
|
|
1878
2339
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
2340
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
2341
|
* @throws ApiError
|
|
1881
2342
|
*/
|
|
1882
2343
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1883
2344
|
/**
|
|
1884
|
-
* A supported evm chain id
|
|
2345
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
2346
|
*/
|
|
1886
2347
|
chainId: string;
|
|
1887
2348
|
/**
|
|
@@ -1892,12 +2353,12 @@ declare class EvmTransactionsService {
|
|
|
1892
2353
|
/**
|
|
1893
2354
|
* List latest transactions
|
|
1894
2355
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
2356
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
2357
|
* @throws ApiError
|
|
1897
2358
|
*/
|
|
1898
2359
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1899
2360
|
/**
|
|
1900
|
-
* A supported evm chain id
|
|
2361
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
2362
|
*/
|
|
1902
2363
|
chainId: string;
|
|
1903
2364
|
/**
|
|
@@ -1923,7 +2384,7 @@ declare class HealthCheckService {
|
|
|
1923
2384
|
* @returns any The Health Check is successful
|
|
1924
2385
|
* @throws ApiError
|
|
1925
2386
|
*/
|
|
1926
|
-
|
|
2387
|
+
dataHealthCheck(): CancelablePromise<{
|
|
1927
2388
|
status?: string;
|
|
1928
2389
|
info?: Record<string, Record<string, string>> | null;
|
|
1929
2390
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -1945,12 +2406,12 @@ declare class NfTsService {
|
|
|
1945
2406
|
/**
|
|
1946
2407
|
* Reindex NFT metadata
|
|
1947
2408
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1948
|
-
* @returns any
|
|
2409
|
+
* @returns any Successful response
|
|
1949
2410
|
* @throws ApiError
|
|
1950
2411
|
*/
|
|
1951
2412
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1952
2413
|
/**
|
|
1953
|
-
* A supported evm chain id
|
|
2414
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1954
2415
|
*/
|
|
1955
2416
|
chainId: string;
|
|
1956
2417
|
/**
|
|
@@ -1965,12 +2426,12 @@ declare class NfTsService {
|
|
|
1965
2426
|
/**
|
|
1966
2427
|
* List tokens
|
|
1967
2428
|
* Lists tokens for an NFT contract.
|
|
1968
|
-
* @returns ListNftTokens
|
|
2429
|
+
* @returns ListNftTokens Successful response
|
|
1969
2430
|
* @throws ApiError
|
|
1970
2431
|
*/
|
|
1971
2432
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1972
2433
|
/**
|
|
1973
|
-
* A supported evm chain id
|
|
2434
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1974
2435
|
*/
|
|
1975
2436
|
chainId: string;
|
|
1976
2437
|
/**
|
|
@@ -1989,12 +2450,12 @@ declare class NfTsService {
|
|
|
1989
2450
|
/**
|
|
1990
2451
|
* Get token details
|
|
1991
2452
|
* Gets token details for a specific token of an NFT contract.
|
|
1992
|
-
* @returns any
|
|
2453
|
+
* @returns any Successful response
|
|
1993
2454
|
* @throws ApiError
|
|
1994
2455
|
*/
|
|
1995
2456
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1996
2457
|
/**
|
|
1997
|
-
* A supported evm chain id
|
|
2458
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1998
2459
|
*/
|
|
1999
2460
|
chainId: string;
|
|
2000
2461
|
/**
|
|
@@ -2019,16 +2480,16 @@ declare enum EVMOperationType {
|
|
|
2019
2480
|
|
|
2020
2481
|
type CreateEvmTransactionExportRequest = {
|
|
2021
2482
|
type: EVMOperationType;
|
|
2022
|
-
firstDate
|
|
2023
|
-
lastDate
|
|
2483
|
+
firstDate?: string;
|
|
2484
|
+
lastDate?: string;
|
|
2024
2485
|
/**
|
|
2025
2486
|
* @deprecated
|
|
2026
2487
|
*/
|
|
2027
|
-
startDate
|
|
2488
|
+
startDate?: string;
|
|
2028
2489
|
/**
|
|
2029
2490
|
* @deprecated
|
|
2030
2491
|
*/
|
|
2031
|
-
endDate
|
|
2492
|
+
endDate?: string;
|
|
2032
2493
|
options: EvmNetworkOptions;
|
|
2033
2494
|
};
|
|
2034
2495
|
|
|
@@ -2041,21 +2502,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2041
2502
|
type PrimaryNetworkOptions = {
|
|
2042
2503
|
addresses?: Array<string>;
|
|
2043
2504
|
cChainEvmAddresses?: Array<string>;
|
|
2044
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2505
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2045
2506
|
};
|
|
2046
2507
|
|
|
2047
2508
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2048
2509
|
type: PrimaryNetworkOperationType;
|
|
2049
|
-
firstDate
|
|
2050
|
-
lastDate
|
|
2510
|
+
firstDate?: string;
|
|
2511
|
+
lastDate?: string;
|
|
2051
2512
|
/**
|
|
2052
2513
|
* @deprecated
|
|
2053
2514
|
*/
|
|
2054
|
-
startDate
|
|
2515
|
+
startDate?: string;
|
|
2055
2516
|
/**
|
|
2056
2517
|
* @deprecated
|
|
2057
2518
|
*/
|
|
2058
|
-
endDate
|
|
2519
|
+
endDate?: string;
|
|
2059
2520
|
options: PrimaryNetworkOptions;
|
|
2060
2521
|
};
|
|
2061
2522
|
|
|
@@ -2107,7 +2568,7 @@ declare class OperationsService {
|
|
|
2107
2568
|
/**
|
|
2108
2569
|
* Get operation
|
|
2109
2570
|
* Gets operation details for the given operation id.
|
|
2110
|
-
* @returns OperationStatusResponse
|
|
2571
|
+
* @returns OperationStatusResponse Successful response
|
|
2111
2572
|
* @throws ApiError
|
|
2112
2573
|
*/
|
|
2113
2574
|
getOperationResult({ operationId, }: {
|
|
@@ -2121,7 +2582,7 @@ declare class OperationsService {
|
|
|
2121
2582
|
* Trigger a transaction export operation with given parameters.
|
|
2122
2583
|
*
|
|
2123
2584
|
* 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.
|
|
2124
|
-
* @returns OperationStatusResponse
|
|
2585
|
+
* @returns OperationStatusResponse Successful response
|
|
2125
2586
|
* @throws ApiError
|
|
2126
2587
|
*/
|
|
2127
2588
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2133,8 +2594,10 @@ declare enum BlockchainIds {
|
|
|
2133
2594
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2134
2595
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2135
2596
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2597
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2136
2598
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2137
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2599
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2600
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2138
2601
|
}
|
|
2139
2602
|
|
|
2140
2603
|
type ChainAddressChainIdMap = {
|
|
@@ -2258,10 +2721,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2258
2721
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2259
2722
|
};
|
|
2260
2723
|
|
|
2724
|
+
type BalanceOwner = {
|
|
2725
|
+
addresses: Array<string>;
|
|
2726
|
+
threshold: number;
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
type L1ValidatorDetailsFull = {
|
|
2730
|
+
/**
|
|
2731
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2732
|
+
*/
|
|
2733
|
+
validationId: string;
|
|
2734
|
+
nodeId: string;
|
|
2735
|
+
subnetId: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* 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
|
|
2738
|
+
*/
|
|
2739
|
+
weight: number;
|
|
2740
|
+
/**
|
|
2741
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2742
|
+
*/
|
|
2743
|
+
remainingBalance: number;
|
|
2744
|
+
/**
|
|
2745
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2746
|
+
*/
|
|
2747
|
+
creationTimestamp: number;
|
|
2748
|
+
blsCredentials: Record<string, any>;
|
|
2749
|
+
/**
|
|
2750
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2751
|
+
*/
|
|
2752
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2753
|
+
/**
|
|
2754
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2755
|
+
*/
|
|
2756
|
+
deactivationOwner: BalanceOwner;
|
|
2757
|
+
};
|
|
2758
|
+
|
|
2759
|
+
type ListL1ValidatorsResponse = {
|
|
2760
|
+
/**
|
|
2761
|
+
* 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.
|
|
2762
|
+
*/
|
|
2763
|
+
nextPageToken?: string;
|
|
2764
|
+
/**
|
|
2765
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2766
|
+
*/
|
|
2767
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2261
2770
|
type BlockchainInfo = {
|
|
2262
2771
|
blockchainId: string;
|
|
2263
2772
|
};
|
|
2264
2773
|
|
|
2774
|
+
type L1ValidatorManagerDetails = {
|
|
2775
|
+
blockchainId: string;
|
|
2776
|
+
contractAddress: string;
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2265
2779
|
type SubnetOwnershipInfo = {
|
|
2266
2780
|
/**
|
|
2267
2781
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2300,6 +2814,14 @@ type Subnet = {
|
|
|
2300
2814
|
* Latest subnet owner details for this Subnet.
|
|
2301
2815
|
*/
|
|
2302
2816
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2817
|
+
/**
|
|
2818
|
+
* Whether the subnet is an L1 or not.
|
|
2819
|
+
*/
|
|
2820
|
+
isL1: boolean;
|
|
2821
|
+
/**
|
|
2822
|
+
* L1 validator manager details.
|
|
2823
|
+
*/
|
|
2824
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2303
2825
|
blockchains: Array<BlockchainInfo>;
|
|
2304
2826
|
};
|
|
2305
2827
|
|
|
@@ -2383,6 +2905,7 @@ type CompletedValidatorDetails = {
|
|
|
2383
2905
|
*/
|
|
2384
2906
|
blsCredentials?: BlsCredentials;
|
|
2385
2907
|
delegatorCount: number;
|
|
2908
|
+
amountDelegated?: string;
|
|
2386
2909
|
rewards: Rewards;
|
|
2387
2910
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2388
2911
|
};
|
|
@@ -2445,11 +2968,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2445
2968
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2446
2969
|
};
|
|
2447
2970
|
|
|
2448
|
-
declare enum Network {
|
|
2449
|
-
MAINNET = "mainnet",
|
|
2450
|
-
FUJI = "fuji"
|
|
2451
|
-
}
|
|
2452
|
-
|
|
2453
2971
|
declare enum SortByOption {
|
|
2454
2972
|
BLOCK_INDEX = "blockIndex",
|
|
2455
2973
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2509,6 +3027,7 @@ type XChainAssetDetails = {
|
|
|
2509
3027
|
declare enum XChainId {
|
|
2510
3028
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2511
3029
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3030
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2512
3031
|
X_CHAIN = "x-chain"
|
|
2513
3032
|
}
|
|
2514
3033
|
|
|
@@ -2518,7 +3037,7 @@ declare class PrimaryNetworkService {
|
|
|
2518
3037
|
/**
|
|
2519
3038
|
* Get asset details
|
|
2520
3039
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2521
|
-
* @returns XChainAssetDetails
|
|
3040
|
+
* @returns XChainAssetDetails Successful response
|
|
2522
3041
|
* @throws ApiError
|
|
2523
3042
|
*/
|
|
2524
3043
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2527,7 +3046,7 @@ declare class PrimaryNetworkService {
|
|
|
2527
3046
|
*/
|
|
2528
3047
|
blockchainId: XChainId;
|
|
2529
3048
|
/**
|
|
2530
|
-
* Either mainnet or
|
|
3049
|
+
* Either mainnet or testnet/fuji.
|
|
2531
3050
|
*/
|
|
2532
3051
|
network: Network;
|
|
2533
3052
|
/**
|
|
@@ -2538,7 +3057,7 @@ declare class PrimaryNetworkService {
|
|
|
2538
3057
|
/**
|
|
2539
3058
|
* Get chain interactions for addresses
|
|
2540
3059
|
* 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.
|
|
2541
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
3060
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2542
3061
|
* @throws ApiError
|
|
2543
3062
|
*/
|
|
2544
3063
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2547,31 +3066,31 @@ declare class PrimaryNetworkService {
|
|
|
2547
3066
|
*/
|
|
2548
3067
|
addresses: string;
|
|
2549
3068
|
/**
|
|
2550
|
-
* Either mainnet or
|
|
3069
|
+
* Either mainnet or testnet/fuji.
|
|
2551
3070
|
*/
|
|
2552
3071
|
network: Network;
|
|
2553
3072
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2554
3073
|
/**
|
|
2555
3074
|
* Get network details
|
|
2556
3075
|
* Gets network details such as validator and delegator stats.
|
|
2557
|
-
* @returns GetNetworkDetailsResponse
|
|
3076
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2558
3077
|
* @throws ApiError
|
|
2559
3078
|
*/
|
|
2560
3079
|
getNetworkDetails({ network, }: {
|
|
2561
3080
|
/**
|
|
2562
|
-
* Either mainnet or
|
|
3081
|
+
* Either mainnet or testnet/fuji.
|
|
2563
3082
|
*/
|
|
2564
3083
|
network: Network;
|
|
2565
3084
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2566
3085
|
/**
|
|
2567
3086
|
* List blockchains
|
|
2568
3087
|
* Lists all blockchains registered on the network.
|
|
2569
|
-
* @returns ListBlockchainsResponse
|
|
3088
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2570
3089
|
* @throws ApiError
|
|
2571
3090
|
*/
|
|
2572
3091
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2573
3092
|
/**
|
|
2574
|
-
* Either mainnet or
|
|
3093
|
+
* Either mainnet or testnet/fuji.
|
|
2575
3094
|
*/
|
|
2576
3095
|
network: Network;
|
|
2577
3096
|
/**
|
|
@@ -2590,12 +3109,12 @@ declare class PrimaryNetworkService {
|
|
|
2590
3109
|
/**
|
|
2591
3110
|
* List subnets
|
|
2592
3111
|
* Lists all subnets registered on the network.
|
|
2593
|
-
* @returns ListSubnetsResponse
|
|
3112
|
+
* @returns ListSubnetsResponse Successful response
|
|
2594
3113
|
* @throws ApiError
|
|
2595
3114
|
*/
|
|
2596
3115
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2597
3116
|
/**
|
|
2598
|
-
* Either mainnet or
|
|
3117
|
+
* Either mainnet or testnet/fuji.
|
|
2599
3118
|
*/
|
|
2600
3119
|
network: Network;
|
|
2601
3120
|
/**
|
|
@@ -2614,12 +3133,12 @@ declare class PrimaryNetworkService {
|
|
|
2614
3133
|
/**
|
|
2615
3134
|
* Get Subnet details by ID
|
|
2616
3135
|
* Get details of the Subnet registered on the network.
|
|
2617
|
-
* @returns Subnet
|
|
3136
|
+
* @returns Subnet Successful response
|
|
2618
3137
|
* @throws ApiError
|
|
2619
3138
|
*/
|
|
2620
3139
|
getSubnetById({ network, subnetId, }: {
|
|
2621
3140
|
/**
|
|
2622
|
-
* Either mainnet or
|
|
3141
|
+
* Either mainnet or testnet/fuji.
|
|
2623
3142
|
*/
|
|
2624
3143
|
network: Network;
|
|
2625
3144
|
/**
|
|
@@ -2630,12 +3149,12 @@ declare class PrimaryNetworkService {
|
|
|
2630
3149
|
/**
|
|
2631
3150
|
* List validators
|
|
2632
3151
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2633
|
-
* @returns ListValidatorDetailsResponse
|
|
3152
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2634
3153
|
* @throws ApiError
|
|
2635
3154
|
*/
|
|
2636
3155
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2637
3156
|
/**
|
|
2638
|
-
* Either mainnet or
|
|
3157
|
+
* Either mainnet or testnet/fuji.
|
|
2639
3158
|
*/
|
|
2640
3159
|
network: Network;
|
|
2641
3160
|
/**
|
|
@@ -2704,12 +3223,12 @@ declare class PrimaryNetworkService {
|
|
|
2704
3223
|
/**
|
|
2705
3224
|
* Get single validator details
|
|
2706
3225
|
* List validator details for a single validator. Filterable by validation status.
|
|
2707
|
-
* @returns ListValidatorDetailsResponse
|
|
3226
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2708
3227
|
* @throws ApiError
|
|
2709
3228
|
*/
|
|
2710
3229
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2711
3230
|
/**
|
|
2712
|
-
* Either mainnet or
|
|
3231
|
+
* Either mainnet or testnet/fuji.
|
|
2713
3232
|
*/
|
|
2714
3233
|
network: Network;
|
|
2715
3234
|
/**
|
|
@@ -2736,12 +3255,12 @@ declare class PrimaryNetworkService {
|
|
|
2736
3255
|
/**
|
|
2737
3256
|
* List delegators
|
|
2738
3257
|
* Lists details for delegators.
|
|
2739
|
-
* @returns ListDelegatorDetailsResponse
|
|
3258
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2740
3259
|
* @throws ApiError
|
|
2741
3260
|
*/
|
|
2742
3261
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
3262
|
/**
|
|
2744
|
-
* Either mainnet or
|
|
3263
|
+
* Either mainnet or testnet/fuji.
|
|
2745
3264
|
*/
|
|
2746
3265
|
network: Network;
|
|
2747
3266
|
/**
|
|
@@ -2769,14 +3288,49 @@ declare class PrimaryNetworkService {
|
|
|
2769
3288
|
*/
|
|
2770
3289
|
nodeIds?: string;
|
|
2771
3290
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3291
|
+
/**
|
|
3292
|
+
* List L1 validators
|
|
3293
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3294
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3295
|
+
* @throws ApiError
|
|
3296
|
+
*/
|
|
3297
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3298
|
+
/**
|
|
3299
|
+
* Either mainnet or testnet/fuji.
|
|
3300
|
+
*/
|
|
3301
|
+
network: Network;
|
|
3302
|
+
/**
|
|
3303
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3304
|
+
*/
|
|
3305
|
+
pageToken?: string;
|
|
3306
|
+
/**
|
|
3307
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3308
|
+
*/
|
|
3309
|
+
pageSize?: number;
|
|
3310
|
+
/**
|
|
3311
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3312
|
+
*/
|
|
3313
|
+
l1ValidationId?: any;
|
|
3314
|
+
includeInactiveL1Validators?: boolean;
|
|
3315
|
+
/**
|
|
3316
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3317
|
+
*/
|
|
3318
|
+
nodeId?: string;
|
|
3319
|
+
/**
|
|
3320
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3321
|
+
*/
|
|
3322
|
+
subnetId?: any;
|
|
3323
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
2772
3324
|
}
|
|
2773
3325
|
|
|
2774
3326
|
declare enum BlockchainId {
|
|
2775
3327
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2776
3328
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2777
3329
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3330
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2778
3331
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2779
3332
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3333
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
2780
3334
|
P_CHAIN = "p-chain",
|
|
2781
3335
|
X_CHAIN = "x-chain",
|
|
2782
3336
|
C_CHAIN = "c-chain"
|
|
@@ -2813,11 +3367,6 @@ type CChainAtomicBalances = {
|
|
|
2813
3367
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
2814
3368
|
};
|
|
2815
3369
|
|
|
2816
|
-
declare enum PrimaryNetwork {
|
|
2817
|
-
MAINNET = "mainnet",
|
|
2818
|
-
FUJI = "fuji"
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
3370
|
declare enum PrimaryNetworkChainName {
|
|
2822
3371
|
P_CHAIN = "p-chain",
|
|
2823
3372
|
X_CHAIN = "x-chain",
|
|
@@ -2826,7 +3375,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
2826
3375
|
|
|
2827
3376
|
type PrimaryNetworkChainInfo = {
|
|
2828
3377
|
chainName: PrimaryNetworkChainName;
|
|
2829
|
-
network:
|
|
3378
|
+
network: Network;
|
|
2830
3379
|
};
|
|
2831
3380
|
|
|
2832
3381
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -2978,7 +3527,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2978
3527
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
2979
3528
|
*
|
|
2980
3529
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
2981
|
-
* @returns any
|
|
3530
|
+
* @returns any Successful response
|
|
2982
3531
|
* @throws ApiError
|
|
2983
3532
|
*/
|
|
2984
3533
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -2987,7 +3536,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2987
3536
|
*/
|
|
2988
3537
|
blockchainId: BlockchainId;
|
|
2989
3538
|
/**
|
|
2990
|
-
* Either mainnet or
|
|
3539
|
+
* Either mainnet or testnet/fuji.
|
|
2991
3540
|
*/
|
|
2992
3541
|
network: Network;
|
|
2993
3542
|
/**
|
|
@@ -3018,6 +3567,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3018
3567
|
txCount: number;
|
|
3019
3568
|
transactions: Array<string>;
|
|
3020
3569
|
blockSizeBytes: number;
|
|
3570
|
+
l1ValidatorsAccruedFees?: number;
|
|
3571
|
+
activeL1Validators?: number;
|
|
3021
3572
|
currentSupply?: string;
|
|
3022
3573
|
proposerDetails?: ProposerDetails;
|
|
3023
3574
|
};
|
|
@@ -3031,6 +3582,8 @@ type PrimaryNetworkBlock = {
|
|
|
3031
3582
|
txCount: number;
|
|
3032
3583
|
transactions: Array<string>;
|
|
3033
3584
|
blockSizeBytes: number;
|
|
3585
|
+
l1ValidatorsAccruedFees?: number;
|
|
3586
|
+
activeL1Validators?: number;
|
|
3034
3587
|
currentSupply?: string;
|
|
3035
3588
|
proposerDetails?: ProposerDetails;
|
|
3036
3589
|
};
|
|
@@ -3050,7 +3603,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3050
3603
|
/**
|
|
3051
3604
|
* Get block
|
|
3052
3605
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3053
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3606
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3054
3607
|
* @throws ApiError
|
|
3055
3608
|
*/
|
|
3056
3609
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3059,7 +3612,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3059
3612
|
*/
|
|
3060
3613
|
blockchainId: BlockchainId;
|
|
3061
3614
|
/**
|
|
3062
|
-
* Either mainnet or
|
|
3615
|
+
* Either mainnet or testnet/fuji.
|
|
3063
3616
|
*/
|
|
3064
3617
|
network: Network;
|
|
3065
3618
|
/**
|
|
@@ -3070,22 +3623,30 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3070
3623
|
/**
|
|
3071
3624
|
* List blocks proposed by node
|
|
3072
3625
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3073
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3626
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3074
3627
|
* @throws ApiError
|
|
3075
3628
|
*/
|
|
3076
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3629
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3077
3630
|
/**
|
|
3078
3631
|
* A primary network blockchain id or alias.
|
|
3079
3632
|
*/
|
|
3080
3633
|
blockchainId: BlockchainId;
|
|
3081
3634
|
/**
|
|
3082
|
-
* Either mainnet or
|
|
3635
|
+
* Either mainnet or testnet/fuji.
|
|
3083
3636
|
*/
|
|
3084
3637
|
network: Network;
|
|
3085
3638
|
/**
|
|
3086
3639
|
* A primary network (P or X chain) nodeId.
|
|
3087
3640
|
*/
|
|
3088
3641
|
nodeId: string;
|
|
3642
|
+
/**
|
|
3643
|
+
* Query param for retrieving items after a specific timestamp.
|
|
3644
|
+
*/
|
|
3645
|
+
startTimestamp?: number;
|
|
3646
|
+
/**
|
|
3647
|
+
* Query param for retrieving items before a specific timestamp.
|
|
3648
|
+
*/
|
|
3649
|
+
endTimestamp?: number;
|
|
3089
3650
|
/**
|
|
3090
3651
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3091
3652
|
*/
|
|
@@ -3098,18 +3659,26 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3098
3659
|
/**
|
|
3099
3660
|
* List latest blocks
|
|
3100
3661
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3101
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3662
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3102
3663
|
* @throws ApiError
|
|
3103
3664
|
*/
|
|
3104
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3665
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3105
3666
|
/**
|
|
3106
3667
|
* A primary network blockchain id or alias.
|
|
3107
3668
|
*/
|
|
3108
3669
|
blockchainId: BlockchainId;
|
|
3109
3670
|
/**
|
|
3110
|
-
* Either mainnet or
|
|
3671
|
+
* Either mainnet or testnet/fuji.
|
|
3111
3672
|
*/
|
|
3112
3673
|
network: Network;
|
|
3674
|
+
/**
|
|
3675
|
+
* Query param for retrieving items after a specific timestamp.
|
|
3676
|
+
*/
|
|
3677
|
+
startTimestamp?: number;
|
|
3678
|
+
/**
|
|
3679
|
+
* Query param for retrieving items before a specific timestamp.
|
|
3680
|
+
*/
|
|
3681
|
+
endTimestamp?: number;
|
|
3113
3682
|
/**
|
|
3114
3683
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3115
3684
|
*/
|
|
@@ -3236,12 +3805,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3236
3805
|
/**
|
|
3237
3806
|
* List pending rewards
|
|
3238
3807
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3239
|
-
* @returns ListPendingRewardsResponse
|
|
3808
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3240
3809
|
* @throws ApiError
|
|
3241
3810
|
*/
|
|
3242
3811
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3243
3812
|
/**
|
|
3244
|
-
* Either mainnet or
|
|
3813
|
+
* Either mainnet or testnet/fuji.
|
|
3245
3814
|
*/
|
|
3246
3815
|
network: Network;
|
|
3247
3816
|
/**
|
|
@@ -3268,12 +3837,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3268
3837
|
/**
|
|
3269
3838
|
* List historical rewards
|
|
3270
3839
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3271
|
-
* @returns ListHistoricalRewardsResponse
|
|
3840
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3272
3841
|
* @throws ApiError
|
|
3273
3842
|
*/
|
|
3274
3843
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3275
3844
|
/**
|
|
3276
|
-
* Either mainnet or
|
|
3845
|
+
* Either mainnet or testnet/fuji.
|
|
3277
3846
|
*/
|
|
3278
3847
|
network: Network;
|
|
3279
3848
|
/**
|
|
@@ -3519,6 +4088,28 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3519
4088
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3520
4089
|
};
|
|
3521
4090
|
|
|
4091
|
+
type L1ValidatorDetailsTransaction = {
|
|
4092
|
+
/**
|
|
4093
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4094
|
+
*/
|
|
4095
|
+
validationId: string;
|
|
4096
|
+
nodeId: string;
|
|
4097
|
+
subnetId: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* 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
|
|
4100
|
+
*/
|
|
4101
|
+
weight: number;
|
|
4102
|
+
/**
|
|
4103
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4104
|
+
*/
|
|
4105
|
+
remainingBalance: number;
|
|
4106
|
+
/**
|
|
4107
|
+
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4108
|
+
*/
|
|
4109
|
+
balanceChange?: number;
|
|
4110
|
+
blsCredentials?: Record<string, any>;
|
|
4111
|
+
};
|
|
4112
|
+
|
|
3522
4113
|
declare enum PChainTransactionType {
|
|
3523
4114
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3524
4115
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3535,6 +4126,11 @@ declare enum PChainTransactionType {
|
|
|
3535
4126
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3536
4127
|
BASE_TX = "BaseTx",
|
|
3537
4128
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4129
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4130
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4131
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4132
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4133
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3538
4134
|
UNKNOWN = "UNKNOWN"
|
|
3539
4135
|
}
|
|
3540
4136
|
|
|
@@ -3623,6 +4219,10 @@ type PChainTransaction = {
|
|
|
3623
4219
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3624
4220
|
*/
|
|
3625
4221
|
amountStaked: Array<AssetAmount>;
|
|
4222
|
+
/**
|
|
4223
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4224
|
+
*/
|
|
4225
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3626
4226
|
/**
|
|
3627
4227
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3628
4228
|
*/
|
|
@@ -3643,6 +4243,14 @@ type PChainTransaction = {
|
|
|
3643
4243
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
3644
4244
|
*/
|
|
3645
4245
|
subnetId?: string;
|
|
4246
|
+
/**
|
|
4247
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4248
|
+
*/
|
|
4249
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4250
|
+
/**
|
|
4251
|
+
* 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
|
|
4252
|
+
*/
|
|
4253
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
3646
4254
|
/**
|
|
3647
4255
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3648
4256
|
*/
|
|
@@ -3844,6 +4452,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
3844
4452
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3845
4453
|
BASE_TX = "BaseTx",
|
|
3846
4454
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4455
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4456
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4457
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4458
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4459
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3847
4460
|
UNKNOWN = "UNKNOWN",
|
|
3848
4461
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3849
4462
|
OPERATION_TX = "OperationTx"
|
|
@@ -3855,7 +4468,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3855
4468
|
/**
|
|
3856
4469
|
* Get transaction
|
|
3857
4470
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
3858
|
-
* @returns any
|
|
4471
|
+
* @returns any Successful response
|
|
3859
4472
|
* @throws ApiError
|
|
3860
4473
|
*/
|
|
3861
4474
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -3864,7 +4477,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3864
4477
|
*/
|
|
3865
4478
|
blockchainId: BlockchainId;
|
|
3866
4479
|
/**
|
|
3867
|
-
* Either mainnet or
|
|
4480
|
+
* Either mainnet or testnet/fuji.
|
|
3868
4481
|
*/
|
|
3869
4482
|
network: Network;
|
|
3870
4483
|
/**
|
|
@@ -3878,23 +4491,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3878
4491
|
*
|
|
3879
4492
|
* 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.
|
|
3880
4493
|
*
|
|
4494
|
+
* 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.
|
|
4495
|
+
*
|
|
3881
4496
|
* 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.
|
|
3882
|
-
* @returns any
|
|
4497
|
+
* @returns any Successful response
|
|
3883
4498
|
* @throws ApiError
|
|
3884
4499
|
*/
|
|
3885
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4500
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3886
4501
|
/**
|
|
3887
4502
|
* A primary network blockchain id or alias.
|
|
3888
4503
|
*/
|
|
3889
4504
|
blockchainId: BlockchainId;
|
|
3890
4505
|
/**
|
|
3891
|
-
* Either mainnet or
|
|
4506
|
+
* Either mainnet or testnet/fuji.
|
|
3892
4507
|
*/
|
|
3893
4508
|
network: Network;
|
|
3894
4509
|
/**
|
|
3895
|
-
* 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".
|
|
4510
|
+
* 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.
|
|
3896
4511
|
*/
|
|
3897
4512
|
addresses?: string;
|
|
4513
|
+
l1ValidationId?: string;
|
|
3898
4514
|
/**
|
|
3899
4515
|
* Query param for filtering items based on transaction types.
|
|
3900
4516
|
*/
|
|
@@ -3923,7 +4539,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3923
4539
|
/**
|
|
3924
4540
|
* List staking transactions
|
|
3925
4541
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
3926
|
-
* @returns ListPChainTransactionsResponse
|
|
4542
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
3927
4543
|
* @throws ApiError
|
|
3928
4544
|
*/
|
|
3929
4545
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -3932,7 +4548,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3932
4548
|
*/
|
|
3933
4549
|
blockchainId: PChainId;
|
|
3934
4550
|
/**
|
|
3935
|
-
* Either mainnet or
|
|
4551
|
+
* Either mainnet or testnet/fuji.
|
|
3936
4552
|
*/
|
|
3937
4553
|
network: Network;
|
|
3938
4554
|
/**
|
|
@@ -3967,7 +4583,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3967
4583
|
/**
|
|
3968
4584
|
* List asset transactions
|
|
3969
4585
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
3970
|
-
* @returns ListXChainTransactionsResponse
|
|
4586
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
3971
4587
|
* @throws ApiError
|
|
3972
4588
|
*/
|
|
3973
4589
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -3976,7 +4592,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3976
4592
|
*/
|
|
3977
4593
|
blockchainId: XChainId;
|
|
3978
4594
|
/**
|
|
3979
|
-
* Either mainnet or
|
|
4595
|
+
* Either mainnet or testnet/fuji.
|
|
3980
4596
|
*/
|
|
3981
4597
|
network: Network;
|
|
3982
4598
|
/**
|
|
@@ -4030,7 +4646,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4030
4646
|
/**
|
|
4031
4647
|
* List UTXOs
|
|
4032
4648
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4033
|
-
* @returns any
|
|
4649
|
+
* @returns any Successful response
|
|
4034
4650
|
* @throws ApiError
|
|
4035
4651
|
*/
|
|
4036
4652
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4039,7 +4655,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4039
4655
|
*/
|
|
4040
4656
|
blockchainId: BlockchainId;
|
|
4041
4657
|
/**
|
|
4042
|
-
* Either mainnet or
|
|
4658
|
+
* Either mainnet or testnet/fuji.
|
|
4043
4659
|
*/
|
|
4044
4660
|
network: Network;
|
|
4045
4661
|
/**
|
|
@@ -4095,7 +4711,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4095
4711
|
/**
|
|
4096
4712
|
* List vertices
|
|
4097
4713
|
* Lists latest vertices on the X-Chain.
|
|
4098
|
-
* @returns ListXChainVerticesResponse
|
|
4714
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4099
4715
|
* @throws ApiError
|
|
4100
4716
|
*/
|
|
4101
4717
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4104,7 +4720,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4104
4720
|
*/
|
|
4105
4721
|
blockchainId: XChainId;
|
|
4106
4722
|
/**
|
|
4107
|
-
* Either mainnet or
|
|
4723
|
+
* Either mainnet or testnet/fuji.
|
|
4108
4724
|
*/
|
|
4109
4725
|
network: Network;
|
|
4110
4726
|
/**
|
|
@@ -4119,7 +4735,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4119
4735
|
/**
|
|
4120
4736
|
* Get vertex
|
|
4121
4737
|
* Gets a single vertex on the X-Chain.
|
|
4122
|
-
* @returns XChainVertex
|
|
4738
|
+
* @returns XChainVertex Successful response
|
|
4123
4739
|
* @throws ApiError
|
|
4124
4740
|
*/
|
|
4125
4741
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4132,14 +4748,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4132
4748
|
*/
|
|
4133
4749
|
blockchainId: XChainId;
|
|
4134
4750
|
/**
|
|
4135
|
-
* Either mainnet or
|
|
4751
|
+
* Either mainnet or testnet/fuji.
|
|
4136
4752
|
*/
|
|
4137
4753
|
network: Network;
|
|
4138
4754
|
}): CancelablePromise<XChainVertex>;
|
|
4139
4755
|
/**
|
|
4140
4756
|
* List vertices by height
|
|
4141
4757
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4142
|
-
* @returns ListXChainVerticesResponse
|
|
4758
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4143
4759
|
* @throws ApiError
|
|
4144
4760
|
*/
|
|
4145
4761
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4152,7 +4768,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4152
4768
|
*/
|
|
4153
4769
|
blockchainId: XChainId;
|
|
4154
4770
|
/**
|
|
4155
|
-
* Either mainnet or
|
|
4771
|
+
* Either mainnet or testnet/fuji.
|
|
4156
4772
|
*/
|
|
4157
4773
|
network: Network;
|
|
4158
4774
|
/**
|
|
@@ -4170,47 +4786,29 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4170
4786
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4171
4787
|
}
|
|
4172
4788
|
|
|
4173
|
-
type
|
|
4174
|
-
|
|
4175
|
-
message: string;
|
|
4176
|
-
data?: Record<string, any>;
|
|
4177
|
-
};
|
|
4178
|
-
|
|
4179
|
-
type RpcErrorResponseDto = {
|
|
4180
|
-
jsonrpc: string;
|
|
4181
|
-
id?: (string | number);
|
|
4182
|
-
error: RpcErrorDto;
|
|
4789
|
+
type SignatureAggregationResponse = {
|
|
4790
|
+
signedMessage: string;
|
|
4183
4791
|
};
|
|
4184
4792
|
|
|
4185
|
-
type
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
};
|
|
4191
|
-
|
|
4192
|
-
type RpcSuccessResponseDto = {
|
|
4193
|
-
jsonrpc: string;
|
|
4194
|
-
id?: (string | number);
|
|
4195
|
-
result: Record<string, any>;
|
|
4793
|
+
type SignatureAggregatorRequest = {
|
|
4794
|
+
message: string;
|
|
4795
|
+
justification?: string;
|
|
4796
|
+
signingSubnetId?: string;
|
|
4797
|
+
quorumPercentage?: number;
|
|
4196
4798
|
};
|
|
4197
4799
|
|
|
4198
|
-
declare class
|
|
4800
|
+
declare class SignatureAggregatorService {
|
|
4199
4801
|
readonly httpRequest: BaseHttpRequest;
|
|
4200
4802
|
constructor(httpRequest: BaseHttpRequest);
|
|
4201
4803
|
/**
|
|
4202
|
-
*
|
|
4203
|
-
*
|
|
4204
|
-
* @returns
|
|
4804
|
+
* Aggregate Signatures
|
|
4805
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4806
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4205
4807
|
* @throws ApiError
|
|
4206
4808
|
*/
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
*/
|
|
4211
|
-
chainId: string;
|
|
4212
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4213
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4809
|
+
aggregateSignatures({ requestBody, }: {
|
|
4810
|
+
requestBody: SignatureAggregatorRequest;
|
|
4811
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4214
4812
|
}
|
|
4215
4813
|
|
|
4216
4814
|
type TeleporterDestinationTransaction = {
|
|
@@ -4353,7 +4951,7 @@ declare class TeleporterService {
|
|
|
4353
4951
|
/**
|
|
4354
4952
|
* Get a teleporter message
|
|
4355
4953
|
* Gets a teleporter message by message ID.
|
|
4356
|
-
* @returns any
|
|
4954
|
+
* @returns any Successful response
|
|
4357
4955
|
* @throws ApiError
|
|
4358
4956
|
*/
|
|
4359
4957
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4365,10 +4963,10 @@ declare class TeleporterService {
|
|
|
4365
4963
|
/**
|
|
4366
4964
|
* List teleporter messages
|
|
4367
4965
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4368
|
-
* @returns ListTeleporterMessagesResponse
|
|
4966
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4369
4967
|
* @throws ApiError
|
|
4370
4968
|
*/
|
|
4371
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4969
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
4372
4970
|
/**
|
|
4373
4971
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4374
4972
|
*/
|
|
@@ -4385,6 +4983,10 @@ declare class TeleporterService {
|
|
|
4385
4983
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4386
4984
|
*/
|
|
4387
4985
|
destinationBlockchainId?: string;
|
|
4986
|
+
/**
|
|
4987
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
4988
|
+
*/
|
|
4989
|
+
blockchainId?: string;
|
|
4388
4990
|
/**
|
|
4389
4991
|
* The address of the recipient of the teleporter message.
|
|
4390
4992
|
*/
|
|
@@ -4394,9 +4996,33 @@ declare class TeleporterService {
|
|
|
4394
4996
|
*/
|
|
4395
4997
|
from?: string;
|
|
4396
4998
|
/**
|
|
4397
|
-
* mainnet or testnet.
|
|
4999
|
+
* Either mainnet or testnet/fuji.
|
|
4398
5000
|
*/
|
|
4399
|
-
network?:
|
|
5001
|
+
network?: Network;
|
|
5002
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5003
|
+
/**
|
|
5004
|
+
* List teleporter messages by address
|
|
5005
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5006
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
5007
|
+
* @throws ApiError
|
|
5008
|
+
*/
|
|
5009
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
5010
|
+
/**
|
|
5011
|
+
* An EVM address.
|
|
5012
|
+
*/
|
|
5013
|
+
address: string;
|
|
5014
|
+
/**
|
|
5015
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5016
|
+
*/
|
|
5017
|
+
pageToken?: string;
|
|
5018
|
+
/**
|
|
5019
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
5020
|
+
*/
|
|
5021
|
+
pageSize?: number;
|
|
5022
|
+
/**
|
|
5023
|
+
* Either mainnet or testnet/fuji.
|
|
5024
|
+
*/
|
|
5025
|
+
network?: Network;
|
|
4400
5026
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4401
5027
|
}
|
|
4402
5028
|
|
|
@@ -4404,7 +5030,7 @@ type AddressesChangeRequest = {
|
|
|
4404
5030
|
/**
|
|
4405
5031
|
* Ethereum address(es) for the address_activity event type
|
|
4406
5032
|
*/
|
|
4407
|
-
addresses: Array<
|
|
5033
|
+
addresses: Array<string>;
|
|
4408
5034
|
};
|
|
4409
5035
|
|
|
4410
5036
|
type AddressActivityMetadata = {
|
|
@@ -4430,7 +5056,7 @@ type CreateWebhookRequest = {
|
|
|
4430
5056
|
name?: string;
|
|
4431
5057
|
description?: string;
|
|
4432
5058
|
/**
|
|
4433
|
-
* Whether to include traces in the webhook payload.
|
|
5059
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4434
5060
|
*/
|
|
4435
5061
|
includeInternalTxs?: boolean;
|
|
4436
5062
|
/**
|
|
@@ -4490,6 +5116,9 @@ type UpdateWebhookRequest = {
|
|
|
4490
5116
|
description?: string;
|
|
4491
5117
|
url?: string;
|
|
4492
5118
|
status?: WebhookStatusType;
|
|
5119
|
+
/**
|
|
5120
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5121
|
+
*/
|
|
4493
5122
|
includeInternalTxs?: boolean;
|
|
4494
5123
|
includeLogs?: boolean;
|
|
4495
5124
|
};
|
|
@@ -4505,7 +5134,7 @@ declare class WebhooksService {
|
|
|
4505
5134
|
/**
|
|
4506
5135
|
* Create a webhook
|
|
4507
5136
|
* Create a new webhook.
|
|
4508
|
-
* @returns WebhookResponse
|
|
5137
|
+
* @returns WebhookResponse Successful response
|
|
4509
5138
|
* @throws ApiError
|
|
4510
5139
|
*/
|
|
4511
5140
|
createWebhook({ requestBody, }: {
|
|
@@ -4514,7 +5143,7 @@ declare class WebhooksService {
|
|
|
4514
5143
|
/**
|
|
4515
5144
|
* List webhooks
|
|
4516
5145
|
* Lists webhooks for the user.
|
|
4517
|
-
* @returns ListWebhooksResponse
|
|
5146
|
+
* @returns ListWebhooksResponse Successful response
|
|
4518
5147
|
* @throws ApiError
|
|
4519
5148
|
*/
|
|
4520
5149
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4534,7 +5163,7 @@ declare class WebhooksService {
|
|
|
4534
5163
|
/**
|
|
4535
5164
|
* Get a webhook by ID
|
|
4536
5165
|
* Retrieves a webhook by ID.
|
|
4537
|
-
* @returns WebhookResponse
|
|
5166
|
+
* @returns WebhookResponse Successful response
|
|
4538
5167
|
* @throws ApiError
|
|
4539
5168
|
*/
|
|
4540
5169
|
getWebhook({ id, }: {
|
|
@@ -4546,7 +5175,7 @@ declare class WebhooksService {
|
|
|
4546
5175
|
/**
|
|
4547
5176
|
* Deactivate a webhook
|
|
4548
5177
|
* Deactivates a webhook by ID.
|
|
4549
|
-
* @returns WebhookResponse
|
|
5178
|
+
* @returns WebhookResponse Successful response
|
|
4550
5179
|
* @throws ApiError
|
|
4551
5180
|
*/
|
|
4552
5181
|
deactivateWebhook({ id, }: {
|
|
@@ -4558,7 +5187,7 @@ declare class WebhooksService {
|
|
|
4558
5187
|
/**
|
|
4559
5188
|
* Update a webhook
|
|
4560
5189
|
* Updates an existing webhook.
|
|
4561
|
-
* @returns WebhookResponse
|
|
5190
|
+
* @returns WebhookResponse Successful response
|
|
4562
5191
|
* @throws ApiError
|
|
4563
5192
|
*/
|
|
4564
5193
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4571,21 +5200,21 @@ declare class WebhooksService {
|
|
|
4571
5200
|
/**
|
|
4572
5201
|
* Generate a shared secret
|
|
4573
5202
|
* Generates a new shared secret.
|
|
4574
|
-
* @returns SharedSecretsResponse
|
|
5203
|
+
* @returns SharedSecretsResponse Successful response
|
|
4575
5204
|
* @throws ApiError
|
|
4576
5205
|
*/
|
|
4577
5206
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4578
5207
|
/**
|
|
4579
5208
|
* Get a shared secret
|
|
4580
5209
|
* Get a previously generated shared secret.
|
|
4581
|
-
* @returns SharedSecretsResponse
|
|
5210
|
+
* @returns SharedSecretsResponse Successful response
|
|
4582
5211
|
* @throws ApiError
|
|
4583
5212
|
*/
|
|
4584
5213
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4585
5214
|
/**
|
|
4586
5215
|
* Add addresses to webhook
|
|
4587
5216
|
* Add addresses to webhook.
|
|
4588
|
-
* @returns WebhookResponse
|
|
5217
|
+
* @returns WebhookResponse Successful response
|
|
4589
5218
|
* @throws ApiError
|
|
4590
5219
|
*/
|
|
4591
5220
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4598,7 +5227,7 @@ declare class WebhooksService {
|
|
|
4598
5227
|
/**
|
|
4599
5228
|
* Remove addresses from webhook
|
|
4600
5229
|
* Remove addresses from webhook.
|
|
4601
|
-
* @returns WebhookResponse
|
|
5230
|
+
* @returns WebhookResponse Successful response
|
|
4602
5231
|
* @throws ApiError
|
|
4603
5232
|
*/
|
|
4604
5233
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4611,7 +5240,7 @@ declare class WebhooksService {
|
|
|
4611
5240
|
/**
|
|
4612
5241
|
* List adresses by webhook
|
|
4613
5242
|
* List adresses by webhook.
|
|
4614
|
-
* @returns ListWebhookAddressesResponse
|
|
5243
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4615
5244
|
* @throws ApiError
|
|
4616
5245
|
*/
|
|
4617
5246
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4632,6 +5261,7 @@ declare class WebhooksService {
|
|
|
4632
5261
|
|
|
4633
5262
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4634
5263
|
declare class Glacier {
|
|
5264
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4635
5265
|
readonly default: DefaultService;
|
|
4636
5266
|
readonly evmBalances: EvmBalancesService;
|
|
4637
5267
|
readonly evmBlocks: EvmBlocksService;
|
|
@@ -4648,7 +5278,7 @@ declare class Glacier {
|
|
|
4648
5278
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4649
5279
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4650
5280
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4651
|
-
readonly
|
|
5281
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4652
5282
|
readonly teleporter: TeleporterService;
|
|
4653
5283
|
readonly webhooks: WebhooksService;
|
|
4654
5284
|
readonly request: BaseHttpRequest;
|
|
@@ -4672,6 +5302,70 @@ declare class ApiError extends Error {
|
|
|
4672
5302
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4673
5303
|
}
|
|
4674
5304
|
|
|
5305
|
+
type BadGateway = {
|
|
5306
|
+
/**
|
|
5307
|
+
* The error message describing the reason for the exception
|
|
5308
|
+
*/
|
|
5309
|
+
message: (string | Array<string>);
|
|
5310
|
+
/**
|
|
5311
|
+
* The HTTP status code of the response
|
|
5312
|
+
*/
|
|
5313
|
+
statusCode: number;
|
|
5314
|
+
/**
|
|
5315
|
+
* The type of error
|
|
5316
|
+
*/
|
|
5317
|
+
error: string;
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5320
|
+
type BadRequest = {
|
|
5321
|
+
/**
|
|
5322
|
+
* The error message describing the reason for the exception
|
|
5323
|
+
*/
|
|
5324
|
+
message: (string | Array<string>);
|
|
5325
|
+
/**
|
|
5326
|
+
* The HTTP status code of the response
|
|
5327
|
+
*/
|
|
5328
|
+
statusCode: number;
|
|
5329
|
+
/**
|
|
5330
|
+
* The type of error
|
|
5331
|
+
*/
|
|
5332
|
+
error: string;
|
|
5333
|
+
};
|
|
5334
|
+
|
|
5335
|
+
type DataListChainsResponse = {
|
|
5336
|
+
chains: Array<ChainInfo>;
|
|
5337
|
+
};
|
|
5338
|
+
|
|
5339
|
+
type Forbidden = {
|
|
5340
|
+
/**
|
|
5341
|
+
* The error message describing the reason for the exception
|
|
5342
|
+
*/
|
|
5343
|
+
message: (string | Array<string>);
|
|
5344
|
+
/**
|
|
5345
|
+
* The HTTP status code of the response
|
|
5346
|
+
*/
|
|
5347
|
+
statusCode: number;
|
|
5348
|
+
/**
|
|
5349
|
+
* The type of error
|
|
5350
|
+
*/
|
|
5351
|
+
error: string;
|
|
5352
|
+
};
|
|
5353
|
+
|
|
5354
|
+
type InternalServerError = {
|
|
5355
|
+
/**
|
|
5356
|
+
* The error message describing the reason for the exception
|
|
5357
|
+
*/
|
|
5358
|
+
message: (string | Array<string>);
|
|
5359
|
+
/**
|
|
5360
|
+
* The HTTP status code of the response
|
|
5361
|
+
*/
|
|
5362
|
+
statusCode: number;
|
|
5363
|
+
/**
|
|
5364
|
+
* The type of error
|
|
5365
|
+
*/
|
|
5366
|
+
error: string;
|
|
5367
|
+
};
|
|
5368
|
+
|
|
4675
5369
|
type NextPageToken = {
|
|
4676
5370
|
/**
|
|
4677
5371
|
* 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.
|
|
@@ -4679,4 +5373,64 @@ type NextPageToken = {
|
|
|
4679
5373
|
nextPageToken?: string;
|
|
4680
5374
|
};
|
|
4681
5375
|
|
|
4682
|
-
|
|
5376
|
+
type NotFound = {
|
|
5377
|
+
/**
|
|
5378
|
+
* The error message describing the reason for the exception
|
|
5379
|
+
*/
|
|
5380
|
+
message: (string | Array<string>);
|
|
5381
|
+
/**
|
|
5382
|
+
* The HTTP status code of the response
|
|
5383
|
+
*/
|
|
5384
|
+
statusCode: number;
|
|
5385
|
+
/**
|
|
5386
|
+
* The type of error
|
|
5387
|
+
*/
|
|
5388
|
+
error: string;
|
|
5389
|
+
};
|
|
5390
|
+
|
|
5391
|
+
type ServiceUnavailable = {
|
|
5392
|
+
/**
|
|
5393
|
+
* The error message describing the reason for the exception
|
|
5394
|
+
*/
|
|
5395
|
+
message: (string | Array<string>);
|
|
5396
|
+
/**
|
|
5397
|
+
* The HTTP status code of the response
|
|
5398
|
+
*/
|
|
5399
|
+
statusCode: number;
|
|
5400
|
+
/**
|
|
5401
|
+
* The type of error
|
|
5402
|
+
*/
|
|
5403
|
+
error: string;
|
|
5404
|
+
};
|
|
5405
|
+
|
|
5406
|
+
type TooManyRequests = {
|
|
5407
|
+
/**
|
|
5408
|
+
* The error message describing the reason for the exception
|
|
5409
|
+
*/
|
|
5410
|
+
message: (string | Array<string>);
|
|
5411
|
+
/**
|
|
5412
|
+
* The HTTP status code of the response
|
|
5413
|
+
*/
|
|
5414
|
+
statusCode: number;
|
|
5415
|
+
/**
|
|
5416
|
+
* The type of error
|
|
5417
|
+
*/
|
|
5418
|
+
error: string;
|
|
5419
|
+
};
|
|
5420
|
+
|
|
5421
|
+
type Unauthorized = {
|
|
5422
|
+
/**
|
|
5423
|
+
* The error message describing the reason for the exception
|
|
5424
|
+
*/
|
|
5425
|
+
message: (string | Array<string>);
|
|
5426
|
+
/**
|
|
5427
|
+
* The HTTP status code of the response
|
|
5428
|
+
*/
|
|
5429
|
+
statusCode: number;
|
|
5430
|
+
/**
|
|
5431
|
+
* The type of error
|
|
5432
|
+
*/
|
|
5433
|
+
error: string;
|
|
5434
|
+
};
|
|
5435
|
+
|
|
5436
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, 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 };
|