@avalabs/glacier-sdk 3.1.0-canary.efe2f7b.0 → 3.1.0-canary.fa5e61f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +930 -503
- 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/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/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/GetTransactionResponse.d.ts +5 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- 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/PrimaryNetwork.d.ts +2 -1
- package/esm/generated/models/PrimaryNetwork.js +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/RequestType.d.ts +2 -2
- package/esm/generated/models/RequestType.js +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -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 +14 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +2 -1
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +3 -1
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +154 -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 +20 -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 +6 -6
- 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 +18 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +9 -9
- 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/RpcService.d.ts +2 -2
- package/esm/generated/services/RpcService.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 +21 -3
- 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/services/GlacierApiUsageMetricsService.d.ts +0 -85
- package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,411 @@ 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
|
+
type RpcUsageMetricsValueAggregated = {
|
|
152
|
+
/**
|
|
153
|
+
* The total number of requests
|
|
154
|
+
*/
|
|
155
|
+
totalRequests: number;
|
|
156
|
+
/**
|
|
157
|
+
* The number of API credits used
|
|
158
|
+
*/
|
|
159
|
+
apiCreditsUsed: number;
|
|
160
|
+
/**
|
|
161
|
+
* The number of requests per second
|
|
162
|
+
*/
|
|
163
|
+
requestsPerSecond: number;
|
|
164
|
+
/**
|
|
165
|
+
* The success rate percentage
|
|
166
|
+
*/
|
|
167
|
+
successRatePercent: number;
|
|
168
|
+
/**
|
|
169
|
+
* The median response time in milliseconds
|
|
170
|
+
*/
|
|
171
|
+
medianResponseTimeMsecs: number;
|
|
172
|
+
/**
|
|
173
|
+
* The number of invalid requests
|
|
174
|
+
*/
|
|
175
|
+
invalidRequests: number;
|
|
176
|
+
/**
|
|
177
|
+
* Column name used for data aggregation
|
|
178
|
+
*/
|
|
179
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
180
|
+
/**
|
|
181
|
+
* The value of the column used for data aggregation
|
|
182
|
+
*/
|
|
183
|
+
groupValue?: (string | number);
|
|
184
|
+
};
|
|
185
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
186
|
+
/**
|
|
187
|
+
* Column name used for data aggregation
|
|
188
|
+
*/
|
|
189
|
+
enum groupedBy {
|
|
190
|
+
RPC_METHOD = "rpcMethod",
|
|
191
|
+
RESPONSE_CODE = "responseCode",
|
|
192
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
193
|
+
NONE = "None"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type RpcMetrics = {
|
|
198
|
+
/**
|
|
199
|
+
* The timestamp of the metrics value
|
|
200
|
+
*/
|
|
201
|
+
timestamp: number;
|
|
202
|
+
/**
|
|
203
|
+
* The metrics values for the timestamp
|
|
204
|
+
*/
|
|
205
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
type RpcUsageMetricsResponseDTO = {
|
|
209
|
+
/**
|
|
210
|
+
* Duration in which the metrics value is aggregated
|
|
211
|
+
*/
|
|
212
|
+
aggregateDuration: string;
|
|
213
|
+
/**
|
|
214
|
+
* ChainId for which the metrics are aggregated
|
|
215
|
+
*/
|
|
216
|
+
chainId: string;
|
|
217
|
+
/**
|
|
218
|
+
* Metrics values
|
|
219
|
+
*/
|
|
220
|
+
metrics: Array<RpcMetrics>;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare enum TimeIntervalGranularityExtended {
|
|
224
|
+
MINUTE = "minute",
|
|
225
|
+
HOURLY = "hourly",
|
|
226
|
+
DAILY = "daily",
|
|
227
|
+
WEEKLY = "weekly",
|
|
228
|
+
MONTHLY = "monthly"
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare enum UsageMetricsGroupByEnum {
|
|
232
|
+
REQUEST_PATH = "requestPath",
|
|
233
|
+
RESPONSE_CODE = "responseCode",
|
|
234
|
+
CHAIN_ID = "chainId",
|
|
235
|
+
API_KEY_ID = "apiKeyId",
|
|
236
|
+
REQUEST_TYPE = "requestType"
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type UsageMetricsValueDTO = {
|
|
240
|
+
/**
|
|
241
|
+
* Column name used for data aggregation
|
|
242
|
+
*/
|
|
243
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
244
|
+
/**
|
|
245
|
+
* The value of the column used for data aggregation
|
|
246
|
+
*/
|
|
247
|
+
groupValue?: (string | number);
|
|
248
|
+
/**
|
|
249
|
+
* The total number of requests
|
|
250
|
+
*/
|
|
251
|
+
totalRequests: number;
|
|
252
|
+
/**
|
|
253
|
+
* The number of requests per second
|
|
254
|
+
*/
|
|
255
|
+
requestsPerSecond: number;
|
|
256
|
+
/**
|
|
257
|
+
* The success rate percentage
|
|
258
|
+
*/
|
|
259
|
+
successRatePercent: number;
|
|
260
|
+
/**
|
|
261
|
+
* The median response time in milliseconds
|
|
262
|
+
*/
|
|
263
|
+
medianResponseTimeMsecs: number;
|
|
264
|
+
/**
|
|
265
|
+
* The number of invalid requests
|
|
266
|
+
*/
|
|
267
|
+
invalidRequests: number;
|
|
268
|
+
/**
|
|
269
|
+
* The number of API credits used
|
|
270
|
+
*/
|
|
271
|
+
apiCreditsUsed: number;
|
|
272
|
+
/**
|
|
273
|
+
* The number of API credits wasted on invalid requests
|
|
274
|
+
*/
|
|
275
|
+
apiCreditsWasted: number;
|
|
276
|
+
};
|
|
277
|
+
declare namespace UsageMetricsValueDTO {
|
|
278
|
+
/**
|
|
279
|
+
* Column name used for data aggregation
|
|
280
|
+
*/
|
|
281
|
+
enum groupedBy {
|
|
282
|
+
REQUEST_PATH = "requestPath",
|
|
283
|
+
RESPONSE_CODE = "responseCode",
|
|
284
|
+
CHAIN_ID = "chainId",
|
|
285
|
+
API_KEY_ID = "apiKeyId",
|
|
286
|
+
REQUEST_TYPE = "requestType",
|
|
287
|
+
NONE = "None"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
type Metric = {
|
|
292
|
+
/**
|
|
293
|
+
* The timestamp of the metrics value
|
|
294
|
+
*/
|
|
295
|
+
timestamp: number;
|
|
296
|
+
/**
|
|
297
|
+
* The metrics values for the timestamp
|
|
298
|
+
*/
|
|
299
|
+
values: Array<UsageMetricsValueDTO>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
type UsageMetricsResponseDTO = {
|
|
303
|
+
/**
|
|
304
|
+
* Duration in which the metrics value is aggregated
|
|
305
|
+
*/
|
|
306
|
+
aggregateDuration: string;
|
|
307
|
+
/**
|
|
308
|
+
* Org ID for which the metrics are aggregated
|
|
309
|
+
*/
|
|
310
|
+
orgId: string;
|
|
311
|
+
/**
|
|
312
|
+
* Metrics values
|
|
313
|
+
*/
|
|
314
|
+
metrics: Array<Metric>;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
declare class DataApiUsageMetricsService {
|
|
318
|
+
readonly httpRequest: BaseHttpRequest;
|
|
319
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
320
|
+
/**
|
|
321
|
+
* Get usage metrics for the Data API
|
|
322
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
323
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
324
|
+
* @throws ApiError
|
|
325
|
+
*/
|
|
326
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
327
|
+
/**
|
|
328
|
+
* Organization ID to fetch usage metrics for
|
|
329
|
+
*/
|
|
330
|
+
orgId?: string;
|
|
331
|
+
/**
|
|
332
|
+
* 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.
|
|
333
|
+
*/
|
|
334
|
+
startTimestamp?: number;
|
|
335
|
+
/**
|
|
336
|
+
* 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
|
|
337
|
+
*/
|
|
338
|
+
endTimestamp?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Time interval granularity for data aggregation
|
|
341
|
+
*/
|
|
342
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
343
|
+
/**
|
|
344
|
+
* Query param for the criterion used for grouping metrics
|
|
345
|
+
*/
|
|
346
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
347
|
+
/**
|
|
348
|
+
* Filter data by chain ID.
|
|
349
|
+
*/
|
|
350
|
+
chainId?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Filter data by request path.
|
|
353
|
+
*/
|
|
354
|
+
requestPath?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Filter data by response status code.
|
|
357
|
+
*/
|
|
358
|
+
responseCode?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Filter data by request type.
|
|
361
|
+
*/
|
|
362
|
+
requestType?: 'data' | 'rpc';
|
|
363
|
+
/**
|
|
364
|
+
* Filter data by API key ID.
|
|
365
|
+
*/
|
|
366
|
+
apiKeyId?: string;
|
|
367
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
|
+
/**
|
|
369
|
+
* Get logs for requests made by client
|
|
370
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
371
|
+
* @returns LogsResponseDTO Successful response
|
|
372
|
+
* @throws ApiError
|
|
373
|
+
*/
|
|
374
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
375
|
+
/**
|
|
376
|
+
* Organization ID to fetch usage metrics for
|
|
377
|
+
*/
|
|
378
|
+
orgId?: string;
|
|
379
|
+
/**
|
|
380
|
+
* 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.
|
|
381
|
+
*/
|
|
382
|
+
startTimestamp?: number;
|
|
383
|
+
/**
|
|
384
|
+
* 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
|
|
385
|
+
*/
|
|
386
|
+
endTimestamp?: number;
|
|
387
|
+
/**
|
|
388
|
+
* Filter data by chain ID.
|
|
389
|
+
*/
|
|
390
|
+
chainId?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Filter data by request path.
|
|
393
|
+
*/
|
|
394
|
+
requestPath?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Filter data by response status code.
|
|
397
|
+
*/
|
|
398
|
+
responseCode?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Filter data by request type.
|
|
401
|
+
*/
|
|
402
|
+
requestType?: 'data' | 'rpc';
|
|
403
|
+
/**
|
|
404
|
+
* Filter data by API key ID.
|
|
405
|
+
*/
|
|
406
|
+
apiKeyId?: string;
|
|
407
|
+
/**
|
|
408
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
|
+
*/
|
|
410
|
+
pageToken?: string;
|
|
411
|
+
/**
|
|
412
|
+
* The maximum number of items to return.
|
|
413
|
+
*/
|
|
414
|
+
pageSize?: number;
|
|
415
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
416
|
+
/**
|
|
417
|
+
* Get usage metrics for the Subnet RPC
|
|
418
|
+
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
420
|
+
* @throws ApiError
|
|
421
|
+
*/
|
|
422
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
|
+
/**
|
|
424
|
+
* Query param for setting time interval of data aggregation.
|
|
425
|
+
*/
|
|
426
|
+
timeInterval?: string;
|
|
427
|
+
/**
|
|
428
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
429
|
+
*/
|
|
430
|
+
startTimestamp?: number;
|
|
431
|
+
/**
|
|
432
|
+
* 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
|
|
433
|
+
*/
|
|
434
|
+
endTimestamp?: number;
|
|
435
|
+
/**
|
|
436
|
+
* Query param for the criterion used for grouping metrics
|
|
437
|
+
*/
|
|
438
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
439
|
+
/**
|
|
440
|
+
* Filter data by chain ID.
|
|
441
|
+
*/
|
|
442
|
+
chainId?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Filter data by request path.
|
|
445
|
+
*/
|
|
446
|
+
requestPath?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Filter data by response status code.
|
|
449
|
+
*/
|
|
450
|
+
responseCode?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Filter data by RPC method.
|
|
453
|
+
*/
|
|
454
|
+
rpcMethod?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Filter data by Rl Bypass API Token.
|
|
457
|
+
*/
|
|
458
|
+
rlBypassApiToken?: string;
|
|
459
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
460
|
+
}
|
|
461
|
+
|
|
57
462
|
declare class DefaultService {
|
|
58
463
|
readonly httpRequest: BaseHttpRequest;
|
|
59
464
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -331,12 +736,12 @@ declare class EvmBalancesService {
|
|
|
331
736
|
* Gets native token balance of a wallet address.
|
|
332
737
|
*
|
|
333
738
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
739
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
740
|
* @throws ApiError
|
|
336
741
|
*/
|
|
337
742
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
338
743
|
/**
|
|
339
|
-
* A supported evm chain id
|
|
744
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
745
|
*/
|
|
341
746
|
chainId: string;
|
|
342
747
|
/**
|
|
@@ -359,12 +764,12 @@ declare class EvmBalancesService {
|
|
|
359
764
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
765
|
*
|
|
361
766
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
767
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
768
|
* @throws ApiError
|
|
364
769
|
*/
|
|
365
770
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
366
771
|
/**
|
|
367
|
-
* A supported evm chain id
|
|
772
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
773
|
*/
|
|
369
774
|
chainId: string;
|
|
370
775
|
/**
|
|
@@ -401,12 +806,12 @@ declare class EvmBalancesService {
|
|
|
401
806
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
807
|
*
|
|
403
808
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
809
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
810
|
* @throws ApiError
|
|
406
811
|
*/
|
|
407
812
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
408
813
|
/**
|
|
409
|
-
* A supported evm chain id
|
|
814
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
410
815
|
*/
|
|
411
816
|
chainId: string;
|
|
412
817
|
/**
|
|
@@ -433,12 +838,12 @@ declare class EvmBalancesService {
|
|
|
433
838
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
839
|
*
|
|
435
840
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
841
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
842
|
* @throws ApiError
|
|
438
843
|
*/
|
|
439
844
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
440
845
|
/**
|
|
441
|
-
* A supported evm chain id
|
|
846
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
442
847
|
*/
|
|
443
848
|
chainId: string;
|
|
444
849
|
/**
|
|
@@ -467,12 +872,12 @@ declare class EvmBalancesService {
|
|
|
467
872
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
873
|
*
|
|
469
874
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
875
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
876
|
* @throws ApiError
|
|
472
877
|
*/
|
|
473
878
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
474
879
|
/**
|
|
475
|
-
* A supported evm chain id
|
|
880
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
476
881
|
*/
|
|
477
882
|
chainId: string;
|
|
478
883
|
/**
|
|
@@ -596,12 +1001,12 @@ declare class EvmBlocksService {
|
|
|
596
1001
|
/**
|
|
597
1002
|
* List latest blocks
|
|
598
1003
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
1004
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
1005
|
* @throws ApiError
|
|
601
1006
|
*/
|
|
602
1007
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
603
1008
|
/**
|
|
604
|
-
* A supported evm chain id
|
|
1009
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
1010
|
*/
|
|
606
1011
|
chainId: string;
|
|
607
1012
|
/**
|
|
@@ -616,12 +1021,12 @@ declare class EvmBlocksService {
|
|
|
616
1021
|
/**
|
|
617
1022
|
* Get block
|
|
618
1023
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
1024
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
1025
|
* @throws ApiError
|
|
621
1026
|
*/
|
|
622
1027
|
getBlock({ chainId, blockId, }: {
|
|
623
1028
|
/**
|
|
624
|
-
* A supported evm chain id
|
|
1029
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
1030
|
*/
|
|
626
1031
|
chainId: string;
|
|
627
1032
|
/**
|
|
@@ -631,6 +1036,12 @@ declare class EvmBlocksService {
|
|
|
631
1036
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
1037
|
}
|
|
633
1038
|
|
|
1039
|
+
declare enum ApiFeature {
|
|
1040
|
+
NFT_INDEXING = "nftIndexing",
|
|
1041
|
+
WEBHOOKS = "webhooks",
|
|
1042
|
+
TELEPORTER = "teleporter"
|
|
1043
|
+
}
|
|
1044
|
+
|
|
634
1045
|
/**
|
|
635
1046
|
* 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
1047
|
*/
|
|
@@ -686,14 +1097,9 @@ type GetChainResponse = {
|
|
|
686
1097
|
networkToken: NetworkToken;
|
|
687
1098
|
chainLogoUri?: string;
|
|
688
1099
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1100
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
1101
|
};
|
|
691
1102
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1103
|
type ChainInfo = {
|
|
698
1104
|
chainId: string;
|
|
699
1105
|
status: ChainStatus;
|
|
@@ -711,16 +1117,18 @@ type ChainInfo = {
|
|
|
711
1117
|
networkToken: NetworkToken;
|
|
712
1118
|
chainLogoUri?: string;
|
|
713
1119
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1120
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
715
1121
|
};
|
|
716
1122
|
|
|
717
1123
|
type ListChainsResponse = {
|
|
718
1124
|
chains: Array<ChainInfo>;
|
|
719
1125
|
};
|
|
720
1126
|
|
|
721
|
-
declare enum
|
|
1127
|
+
declare enum Network {
|
|
722
1128
|
MAINNET = "mainnet",
|
|
723
|
-
|
|
1129
|
+
FUJI = "fuji",
|
|
1130
|
+
TESTNET = "testnet",
|
|
1131
|
+
DEVNET = "devnet"
|
|
724
1132
|
}
|
|
725
1133
|
|
|
726
1134
|
declare class EvmChainsService {
|
|
@@ -729,31 +1137,43 @@ declare class EvmChainsService {
|
|
|
729
1137
|
/**
|
|
730
1138
|
* List chains
|
|
731
1139
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1140
|
+
* @returns ListChainsResponse Successful response
|
|
733
1141
|
* @throws ApiError
|
|
734
1142
|
*/
|
|
735
1143
|
supportedChains({ network, feature, }: {
|
|
736
1144
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1145
|
+
* Either mainnet or testnet/fuji.
|
|
738
1146
|
*/
|
|
739
|
-
network?:
|
|
1147
|
+
network?: Network;
|
|
740
1148
|
/**
|
|
741
1149
|
* Filter by feature.
|
|
742
1150
|
*/
|
|
743
|
-
feature?:
|
|
1151
|
+
feature?: ApiFeature;
|
|
744
1152
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1153
|
/**
|
|
746
1154
|
* Get chain information
|
|
747
1155
|
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
748
|
-
* @returns GetChainResponse
|
|
1156
|
+
* @returns GetChainResponse Successful response
|
|
749
1157
|
* @throws ApiError
|
|
750
1158
|
*/
|
|
751
1159
|
getChainInfo({ chainId, }: {
|
|
752
1160
|
/**
|
|
753
|
-
* A supported evm chain id
|
|
1161
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
1162
|
*/
|
|
755
1163
|
chainId: string;
|
|
756
1164
|
}): CancelablePromise<GetChainResponse>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Get chains for address
|
|
1167
|
+
* Gets the list of chains an address has interacted with.
|
|
1168
|
+
* @returns ListChainsResponse Successful response
|
|
1169
|
+
* @throws ApiError
|
|
1170
|
+
*/
|
|
1171
|
+
getAddressChains({ address, }: {
|
|
1172
|
+
/**
|
|
1173
|
+
* A wallet address.
|
|
1174
|
+
*/
|
|
1175
|
+
address: string;
|
|
1176
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
757
1177
|
}
|
|
758
1178
|
|
|
759
1179
|
type ImageAsset = {
|
|
@@ -1040,12 +1460,12 @@ declare class EvmContractsService {
|
|
|
1040
1460
|
/**
|
|
1041
1461
|
* Get contract metadata
|
|
1042
1462
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1463
|
+
* @returns any Successful response
|
|
1044
1464
|
* @throws ApiError
|
|
1045
1465
|
*/
|
|
1046
1466
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1467
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1468
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1469
|
*/
|
|
1050
1470
|
chainId: string;
|
|
1051
1471
|
/**
|
|
@@ -1056,12 +1476,12 @@ declare class EvmContractsService {
|
|
|
1056
1476
|
/**
|
|
1057
1477
|
* Update contract information
|
|
1058
1478
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1479
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1480
|
* @throws ApiError
|
|
1061
1481
|
*/
|
|
1062
1482
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1483
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1484
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1485
|
*/
|
|
1066
1486
|
chainId: string;
|
|
1067
1487
|
/**
|
|
@@ -1309,6 +1729,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1729
|
historicalPrice?: Money;
|
|
1310
1730
|
};
|
|
1311
1731
|
|
|
1732
|
+
declare enum TransactionDirectionType {
|
|
1733
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1734
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
type TeleporterMessageInfo = {
|
|
1738
|
+
teleporterMessageId: string;
|
|
1739
|
+
direction: TransactionDirectionType;
|
|
1740
|
+
/**
|
|
1741
|
+
* chain id of the source chain. valid only for destination transactions
|
|
1742
|
+
*/
|
|
1743
|
+
sourceChainId?: Record<string, any>;
|
|
1744
|
+
/**
|
|
1745
|
+
* chain id of the destination chain. valid only for source transactions
|
|
1746
|
+
*/
|
|
1747
|
+
destinationChainId?: Record<string, any>;
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1312
1750
|
type GetTransactionResponse = {
|
|
1313
1751
|
/**
|
|
1314
1752
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +1766,10 @@ type GetTransactionResponse = {
|
|
|
1328
1766
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
1767
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
1768
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1769
|
+
/**
|
|
1770
|
+
* Corresponding teleporter message info if available.
|
|
1771
|
+
*/
|
|
1772
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
1773
|
};
|
|
1332
1774
|
|
|
1333
1775
|
type ListContractsResponse = {
|
|
@@ -1578,146 +2020,44 @@ declare enum TransactionStatus {
|
|
|
1578
2020
|
SUCCESS = "success"
|
|
1579
2021
|
}
|
|
1580
2022
|
|
|
1581
|
-
declare class EvmTransactionsService {
|
|
1582
|
-
readonly httpRequest: BaseHttpRequest;
|
|
1583
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1584
|
-
/**
|
|
1585
|
-
* Get deployment transaction
|
|
1586
|
-
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
1588
|
-
* @throws ApiError
|
|
1589
|
-
*/
|
|
1590
|
-
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1591
|
-
/**
|
|
1592
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
|
-
*/
|
|
1594
|
-
chainId: string;
|
|
1595
|
-
/**
|
|
1596
|
-
* Contract address on the relevant chain.
|
|
1597
|
-
*/
|
|
1598
|
-
address: string;
|
|
1599
|
-
/**
|
|
1600
|
-
* The currency that return values should use. Defaults to USD.
|
|
1601
|
-
*/
|
|
1602
|
-
currency?: CurrencyCode;
|
|
1603
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
1604
|
-
/**
|
|
1605
|
-
* List deployed contracts
|
|
1606
|
-
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
1608
|
-
* @throws ApiError
|
|
1609
|
-
*/
|
|
1610
|
-
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1611
|
-
/**
|
|
1612
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
|
-
*/
|
|
1614
|
-
chainId: string;
|
|
1615
|
-
/**
|
|
1616
|
-
* A wallet address.
|
|
1617
|
-
*/
|
|
1618
|
-
address: string;
|
|
1619
|
-
/**
|
|
1620
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1621
|
-
*/
|
|
1622
|
-
pageToken?: string;
|
|
1623
|
-
/**
|
|
1624
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1625
|
-
*/
|
|
1626
|
-
pageSize?: number;
|
|
1627
|
-
}): CancelablePromise<ListContractsResponse>;
|
|
1628
|
-
/**
|
|
1629
|
-
* List ERC transfers
|
|
1630
|
-
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
1632
|
-
* @throws ApiError
|
|
1633
|
-
*/
|
|
1634
|
-
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
|
-
/**
|
|
1636
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
|
-
*/
|
|
1638
|
-
chainId: string;
|
|
1639
|
-
/**
|
|
1640
|
-
* A wallet address.
|
|
1641
|
-
*/
|
|
1642
|
-
address: string;
|
|
1643
|
-
/**
|
|
1644
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1645
|
-
*/
|
|
1646
|
-
startBlock?: number;
|
|
1647
|
-
/**
|
|
1648
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1649
|
-
*/
|
|
1650
|
-
endBlock?: number;
|
|
1651
|
-
/**
|
|
1652
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1653
|
-
*/
|
|
1654
|
-
pageToken?: string;
|
|
1655
|
-
/**
|
|
1656
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1657
|
-
*/
|
|
1658
|
-
pageSize?: number;
|
|
1659
|
-
}): CancelablePromise<ListTransfersResponse>;
|
|
1660
|
-
/**
|
|
1661
|
-
* List transactions
|
|
1662
|
-
* 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
|
-
*
|
|
1664
|
-
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
1666
|
-
* @throws ApiError
|
|
1667
|
-
*/
|
|
1668
|
-
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1669
|
-
/**
|
|
1670
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
|
-
*/
|
|
1672
|
-
chainId: string;
|
|
1673
|
-
/**
|
|
1674
|
-
* A wallet address.
|
|
1675
|
-
*/
|
|
1676
|
-
address: string;
|
|
1677
|
-
/**
|
|
1678
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1679
|
-
*/
|
|
1680
|
-
pageToken?: string;
|
|
1681
|
-
/**
|
|
1682
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1683
|
-
*/
|
|
1684
|
-
pageSize?: number;
|
|
2023
|
+
declare class EvmTransactionsService {
|
|
2024
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2025
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2026
|
+
/**
|
|
2027
|
+
* Get deployment transaction
|
|
2028
|
+
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
2029
|
+
* @returns GetTransactionResponse Successful response
|
|
2030
|
+
* @throws ApiError
|
|
2031
|
+
*/
|
|
2032
|
+
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1685
2033
|
/**
|
|
1686
|
-
*
|
|
2034
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1687
2035
|
*/
|
|
1688
|
-
|
|
2036
|
+
chainId: string;
|
|
1689
2037
|
/**
|
|
1690
|
-
*
|
|
2038
|
+
* Contract address on the relevant chain.
|
|
1691
2039
|
*/
|
|
1692
|
-
|
|
2040
|
+
address: string;
|
|
1693
2041
|
/**
|
|
1694
|
-
* The
|
|
2042
|
+
* The currency that return values should use. Defaults to USD.
|
|
1695
2043
|
*/
|
|
1696
|
-
|
|
1697
|
-
}): CancelablePromise<
|
|
2044
|
+
currency?: CurrencyCode;
|
|
2045
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
1698
2046
|
/**
|
|
1699
|
-
* List
|
|
1700
|
-
* Lists
|
|
1701
|
-
* @returns
|
|
2047
|
+
* List deployed contracts
|
|
2048
|
+
* Lists all contracts deployed by the given address.
|
|
2049
|
+
* @returns ListContractsResponse Successful response
|
|
1702
2050
|
* @throws ApiError
|
|
1703
2051
|
*/
|
|
1704
|
-
|
|
2052
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1705
2053
|
/**
|
|
1706
|
-
* A supported evm chain id
|
|
2054
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
2055
|
*/
|
|
1708
2056
|
chainId: string;
|
|
1709
2057
|
/**
|
|
1710
2058
|
* A wallet address.
|
|
1711
2059
|
*/
|
|
1712
2060
|
address: string;
|
|
1713
|
-
/**
|
|
1714
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1715
|
-
*/
|
|
1716
|
-
startBlock?: number;
|
|
1717
|
-
/**
|
|
1718
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1719
|
-
*/
|
|
1720
|
-
endBlock?: number;
|
|
1721
2061
|
/**
|
|
1722
2062
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1723
2063
|
*/
|
|
@@ -1726,16 +2066,16 @@ declare class EvmTransactionsService {
|
|
|
1726
2066
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1727
2067
|
*/
|
|
1728
2068
|
pageSize?: number;
|
|
1729
|
-
}): CancelablePromise<
|
|
2069
|
+
}): CancelablePromise<ListContractsResponse>;
|
|
1730
2070
|
/**
|
|
1731
|
-
* List ERC
|
|
1732
|
-
* Lists ERC
|
|
1733
|
-
* @returns
|
|
2071
|
+
* List ERC transfers
|
|
2072
|
+
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
2073
|
+
* @returns ListTransfersResponse Successful response
|
|
1734
2074
|
* @throws ApiError
|
|
1735
2075
|
*/
|
|
1736
|
-
|
|
2076
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
2077
|
/**
|
|
1738
|
-
* A supported evm chain id
|
|
2078
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
2079
|
*/
|
|
1740
2080
|
chainId: string;
|
|
1741
2081
|
/**
|
|
@@ -1758,30 +2098,24 @@ declare class EvmTransactionsService {
|
|
|
1758
2098
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1759
2099
|
*/
|
|
1760
2100
|
pageSize?: number;
|
|
1761
|
-
}): CancelablePromise<
|
|
2101
|
+
}): CancelablePromise<ListTransfersResponse>;
|
|
1762
2102
|
/**
|
|
1763
|
-
* List
|
|
1764
|
-
*
|
|
1765
|
-
*
|
|
2103
|
+
* List transactions
|
|
2104
|
+
* 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.
|
|
2105
|
+
*
|
|
2106
|
+
* Filterable by block ranges.
|
|
2107
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1766
2108
|
* @throws ApiError
|
|
1767
2109
|
*/
|
|
1768
|
-
|
|
2110
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1769
2111
|
/**
|
|
1770
|
-
* A supported evm chain id
|
|
2112
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
2113
|
*/
|
|
1772
2114
|
chainId: string;
|
|
1773
2115
|
/**
|
|
1774
2116
|
* A wallet address.
|
|
1775
2117
|
*/
|
|
1776
2118
|
address: string;
|
|
1777
|
-
/**
|
|
1778
|
-
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1779
|
-
*/
|
|
1780
|
-
startBlock?: number;
|
|
1781
|
-
/**
|
|
1782
|
-
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1783
|
-
*/
|
|
1784
|
-
endBlock?: number;
|
|
1785
2119
|
/**
|
|
1786
2120
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1787
2121
|
*/
|
|
@@ -1790,22 +2124,6 @@ declare class EvmTransactionsService {
|
|
|
1790
2124
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1791
2125
|
*/
|
|
1792
2126
|
pageSize?: number;
|
|
1793
|
-
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1794
|
-
/**
|
|
1795
|
-
* List ERC-1155 transfers
|
|
1796
|
-
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
1798
|
-
* @throws ApiError
|
|
1799
|
-
*/
|
|
1800
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1801
|
-
/**
|
|
1802
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
|
-
*/
|
|
1804
|
-
chainId: string;
|
|
1805
|
-
/**
|
|
1806
|
-
* A wallet address.
|
|
1807
|
-
*/
|
|
1808
|
-
address: string;
|
|
1809
2127
|
/**
|
|
1810
2128
|
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1811
2129
|
*/
|
|
@@ -1815,25 +2133,19 @@ declare class EvmTransactionsService {
|
|
|
1815
2133
|
*/
|
|
1816
2134
|
endBlock?: number;
|
|
1817
2135
|
/**
|
|
1818
|
-
*
|
|
1819
|
-
*/
|
|
1820
|
-
pageToken?: string;
|
|
1821
|
-
/**
|
|
1822
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2136
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
1823
2137
|
*/
|
|
1824
|
-
|
|
1825
|
-
}): CancelablePromise<
|
|
2138
|
+
sortOrder?: SortOrder;
|
|
2139
|
+
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
1826
2140
|
/**
|
|
1827
|
-
* List
|
|
1828
|
-
*
|
|
1829
|
-
*
|
|
1830
|
-
* 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
|
|
2141
|
+
* List native transactions
|
|
2142
|
+
* Lists native transactions for an address. Filterable by block range.
|
|
2143
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1832
2144
|
* @throws ApiError
|
|
1833
2145
|
*/
|
|
1834
|
-
|
|
2146
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1835
2147
|
/**
|
|
1836
|
-
* A supported evm chain id
|
|
2148
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
2149
|
*/
|
|
1838
2150
|
chainId: string;
|
|
1839
2151
|
/**
|
|
@@ -1856,264 +2168,193 @@ declare class EvmTransactionsService {
|
|
|
1856
2168
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
2169
|
*/
|
|
1858
2170
|
pageSize?: number;
|
|
1859
|
-
}): CancelablePromise<
|
|
2171
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1860
2172
|
/**
|
|
1861
|
-
*
|
|
1862
|
-
*
|
|
1863
|
-
* @returns
|
|
2173
|
+
* List ERC-20 transfers
|
|
2174
|
+
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
2175
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1864
2176
|
* @throws ApiError
|
|
1865
2177
|
*/
|
|
1866
|
-
|
|
2178
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1867
2179
|
/**
|
|
1868
|
-
* A supported evm chain id
|
|
2180
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
2181
|
*/
|
|
1870
2182
|
chainId: string;
|
|
1871
2183
|
/**
|
|
1872
|
-
* A
|
|
1873
|
-
*/
|
|
1874
|
-
txHash: string;
|
|
1875
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
1876
|
-
/**
|
|
1877
|
-
* List transactions for a block
|
|
1878
|
-
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
1880
|
-
* @throws ApiError
|
|
1881
|
-
*/
|
|
1882
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1883
|
-
/**
|
|
1884
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2184
|
+
* A wallet address.
|
|
1885
2185
|
*/
|
|
1886
|
-
|
|
2186
|
+
address: string;
|
|
1887
2187
|
/**
|
|
1888
|
-
*
|
|
2188
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1889
2189
|
*/
|
|
1890
|
-
|
|
1891
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1892
|
-
/**
|
|
1893
|
-
* List latest transactions
|
|
1894
|
-
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
1896
|
-
* @throws ApiError
|
|
1897
|
-
*/
|
|
1898
|
-
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2190
|
+
startBlock?: number;
|
|
1899
2191
|
/**
|
|
1900
|
-
*
|
|
2192
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1901
2193
|
*/
|
|
1902
|
-
|
|
2194
|
+
endBlock?: number;
|
|
1903
2195
|
/**
|
|
1904
2196
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1905
2197
|
*/
|
|
1906
|
-
pageToken?: string;
|
|
1907
|
-
/**
|
|
1908
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1909
|
-
*/
|
|
1910
|
-
pageSize?: number;
|
|
1911
|
-
|
|
1912
|
-
* A status filter for listed transactions.
|
|
1913
|
-
*/
|
|
1914
|
-
status?: TransactionStatus;
|
|
1915
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
type LogsFormatMetadata = {
|
|
1919
|
-
/**
|
|
1920
|
-
* The IP address of the client that made the request.
|
|
1921
|
-
*/
|
|
1922
|
-
ipAddress: string;
|
|
1923
|
-
/**
|
|
1924
|
-
* The host for the request made by the client.
|
|
1925
|
-
*/
|
|
1926
|
-
host: string;
|
|
1927
|
-
/**
|
|
1928
|
-
* The user agent of the client that made the request.
|
|
1929
|
-
*/
|
|
1930
|
-
userAgent: string;
|
|
1931
|
-
};
|
|
1932
|
-
|
|
1933
|
-
/**
|
|
1934
|
-
* The type of request made by the client.
|
|
1935
|
-
*/
|
|
1936
|
-
declare enum RequestType {
|
|
1937
|
-
GLACIER_API_REQUEST = "Glacier API Request",
|
|
1938
|
-
GLACIER_RPC_REQUEST = "Glacier RPC Request"
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
type LogsFormat = {
|
|
1942
|
-
/**
|
|
1943
|
-
* The organization id of the request.
|
|
1944
|
-
*/
|
|
1945
|
-
orgId: string;
|
|
1946
|
-
/**
|
|
1947
|
-
* The unique log id of the request.
|
|
1948
|
-
*/
|
|
1949
|
-
logId: string;
|
|
1950
|
-
/**
|
|
1951
|
-
* The timestamp of the request.
|
|
1952
|
-
*/
|
|
1953
|
-
eventTimestamp: number;
|
|
1954
|
-
/**
|
|
1955
|
-
* The apiKey used to make the request.
|
|
1956
|
-
*/
|
|
1957
|
-
apiKeyId: string;
|
|
1958
|
-
/**
|
|
1959
|
-
* The alias of the apiKey used to make the request.
|
|
1960
|
-
*/
|
|
1961
|
-
apiKeyAlias: string;
|
|
1962
|
-
/**
|
|
1963
|
-
* The region of the host for the request made by the client.
|
|
1964
|
-
*/
|
|
1965
|
-
hostRegion: string;
|
|
1966
|
-
requestType: RequestType;
|
|
1967
|
-
/**
|
|
1968
|
-
* The path of the request made by the client.
|
|
1969
|
-
*/
|
|
1970
|
-
requestPath: string;
|
|
1971
|
-
/**
|
|
1972
|
-
* The number of API credits consumed by the request.
|
|
1973
|
-
*/
|
|
1974
|
-
apiCreditsConsumed: number;
|
|
1975
|
-
/**
|
|
1976
|
-
* The duration of the request in milliseconds.
|
|
1977
|
-
*/
|
|
1978
|
-
requestDurationMsecs: number;
|
|
1979
|
-
/**
|
|
1980
|
-
* The response code of the request.
|
|
1981
|
-
*/
|
|
1982
|
-
responseCode: number;
|
|
1983
|
-
/**
|
|
1984
|
-
* The chain id of the request.
|
|
1985
|
-
*/
|
|
1986
|
-
chainId?: number;
|
|
1987
|
-
/**
|
|
1988
|
-
* The rpc method of the request.
|
|
1989
|
-
*/
|
|
1990
|
-
rpcMethod?: string;
|
|
1991
|
-
/**
|
|
1992
|
-
* The metadata of the request.
|
|
1993
|
-
*/
|
|
1994
|
-
metadata: LogsFormatMetadata;
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
type LogsResponseDTO = {
|
|
1998
|
-
/**
|
|
1999
|
-
* 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.
|
|
2000
|
-
*/
|
|
2001
|
-
nextPageToken?: string;
|
|
2002
|
-
/**
|
|
2003
|
-
* The organization id of the request.
|
|
2004
|
-
*/
|
|
2005
|
-
orgId: string;
|
|
2006
|
-
/**
|
|
2007
|
-
* An array of logs representing the requests made by clients.
|
|
2008
|
-
*/
|
|
2009
|
-
logs: Array<LogsFormat>;
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
|
-
declare enum TimeIntervalGranularityExtended {
|
|
2013
|
-
MINUTE = "minute",
|
|
2014
|
-
HOURLY = "hourly",
|
|
2015
|
-
DAILY = "daily",
|
|
2016
|
-
WEEKLY = "weekly",
|
|
2017
|
-
MONTHLY = "monthly"
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
declare enum UsageMetricsGroupByEnum {
|
|
2021
|
-
REQUEST_PATH = "requestPath",
|
|
2022
|
-
RESPONSE_CODE = "responseCode",
|
|
2023
|
-
CHAIN_ID = "chainId",
|
|
2024
|
-
API_KEY_ID = "apiKeyId"
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
type UsageMetricsResponseDTO = {
|
|
2028
|
-
/**
|
|
2029
|
-
* Duration in which the metrics value is aggregated
|
|
2030
|
-
*/
|
|
2031
|
-
aggregateDuration: string;
|
|
2032
|
-
/**
|
|
2033
|
-
* Org ID for which the metrics are aggregated
|
|
2034
|
-
*/
|
|
2035
|
-
orgId: string;
|
|
2198
|
+
pageToken?: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2201
|
+
*/
|
|
2202
|
+
pageSize?: number;
|
|
2203
|
+
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
2036
2204
|
/**
|
|
2037
|
-
*
|
|
2205
|
+
* List ERC-721 transfers
|
|
2206
|
+
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
2207
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
2208
|
+
* @throws ApiError
|
|
2038
2209
|
*/
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2210
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2211
|
+
/**
|
|
2212
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2213
|
+
*/
|
|
2214
|
+
chainId: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* A wallet address.
|
|
2217
|
+
*/
|
|
2218
|
+
address: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2221
|
+
*/
|
|
2222
|
+
startBlock?: number;
|
|
2223
|
+
/**
|
|
2224
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2225
|
+
*/
|
|
2226
|
+
endBlock?: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2229
|
+
*/
|
|
2230
|
+
pageToken?: string;
|
|
2231
|
+
/**
|
|
2232
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2233
|
+
*/
|
|
2234
|
+
pageSize?: number;
|
|
2235
|
+
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
2045
2236
|
/**
|
|
2046
|
-
*
|
|
2047
|
-
*
|
|
2048
|
-
* @returns
|
|
2237
|
+
* List ERC-1155 transfers
|
|
2238
|
+
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
2239
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
2049
2240
|
* @throws ApiError
|
|
2050
2241
|
*/
|
|
2051
|
-
|
|
2242
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2052
2243
|
/**
|
|
2053
|
-
*
|
|
2244
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2054
2245
|
*/
|
|
2055
|
-
|
|
2246
|
+
chainId: string;
|
|
2056
2247
|
/**
|
|
2057
|
-
*
|
|
2248
|
+
* A wallet address.
|
|
2058
2249
|
*/
|
|
2059
|
-
|
|
2250
|
+
address: string;
|
|
2060
2251
|
/**
|
|
2061
|
-
*
|
|
2252
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2062
2253
|
*/
|
|
2063
|
-
|
|
2254
|
+
startBlock?: number;
|
|
2064
2255
|
/**
|
|
2065
|
-
*
|
|
2256
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2066
2257
|
*/
|
|
2067
|
-
|
|
2258
|
+
endBlock?: number;
|
|
2068
2259
|
/**
|
|
2069
|
-
*
|
|
2260
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2070
2261
|
*/
|
|
2071
|
-
|
|
2262
|
+
pageToken?: string;
|
|
2072
2263
|
/**
|
|
2073
|
-
*
|
|
2264
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2074
2265
|
*/
|
|
2075
|
-
|
|
2266
|
+
pageSize?: number;
|
|
2267
|
+
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
2268
|
+
/**
|
|
2269
|
+
* List internal transactions
|
|
2270
|
+
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2271
|
+
*
|
|
2272
|
+
* 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.
|
|
2273
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
2274
|
+
* @throws ApiError
|
|
2275
|
+
*/
|
|
2276
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2076
2277
|
/**
|
|
2077
|
-
*
|
|
2278
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2078
2279
|
*/
|
|
2079
|
-
|
|
2280
|
+
chainId: string;
|
|
2080
2281
|
/**
|
|
2081
|
-
*
|
|
2282
|
+
* A wallet address.
|
|
2082
2283
|
*/
|
|
2083
|
-
|
|
2284
|
+
address: string;
|
|
2084
2285
|
/**
|
|
2085
|
-
*
|
|
2286
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2086
2287
|
*/
|
|
2087
|
-
|
|
2088
|
-
|
|
2288
|
+
startBlock?: number;
|
|
2289
|
+
/**
|
|
2290
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2291
|
+
*/
|
|
2292
|
+
endBlock?: number;
|
|
2293
|
+
/**
|
|
2294
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2295
|
+
*/
|
|
2296
|
+
pageToken?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2299
|
+
*/
|
|
2300
|
+
pageSize?: number;
|
|
2301
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2089
2302
|
/**
|
|
2090
|
-
* Get
|
|
2091
|
-
* Gets
|
|
2092
|
-
* @returns
|
|
2303
|
+
* Get transaction
|
|
2304
|
+
* Gets the details of a single transaction.
|
|
2305
|
+
* @returns GetTransactionResponse Successful response
|
|
2093
2306
|
* @throws ApiError
|
|
2094
2307
|
*/
|
|
2095
|
-
|
|
2308
|
+
getTransaction({ chainId, txHash, }: {
|
|
2096
2309
|
/**
|
|
2097
|
-
*
|
|
2310
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2098
2311
|
*/
|
|
2099
|
-
|
|
2312
|
+
chainId: string;
|
|
2100
2313
|
/**
|
|
2101
|
-
*
|
|
2314
|
+
* A transaction hash.
|
|
2102
2315
|
*/
|
|
2103
|
-
|
|
2316
|
+
txHash: string;
|
|
2317
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
2318
|
+
/**
|
|
2319
|
+
* List transactions for a block
|
|
2320
|
+
* Lists the transactions that occured in a given block.
|
|
2321
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
|
+
* @throws ApiError
|
|
2323
|
+
*/
|
|
2324
|
+
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2104
2325
|
/**
|
|
2105
|
-
*
|
|
2326
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2106
2327
|
*/
|
|
2107
|
-
|
|
2328
|
+
chainId: string;
|
|
2329
|
+
/**
|
|
2330
|
+
* A block identifier which is either a block number or the block hash.
|
|
2331
|
+
*/
|
|
2332
|
+
blockId: string;
|
|
2333
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2334
|
+
/**
|
|
2335
|
+
* List latest transactions
|
|
2336
|
+
* Lists the latest transactions. Filterable by status.
|
|
2337
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2338
|
+
* @throws ApiError
|
|
2339
|
+
*/
|
|
2340
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2341
|
+
/**
|
|
2342
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2343
|
+
*/
|
|
2344
|
+
chainId: string;
|
|
2108
2345
|
/**
|
|
2109
2346
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2110
2347
|
*/
|
|
2111
2348
|
pageToken?: string;
|
|
2112
2349
|
/**
|
|
2113
|
-
* The maximum number of items to return.
|
|
2350
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2114
2351
|
*/
|
|
2115
2352
|
pageSize?: number;
|
|
2116
|
-
|
|
2353
|
+
/**
|
|
2354
|
+
* A status filter for listed transactions.
|
|
2355
|
+
*/
|
|
2356
|
+
status?: TransactionStatus;
|
|
2357
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2117
2358
|
}
|
|
2118
2359
|
|
|
2119
2360
|
declare class HealthCheckService {
|
|
@@ -2124,7 +2365,7 @@ declare class HealthCheckService {
|
|
|
2124
2365
|
* @returns any The Health Check is successful
|
|
2125
2366
|
* @throws ApiError
|
|
2126
2367
|
*/
|
|
2127
|
-
|
|
2368
|
+
dataHealthCheck(): CancelablePromise<{
|
|
2128
2369
|
status?: string;
|
|
2129
2370
|
info?: Record<string, Record<string, string>> | null;
|
|
2130
2371
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -2146,12 +2387,12 @@ declare class NfTsService {
|
|
|
2146
2387
|
/**
|
|
2147
2388
|
* Reindex NFT metadata
|
|
2148
2389
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2149
|
-
* @returns any
|
|
2390
|
+
* @returns any Successful response
|
|
2150
2391
|
* @throws ApiError
|
|
2151
2392
|
*/
|
|
2152
2393
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2153
2394
|
/**
|
|
2154
|
-
* A supported evm chain id
|
|
2395
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2155
2396
|
*/
|
|
2156
2397
|
chainId: string;
|
|
2157
2398
|
/**
|
|
@@ -2166,12 +2407,12 @@ declare class NfTsService {
|
|
|
2166
2407
|
/**
|
|
2167
2408
|
* List tokens
|
|
2168
2409
|
* Lists tokens for an NFT contract.
|
|
2169
|
-
* @returns ListNftTokens
|
|
2410
|
+
* @returns ListNftTokens Successful response
|
|
2170
2411
|
* @throws ApiError
|
|
2171
2412
|
*/
|
|
2172
2413
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2173
2414
|
/**
|
|
2174
|
-
* A supported evm chain id
|
|
2415
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2175
2416
|
*/
|
|
2176
2417
|
chainId: string;
|
|
2177
2418
|
/**
|
|
@@ -2190,12 +2431,12 @@ declare class NfTsService {
|
|
|
2190
2431
|
/**
|
|
2191
2432
|
* Get token details
|
|
2192
2433
|
* Gets token details for a specific token of an NFT contract.
|
|
2193
|
-
* @returns any
|
|
2434
|
+
* @returns any Successful response
|
|
2194
2435
|
* @throws ApiError
|
|
2195
2436
|
*/
|
|
2196
2437
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2197
2438
|
/**
|
|
2198
|
-
* A supported evm chain id
|
|
2439
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2199
2440
|
*/
|
|
2200
2441
|
chainId: string;
|
|
2201
2442
|
/**
|
|
@@ -2220,16 +2461,16 @@ declare enum EVMOperationType {
|
|
|
2220
2461
|
|
|
2221
2462
|
type CreateEvmTransactionExportRequest = {
|
|
2222
2463
|
type: EVMOperationType;
|
|
2223
|
-
firstDate
|
|
2224
|
-
lastDate
|
|
2464
|
+
firstDate?: string;
|
|
2465
|
+
lastDate?: string;
|
|
2225
2466
|
/**
|
|
2226
2467
|
* @deprecated
|
|
2227
2468
|
*/
|
|
2228
|
-
startDate
|
|
2469
|
+
startDate?: string;
|
|
2229
2470
|
/**
|
|
2230
2471
|
* @deprecated
|
|
2231
2472
|
*/
|
|
2232
|
-
endDate
|
|
2473
|
+
endDate?: string;
|
|
2233
2474
|
options: EvmNetworkOptions;
|
|
2234
2475
|
};
|
|
2235
2476
|
|
|
@@ -2242,21 +2483,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2242
2483
|
type PrimaryNetworkOptions = {
|
|
2243
2484
|
addresses?: Array<string>;
|
|
2244
2485
|
cChainEvmAddresses?: Array<string>;
|
|
2245
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2486
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2246
2487
|
};
|
|
2247
2488
|
|
|
2248
2489
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2249
2490
|
type: PrimaryNetworkOperationType;
|
|
2250
|
-
firstDate
|
|
2251
|
-
lastDate
|
|
2491
|
+
firstDate?: string;
|
|
2492
|
+
lastDate?: string;
|
|
2252
2493
|
/**
|
|
2253
2494
|
* @deprecated
|
|
2254
2495
|
*/
|
|
2255
|
-
startDate
|
|
2496
|
+
startDate?: string;
|
|
2256
2497
|
/**
|
|
2257
2498
|
* @deprecated
|
|
2258
2499
|
*/
|
|
2259
|
-
endDate
|
|
2500
|
+
endDate?: string;
|
|
2260
2501
|
options: PrimaryNetworkOptions;
|
|
2261
2502
|
};
|
|
2262
2503
|
|
|
@@ -2308,7 +2549,7 @@ declare class OperationsService {
|
|
|
2308
2549
|
/**
|
|
2309
2550
|
* Get operation
|
|
2310
2551
|
* Gets operation details for the given operation id.
|
|
2311
|
-
* @returns OperationStatusResponse
|
|
2552
|
+
* @returns OperationStatusResponse Successful response
|
|
2312
2553
|
* @throws ApiError
|
|
2313
2554
|
*/
|
|
2314
2555
|
getOperationResult({ operationId, }: {
|
|
@@ -2322,7 +2563,7 @@ declare class OperationsService {
|
|
|
2322
2563
|
* Trigger a transaction export operation with given parameters.
|
|
2323
2564
|
*
|
|
2324
2565
|
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2325
|
-
* @returns OperationStatusResponse
|
|
2566
|
+
* @returns OperationStatusResponse Successful response
|
|
2326
2567
|
* @throws ApiError
|
|
2327
2568
|
*/
|
|
2328
2569
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2334,8 +2575,10 @@ declare enum BlockchainIds {
|
|
|
2334
2575
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2335
2576
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2336
2577
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2578
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2337
2579
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2338
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2580
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2581
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2339
2582
|
}
|
|
2340
2583
|
|
|
2341
2584
|
type ChainAddressChainIdMap = {
|
|
@@ -2584,6 +2827,7 @@ type CompletedValidatorDetails = {
|
|
|
2584
2827
|
*/
|
|
2585
2828
|
blsCredentials?: BlsCredentials;
|
|
2586
2829
|
delegatorCount: number;
|
|
2830
|
+
amountDelegated?: string;
|
|
2587
2831
|
rewards: Rewards;
|
|
2588
2832
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2589
2833
|
};
|
|
@@ -2646,11 +2890,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2646
2890
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2647
2891
|
};
|
|
2648
2892
|
|
|
2649
|
-
declare enum Network {
|
|
2650
|
-
MAINNET = "mainnet",
|
|
2651
|
-
FUJI = "fuji"
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
2893
|
declare enum SortByOption {
|
|
2655
2894
|
BLOCK_INDEX = "blockIndex",
|
|
2656
2895
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2710,6 +2949,7 @@ type XChainAssetDetails = {
|
|
|
2710
2949
|
declare enum XChainId {
|
|
2711
2950
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2712
2951
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2952
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2713
2953
|
X_CHAIN = "x-chain"
|
|
2714
2954
|
}
|
|
2715
2955
|
|
|
@@ -2719,7 +2959,7 @@ declare class PrimaryNetworkService {
|
|
|
2719
2959
|
/**
|
|
2720
2960
|
* Get asset details
|
|
2721
2961
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2722
|
-
* @returns XChainAssetDetails
|
|
2962
|
+
* @returns XChainAssetDetails Successful response
|
|
2723
2963
|
* @throws ApiError
|
|
2724
2964
|
*/
|
|
2725
2965
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2728,7 +2968,7 @@ declare class PrimaryNetworkService {
|
|
|
2728
2968
|
*/
|
|
2729
2969
|
blockchainId: XChainId;
|
|
2730
2970
|
/**
|
|
2731
|
-
* Either mainnet or
|
|
2971
|
+
* Either mainnet or testnet/fuji.
|
|
2732
2972
|
*/
|
|
2733
2973
|
network: Network;
|
|
2734
2974
|
/**
|
|
@@ -2739,7 +2979,7 @@ declare class PrimaryNetworkService {
|
|
|
2739
2979
|
/**
|
|
2740
2980
|
* Get chain interactions for addresses
|
|
2741
2981
|
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
2742
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
2982
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2743
2983
|
* @throws ApiError
|
|
2744
2984
|
*/
|
|
2745
2985
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2748,31 +2988,31 @@ declare class PrimaryNetworkService {
|
|
|
2748
2988
|
*/
|
|
2749
2989
|
addresses: string;
|
|
2750
2990
|
/**
|
|
2751
|
-
* Either mainnet or
|
|
2991
|
+
* Either mainnet or testnet/fuji.
|
|
2752
2992
|
*/
|
|
2753
2993
|
network: Network;
|
|
2754
2994
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2755
2995
|
/**
|
|
2756
2996
|
* Get network details
|
|
2757
2997
|
* Gets network details such as validator and delegator stats.
|
|
2758
|
-
* @returns GetNetworkDetailsResponse
|
|
2998
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2759
2999
|
* @throws ApiError
|
|
2760
3000
|
*/
|
|
2761
3001
|
getNetworkDetails({ network, }: {
|
|
2762
3002
|
/**
|
|
2763
|
-
* Either mainnet or
|
|
3003
|
+
* Either mainnet or testnet/fuji.
|
|
2764
3004
|
*/
|
|
2765
3005
|
network: Network;
|
|
2766
3006
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2767
3007
|
/**
|
|
2768
3008
|
* List blockchains
|
|
2769
3009
|
* Lists all blockchains registered on the network.
|
|
2770
|
-
* @returns ListBlockchainsResponse
|
|
3010
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2771
3011
|
* @throws ApiError
|
|
2772
3012
|
*/
|
|
2773
3013
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2774
3014
|
/**
|
|
2775
|
-
* Either mainnet or
|
|
3015
|
+
* Either mainnet or testnet/fuji.
|
|
2776
3016
|
*/
|
|
2777
3017
|
network: Network;
|
|
2778
3018
|
/**
|
|
@@ -2791,12 +3031,12 @@ declare class PrimaryNetworkService {
|
|
|
2791
3031
|
/**
|
|
2792
3032
|
* List subnets
|
|
2793
3033
|
* Lists all subnets registered on the network.
|
|
2794
|
-
* @returns ListSubnetsResponse
|
|
3034
|
+
* @returns ListSubnetsResponse Successful response
|
|
2795
3035
|
* @throws ApiError
|
|
2796
3036
|
*/
|
|
2797
3037
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2798
3038
|
/**
|
|
2799
|
-
* Either mainnet or
|
|
3039
|
+
* Either mainnet or testnet/fuji.
|
|
2800
3040
|
*/
|
|
2801
3041
|
network: Network;
|
|
2802
3042
|
/**
|
|
@@ -2815,12 +3055,12 @@ declare class PrimaryNetworkService {
|
|
|
2815
3055
|
/**
|
|
2816
3056
|
* Get Subnet details by ID
|
|
2817
3057
|
* Get details of the Subnet registered on the network.
|
|
2818
|
-
* @returns Subnet
|
|
3058
|
+
* @returns Subnet Successful response
|
|
2819
3059
|
* @throws ApiError
|
|
2820
3060
|
*/
|
|
2821
3061
|
getSubnetById({ network, subnetId, }: {
|
|
2822
3062
|
/**
|
|
2823
|
-
* Either mainnet or
|
|
3063
|
+
* Either mainnet or testnet/fuji.
|
|
2824
3064
|
*/
|
|
2825
3065
|
network: Network;
|
|
2826
3066
|
/**
|
|
@@ -2831,12 +3071,12 @@ declare class PrimaryNetworkService {
|
|
|
2831
3071
|
/**
|
|
2832
3072
|
* List validators
|
|
2833
3073
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2834
|
-
* @returns ListValidatorDetailsResponse
|
|
3074
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2835
3075
|
* @throws ApiError
|
|
2836
3076
|
*/
|
|
2837
3077
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2838
3078
|
/**
|
|
2839
|
-
* Either mainnet or
|
|
3079
|
+
* Either mainnet or testnet/fuji.
|
|
2840
3080
|
*/
|
|
2841
3081
|
network: Network;
|
|
2842
3082
|
/**
|
|
@@ -2905,12 +3145,12 @@ declare class PrimaryNetworkService {
|
|
|
2905
3145
|
/**
|
|
2906
3146
|
* Get single validator details
|
|
2907
3147
|
* List validator details for a single validator. Filterable by validation status.
|
|
2908
|
-
* @returns ListValidatorDetailsResponse
|
|
3148
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2909
3149
|
* @throws ApiError
|
|
2910
3150
|
*/
|
|
2911
3151
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2912
3152
|
/**
|
|
2913
|
-
* Either mainnet or
|
|
3153
|
+
* Either mainnet or testnet/fuji.
|
|
2914
3154
|
*/
|
|
2915
3155
|
network: Network;
|
|
2916
3156
|
/**
|
|
@@ -2937,12 +3177,12 @@ declare class PrimaryNetworkService {
|
|
|
2937
3177
|
/**
|
|
2938
3178
|
* List delegators
|
|
2939
3179
|
* Lists details for delegators.
|
|
2940
|
-
* @returns ListDelegatorDetailsResponse
|
|
3180
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2941
3181
|
* @throws ApiError
|
|
2942
3182
|
*/
|
|
2943
3183
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2944
3184
|
/**
|
|
2945
|
-
* Either mainnet or
|
|
3185
|
+
* Either mainnet or testnet/fuji.
|
|
2946
3186
|
*/
|
|
2947
3187
|
network: Network;
|
|
2948
3188
|
/**
|
|
@@ -2976,8 +3216,10 @@ declare enum BlockchainId {
|
|
|
2976
3216
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2977
3217
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2978
3218
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2979
3220
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2980
3221
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
2981
3223
|
P_CHAIN = "p-chain",
|
|
2982
3224
|
X_CHAIN = "x-chain",
|
|
2983
3225
|
C_CHAIN = "c-chain"
|
|
@@ -3016,7 +3258,8 @@ type CChainAtomicBalances = {
|
|
|
3016
3258
|
|
|
3017
3259
|
declare enum PrimaryNetwork {
|
|
3018
3260
|
MAINNET = "mainnet",
|
|
3019
|
-
FUJI = "fuji"
|
|
3261
|
+
FUJI = "fuji",
|
|
3262
|
+
DEVNET = "devnet"
|
|
3020
3263
|
}
|
|
3021
3264
|
|
|
3022
3265
|
declare enum PrimaryNetworkChainName {
|
|
@@ -3179,7 +3422,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3179
3422
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
3180
3423
|
*
|
|
3181
3424
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
3182
|
-
* @returns any
|
|
3425
|
+
* @returns any Successful response
|
|
3183
3426
|
* @throws ApiError
|
|
3184
3427
|
*/
|
|
3185
3428
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3188,7 +3431,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3188
3431
|
*/
|
|
3189
3432
|
blockchainId: BlockchainId;
|
|
3190
3433
|
/**
|
|
3191
|
-
* Either mainnet or
|
|
3434
|
+
* Either mainnet or testnet/fuji.
|
|
3192
3435
|
*/
|
|
3193
3436
|
network: Network;
|
|
3194
3437
|
/**
|
|
@@ -3251,7 +3494,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3251
3494
|
/**
|
|
3252
3495
|
* Get block
|
|
3253
3496
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3254
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3497
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3255
3498
|
* @throws ApiError
|
|
3256
3499
|
*/
|
|
3257
3500
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3260,7 +3503,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3260
3503
|
*/
|
|
3261
3504
|
blockchainId: BlockchainId;
|
|
3262
3505
|
/**
|
|
3263
|
-
* Either mainnet or
|
|
3506
|
+
* Either mainnet or testnet/fuji.
|
|
3264
3507
|
*/
|
|
3265
3508
|
network: Network;
|
|
3266
3509
|
/**
|
|
@@ -3271,7 +3514,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3271
3514
|
/**
|
|
3272
3515
|
* List blocks proposed by node
|
|
3273
3516
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3274
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3517
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3275
3518
|
* @throws ApiError
|
|
3276
3519
|
*/
|
|
3277
3520
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3280,7 +3523,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3280
3523
|
*/
|
|
3281
3524
|
blockchainId: BlockchainId;
|
|
3282
3525
|
/**
|
|
3283
|
-
* Either mainnet or
|
|
3526
|
+
* Either mainnet or testnet/fuji.
|
|
3284
3527
|
*/
|
|
3285
3528
|
network: Network;
|
|
3286
3529
|
/**
|
|
@@ -3299,7 +3542,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3299
3542
|
/**
|
|
3300
3543
|
* List latest blocks
|
|
3301
3544
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3302
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3545
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3303
3546
|
* @throws ApiError
|
|
3304
3547
|
*/
|
|
3305
3548
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3308,7 +3551,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3308
3551
|
*/
|
|
3309
3552
|
blockchainId: BlockchainId;
|
|
3310
3553
|
/**
|
|
3311
|
-
* Either mainnet or
|
|
3554
|
+
* Either mainnet or testnet/fuji.
|
|
3312
3555
|
*/
|
|
3313
3556
|
network: Network;
|
|
3314
3557
|
/**
|
|
@@ -3437,12 +3680,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3437
3680
|
/**
|
|
3438
3681
|
* List pending rewards
|
|
3439
3682
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3440
|
-
* @returns ListPendingRewardsResponse
|
|
3683
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3441
3684
|
* @throws ApiError
|
|
3442
3685
|
*/
|
|
3443
3686
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3444
3687
|
/**
|
|
3445
|
-
* Either mainnet or
|
|
3688
|
+
* Either mainnet or testnet/fuji.
|
|
3446
3689
|
*/
|
|
3447
3690
|
network: Network;
|
|
3448
3691
|
/**
|
|
@@ -3469,12 +3712,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3469
3712
|
/**
|
|
3470
3713
|
* List historical rewards
|
|
3471
3714
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3472
|
-
* @returns ListHistoricalRewardsResponse
|
|
3715
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3473
3716
|
* @throws ApiError
|
|
3474
3717
|
*/
|
|
3475
3718
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3476
3719
|
/**
|
|
3477
|
-
* Either mainnet or
|
|
3720
|
+
* Either mainnet or testnet/fuji.
|
|
3478
3721
|
*/
|
|
3479
3722
|
network: Network;
|
|
3480
3723
|
/**
|
|
@@ -4056,7 +4299,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4056
4299
|
/**
|
|
4057
4300
|
* Get transaction
|
|
4058
4301
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
4059
|
-
* @returns any
|
|
4302
|
+
* @returns any Successful response
|
|
4060
4303
|
* @throws ApiError
|
|
4061
4304
|
*/
|
|
4062
4305
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -4065,7 +4308,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4065
4308
|
*/
|
|
4066
4309
|
blockchainId: BlockchainId;
|
|
4067
4310
|
/**
|
|
4068
|
-
* Either mainnet or
|
|
4311
|
+
* Either mainnet or testnet/fuji.
|
|
4069
4312
|
*/
|
|
4070
4313
|
network: Network;
|
|
4071
4314
|
/**
|
|
@@ -4080,7 +4323,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4080
4323
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4081
4324
|
*
|
|
4082
4325
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4083
|
-
* @returns any
|
|
4326
|
+
* @returns any Successful response
|
|
4084
4327
|
* @throws ApiError
|
|
4085
4328
|
*/
|
|
4086
4329
|
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4089,11 +4332,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4089
4332
|
*/
|
|
4090
4333
|
blockchainId: BlockchainId;
|
|
4091
4334
|
/**
|
|
4092
|
-
* Either mainnet or
|
|
4335
|
+
* Either mainnet or testnet/fuji.
|
|
4093
4336
|
*/
|
|
4094
4337
|
network: Network;
|
|
4095
4338
|
/**
|
|
4096
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
4339
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4097
4340
|
*/
|
|
4098
4341
|
addresses?: string;
|
|
4099
4342
|
/**
|
|
@@ -4124,7 +4367,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4124
4367
|
/**
|
|
4125
4368
|
* List staking transactions
|
|
4126
4369
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4127
|
-
* @returns ListPChainTransactionsResponse
|
|
4370
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
4128
4371
|
* @throws ApiError
|
|
4129
4372
|
*/
|
|
4130
4373
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4133,7 +4376,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4133
4376
|
*/
|
|
4134
4377
|
blockchainId: PChainId;
|
|
4135
4378
|
/**
|
|
4136
|
-
* Either mainnet or
|
|
4379
|
+
* Either mainnet or testnet/fuji.
|
|
4137
4380
|
*/
|
|
4138
4381
|
network: Network;
|
|
4139
4382
|
/**
|
|
@@ -4168,7 +4411,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4168
4411
|
/**
|
|
4169
4412
|
* List asset transactions
|
|
4170
4413
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
4171
|
-
* @returns ListXChainTransactionsResponse
|
|
4414
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
4172
4415
|
* @throws ApiError
|
|
4173
4416
|
*/
|
|
4174
4417
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4177,7 +4420,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4177
4420
|
*/
|
|
4178
4421
|
blockchainId: XChainId;
|
|
4179
4422
|
/**
|
|
4180
|
-
* Either mainnet or
|
|
4423
|
+
* Either mainnet or testnet/fuji.
|
|
4181
4424
|
*/
|
|
4182
4425
|
network: Network;
|
|
4183
4426
|
/**
|
|
@@ -4231,7 +4474,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4231
4474
|
/**
|
|
4232
4475
|
* List UTXOs
|
|
4233
4476
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4234
|
-
* @returns any
|
|
4477
|
+
* @returns any Successful response
|
|
4235
4478
|
* @throws ApiError
|
|
4236
4479
|
*/
|
|
4237
4480
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4240,7 +4483,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4240
4483
|
*/
|
|
4241
4484
|
blockchainId: BlockchainId;
|
|
4242
4485
|
/**
|
|
4243
|
-
* Either mainnet or
|
|
4486
|
+
* Either mainnet or testnet/fuji.
|
|
4244
4487
|
*/
|
|
4245
4488
|
network: Network;
|
|
4246
4489
|
/**
|
|
@@ -4296,7 +4539,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4296
4539
|
/**
|
|
4297
4540
|
* List vertices
|
|
4298
4541
|
* Lists latest vertices on the X-Chain.
|
|
4299
|
-
* @returns ListXChainVerticesResponse
|
|
4542
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4300
4543
|
* @throws ApiError
|
|
4301
4544
|
*/
|
|
4302
4545
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4305,7 +4548,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4305
4548
|
*/
|
|
4306
4549
|
blockchainId: XChainId;
|
|
4307
4550
|
/**
|
|
4308
|
-
* Either mainnet or
|
|
4551
|
+
* Either mainnet or testnet/fuji.
|
|
4309
4552
|
*/
|
|
4310
4553
|
network: Network;
|
|
4311
4554
|
/**
|
|
@@ -4320,7 +4563,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4320
4563
|
/**
|
|
4321
4564
|
* Get vertex
|
|
4322
4565
|
* Gets a single vertex on the X-Chain.
|
|
4323
|
-
* @returns XChainVertex
|
|
4566
|
+
* @returns XChainVertex Successful response
|
|
4324
4567
|
* @throws ApiError
|
|
4325
4568
|
*/
|
|
4326
4569
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4333,14 +4576,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4333
4576
|
*/
|
|
4334
4577
|
blockchainId: XChainId;
|
|
4335
4578
|
/**
|
|
4336
|
-
* Either mainnet or
|
|
4579
|
+
* Either mainnet or testnet/fuji.
|
|
4337
4580
|
*/
|
|
4338
4581
|
network: Network;
|
|
4339
4582
|
}): CancelablePromise<XChainVertex>;
|
|
4340
4583
|
/**
|
|
4341
4584
|
* List vertices by height
|
|
4342
4585
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4343
|
-
* @returns ListXChainVerticesResponse
|
|
4586
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4344
4587
|
* @throws ApiError
|
|
4345
4588
|
*/
|
|
4346
4589
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4353,7 +4596,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4353
4596
|
*/
|
|
4354
4597
|
blockchainId: XChainId;
|
|
4355
4598
|
/**
|
|
4356
|
-
* Either mainnet or
|
|
4599
|
+
* Either mainnet or testnet/fuji.
|
|
4357
4600
|
*/
|
|
4358
4601
|
network: Network;
|
|
4359
4602
|
/**
|
|
@@ -4402,18 +4645,49 @@ declare class RpcService {
|
|
|
4402
4645
|
/**
|
|
4403
4646
|
* Calls JSON-RPC method
|
|
4404
4647
|
* Calls JSON-RPC method.
|
|
4405
|
-
* @returns any
|
|
4648
|
+
* @returns any Successful response
|
|
4406
4649
|
* @throws ApiError
|
|
4407
4650
|
*/
|
|
4408
4651
|
rpc({ chainId, requestBody, }: {
|
|
4409
4652
|
/**
|
|
4410
|
-
* A supported evm chain id
|
|
4653
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4411
4654
|
*/
|
|
4412
4655
|
chainId: string;
|
|
4413
4656
|
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4414
4657
|
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4415
4658
|
}
|
|
4416
4659
|
|
|
4660
|
+
type SignatureAggregationResponse = {
|
|
4661
|
+
signedMessage: string;
|
|
4662
|
+
};
|
|
4663
|
+
|
|
4664
|
+
type SignatureAggregatorRequest = {
|
|
4665
|
+
/**
|
|
4666
|
+
* Must be defined if justification is not defined
|
|
4667
|
+
*/
|
|
4668
|
+
message?: string;
|
|
4669
|
+
/**
|
|
4670
|
+
* Must be defined if message is not defined
|
|
4671
|
+
*/
|
|
4672
|
+
justification?: string;
|
|
4673
|
+
signingSubnetId?: string;
|
|
4674
|
+
quorumPercentage?: number;
|
|
4675
|
+
};
|
|
4676
|
+
|
|
4677
|
+
declare class SignatureAggregatorService {
|
|
4678
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4679
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4680
|
+
/**
|
|
4681
|
+
* Aggregate Signatures
|
|
4682
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4683
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4684
|
+
* @throws ApiError
|
|
4685
|
+
*/
|
|
4686
|
+
aggregateSignatures({ requestBody, }: {
|
|
4687
|
+
requestBody: SignatureAggregatorRequest;
|
|
4688
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4689
|
+
}
|
|
4690
|
+
|
|
4417
4691
|
type TeleporterDestinationTransaction = {
|
|
4418
4692
|
txHash: string;
|
|
4419
4693
|
timestamp: number;
|
|
@@ -4554,7 +4828,7 @@ declare class TeleporterService {
|
|
|
4554
4828
|
/**
|
|
4555
4829
|
* Get a teleporter message
|
|
4556
4830
|
* Gets a teleporter message by message ID.
|
|
4557
|
-
* @returns any
|
|
4831
|
+
* @returns any Successful response
|
|
4558
4832
|
* @throws ApiError
|
|
4559
4833
|
*/
|
|
4560
4834
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4566,10 +4840,10 @@ declare class TeleporterService {
|
|
|
4566
4840
|
/**
|
|
4567
4841
|
* List teleporter messages
|
|
4568
4842
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4569
|
-
* @returns ListTeleporterMessagesResponse
|
|
4843
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4570
4844
|
* @throws ApiError
|
|
4571
4845
|
*/
|
|
4572
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4846
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
4573
4847
|
/**
|
|
4574
4848
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4575
4849
|
*/
|
|
@@ -4586,6 +4860,10 @@ declare class TeleporterService {
|
|
|
4586
4860
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4587
4861
|
*/
|
|
4588
4862
|
destinationBlockchainId?: string;
|
|
4863
|
+
/**
|
|
4864
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
4865
|
+
*/
|
|
4866
|
+
blockchainId?: string;
|
|
4589
4867
|
/**
|
|
4590
4868
|
* The address of the recipient of the teleporter message.
|
|
4591
4869
|
*/
|
|
@@ -4595,9 +4873,33 @@ declare class TeleporterService {
|
|
|
4595
4873
|
*/
|
|
4596
4874
|
from?: string;
|
|
4597
4875
|
/**
|
|
4598
|
-
* mainnet or testnet.
|
|
4876
|
+
* Either mainnet or testnet/fuji.
|
|
4877
|
+
*/
|
|
4878
|
+
network?: Network;
|
|
4879
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4880
|
+
/**
|
|
4881
|
+
* List teleporter messages by address
|
|
4882
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
4883
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4884
|
+
* @throws ApiError
|
|
4885
|
+
*/
|
|
4886
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
4887
|
+
/**
|
|
4888
|
+
* An EVM address.
|
|
4889
|
+
*/
|
|
4890
|
+
address: string;
|
|
4891
|
+
/**
|
|
4892
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4893
|
+
*/
|
|
4894
|
+
pageToken?: string;
|
|
4895
|
+
/**
|
|
4896
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4897
|
+
*/
|
|
4898
|
+
pageSize?: number;
|
|
4899
|
+
/**
|
|
4900
|
+
* Either mainnet or testnet/fuji.
|
|
4599
4901
|
*/
|
|
4600
|
-
network?:
|
|
4902
|
+
network?: Network;
|
|
4601
4903
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4602
4904
|
}
|
|
4603
4905
|
|
|
@@ -4605,7 +4907,7 @@ type AddressesChangeRequest = {
|
|
|
4605
4907
|
/**
|
|
4606
4908
|
* Ethereum address(es) for the address_activity event type
|
|
4607
4909
|
*/
|
|
4608
|
-
addresses: Array<
|
|
4910
|
+
addresses: Array<string>;
|
|
4609
4911
|
};
|
|
4610
4912
|
|
|
4611
4913
|
type AddressActivityMetadata = {
|
|
@@ -4706,7 +5008,7 @@ declare class WebhooksService {
|
|
|
4706
5008
|
/**
|
|
4707
5009
|
* Create a webhook
|
|
4708
5010
|
* Create a new webhook.
|
|
4709
|
-
* @returns WebhookResponse
|
|
5011
|
+
* @returns WebhookResponse Successful response
|
|
4710
5012
|
* @throws ApiError
|
|
4711
5013
|
*/
|
|
4712
5014
|
createWebhook({ requestBody, }: {
|
|
@@ -4715,7 +5017,7 @@ declare class WebhooksService {
|
|
|
4715
5017
|
/**
|
|
4716
5018
|
* List webhooks
|
|
4717
5019
|
* Lists webhooks for the user.
|
|
4718
|
-
* @returns ListWebhooksResponse
|
|
5020
|
+
* @returns ListWebhooksResponse Successful response
|
|
4719
5021
|
* @throws ApiError
|
|
4720
5022
|
*/
|
|
4721
5023
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4735,7 +5037,7 @@ declare class WebhooksService {
|
|
|
4735
5037
|
/**
|
|
4736
5038
|
* Get a webhook by ID
|
|
4737
5039
|
* Retrieves a webhook by ID.
|
|
4738
|
-
* @returns WebhookResponse
|
|
5040
|
+
* @returns WebhookResponse Successful response
|
|
4739
5041
|
* @throws ApiError
|
|
4740
5042
|
*/
|
|
4741
5043
|
getWebhook({ id, }: {
|
|
@@ -4747,7 +5049,7 @@ declare class WebhooksService {
|
|
|
4747
5049
|
/**
|
|
4748
5050
|
* Deactivate a webhook
|
|
4749
5051
|
* Deactivates a webhook by ID.
|
|
4750
|
-
* @returns WebhookResponse
|
|
5052
|
+
* @returns WebhookResponse Successful response
|
|
4751
5053
|
* @throws ApiError
|
|
4752
5054
|
*/
|
|
4753
5055
|
deactivateWebhook({ id, }: {
|
|
@@ -4759,7 +5061,7 @@ declare class WebhooksService {
|
|
|
4759
5061
|
/**
|
|
4760
5062
|
* Update a webhook
|
|
4761
5063
|
* Updates an existing webhook.
|
|
4762
|
-
* @returns WebhookResponse
|
|
5064
|
+
* @returns WebhookResponse Successful response
|
|
4763
5065
|
* @throws ApiError
|
|
4764
5066
|
*/
|
|
4765
5067
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4772,21 +5074,21 @@ declare class WebhooksService {
|
|
|
4772
5074
|
/**
|
|
4773
5075
|
* Generate a shared secret
|
|
4774
5076
|
* Generates a new shared secret.
|
|
4775
|
-
* @returns SharedSecretsResponse
|
|
5077
|
+
* @returns SharedSecretsResponse Successful response
|
|
4776
5078
|
* @throws ApiError
|
|
4777
5079
|
*/
|
|
4778
5080
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4779
5081
|
/**
|
|
4780
5082
|
* Get a shared secret
|
|
4781
5083
|
* Get a previously generated shared secret.
|
|
4782
|
-
* @returns SharedSecretsResponse
|
|
5084
|
+
* @returns SharedSecretsResponse Successful response
|
|
4783
5085
|
* @throws ApiError
|
|
4784
5086
|
*/
|
|
4785
5087
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4786
5088
|
/**
|
|
4787
5089
|
* Add addresses to webhook
|
|
4788
5090
|
* Add addresses to webhook.
|
|
4789
|
-
* @returns WebhookResponse
|
|
5091
|
+
* @returns WebhookResponse Successful response
|
|
4790
5092
|
* @throws ApiError
|
|
4791
5093
|
*/
|
|
4792
5094
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4799,7 +5101,7 @@ declare class WebhooksService {
|
|
|
4799
5101
|
/**
|
|
4800
5102
|
* Remove addresses from webhook
|
|
4801
5103
|
* Remove addresses from webhook.
|
|
4802
|
-
* @returns WebhookResponse
|
|
5104
|
+
* @returns WebhookResponse Successful response
|
|
4803
5105
|
* @throws ApiError
|
|
4804
5106
|
*/
|
|
4805
5107
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4812,7 +5114,7 @@ declare class WebhooksService {
|
|
|
4812
5114
|
/**
|
|
4813
5115
|
* List adresses by webhook
|
|
4814
5116
|
* List adresses by webhook.
|
|
4815
|
-
* @returns ListWebhookAddressesResponse
|
|
5117
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4816
5118
|
* @throws ApiError
|
|
4817
5119
|
*/
|
|
4818
5120
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4833,13 +5135,13 @@ declare class WebhooksService {
|
|
|
4833
5135
|
|
|
4834
5136
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4835
5137
|
declare class Glacier {
|
|
5138
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4836
5139
|
readonly default: DefaultService;
|
|
4837
5140
|
readonly evmBalances: EvmBalancesService;
|
|
4838
5141
|
readonly evmBlocks: EvmBlocksService;
|
|
4839
5142
|
readonly evmChains: EvmChainsService;
|
|
4840
5143
|
readonly evmContracts: EvmContractsService;
|
|
4841
5144
|
readonly evmTransactions: EvmTransactionsService;
|
|
4842
|
-
readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
|
|
4843
5145
|
readonly healthCheck: HealthCheckService;
|
|
4844
5146
|
readonly nfTs: NfTsService;
|
|
4845
5147
|
readonly operations: OperationsService;
|
|
@@ -4851,6 +5153,7 @@ declare class Glacier {
|
|
|
4851
5153
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4852
5154
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4853
5155
|
readonly rpc: RpcService;
|
|
5156
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4854
5157
|
readonly teleporter: TeleporterService;
|
|
4855
5158
|
readonly webhooks: WebhooksService;
|
|
4856
5159
|
readonly request: BaseHttpRequest;
|
|
@@ -4874,6 +5177,70 @@ declare class ApiError extends Error {
|
|
|
4874
5177
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4875
5178
|
}
|
|
4876
5179
|
|
|
5180
|
+
type BadGateway = {
|
|
5181
|
+
/**
|
|
5182
|
+
* The error message describing the reason for the exception
|
|
5183
|
+
*/
|
|
5184
|
+
message: (string | Array<string>);
|
|
5185
|
+
/**
|
|
5186
|
+
* The HTTP status code of the response
|
|
5187
|
+
*/
|
|
5188
|
+
statusCode: number;
|
|
5189
|
+
/**
|
|
5190
|
+
* The type of error
|
|
5191
|
+
*/
|
|
5192
|
+
error: string;
|
|
5193
|
+
};
|
|
5194
|
+
|
|
5195
|
+
type BadRequest = {
|
|
5196
|
+
/**
|
|
5197
|
+
* The error message describing the reason for the exception
|
|
5198
|
+
*/
|
|
5199
|
+
message: (string | Array<string>);
|
|
5200
|
+
/**
|
|
5201
|
+
* The HTTP status code of the response
|
|
5202
|
+
*/
|
|
5203
|
+
statusCode: number;
|
|
5204
|
+
/**
|
|
5205
|
+
* The type of error
|
|
5206
|
+
*/
|
|
5207
|
+
error: string;
|
|
5208
|
+
};
|
|
5209
|
+
|
|
5210
|
+
type DataListChainsResponse = {
|
|
5211
|
+
chains: Array<ChainInfo>;
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
type Forbidden = {
|
|
5215
|
+
/**
|
|
5216
|
+
* The error message describing the reason for the exception
|
|
5217
|
+
*/
|
|
5218
|
+
message: (string | Array<string>);
|
|
5219
|
+
/**
|
|
5220
|
+
* The HTTP status code of the response
|
|
5221
|
+
*/
|
|
5222
|
+
statusCode: number;
|
|
5223
|
+
/**
|
|
5224
|
+
* The type of error
|
|
5225
|
+
*/
|
|
5226
|
+
error: string;
|
|
5227
|
+
};
|
|
5228
|
+
|
|
5229
|
+
type InternalServerError = {
|
|
5230
|
+
/**
|
|
5231
|
+
* The error message describing the reason for the exception
|
|
5232
|
+
*/
|
|
5233
|
+
message: (string | Array<string>);
|
|
5234
|
+
/**
|
|
5235
|
+
* The HTTP status code of the response
|
|
5236
|
+
*/
|
|
5237
|
+
statusCode: number;
|
|
5238
|
+
/**
|
|
5239
|
+
* The type of error
|
|
5240
|
+
*/
|
|
5241
|
+
error: string;
|
|
5242
|
+
};
|
|
5243
|
+
|
|
4877
5244
|
type NextPageToken = {
|
|
4878
5245
|
/**
|
|
4879
5246
|
* 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.
|
|
@@ -4881,4 +5248,64 @@ type NextPageToken = {
|
|
|
4881
5248
|
nextPageToken?: string;
|
|
4882
5249
|
};
|
|
4883
5250
|
|
|
4884
|
-
|
|
5251
|
+
type NotFound = {
|
|
5252
|
+
/**
|
|
5253
|
+
* The error message describing the reason for the exception
|
|
5254
|
+
*/
|
|
5255
|
+
message: (string | Array<string>);
|
|
5256
|
+
/**
|
|
5257
|
+
* The HTTP status code of the response
|
|
5258
|
+
*/
|
|
5259
|
+
statusCode: number;
|
|
5260
|
+
/**
|
|
5261
|
+
* The type of error
|
|
5262
|
+
*/
|
|
5263
|
+
error: string;
|
|
5264
|
+
};
|
|
5265
|
+
|
|
5266
|
+
type ServiceUnavailable = {
|
|
5267
|
+
/**
|
|
5268
|
+
* The error message describing the reason for the exception
|
|
5269
|
+
*/
|
|
5270
|
+
message: (string | Array<string>);
|
|
5271
|
+
/**
|
|
5272
|
+
* The HTTP status code of the response
|
|
5273
|
+
*/
|
|
5274
|
+
statusCode: number;
|
|
5275
|
+
/**
|
|
5276
|
+
* The type of error
|
|
5277
|
+
*/
|
|
5278
|
+
error: string;
|
|
5279
|
+
};
|
|
5280
|
+
|
|
5281
|
+
type TooManyRequests = {
|
|
5282
|
+
/**
|
|
5283
|
+
* The error message describing the reason for the exception
|
|
5284
|
+
*/
|
|
5285
|
+
message: (string | Array<string>);
|
|
5286
|
+
/**
|
|
5287
|
+
* The HTTP status code of the response
|
|
5288
|
+
*/
|
|
5289
|
+
statusCode: number;
|
|
5290
|
+
/**
|
|
5291
|
+
* The type of error
|
|
5292
|
+
*/
|
|
5293
|
+
error: string;
|
|
5294
|
+
};
|
|
5295
|
+
|
|
5296
|
+
type Unauthorized = {
|
|
5297
|
+
/**
|
|
5298
|
+
* The error message describing the reason for the exception
|
|
5299
|
+
*/
|
|
5300
|
+
message: (string | Array<string>);
|
|
5301
|
+
/**
|
|
5302
|
+
* The HTTP status code of the response
|
|
5303
|
+
*/
|
|
5304
|
+
statusCode: number;
|
|
5305
|
+
/**
|
|
5306
|
+
* The type of error
|
|
5307
|
+
*/
|
|
5308
|
+
error: string;
|
|
5309
|
+
};
|
|
5310
|
+
|
|
5311
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, 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 };
|