@avalabs/glacier-sdk 3.1.0-canary.9fc81c6.0 → 3.1.0-canary.a6557be.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 +580 -118
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/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/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -2
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -2
- 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 +60 -0
- package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
- package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/Network.d.ts +2 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/RequestType.d.ts +9 -0
- package/esm/generated/models/RequestType.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +109 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +5 -5
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +2 -2
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +7 -7
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
- 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 +3 -3
- 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 +13 -13
- 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 +1 -1
- package/esm/generated/services/RpcService.js +1 -1
- 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 +22 -2
- 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/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,295 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type LogsFormatMetadata = {
|
|
58
|
+
/**
|
|
59
|
+
* The IP address of the client that made the request.
|
|
60
|
+
*/
|
|
61
|
+
ipAddress: string;
|
|
62
|
+
/**
|
|
63
|
+
* The host for the request made by the client.
|
|
64
|
+
*/
|
|
65
|
+
host: string;
|
|
66
|
+
/**
|
|
67
|
+
* The user agent of the client that made the request.
|
|
68
|
+
*/
|
|
69
|
+
userAgent: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The type of request made by the client.
|
|
74
|
+
*/
|
|
75
|
+
declare enum RequestType {
|
|
76
|
+
DATA = "data",
|
|
77
|
+
RPC = "rpc"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type LogsFormat = {
|
|
81
|
+
/**
|
|
82
|
+
* The organization id of the request.
|
|
83
|
+
*/
|
|
84
|
+
orgId: string;
|
|
85
|
+
/**
|
|
86
|
+
* The unique log id of the request.
|
|
87
|
+
*/
|
|
88
|
+
logId: string;
|
|
89
|
+
/**
|
|
90
|
+
* The timestamp of the request.
|
|
91
|
+
*/
|
|
92
|
+
eventTimestamp: number;
|
|
93
|
+
/**
|
|
94
|
+
* The apiKey used to make the request.
|
|
95
|
+
*/
|
|
96
|
+
apiKeyId: string;
|
|
97
|
+
/**
|
|
98
|
+
* The alias of the apiKey used to make the request.
|
|
99
|
+
*/
|
|
100
|
+
apiKeyAlias: string;
|
|
101
|
+
/**
|
|
102
|
+
* The region of the host for the request made by the client.
|
|
103
|
+
*/
|
|
104
|
+
hostRegion: string;
|
|
105
|
+
requestType: RequestType;
|
|
106
|
+
/**
|
|
107
|
+
* The path of the request made by the client.
|
|
108
|
+
*/
|
|
109
|
+
requestPath: string;
|
|
110
|
+
/**
|
|
111
|
+
* The number of API credits consumed by the request.
|
|
112
|
+
*/
|
|
113
|
+
apiCreditsConsumed: number;
|
|
114
|
+
/**
|
|
115
|
+
* The duration of the request in milliseconds.
|
|
116
|
+
*/
|
|
117
|
+
requestDurationMsecs: number;
|
|
118
|
+
/**
|
|
119
|
+
* The response code of the request.
|
|
120
|
+
*/
|
|
121
|
+
responseCode: number;
|
|
122
|
+
/**
|
|
123
|
+
* The chain id of the request.
|
|
124
|
+
*/
|
|
125
|
+
chainId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The rpc method of the request.
|
|
128
|
+
*/
|
|
129
|
+
rpcMethod?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The metadata of the request.
|
|
132
|
+
*/
|
|
133
|
+
metadata: LogsFormatMetadata;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
type LogsResponseDTO = {
|
|
137
|
+
/**
|
|
138
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
139
|
+
*/
|
|
140
|
+
nextPageToken?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The organization id of the request.
|
|
143
|
+
*/
|
|
144
|
+
orgId: string;
|
|
145
|
+
/**
|
|
146
|
+
* An array of logs representing the requests made by clients.
|
|
147
|
+
*/
|
|
148
|
+
logs: Array<LogsFormat>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare enum TimeIntervalGranularityExtended {
|
|
152
|
+
MINUTE = "minute",
|
|
153
|
+
HOURLY = "hourly",
|
|
154
|
+
DAILY = "daily",
|
|
155
|
+
WEEKLY = "weekly",
|
|
156
|
+
MONTHLY = "monthly"
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare enum UsageMetricsGroupByEnum {
|
|
160
|
+
REQUEST_PATH = "requestPath",
|
|
161
|
+
RESPONSE_CODE = "responseCode",
|
|
162
|
+
CHAIN_ID = "chainId",
|
|
163
|
+
API_KEY_ID = "apiKeyId",
|
|
164
|
+
REQUEST_TYPE = "requestType"
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
type UsageMetricsValueDTO = {
|
|
168
|
+
/**
|
|
169
|
+
* Column name used for data aggregation
|
|
170
|
+
*/
|
|
171
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
172
|
+
/**
|
|
173
|
+
* The value of the column used for data aggregation
|
|
174
|
+
*/
|
|
175
|
+
groupValue?: (string | number);
|
|
176
|
+
/**
|
|
177
|
+
* The total number of requests
|
|
178
|
+
*/
|
|
179
|
+
totalRequests: number;
|
|
180
|
+
/**
|
|
181
|
+
* The number of requests per second
|
|
182
|
+
*/
|
|
183
|
+
requestsPerSecond: number;
|
|
184
|
+
/**
|
|
185
|
+
* The success rate percentage
|
|
186
|
+
*/
|
|
187
|
+
successRatePercent: number;
|
|
188
|
+
/**
|
|
189
|
+
* The median response time in milliseconds
|
|
190
|
+
*/
|
|
191
|
+
medianResponseTimeMsecs: number;
|
|
192
|
+
/**
|
|
193
|
+
* The number of invalid requests
|
|
194
|
+
*/
|
|
195
|
+
invalidRequests: number;
|
|
196
|
+
/**
|
|
197
|
+
* The number of API credits used
|
|
198
|
+
*/
|
|
199
|
+
apiCreditsUsed: number;
|
|
200
|
+
/**
|
|
201
|
+
* The number of API credits wasted on invalid requests
|
|
202
|
+
*/
|
|
203
|
+
apiCreditsWasted: number;
|
|
204
|
+
};
|
|
205
|
+
declare namespace UsageMetricsValueDTO {
|
|
206
|
+
/**
|
|
207
|
+
* Column name used for data aggregation
|
|
208
|
+
*/
|
|
209
|
+
enum groupedBy {
|
|
210
|
+
REQUEST_PATH = "requestPath",
|
|
211
|
+
RESPONSE_CODE = "responseCode",
|
|
212
|
+
CHAIN_ID = "chainId",
|
|
213
|
+
API_KEY_ID = "apiKeyId",
|
|
214
|
+
REQUEST_TYPE = "requestType",
|
|
215
|
+
NONE = "None"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
type Metric = {
|
|
220
|
+
/**
|
|
221
|
+
* The timestamp of the metrics value
|
|
222
|
+
*/
|
|
223
|
+
timestamp: number;
|
|
224
|
+
/**
|
|
225
|
+
* The metrics values for the timestamp
|
|
226
|
+
*/
|
|
227
|
+
values: Array<UsageMetricsValueDTO>;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
type UsageMetricsResponseDTO = {
|
|
231
|
+
/**
|
|
232
|
+
* Duration in which the metrics value is aggregated
|
|
233
|
+
*/
|
|
234
|
+
aggregateDuration: string;
|
|
235
|
+
/**
|
|
236
|
+
* Org ID for which the metrics are aggregated
|
|
237
|
+
*/
|
|
238
|
+
orgId: string;
|
|
239
|
+
/**
|
|
240
|
+
* Metrics values
|
|
241
|
+
*/
|
|
242
|
+
metrics: Array<Metric>;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
declare class DataApiUsageMetricsService {
|
|
246
|
+
readonly httpRequest: BaseHttpRequest;
|
|
247
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
248
|
+
/**
|
|
249
|
+
* Get usage metrics for the Data API
|
|
250
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
251
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
252
|
+
* @throws ApiError
|
|
253
|
+
*/
|
|
254
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
|
|
255
|
+
/**
|
|
256
|
+
* Organization ID to fetch usage metrics for
|
|
257
|
+
*/
|
|
258
|
+
orgId?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Query param for retrieving items after a specific timestamp.
|
|
261
|
+
*/
|
|
262
|
+
startTimestamp?: number;
|
|
263
|
+
/**
|
|
264
|
+
* Query param for retrieving items before a specific timestamp.
|
|
265
|
+
*/
|
|
266
|
+
endTimestamp?: number;
|
|
267
|
+
/**
|
|
268
|
+
* Time interval granularity for data aggregation
|
|
269
|
+
*/
|
|
270
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
271
|
+
/**
|
|
272
|
+
* Query param for the criterion used for grouping metrics
|
|
273
|
+
*/
|
|
274
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
275
|
+
/**
|
|
276
|
+
* Filter data by request path.
|
|
277
|
+
*/
|
|
278
|
+
requestPath?: string;
|
|
279
|
+
/**
|
|
280
|
+
* Filter data by request type.
|
|
281
|
+
*/
|
|
282
|
+
requestType?: 'data' | 'rpc';
|
|
283
|
+
/**
|
|
284
|
+
* Filter data by response status code.
|
|
285
|
+
*/
|
|
286
|
+
responseCode?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Filter data by chain ID.
|
|
289
|
+
*/
|
|
290
|
+
chainId?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Filter data by API key ID.
|
|
293
|
+
*/
|
|
294
|
+
apiKeyId?: string;
|
|
295
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
|
+
/**
|
|
297
|
+
* Get logs for requests made by client
|
|
298
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
299
|
+
* @returns LogsResponseDTO Successful response
|
|
300
|
+
* @throws ApiError
|
|
301
|
+
*/
|
|
302
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
|
|
303
|
+
/**
|
|
304
|
+
* Organization ID to fetch usage metrics for
|
|
305
|
+
*/
|
|
306
|
+
orgId?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Query param for retrieving items after a specific timestamp.
|
|
309
|
+
*/
|
|
310
|
+
startTimestamp?: number;
|
|
311
|
+
/**
|
|
312
|
+
* Query param for retrieving items before a specific timestamp.
|
|
313
|
+
*/
|
|
314
|
+
endTimestamp?: number;
|
|
315
|
+
/**
|
|
316
|
+
* Filter data by request path.
|
|
317
|
+
*/
|
|
318
|
+
requestPath?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Filter data by request type.
|
|
321
|
+
*/
|
|
322
|
+
requestType?: 'data' | 'rpc';
|
|
323
|
+
/**
|
|
324
|
+
* Filter data by response status code.
|
|
325
|
+
*/
|
|
326
|
+
responseCode?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Filter data by chain ID.
|
|
329
|
+
*/
|
|
330
|
+
chainId?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Filter data by API key ID.
|
|
333
|
+
*/
|
|
334
|
+
apiKeyId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
|
+
*/
|
|
338
|
+
pageToken?: string;
|
|
339
|
+
/**
|
|
340
|
+
* The maximum number of items to return.
|
|
341
|
+
*/
|
|
342
|
+
pageSize?: number;
|
|
343
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
344
|
+
}
|
|
345
|
+
|
|
57
346
|
declare class DefaultService {
|
|
58
347
|
readonly httpRequest: BaseHttpRequest;
|
|
59
348
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -331,7 +620,7 @@ declare class EvmBalancesService {
|
|
|
331
620
|
* Gets native token balance of a wallet address.
|
|
332
621
|
*
|
|
333
622
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
623
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
624
|
* @throws ApiError
|
|
336
625
|
*/
|
|
337
626
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
@@ -359,7 +648,7 @@ declare class EvmBalancesService {
|
|
|
359
648
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
649
|
*
|
|
361
650
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
651
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
652
|
* @throws ApiError
|
|
364
653
|
*/
|
|
365
654
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
@@ -401,7 +690,7 @@ declare class EvmBalancesService {
|
|
|
401
690
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
691
|
*
|
|
403
692
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
693
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
694
|
* @throws ApiError
|
|
406
695
|
*/
|
|
407
696
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
@@ -433,7 +722,7 @@ declare class EvmBalancesService {
|
|
|
433
722
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
723
|
*
|
|
435
724
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
725
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
726
|
* @throws ApiError
|
|
438
727
|
*/
|
|
439
728
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
@@ -467,7 +756,7 @@ declare class EvmBalancesService {
|
|
|
467
756
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
757
|
*
|
|
469
758
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
759
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
760
|
* @throws ApiError
|
|
472
761
|
*/
|
|
473
762
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
@@ -596,7 +885,7 @@ declare class EvmBlocksService {
|
|
|
596
885
|
/**
|
|
597
886
|
* List latest blocks
|
|
598
887
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
888
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
889
|
* @throws ApiError
|
|
601
890
|
*/
|
|
602
891
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
@@ -616,7 +905,7 @@ declare class EvmBlocksService {
|
|
|
616
905
|
/**
|
|
617
906
|
* Get block
|
|
618
907
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
908
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
909
|
* @throws ApiError
|
|
621
910
|
*/
|
|
622
911
|
getBlock({ chainId, blockId, }: {
|
|
@@ -631,6 +920,12 @@ declare class EvmBlocksService {
|
|
|
631
920
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
921
|
}
|
|
633
922
|
|
|
923
|
+
declare enum ApiFeature {
|
|
924
|
+
NFT_INDEXING = "nftIndexing",
|
|
925
|
+
WEBHOOKS = "webhooks",
|
|
926
|
+
TELEPORTER = "teleporter"
|
|
927
|
+
}
|
|
928
|
+
|
|
634
929
|
/**
|
|
635
930
|
* 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
931
|
*/
|
|
@@ -686,14 +981,9 @@ type GetChainResponse = {
|
|
|
686
981
|
networkToken: NetworkToken;
|
|
687
982
|
chainLogoUri?: string;
|
|
688
983
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
984
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
985
|
};
|
|
691
986
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
987
|
type ChainInfo = {
|
|
698
988
|
chainId: string;
|
|
699
989
|
status: ChainStatus;
|
|
@@ -711,15 +1001,16 @@ type ChainInfo = {
|
|
|
711
1001
|
networkToken: NetworkToken;
|
|
712
1002
|
chainLogoUri?: string;
|
|
713
1003
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1004
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
715
1005
|
};
|
|
716
1006
|
|
|
717
1007
|
type ListChainsResponse = {
|
|
718
1008
|
chains: Array<ChainInfo>;
|
|
719
1009
|
};
|
|
720
1010
|
|
|
721
|
-
declare enum
|
|
1011
|
+
declare enum Network {
|
|
722
1012
|
MAINNET = "mainnet",
|
|
1013
|
+
FUJI = "fuji",
|
|
723
1014
|
TESTNET = "testnet"
|
|
724
1015
|
}
|
|
725
1016
|
|
|
@@ -729,23 +1020,23 @@ declare class EvmChainsService {
|
|
|
729
1020
|
/**
|
|
730
1021
|
* List chains
|
|
731
1022
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1023
|
+
* @returns ListChainsResponse Successful response
|
|
733
1024
|
* @throws ApiError
|
|
734
1025
|
*/
|
|
735
1026
|
supportedChains({ network, feature, }: {
|
|
736
1027
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1028
|
+
* Either mainnet or testnet/fuji.
|
|
738
1029
|
*/
|
|
739
|
-
network?:
|
|
1030
|
+
network?: Network;
|
|
740
1031
|
/**
|
|
741
1032
|
* Filter by feature.
|
|
742
1033
|
*/
|
|
743
|
-
feature?:
|
|
1034
|
+
feature?: ApiFeature;
|
|
744
1035
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1036
|
/**
|
|
746
1037
|
* Get chain information
|
|
747
1038
|
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
748
|
-
* @returns GetChainResponse
|
|
1039
|
+
* @returns GetChainResponse Successful response
|
|
749
1040
|
* @throws ApiError
|
|
750
1041
|
*/
|
|
751
1042
|
getChainInfo({ chainId, }: {
|
|
@@ -1040,7 +1331,7 @@ declare class EvmContractsService {
|
|
|
1040
1331
|
/**
|
|
1041
1332
|
* Get contract metadata
|
|
1042
1333
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1334
|
+
* @returns any Successful response
|
|
1044
1335
|
* @throws ApiError
|
|
1045
1336
|
*/
|
|
1046
1337
|
getContractMetadata({ chainId, address, }: {
|
|
@@ -1056,7 +1347,7 @@ declare class EvmContractsService {
|
|
|
1056
1347
|
/**
|
|
1057
1348
|
* Update contract information
|
|
1058
1349
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1350
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1351
|
* @throws ApiError
|
|
1061
1352
|
*/
|
|
1062
1353
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
@@ -1309,6 +1600,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1600
|
historicalPrice?: Money;
|
|
1310
1601
|
};
|
|
1311
1602
|
|
|
1603
|
+
declare enum TransactionDirectionType {
|
|
1604
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1605
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
type TeleporterMessageInfo = {
|
|
1609
|
+
teleporterMessageId: string;
|
|
1610
|
+
direction: TransactionDirectionType;
|
|
1611
|
+
/**
|
|
1612
|
+
* chain id of the source chain. valid only for destination transactions
|
|
1613
|
+
*/
|
|
1614
|
+
sourceChainId?: Record<string, any>;
|
|
1615
|
+
/**
|
|
1616
|
+
* chain id of the destination chain. valid only for source transactions
|
|
1617
|
+
*/
|
|
1618
|
+
destinationChainId?: Record<string, any>;
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1312
1621
|
type GetTransactionResponse = {
|
|
1313
1622
|
/**
|
|
1314
1623
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +1637,10 @@ type GetTransactionResponse = {
|
|
|
1328
1637
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
1638
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
1639
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1640
|
+
/**
|
|
1641
|
+
* Corresponding teleporter message info if available.
|
|
1642
|
+
*/
|
|
1643
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
1644
|
};
|
|
1332
1645
|
|
|
1333
1646
|
type ListContractsResponse = {
|
|
@@ -1584,7 +1897,7 @@ declare class EvmTransactionsService {
|
|
|
1584
1897
|
/**
|
|
1585
1898
|
* Get deployment transaction
|
|
1586
1899
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
1900
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
1901
|
* @throws ApiError
|
|
1589
1902
|
*/
|
|
1590
1903
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
@@ -1604,7 +1917,7 @@ declare class EvmTransactionsService {
|
|
|
1604
1917
|
/**
|
|
1605
1918
|
* List deployed contracts
|
|
1606
1919
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
1920
|
+
* @returns ListContractsResponse Successful response
|
|
1608
1921
|
* @throws ApiError
|
|
1609
1922
|
*/
|
|
1610
1923
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -1628,7 +1941,7 @@ declare class EvmTransactionsService {
|
|
|
1628
1941
|
/**
|
|
1629
1942
|
* List ERC transfers
|
|
1630
1943
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
1944
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
1945
|
* @throws ApiError
|
|
1633
1946
|
*/
|
|
1634
1947
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1662,7 +1975,7 @@ declare class EvmTransactionsService {
|
|
|
1662
1975
|
* 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
1976
|
*
|
|
1664
1977
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
1978
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
1979
|
* @throws ApiError
|
|
1667
1980
|
*/
|
|
1668
1981
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
@@ -1698,7 +2011,7 @@ declare class EvmTransactionsService {
|
|
|
1698
2011
|
/**
|
|
1699
2012
|
* List native transactions
|
|
1700
2013
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
2014
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
2015
|
* @throws ApiError
|
|
1703
2016
|
*/
|
|
1704
2017
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1730,7 +2043,7 @@ declare class EvmTransactionsService {
|
|
|
1730
2043
|
/**
|
|
1731
2044
|
* List ERC-20 transfers
|
|
1732
2045
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
2046
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
2047
|
* @throws ApiError
|
|
1735
2048
|
*/
|
|
1736
2049
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1762,7 +2075,7 @@ declare class EvmTransactionsService {
|
|
|
1762
2075
|
/**
|
|
1763
2076
|
* List ERC-721 transfers
|
|
1764
2077
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
2078
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
2079
|
* @throws ApiError
|
|
1767
2080
|
*/
|
|
1768
2081
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1794,7 +2107,7 @@ declare class EvmTransactionsService {
|
|
|
1794
2107
|
/**
|
|
1795
2108
|
* List ERC-1155 transfers
|
|
1796
2109
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
2110
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
2111
|
* @throws ApiError
|
|
1799
2112
|
*/
|
|
1800
2113
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1828,7 +2141,7 @@ declare class EvmTransactionsService {
|
|
|
1828
2141
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
2142
|
*
|
|
1830
2143
|
* 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
|
|
2144
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
2145
|
* @throws ApiError
|
|
1833
2146
|
*/
|
|
1834
2147
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
@@ -1860,7 +2173,7 @@ declare class EvmTransactionsService {
|
|
|
1860
2173
|
/**
|
|
1861
2174
|
* Get transaction
|
|
1862
2175
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
2176
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
2177
|
* @throws ApiError
|
|
1865
2178
|
*/
|
|
1866
2179
|
getTransaction({ chainId, txHash, }: {
|
|
@@ -1876,7 +2189,7 @@ declare class EvmTransactionsService {
|
|
|
1876
2189
|
/**
|
|
1877
2190
|
* List transactions for a block
|
|
1878
2191
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
2192
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
2193
|
* @throws ApiError
|
|
1881
2194
|
*/
|
|
1882
2195
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
@@ -1892,7 +2205,7 @@ declare class EvmTransactionsService {
|
|
|
1892
2205
|
/**
|
|
1893
2206
|
* List latest transactions
|
|
1894
2207
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
2208
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
2209
|
* @throws ApiError
|
|
1897
2210
|
*/
|
|
1898
2211
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
@@ -1923,7 +2236,7 @@ declare class HealthCheckService {
|
|
|
1923
2236
|
* @returns any The Health Check is successful
|
|
1924
2237
|
* @throws ApiError
|
|
1925
2238
|
*/
|
|
1926
|
-
|
|
2239
|
+
dataHealthCheck(): CancelablePromise<{
|
|
1927
2240
|
status?: string;
|
|
1928
2241
|
info?: Record<string, Record<string, string>> | null;
|
|
1929
2242
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -1945,7 +2258,7 @@ declare class NfTsService {
|
|
|
1945
2258
|
/**
|
|
1946
2259
|
* Reindex NFT metadata
|
|
1947
2260
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1948
|
-
* @returns any
|
|
2261
|
+
* @returns any Successful response
|
|
1949
2262
|
* @throws ApiError
|
|
1950
2263
|
*/
|
|
1951
2264
|
reindexNft({ chainId, address, tokenId, }: {
|
|
@@ -1965,7 +2278,7 @@ declare class NfTsService {
|
|
|
1965
2278
|
/**
|
|
1966
2279
|
* List tokens
|
|
1967
2280
|
* Lists tokens for an NFT contract.
|
|
1968
|
-
* @returns ListNftTokens
|
|
2281
|
+
* @returns ListNftTokens Successful response
|
|
1969
2282
|
* @throws ApiError
|
|
1970
2283
|
*/
|
|
1971
2284
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
@@ -1989,7 +2302,7 @@ declare class NfTsService {
|
|
|
1989
2302
|
/**
|
|
1990
2303
|
* Get token details
|
|
1991
2304
|
* Gets token details for a specific token of an NFT contract.
|
|
1992
|
-
* @returns any
|
|
2305
|
+
* @returns any Successful response
|
|
1993
2306
|
* @throws ApiError
|
|
1994
2307
|
*/
|
|
1995
2308
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
@@ -2019,8 +2332,8 @@ declare enum EVMOperationType {
|
|
|
2019
2332
|
|
|
2020
2333
|
type CreateEvmTransactionExportRequest = {
|
|
2021
2334
|
type: EVMOperationType;
|
|
2022
|
-
firstDate
|
|
2023
|
-
lastDate
|
|
2335
|
+
firstDate?: string;
|
|
2336
|
+
lastDate?: string;
|
|
2024
2337
|
/**
|
|
2025
2338
|
* @deprecated
|
|
2026
2339
|
*/
|
|
@@ -2046,8 +2359,8 @@ type PrimaryNetworkOptions = {
|
|
|
2046
2359
|
|
|
2047
2360
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2048
2361
|
type: PrimaryNetworkOperationType;
|
|
2049
|
-
firstDate
|
|
2050
|
-
lastDate
|
|
2362
|
+
firstDate?: string;
|
|
2363
|
+
lastDate?: string;
|
|
2051
2364
|
/**
|
|
2052
2365
|
* @deprecated
|
|
2053
2366
|
*/
|
|
@@ -2107,7 +2420,7 @@ declare class OperationsService {
|
|
|
2107
2420
|
/**
|
|
2108
2421
|
* Get operation
|
|
2109
2422
|
* Gets operation details for the given operation id.
|
|
2110
|
-
* @returns OperationStatusResponse
|
|
2423
|
+
* @returns OperationStatusResponse Successful response
|
|
2111
2424
|
* @throws ApiError
|
|
2112
2425
|
*/
|
|
2113
2426
|
getOperationResult({ operationId, }: {
|
|
@@ -2121,7 +2434,7 @@ declare class OperationsService {
|
|
|
2121
2434
|
* Trigger a transaction export operation with given parameters.
|
|
2122
2435
|
*
|
|
2123
2436
|
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2124
|
-
* @returns OperationStatusResponse
|
|
2437
|
+
* @returns OperationStatusResponse Successful response
|
|
2125
2438
|
* @throws ApiError
|
|
2126
2439
|
*/
|
|
2127
2440
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2383,6 +2696,7 @@ type CompletedValidatorDetails = {
|
|
|
2383
2696
|
*/
|
|
2384
2697
|
blsCredentials?: BlsCredentials;
|
|
2385
2698
|
delegatorCount: number;
|
|
2699
|
+
amountDelegated?: string;
|
|
2386
2700
|
rewards: Rewards;
|
|
2387
2701
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2388
2702
|
};
|
|
@@ -2445,11 +2759,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2445
2759
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2446
2760
|
};
|
|
2447
2761
|
|
|
2448
|
-
declare enum Network {
|
|
2449
|
-
MAINNET = "mainnet",
|
|
2450
|
-
FUJI = "fuji"
|
|
2451
|
-
}
|
|
2452
|
-
|
|
2453
2762
|
declare enum SortByOption {
|
|
2454
2763
|
BLOCK_INDEX = "blockIndex",
|
|
2455
2764
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2518,7 +2827,7 @@ declare class PrimaryNetworkService {
|
|
|
2518
2827
|
/**
|
|
2519
2828
|
* Get asset details
|
|
2520
2829
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2521
|
-
* @returns XChainAssetDetails
|
|
2830
|
+
* @returns XChainAssetDetails Successful response
|
|
2522
2831
|
* @throws ApiError
|
|
2523
2832
|
*/
|
|
2524
2833
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2527,7 +2836,7 @@ declare class PrimaryNetworkService {
|
|
|
2527
2836
|
*/
|
|
2528
2837
|
blockchainId: XChainId;
|
|
2529
2838
|
/**
|
|
2530
|
-
* Either mainnet or
|
|
2839
|
+
* Either mainnet or testnet/fuji.
|
|
2531
2840
|
*/
|
|
2532
2841
|
network: Network;
|
|
2533
2842
|
/**
|
|
@@ -2538,7 +2847,7 @@ declare class PrimaryNetworkService {
|
|
|
2538
2847
|
/**
|
|
2539
2848
|
* Get chain interactions for addresses
|
|
2540
2849
|
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
2541
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
2850
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2542
2851
|
* @throws ApiError
|
|
2543
2852
|
*/
|
|
2544
2853
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2547,31 +2856,31 @@ declare class PrimaryNetworkService {
|
|
|
2547
2856
|
*/
|
|
2548
2857
|
addresses: string;
|
|
2549
2858
|
/**
|
|
2550
|
-
* Either mainnet or
|
|
2859
|
+
* Either mainnet or testnet/fuji.
|
|
2551
2860
|
*/
|
|
2552
2861
|
network: Network;
|
|
2553
2862
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2554
2863
|
/**
|
|
2555
2864
|
* Get network details
|
|
2556
2865
|
* Gets network details such as validator and delegator stats.
|
|
2557
|
-
* @returns GetNetworkDetailsResponse
|
|
2866
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2558
2867
|
* @throws ApiError
|
|
2559
2868
|
*/
|
|
2560
2869
|
getNetworkDetails({ network, }: {
|
|
2561
2870
|
/**
|
|
2562
|
-
* Either mainnet or
|
|
2871
|
+
* Either mainnet or testnet/fuji.
|
|
2563
2872
|
*/
|
|
2564
2873
|
network: Network;
|
|
2565
2874
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2566
2875
|
/**
|
|
2567
2876
|
* List blockchains
|
|
2568
2877
|
* Lists all blockchains registered on the network.
|
|
2569
|
-
* @returns ListBlockchainsResponse
|
|
2878
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2570
2879
|
* @throws ApiError
|
|
2571
2880
|
*/
|
|
2572
2881
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2573
2882
|
/**
|
|
2574
|
-
* Either mainnet or
|
|
2883
|
+
* Either mainnet or testnet/fuji.
|
|
2575
2884
|
*/
|
|
2576
2885
|
network: Network;
|
|
2577
2886
|
/**
|
|
@@ -2590,12 +2899,12 @@ declare class PrimaryNetworkService {
|
|
|
2590
2899
|
/**
|
|
2591
2900
|
* List subnets
|
|
2592
2901
|
* Lists all subnets registered on the network.
|
|
2593
|
-
* @returns ListSubnetsResponse
|
|
2902
|
+
* @returns ListSubnetsResponse Successful response
|
|
2594
2903
|
* @throws ApiError
|
|
2595
2904
|
*/
|
|
2596
2905
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2597
2906
|
/**
|
|
2598
|
-
* Either mainnet or
|
|
2907
|
+
* Either mainnet or testnet/fuji.
|
|
2599
2908
|
*/
|
|
2600
2909
|
network: Network;
|
|
2601
2910
|
/**
|
|
@@ -2614,12 +2923,12 @@ declare class PrimaryNetworkService {
|
|
|
2614
2923
|
/**
|
|
2615
2924
|
* Get Subnet details by ID
|
|
2616
2925
|
* Get details of the Subnet registered on the network.
|
|
2617
|
-
* @returns Subnet
|
|
2926
|
+
* @returns Subnet Successful response
|
|
2618
2927
|
* @throws ApiError
|
|
2619
2928
|
*/
|
|
2620
2929
|
getSubnetById({ network, subnetId, }: {
|
|
2621
2930
|
/**
|
|
2622
|
-
* Either mainnet or
|
|
2931
|
+
* Either mainnet or testnet/fuji.
|
|
2623
2932
|
*/
|
|
2624
2933
|
network: Network;
|
|
2625
2934
|
/**
|
|
@@ -2630,12 +2939,12 @@ declare class PrimaryNetworkService {
|
|
|
2630
2939
|
/**
|
|
2631
2940
|
* List validators
|
|
2632
2941
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2633
|
-
* @returns ListValidatorDetailsResponse
|
|
2942
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2634
2943
|
* @throws ApiError
|
|
2635
2944
|
*/
|
|
2636
2945
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2637
2946
|
/**
|
|
2638
|
-
* Either mainnet or
|
|
2947
|
+
* Either mainnet or testnet/fuji.
|
|
2639
2948
|
*/
|
|
2640
2949
|
network: Network;
|
|
2641
2950
|
/**
|
|
@@ -2704,12 +3013,12 @@ declare class PrimaryNetworkService {
|
|
|
2704
3013
|
/**
|
|
2705
3014
|
* Get single validator details
|
|
2706
3015
|
* List validator details for a single validator. Filterable by validation status.
|
|
2707
|
-
* @returns ListValidatorDetailsResponse
|
|
3016
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2708
3017
|
* @throws ApiError
|
|
2709
3018
|
*/
|
|
2710
3019
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2711
3020
|
/**
|
|
2712
|
-
* Either mainnet or
|
|
3021
|
+
* Either mainnet or testnet/fuji.
|
|
2713
3022
|
*/
|
|
2714
3023
|
network: Network;
|
|
2715
3024
|
/**
|
|
@@ -2736,12 +3045,12 @@ declare class PrimaryNetworkService {
|
|
|
2736
3045
|
/**
|
|
2737
3046
|
* List delegators
|
|
2738
3047
|
* Lists details for delegators.
|
|
2739
|
-
* @returns ListDelegatorDetailsResponse
|
|
3048
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2740
3049
|
* @throws ApiError
|
|
2741
3050
|
*/
|
|
2742
3051
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
3052
|
/**
|
|
2744
|
-
* Either mainnet or
|
|
3053
|
+
* Either mainnet or testnet/fuji.
|
|
2745
3054
|
*/
|
|
2746
3055
|
network: Network;
|
|
2747
3056
|
/**
|
|
@@ -2978,7 +3287,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2978
3287
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
2979
3288
|
*
|
|
2980
3289
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
2981
|
-
* @returns any
|
|
3290
|
+
* @returns any Successful response
|
|
2982
3291
|
* @throws ApiError
|
|
2983
3292
|
*/
|
|
2984
3293
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -2987,7 +3296,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2987
3296
|
*/
|
|
2988
3297
|
blockchainId: BlockchainId;
|
|
2989
3298
|
/**
|
|
2990
|
-
* Either mainnet or
|
|
3299
|
+
* Either mainnet or testnet/fuji.
|
|
2991
3300
|
*/
|
|
2992
3301
|
network: Network;
|
|
2993
3302
|
/**
|
|
@@ -3050,7 +3359,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3050
3359
|
/**
|
|
3051
3360
|
* Get block
|
|
3052
3361
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3053
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3362
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3054
3363
|
* @throws ApiError
|
|
3055
3364
|
*/
|
|
3056
3365
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3059,7 +3368,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3059
3368
|
*/
|
|
3060
3369
|
blockchainId: BlockchainId;
|
|
3061
3370
|
/**
|
|
3062
|
-
* Either mainnet or
|
|
3371
|
+
* Either mainnet or testnet/fuji.
|
|
3063
3372
|
*/
|
|
3064
3373
|
network: Network;
|
|
3065
3374
|
/**
|
|
@@ -3070,7 +3379,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3070
3379
|
/**
|
|
3071
3380
|
* List blocks proposed by node
|
|
3072
3381
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3073
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3382
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3074
3383
|
* @throws ApiError
|
|
3075
3384
|
*/
|
|
3076
3385
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3079,7 +3388,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3079
3388
|
*/
|
|
3080
3389
|
blockchainId: BlockchainId;
|
|
3081
3390
|
/**
|
|
3082
|
-
* Either mainnet or
|
|
3391
|
+
* Either mainnet or testnet/fuji.
|
|
3083
3392
|
*/
|
|
3084
3393
|
network: Network;
|
|
3085
3394
|
/**
|
|
@@ -3098,7 +3407,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3098
3407
|
/**
|
|
3099
3408
|
* List latest blocks
|
|
3100
3409
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3101
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3410
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3102
3411
|
* @throws ApiError
|
|
3103
3412
|
*/
|
|
3104
3413
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3107,7 +3416,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3107
3416
|
*/
|
|
3108
3417
|
blockchainId: BlockchainId;
|
|
3109
3418
|
/**
|
|
3110
|
-
* Either mainnet or
|
|
3419
|
+
* Either mainnet or testnet/fuji.
|
|
3111
3420
|
*/
|
|
3112
3421
|
network: Network;
|
|
3113
3422
|
/**
|
|
@@ -3236,12 +3545,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3236
3545
|
/**
|
|
3237
3546
|
* List pending rewards
|
|
3238
3547
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3239
|
-
* @returns ListPendingRewardsResponse
|
|
3548
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3240
3549
|
* @throws ApiError
|
|
3241
3550
|
*/
|
|
3242
3551
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3243
3552
|
/**
|
|
3244
|
-
* Either mainnet or
|
|
3553
|
+
* Either mainnet or testnet/fuji.
|
|
3245
3554
|
*/
|
|
3246
3555
|
network: Network;
|
|
3247
3556
|
/**
|
|
@@ -3268,12 +3577,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3268
3577
|
/**
|
|
3269
3578
|
* List historical rewards
|
|
3270
3579
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3271
|
-
* @returns ListHistoricalRewardsResponse
|
|
3580
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3272
3581
|
* @throws ApiError
|
|
3273
3582
|
*/
|
|
3274
3583
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3275
3584
|
/**
|
|
3276
|
-
* Either mainnet or
|
|
3585
|
+
* Either mainnet or testnet/fuji.
|
|
3277
3586
|
*/
|
|
3278
3587
|
network: Network;
|
|
3279
3588
|
/**
|
|
@@ -3855,7 +4164,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3855
4164
|
/**
|
|
3856
4165
|
* Get transaction
|
|
3857
4166
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
3858
|
-
* @returns any
|
|
4167
|
+
* @returns any Successful response
|
|
3859
4168
|
* @throws ApiError
|
|
3860
4169
|
*/
|
|
3861
4170
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -3864,7 +4173,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3864
4173
|
*/
|
|
3865
4174
|
blockchainId: BlockchainId;
|
|
3866
4175
|
/**
|
|
3867
|
-
* Either mainnet or
|
|
4176
|
+
* Either mainnet or testnet/fuji.
|
|
3868
4177
|
*/
|
|
3869
4178
|
network: Network;
|
|
3870
4179
|
/**
|
|
@@ -3879,22 +4188,22 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3879
4188
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3880
4189
|
*
|
|
3881
4190
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3882
|
-
* @returns any
|
|
4191
|
+
* @returns any Successful response
|
|
3883
4192
|
* @throws ApiError
|
|
3884
4193
|
*/
|
|
3885
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network,
|
|
4194
|
+
listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4195
|
+
/**
|
|
4196
|
+
* 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.
|
|
4197
|
+
*/
|
|
4198
|
+
addresses: string;
|
|
3886
4199
|
/**
|
|
3887
4200
|
* A primary network blockchain id or alias.
|
|
3888
4201
|
*/
|
|
3889
4202
|
blockchainId: BlockchainId;
|
|
3890
4203
|
/**
|
|
3891
|
-
* Either mainnet or
|
|
4204
|
+
* Either mainnet or testnet/fuji.
|
|
3892
4205
|
*/
|
|
3893
4206
|
network: Network;
|
|
3894
|
-
/**
|
|
3895
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3896
|
-
*/
|
|
3897
|
-
addresses?: string;
|
|
3898
4207
|
/**
|
|
3899
4208
|
* Query param for filtering items based on transaction types.
|
|
3900
4209
|
*/
|
|
@@ -3923,7 +4232,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3923
4232
|
/**
|
|
3924
4233
|
* List staking transactions
|
|
3925
4234
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
3926
|
-
* @returns ListPChainTransactionsResponse
|
|
4235
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
3927
4236
|
* @throws ApiError
|
|
3928
4237
|
*/
|
|
3929
4238
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -3932,7 +4241,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3932
4241
|
*/
|
|
3933
4242
|
blockchainId: PChainId;
|
|
3934
4243
|
/**
|
|
3935
|
-
* Either mainnet or
|
|
4244
|
+
* Either mainnet or testnet/fuji.
|
|
3936
4245
|
*/
|
|
3937
4246
|
network: Network;
|
|
3938
4247
|
/**
|
|
@@ -3967,7 +4276,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3967
4276
|
/**
|
|
3968
4277
|
* List asset transactions
|
|
3969
4278
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
3970
|
-
* @returns ListXChainTransactionsResponse
|
|
4279
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
3971
4280
|
* @throws ApiError
|
|
3972
4281
|
*/
|
|
3973
4282
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -3976,7 +4285,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3976
4285
|
*/
|
|
3977
4286
|
blockchainId: XChainId;
|
|
3978
4287
|
/**
|
|
3979
|
-
* Either mainnet or
|
|
4288
|
+
* Either mainnet or testnet/fuji.
|
|
3980
4289
|
*/
|
|
3981
4290
|
network: Network;
|
|
3982
4291
|
/**
|
|
@@ -4030,7 +4339,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4030
4339
|
/**
|
|
4031
4340
|
* List UTXOs
|
|
4032
4341
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4033
|
-
* @returns any
|
|
4342
|
+
* @returns any Successful response
|
|
4034
4343
|
* @throws ApiError
|
|
4035
4344
|
*/
|
|
4036
4345
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4039,7 +4348,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4039
4348
|
*/
|
|
4040
4349
|
blockchainId: BlockchainId;
|
|
4041
4350
|
/**
|
|
4042
|
-
* Either mainnet or
|
|
4351
|
+
* Either mainnet or testnet/fuji.
|
|
4043
4352
|
*/
|
|
4044
4353
|
network: Network;
|
|
4045
4354
|
/**
|
|
@@ -4095,7 +4404,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4095
4404
|
/**
|
|
4096
4405
|
* List vertices
|
|
4097
4406
|
* Lists latest vertices on the X-Chain.
|
|
4098
|
-
* @returns ListXChainVerticesResponse
|
|
4407
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4099
4408
|
* @throws ApiError
|
|
4100
4409
|
*/
|
|
4101
4410
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4104,7 +4413,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4104
4413
|
*/
|
|
4105
4414
|
blockchainId: XChainId;
|
|
4106
4415
|
/**
|
|
4107
|
-
* Either mainnet or
|
|
4416
|
+
* Either mainnet or testnet/fuji.
|
|
4108
4417
|
*/
|
|
4109
4418
|
network: Network;
|
|
4110
4419
|
/**
|
|
@@ -4119,7 +4428,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4119
4428
|
/**
|
|
4120
4429
|
* Get vertex
|
|
4121
4430
|
* Gets a single vertex on the X-Chain.
|
|
4122
|
-
* @returns XChainVertex
|
|
4431
|
+
* @returns XChainVertex Successful response
|
|
4123
4432
|
* @throws ApiError
|
|
4124
4433
|
*/
|
|
4125
4434
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4132,14 +4441,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4132
4441
|
*/
|
|
4133
4442
|
blockchainId: XChainId;
|
|
4134
4443
|
/**
|
|
4135
|
-
* Either mainnet or
|
|
4444
|
+
* Either mainnet or testnet/fuji.
|
|
4136
4445
|
*/
|
|
4137
4446
|
network: Network;
|
|
4138
4447
|
}): CancelablePromise<XChainVertex>;
|
|
4139
4448
|
/**
|
|
4140
4449
|
* List vertices by height
|
|
4141
4450
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4142
|
-
* @returns ListXChainVerticesResponse
|
|
4451
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4143
4452
|
* @throws ApiError
|
|
4144
4453
|
*/
|
|
4145
4454
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4152,7 +4461,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4152
4461
|
*/
|
|
4153
4462
|
blockchainId: XChainId;
|
|
4154
4463
|
/**
|
|
4155
|
-
* Either mainnet or
|
|
4464
|
+
* Either mainnet or testnet/fuji.
|
|
4156
4465
|
*/
|
|
4157
4466
|
network: Network;
|
|
4158
4467
|
/**
|
|
@@ -4201,7 +4510,7 @@ declare class RpcService {
|
|
|
4201
4510
|
/**
|
|
4202
4511
|
* Calls JSON-RPC method
|
|
4203
4512
|
* Calls JSON-RPC method.
|
|
4204
|
-
* @returns any
|
|
4513
|
+
* @returns any Successful response
|
|
4205
4514
|
* @throws ApiError
|
|
4206
4515
|
*/
|
|
4207
4516
|
rpc({ chainId, requestBody, }: {
|
|
@@ -4353,7 +4662,7 @@ declare class TeleporterService {
|
|
|
4353
4662
|
/**
|
|
4354
4663
|
* Get a teleporter message
|
|
4355
4664
|
* Gets a teleporter message by message ID.
|
|
4356
|
-
* @returns any
|
|
4665
|
+
* @returns any Successful response
|
|
4357
4666
|
* @throws ApiError
|
|
4358
4667
|
*/
|
|
4359
4668
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4365,10 +4674,10 @@ declare class TeleporterService {
|
|
|
4365
4674
|
/**
|
|
4366
4675
|
* List teleporter messages
|
|
4367
4676
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4368
|
-
* @returns ListTeleporterMessagesResponse
|
|
4677
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4369
4678
|
* @throws ApiError
|
|
4370
4679
|
*/
|
|
4371
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4680
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
4372
4681
|
/**
|
|
4373
4682
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4374
4683
|
*/
|
|
@@ -4385,6 +4694,10 @@ declare class TeleporterService {
|
|
|
4385
4694
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4386
4695
|
*/
|
|
4387
4696
|
destinationBlockchainId?: string;
|
|
4697
|
+
/**
|
|
4698
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
4699
|
+
*/
|
|
4700
|
+
blockchainId?: string;
|
|
4388
4701
|
/**
|
|
4389
4702
|
* The address of the recipient of the teleporter message.
|
|
4390
4703
|
*/
|
|
@@ -4394,9 +4707,33 @@ declare class TeleporterService {
|
|
|
4394
4707
|
*/
|
|
4395
4708
|
from?: string;
|
|
4396
4709
|
/**
|
|
4397
|
-
* mainnet or testnet.
|
|
4710
|
+
* Either mainnet or testnet/fuji.
|
|
4711
|
+
*/
|
|
4712
|
+
network?: Network;
|
|
4713
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4714
|
+
/**
|
|
4715
|
+
* List teleporter messages by address
|
|
4716
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
4717
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4718
|
+
* @throws ApiError
|
|
4719
|
+
*/
|
|
4720
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
4721
|
+
/**
|
|
4722
|
+
* An EVM address.
|
|
4723
|
+
*/
|
|
4724
|
+
address: string;
|
|
4725
|
+
/**
|
|
4726
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4727
|
+
*/
|
|
4728
|
+
pageToken?: string;
|
|
4729
|
+
/**
|
|
4730
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4731
|
+
*/
|
|
4732
|
+
pageSize?: number;
|
|
4733
|
+
/**
|
|
4734
|
+
* Either mainnet or testnet/fuji.
|
|
4398
4735
|
*/
|
|
4399
|
-
network?:
|
|
4736
|
+
network?: Network;
|
|
4400
4737
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4401
4738
|
}
|
|
4402
4739
|
|
|
@@ -4404,7 +4741,7 @@ type AddressesChangeRequest = {
|
|
|
4404
4741
|
/**
|
|
4405
4742
|
* Ethereum address(es) for the address_activity event type
|
|
4406
4743
|
*/
|
|
4407
|
-
addresses: Array<
|
|
4744
|
+
addresses: Array<string>;
|
|
4408
4745
|
};
|
|
4409
4746
|
|
|
4410
4747
|
type AddressActivityMetadata = {
|
|
@@ -4505,7 +4842,7 @@ declare class WebhooksService {
|
|
|
4505
4842
|
/**
|
|
4506
4843
|
* Create a webhook
|
|
4507
4844
|
* Create a new webhook.
|
|
4508
|
-
* @returns WebhookResponse
|
|
4845
|
+
* @returns WebhookResponse Successful response
|
|
4509
4846
|
* @throws ApiError
|
|
4510
4847
|
*/
|
|
4511
4848
|
createWebhook({ requestBody, }: {
|
|
@@ -4514,7 +4851,7 @@ declare class WebhooksService {
|
|
|
4514
4851
|
/**
|
|
4515
4852
|
* List webhooks
|
|
4516
4853
|
* Lists webhooks for the user.
|
|
4517
|
-
* @returns ListWebhooksResponse
|
|
4854
|
+
* @returns ListWebhooksResponse Successful response
|
|
4518
4855
|
* @throws ApiError
|
|
4519
4856
|
*/
|
|
4520
4857
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4534,7 +4871,7 @@ declare class WebhooksService {
|
|
|
4534
4871
|
/**
|
|
4535
4872
|
* Get a webhook by ID
|
|
4536
4873
|
* Retrieves a webhook by ID.
|
|
4537
|
-
* @returns WebhookResponse
|
|
4874
|
+
* @returns WebhookResponse Successful response
|
|
4538
4875
|
* @throws ApiError
|
|
4539
4876
|
*/
|
|
4540
4877
|
getWebhook({ id, }: {
|
|
@@ -4546,7 +4883,7 @@ declare class WebhooksService {
|
|
|
4546
4883
|
/**
|
|
4547
4884
|
* Deactivate a webhook
|
|
4548
4885
|
* Deactivates a webhook by ID.
|
|
4549
|
-
* @returns WebhookResponse
|
|
4886
|
+
* @returns WebhookResponse Successful response
|
|
4550
4887
|
* @throws ApiError
|
|
4551
4888
|
*/
|
|
4552
4889
|
deactivateWebhook({ id, }: {
|
|
@@ -4558,7 +4895,7 @@ declare class WebhooksService {
|
|
|
4558
4895
|
/**
|
|
4559
4896
|
* Update a webhook
|
|
4560
4897
|
* Updates an existing webhook.
|
|
4561
|
-
* @returns WebhookResponse
|
|
4898
|
+
* @returns WebhookResponse Successful response
|
|
4562
4899
|
* @throws ApiError
|
|
4563
4900
|
*/
|
|
4564
4901
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4571,21 +4908,21 @@ declare class WebhooksService {
|
|
|
4571
4908
|
/**
|
|
4572
4909
|
* Generate a shared secret
|
|
4573
4910
|
* Generates a new shared secret.
|
|
4574
|
-
* @returns SharedSecretsResponse
|
|
4911
|
+
* @returns SharedSecretsResponse Successful response
|
|
4575
4912
|
* @throws ApiError
|
|
4576
4913
|
*/
|
|
4577
4914
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4578
4915
|
/**
|
|
4579
4916
|
* Get a shared secret
|
|
4580
4917
|
* Get a previously generated shared secret.
|
|
4581
|
-
* @returns SharedSecretsResponse
|
|
4918
|
+
* @returns SharedSecretsResponse Successful response
|
|
4582
4919
|
* @throws ApiError
|
|
4583
4920
|
*/
|
|
4584
4921
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4585
4922
|
/**
|
|
4586
4923
|
* Add addresses to webhook
|
|
4587
4924
|
* Add addresses to webhook.
|
|
4588
|
-
* @returns WebhookResponse
|
|
4925
|
+
* @returns WebhookResponse Successful response
|
|
4589
4926
|
* @throws ApiError
|
|
4590
4927
|
*/
|
|
4591
4928
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4598,7 +4935,7 @@ declare class WebhooksService {
|
|
|
4598
4935
|
/**
|
|
4599
4936
|
* Remove addresses from webhook
|
|
4600
4937
|
* Remove addresses from webhook.
|
|
4601
|
-
* @returns WebhookResponse
|
|
4938
|
+
* @returns WebhookResponse Successful response
|
|
4602
4939
|
* @throws ApiError
|
|
4603
4940
|
*/
|
|
4604
4941
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4611,7 +4948,7 @@ declare class WebhooksService {
|
|
|
4611
4948
|
/**
|
|
4612
4949
|
* List adresses by webhook
|
|
4613
4950
|
* List adresses by webhook.
|
|
4614
|
-
* @returns ListWebhookAddressesResponse
|
|
4951
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4615
4952
|
* @throws ApiError
|
|
4616
4953
|
*/
|
|
4617
4954
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4632,6 +4969,7 @@ declare class WebhooksService {
|
|
|
4632
4969
|
|
|
4633
4970
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4634
4971
|
declare class Glacier {
|
|
4972
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4635
4973
|
readonly default: DefaultService;
|
|
4636
4974
|
readonly evmBalances: EvmBalancesService;
|
|
4637
4975
|
readonly evmBlocks: EvmBlocksService;
|
|
@@ -4672,6 +5010,70 @@ declare class ApiError extends Error {
|
|
|
4672
5010
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4673
5011
|
}
|
|
4674
5012
|
|
|
5013
|
+
type BadGateway = {
|
|
5014
|
+
/**
|
|
5015
|
+
* The error message describing the reason for the exception
|
|
5016
|
+
*/
|
|
5017
|
+
message: (string | Array<string>);
|
|
5018
|
+
/**
|
|
5019
|
+
* The HTTP status code of the response
|
|
5020
|
+
*/
|
|
5021
|
+
statusCode: number;
|
|
5022
|
+
/**
|
|
5023
|
+
* The type of error
|
|
5024
|
+
*/
|
|
5025
|
+
error: string;
|
|
5026
|
+
};
|
|
5027
|
+
|
|
5028
|
+
type BadRequest = {
|
|
5029
|
+
/**
|
|
5030
|
+
* The error message describing the reason for the exception
|
|
5031
|
+
*/
|
|
5032
|
+
message: (string | Array<string>);
|
|
5033
|
+
/**
|
|
5034
|
+
* The HTTP status code of the response
|
|
5035
|
+
*/
|
|
5036
|
+
statusCode: number;
|
|
5037
|
+
/**
|
|
5038
|
+
* The type of error
|
|
5039
|
+
*/
|
|
5040
|
+
error: string;
|
|
5041
|
+
};
|
|
5042
|
+
|
|
5043
|
+
type DataListChainsResponse = {
|
|
5044
|
+
chains: Array<ChainInfo>;
|
|
5045
|
+
};
|
|
5046
|
+
|
|
5047
|
+
type Forbidden = {
|
|
5048
|
+
/**
|
|
5049
|
+
* The error message describing the reason for the exception
|
|
5050
|
+
*/
|
|
5051
|
+
message: (string | Array<string>);
|
|
5052
|
+
/**
|
|
5053
|
+
* The HTTP status code of the response
|
|
5054
|
+
*/
|
|
5055
|
+
statusCode: number;
|
|
5056
|
+
/**
|
|
5057
|
+
* The type of error
|
|
5058
|
+
*/
|
|
5059
|
+
error: string;
|
|
5060
|
+
};
|
|
5061
|
+
|
|
5062
|
+
type InternalServerError = {
|
|
5063
|
+
/**
|
|
5064
|
+
* The error message describing the reason for the exception
|
|
5065
|
+
*/
|
|
5066
|
+
message: (string | Array<string>);
|
|
5067
|
+
/**
|
|
5068
|
+
* The HTTP status code of the response
|
|
5069
|
+
*/
|
|
5070
|
+
statusCode: number;
|
|
5071
|
+
/**
|
|
5072
|
+
* The type of error
|
|
5073
|
+
*/
|
|
5074
|
+
error: string;
|
|
5075
|
+
};
|
|
5076
|
+
|
|
4675
5077
|
type NextPageToken = {
|
|
4676
5078
|
/**
|
|
4677
5079
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -4679,4 +5081,64 @@ type NextPageToken = {
|
|
|
4679
5081
|
nextPageToken?: string;
|
|
4680
5082
|
};
|
|
4681
5083
|
|
|
4682
|
-
|
|
5084
|
+
type NotFound = {
|
|
5085
|
+
/**
|
|
5086
|
+
* The error message describing the reason for the exception
|
|
5087
|
+
*/
|
|
5088
|
+
message: (string | Array<string>);
|
|
5089
|
+
/**
|
|
5090
|
+
* The HTTP status code of the response
|
|
5091
|
+
*/
|
|
5092
|
+
statusCode: number;
|
|
5093
|
+
/**
|
|
5094
|
+
* The type of error
|
|
5095
|
+
*/
|
|
5096
|
+
error: string;
|
|
5097
|
+
};
|
|
5098
|
+
|
|
5099
|
+
type ServiceUnavailable = {
|
|
5100
|
+
/**
|
|
5101
|
+
* The error message describing the reason for the exception
|
|
5102
|
+
*/
|
|
5103
|
+
message: (string | Array<string>);
|
|
5104
|
+
/**
|
|
5105
|
+
* The HTTP status code of the response
|
|
5106
|
+
*/
|
|
5107
|
+
statusCode: number;
|
|
5108
|
+
/**
|
|
5109
|
+
* The type of error
|
|
5110
|
+
*/
|
|
5111
|
+
error: string;
|
|
5112
|
+
};
|
|
5113
|
+
|
|
5114
|
+
type TooManyRequests = {
|
|
5115
|
+
/**
|
|
5116
|
+
* The error message describing the reason for the exception
|
|
5117
|
+
*/
|
|
5118
|
+
message: (string | Array<string>);
|
|
5119
|
+
/**
|
|
5120
|
+
* The HTTP status code of the response
|
|
5121
|
+
*/
|
|
5122
|
+
statusCode: number;
|
|
5123
|
+
/**
|
|
5124
|
+
* The type of error
|
|
5125
|
+
*/
|
|
5126
|
+
error: string;
|
|
5127
|
+
};
|
|
5128
|
+
|
|
5129
|
+
type Unauthorized = {
|
|
5130
|
+
/**
|
|
5131
|
+
* The error message describing the reason for the exception
|
|
5132
|
+
*/
|
|
5133
|
+
message: (string | Array<string>);
|
|
5134
|
+
/**
|
|
5135
|
+
* The HTTP status code of the response
|
|
5136
|
+
*/
|
|
5137
|
+
statusCode: number;
|
|
5138
|
+
/**
|
|
5139
|
+
* The type of error
|
|
5140
|
+
*/
|
|
5141
|
+
error: string;
|
|
5142
|
+
};
|
|
5143
|
+
|
|
5144
|
+
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, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, 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 };
|