@avalabs/glacier-sdk 3.1.0-canary.db2e90e.0 → 3.1.0-canary.dbb51d6.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 +755 -460
- 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/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/{GlacierApiUsageMetricsService.d.ts → DataApiUsageMetricsService.d.ts} +37 -13
- 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 +8 -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 +29 -5
- 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 +18 -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.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,12 +620,12 @@ 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, }: {
|
|
338
627
|
/**
|
|
339
|
-
* A supported evm chain id
|
|
628
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
629
|
*/
|
|
341
630
|
chainId: string;
|
|
342
631
|
/**
|
|
@@ -359,12 +648,12 @@ 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, }: {
|
|
366
655
|
/**
|
|
367
|
-
* A supported evm chain id
|
|
656
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
657
|
*/
|
|
369
658
|
chainId: string;
|
|
370
659
|
/**
|
|
@@ -401,12 +690,12 @@ 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, }: {
|
|
408
697
|
/**
|
|
409
|
-
* A supported evm chain id
|
|
698
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
410
699
|
*/
|
|
411
700
|
chainId: string;
|
|
412
701
|
/**
|
|
@@ -433,12 +722,12 @@ 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, }: {
|
|
440
729
|
/**
|
|
441
|
-
* A supported evm chain id
|
|
730
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
442
731
|
*/
|
|
443
732
|
chainId: string;
|
|
444
733
|
/**
|
|
@@ -467,12 +756,12 @@ 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, }: {
|
|
474
763
|
/**
|
|
475
|
-
* A supported evm chain id
|
|
764
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
476
765
|
*/
|
|
477
766
|
chainId: string;
|
|
478
767
|
/**
|
|
@@ -596,12 +885,12 @@ 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, }: {
|
|
603
892
|
/**
|
|
604
|
-
* A supported evm chain id
|
|
893
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
894
|
*/
|
|
606
895
|
chainId: string;
|
|
607
896
|
/**
|
|
@@ -616,12 +905,12 @@ 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, }: {
|
|
623
912
|
/**
|
|
624
|
-
* A supported evm chain id
|
|
913
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
914
|
*/
|
|
626
915
|
chainId: string;
|
|
627
916
|
/**
|
|
@@ -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,16 +1001,18 @@ 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",
|
|
723
|
-
|
|
1013
|
+
FUJI = "fuji",
|
|
1014
|
+
TESTNET = "testnet",
|
|
1015
|
+
DEVNET = "devnet"
|
|
724
1016
|
}
|
|
725
1017
|
|
|
726
1018
|
declare class EvmChainsService {
|
|
@@ -729,28 +1021,28 @@ declare class EvmChainsService {
|
|
|
729
1021
|
/**
|
|
730
1022
|
* List chains
|
|
731
1023
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1024
|
+
* @returns ListChainsResponse Successful response
|
|
733
1025
|
* @throws ApiError
|
|
734
1026
|
*/
|
|
735
1027
|
supportedChains({ network, feature, }: {
|
|
736
1028
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1029
|
+
* Either mainnet or testnet/fuji.
|
|
738
1030
|
*/
|
|
739
|
-
network?:
|
|
1031
|
+
network?: Network;
|
|
740
1032
|
/**
|
|
741
1033
|
* Filter by feature.
|
|
742
1034
|
*/
|
|
743
|
-
feature?:
|
|
1035
|
+
feature?: ApiFeature;
|
|
744
1036
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1037
|
/**
|
|
746
1038
|
* Get chain information
|
|
747
1039
|
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
748
|
-
* @returns GetChainResponse
|
|
1040
|
+
* @returns GetChainResponse Successful response
|
|
749
1041
|
* @throws ApiError
|
|
750
1042
|
*/
|
|
751
1043
|
getChainInfo({ chainId, }: {
|
|
752
1044
|
/**
|
|
753
|
-
* A supported evm chain id
|
|
1045
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
1046
|
*/
|
|
755
1047
|
chainId: string;
|
|
756
1048
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1040,12 +1332,12 @@ declare class EvmContractsService {
|
|
|
1040
1332
|
/**
|
|
1041
1333
|
* Get contract metadata
|
|
1042
1334
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1335
|
+
* @returns any Successful response
|
|
1044
1336
|
* @throws ApiError
|
|
1045
1337
|
*/
|
|
1046
1338
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1339
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1340
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1341
|
*/
|
|
1050
1342
|
chainId: string;
|
|
1051
1343
|
/**
|
|
@@ -1056,12 +1348,12 @@ declare class EvmContractsService {
|
|
|
1056
1348
|
/**
|
|
1057
1349
|
* Update contract information
|
|
1058
1350
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1351
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1352
|
* @throws ApiError
|
|
1061
1353
|
*/
|
|
1062
1354
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1355
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1356
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1357
|
*/
|
|
1066
1358
|
chainId: string;
|
|
1067
1359
|
/**
|
|
@@ -1309,6 +1601,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1601
|
historicalPrice?: Money;
|
|
1310
1602
|
};
|
|
1311
1603
|
|
|
1604
|
+
declare enum TransactionDirectionType {
|
|
1605
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1606
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
type TeleporterMessageInfo = {
|
|
1610
|
+
teleporterMessageId: string;
|
|
1611
|
+
direction: TransactionDirectionType;
|
|
1612
|
+
/**
|
|
1613
|
+
* chain id of the source chain. valid only for destination transactions
|
|
1614
|
+
*/
|
|
1615
|
+
sourceChainId?: Record<string, any>;
|
|
1616
|
+
/**
|
|
1617
|
+
* chain id of the destination chain. valid only for source transactions
|
|
1618
|
+
*/
|
|
1619
|
+
destinationChainId?: Record<string, any>;
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1312
1622
|
type GetTransactionResponse = {
|
|
1313
1623
|
/**
|
|
1314
1624
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +1638,10 @@ type GetTransactionResponse = {
|
|
|
1328
1638
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
1639
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
1640
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1641
|
+
/**
|
|
1642
|
+
* Corresponding teleporter message info if available.
|
|
1643
|
+
*/
|
|
1644
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
1645
|
};
|
|
1332
1646
|
|
|
1333
1647
|
type ListContractsResponse = {
|
|
@@ -1584,12 +1898,12 @@ declare class EvmTransactionsService {
|
|
|
1584
1898
|
/**
|
|
1585
1899
|
* Get deployment transaction
|
|
1586
1900
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
1901
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
1902
|
* @throws ApiError
|
|
1589
1903
|
*/
|
|
1590
1904
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1591
1905
|
/**
|
|
1592
|
-
* A supported evm chain id
|
|
1906
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
1907
|
*/
|
|
1594
1908
|
chainId: string;
|
|
1595
1909
|
/**
|
|
@@ -1604,12 +1918,12 @@ declare class EvmTransactionsService {
|
|
|
1604
1918
|
/**
|
|
1605
1919
|
* List deployed contracts
|
|
1606
1920
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
1921
|
+
* @returns ListContractsResponse Successful response
|
|
1608
1922
|
* @throws ApiError
|
|
1609
1923
|
*/
|
|
1610
1924
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1611
1925
|
/**
|
|
1612
|
-
* A supported evm chain id
|
|
1926
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
1927
|
*/
|
|
1614
1928
|
chainId: string;
|
|
1615
1929
|
/**
|
|
@@ -1628,12 +1942,12 @@ declare class EvmTransactionsService {
|
|
|
1628
1942
|
/**
|
|
1629
1943
|
* List ERC transfers
|
|
1630
1944
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
1945
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
1946
|
* @throws ApiError
|
|
1633
1947
|
*/
|
|
1634
1948
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
1949
|
/**
|
|
1636
|
-
* A supported evm chain id
|
|
1950
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
1951
|
*/
|
|
1638
1952
|
chainId: string;
|
|
1639
1953
|
/**
|
|
@@ -1662,12 +1976,12 @@ declare class EvmTransactionsService {
|
|
|
1662
1976
|
* 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
1977
|
*
|
|
1664
1978
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
1979
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
1980
|
* @throws ApiError
|
|
1667
1981
|
*/
|
|
1668
1982
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1669
1983
|
/**
|
|
1670
|
-
* A supported evm chain id
|
|
1984
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
1985
|
*/
|
|
1672
1986
|
chainId: string;
|
|
1673
1987
|
/**
|
|
@@ -1698,12 +2012,12 @@ declare class EvmTransactionsService {
|
|
|
1698
2012
|
/**
|
|
1699
2013
|
* List native transactions
|
|
1700
2014
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
2015
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
2016
|
* @throws ApiError
|
|
1703
2017
|
*/
|
|
1704
2018
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1705
2019
|
/**
|
|
1706
|
-
* A supported evm chain id
|
|
2020
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
2021
|
*/
|
|
1708
2022
|
chainId: string;
|
|
1709
2023
|
/**
|
|
@@ -1730,12 +2044,12 @@ declare class EvmTransactionsService {
|
|
|
1730
2044
|
/**
|
|
1731
2045
|
* List ERC-20 transfers
|
|
1732
2046
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
2047
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
2048
|
* @throws ApiError
|
|
1735
2049
|
*/
|
|
1736
2050
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
2051
|
/**
|
|
1738
|
-
* A supported evm chain id
|
|
2052
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
2053
|
*/
|
|
1740
2054
|
chainId: string;
|
|
1741
2055
|
/**
|
|
@@ -1751,369 +2065,168 @@ declare class EvmTransactionsService {
|
|
|
1751
2065
|
*/
|
|
1752
2066
|
endBlock?: number;
|
|
1753
2067
|
/**
|
|
1754
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1755
|
-
*/
|
|
1756
|
-
pageToken?: string;
|
|
1757
|
-
/**
|
|
1758
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1759
|
-
*/
|
|
1760
|
-
pageSize?: number;
|
|
1761
|
-
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1762
|
-
/**
|
|
1763
|
-
* List ERC-721 transfers
|
|
1764
|
-
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
1766
|
-
* @throws ApiError
|
|
1767
|
-
*/
|
|
1768
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1769
|
-
/**
|
|
1770
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
|
-
*/
|
|
1772
|
-
chainId: string;
|
|
1773
|
-
/**
|
|
1774
|
-
* A wallet address.
|
|
1775
|
-
*/
|
|
1776
|
-
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
|
-
/**
|
|
1786
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1787
|
-
*/
|
|
1788
|
-
pageToken?: string;
|
|
1789
|
-
/**
|
|
1790
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1791
|
-
*/
|
|
1792
|
-
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
|
-
/**
|
|
1810
|
-
* 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
|
-
*/
|
|
1812
|
-
startBlock?: number;
|
|
1813
|
-
/**
|
|
1814
|
-
* 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.
|
|
1815
|
-
*/
|
|
1816
|
-
endBlock?: number;
|
|
1817
|
-
/**
|
|
1818
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1819
|
-
*/
|
|
1820
|
-
pageToken?: string;
|
|
1821
|
-
/**
|
|
1822
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1823
|
-
*/
|
|
1824
|
-
pageSize?: number;
|
|
1825
|
-
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1826
|
-
/**
|
|
1827
|
-
* List internal transactions
|
|
1828
|
-
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
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
|
|
1832
|
-
* @throws ApiError
|
|
1833
|
-
*/
|
|
1834
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1835
|
-
/**
|
|
1836
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
|
-
*/
|
|
1838
|
-
chainId: string;
|
|
1839
|
-
/**
|
|
1840
|
-
* A wallet address.
|
|
1841
|
-
*/
|
|
1842
|
-
address: string;
|
|
1843
|
-
/**
|
|
1844
|
-
* 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.
|
|
1845
|
-
*/
|
|
1846
|
-
startBlock?: number;
|
|
1847
|
-
/**
|
|
1848
|
-
* 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.
|
|
1849
|
-
*/
|
|
1850
|
-
endBlock?: number;
|
|
1851
|
-
/**
|
|
1852
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1853
|
-
*/
|
|
1854
|
-
pageToken?: string;
|
|
1855
|
-
/**
|
|
1856
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
-
*/
|
|
1858
|
-
pageSize?: number;
|
|
1859
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1860
|
-
/**
|
|
1861
|
-
* Get transaction
|
|
1862
|
-
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
1864
|
-
* @throws ApiError
|
|
1865
|
-
*/
|
|
1866
|
-
getTransaction({ chainId, txHash, }: {
|
|
1867
|
-
/**
|
|
1868
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
|
-
*/
|
|
1870
|
-
chainId: string;
|
|
1871
|
-
/**
|
|
1872
|
-
* A transaction hash.
|
|
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.
|
|
1885
|
-
*/
|
|
1886
|
-
chainId: string;
|
|
1887
|
-
/**
|
|
1888
|
-
* A block identifier which is either a block number or the block hash.
|
|
1889
|
-
*/
|
|
1890
|
-
blockId: string;
|
|
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, }: {
|
|
1899
|
-
/**
|
|
1900
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
-
*/
|
|
1902
|
-
chainId: string;
|
|
1903
|
-
/**
|
|
1904
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1905
|
-
*/
|
|
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;
|
|
2068
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2069
|
+
*/
|
|
2070
|
+
pageToken?: string;
|
|
2071
|
+
/**
|
|
2072
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2073
|
+
*/
|
|
2074
|
+
pageSize?: number;
|
|
2075
|
+
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
2036
2076
|
/**
|
|
2037
|
-
*
|
|
2077
|
+
* List ERC-721 transfers
|
|
2078
|
+
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
2079
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
2080
|
+
* @throws ApiError
|
|
2038
2081
|
*/
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2082
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2083
|
+
/**
|
|
2084
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2085
|
+
*/
|
|
2086
|
+
chainId: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* A wallet address.
|
|
2089
|
+
*/
|
|
2090
|
+
address: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* 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.
|
|
2093
|
+
*/
|
|
2094
|
+
startBlock?: number;
|
|
2095
|
+
/**
|
|
2096
|
+
* 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.
|
|
2097
|
+
*/
|
|
2098
|
+
endBlock?: number;
|
|
2099
|
+
/**
|
|
2100
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2101
|
+
*/
|
|
2102
|
+
pageToken?: string;
|
|
2103
|
+
/**
|
|
2104
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2105
|
+
*/
|
|
2106
|
+
pageSize?: number;
|
|
2107
|
+
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
2045
2108
|
/**
|
|
2046
|
-
*
|
|
2047
|
-
*
|
|
2048
|
-
* @returns
|
|
2109
|
+
* List ERC-1155 transfers
|
|
2110
|
+
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
2111
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
2049
2112
|
* @throws ApiError
|
|
2050
2113
|
*/
|
|
2051
|
-
|
|
2114
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2052
2115
|
/**
|
|
2053
|
-
*
|
|
2116
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2054
2117
|
*/
|
|
2055
|
-
|
|
2118
|
+
chainId: string;
|
|
2056
2119
|
/**
|
|
2057
|
-
*
|
|
2120
|
+
* A wallet address.
|
|
2058
2121
|
*/
|
|
2059
|
-
|
|
2122
|
+
address: string;
|
|
2060
2123
|
/**
|
|
2061
|
-
*
|
|
2124
|
+
* 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
2125
|
*/
|
|
2063
|
-
|
|
2126
|
+
startBlock?: number;
|
|
2064
2127
|
/**
|
|
2065
|
-
*
|
|
2128
|
+
* 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
2129
|
*/
|
|
2067
|
-
|
|
2130
|
+
endBlock?: number;
|
|
2068
2131
|
/**
|
|
2069
|
-
*
|
|
2132
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2070
2133
|
*/
|
|
2071
|
-
|
|
2134
|
+
pageToken?: string;
|
|
2135
|
+
/**
|
|
2136
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2137
|
+
*/
|
|
2138
|
+
pageSize?: number;
|
|
2139
|
+
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
2140
|
+
/**
|
|
2141
|
+
* List internal transactions
|
|
2142
|
+
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2143
|
+
*
|
|
2144
|
+
* 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.
|
|
2145
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
2146
|
+
* @throws ApiError
|
|
2147
|
+
*/
|
|
2148
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2072
2149
|
/**
|
|
2073
|
-
*
|
|
2150
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2074
2151
|
*/
|
|
2075
|
-
|
|
2152
|
+
chainId: string;
|
|
2153
|
+
/**
|
|
2154
|
+
* A wallet address.
|
|
2155
|
+
*/
|
|
2156
|
+
address: string;
|
|
2076
2157
|
/**
|
|
2077
|
-
*
|
|
2158
|
+
* 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.
|
|
2078
2159
|
*/
|
|
2079
|
-
|
|
2160
|
+
startBlock?: number;
|
|
2080
2161
|
/**
|
|
2081
|
-
*
|
|
2162
|
+
* 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.
|
|
2082
2163
|
*/
|
|
2083
|
-
|
|
2164
|
+
endBlock?: number;
|
|
2165
|
+
/**
|
|
2166
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2167
|
+
*/
|
|
2168
|
+
pageToken?: string;
|
|
2084
2169
|
/**
|
|
2085
|
-
*
|
|
2170
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2086
2171
|
*/
|
|
2087
|
-
|
|
2088
|
-
}): CancelablePromise<
|
|
2172
|
+
pageSize?: number;
|
|
2173
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2089
2174
|
/**
|
|
2090
|
-
* Get
|
|
2091
|
-
* Gets
|
|
2092
|
-
* @returns
|
|
2175
|
+
* Get transaction
|
|
2176
|
+
* Gets the details of a single transaction.
|
|
2177
|
+
* @returns GetTransactionResponse Successful response
|
|
2093
2178
|
* @throws ApiError
|
|
2094
2179
|
*/
|
|
2095
|
-
|
|
2180
|
+
getTransaction({ chainId, txHash, }: {
|
|
2096
2181
|
/**
|
|
2097
|
-
*
|
|
2182
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2098
2183
|
*/
|
|
2099
|
-
|
|
2184
|
+
chainId: string;
|
|
2100
2185
|
/**
|
|
2101
|
-
*
|
|
2186
|
+
* A transaction hash.
|
|
2102
2187
|
*/
|
|
2103
|
-
|
|
2188
|
+
txHash: string;
|
|
2189
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
2190
|
+
/**
|
|
2191
|
+
* List transactions for a block
|
|
2192
|
+
* Lists the transactions that occured in a given block.
|
|
2193
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2194
|
+
* @throws ApiError
|
|
2195
|
+
*/
|
|
2196
|
+
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2104
2197
|
/**
|
|
2105
|
-
*
|
|
2198
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2106
2199
|
*/
|
|
2107
|
-
|
|
2200
|
+
chainId: string;
|
|
2201
|
+
/**
|
|
2202
|
+
* A block identifier which is either a block number or the block hash.
|
|
2203
|
+
*/
|
|
2204
|
+
blockId: string;
|
|
2205
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2206
|
+
/**
|
|
2207
|
+
* List latest transactions
|
|
2208
|
+
* Lists the latest transactions. Filterable by status.
|
|
2209
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2210
|
+
* @throws ApiError
|
|
2211
|
+
*/
|
|
2212
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2213
|
+
/**
|
|
2214
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2215
|
+
*/
|
|
2216
|
+
chainId: string;
|
|
2108
2217
|
/**
|
|
2109
2218
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2110
2219
|
*/
|
|
2111
2220
|
pageToken?: string;
|
|
2112
2221
|
/**
|
|
2113
|
-
* The maximum number of items to return.
|
|
2222
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2114
2223
|
*/
|
|
2115
2224
|
pageSize?: number;
|
|
2116
|
-
|
|
2225
|
+
/**
|
|
2226
|
+
* A status filter for listed transactions.
|
|
2227
|
+
*/
|
|
2228
|
+
status?: TransactionStatus;
|
|
2229
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2117
2230
|
}
|
|
2118
2231
|
|
|
2119
2232
|
declare class HealthCheckService {
|
|
@@ -2124,7 +2237,7 @@ declare class HealthCheckService {
|
|
|
2124
2237
|
* @returns any The Health Check is successful
|
|
2125
2238
|
* @throws ApiError
|
|
2126
2239
|
*/
|
|
2127
|
-
|
|
2240
|
+
dataHealthCheck(): CancelablePromise<{
|
|
2128
2241
|
status?: string;
|
|
2129
2242
|
info?: Record<string, Record<string, string>> | null;
|
|
2130
2243
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -2146,12 +2259,12 @@ declare class NfTsService {
|
|
|
2146
2259
|
/**
|
|
2147
2260
|
* Reindex NFT metadata
|
|
2148
2261
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2149
|
-
* @returns any
|
|
2262
|
+
* @returns any Successful response
|
|
2150
2263
|
* @throws ApiError
|
|
2151
2264
|
*/
|
|
2152
2265
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2153
2266
|
/**
|
|
2154
|
-
* A supported evm chain id
|
|
2267
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2155
2268
|
*/
|
|
2156
2269
|
chainId: string;
|
|
2157
2270
|
/**
|
|
@@ -2166,12 +2279,12 @@ declare class NfTsService {
|
|
|
2166
2279
|
/**
|
|
2167
2280
|
* List tokens
|
|
2168
2281
|
* Lists tokens for an NFT contract.
|
|
2169
|
-
* @returns ListNftTokens
|
|
2282
|
+
* @returns ListNftTokens Successful response
|
|
2170
2283
|
* @throws ApiError
|
|
2171
2284
|
*/
|
|
2172
2285
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2173
2286
|
/**
|
|
2174
|
-
* A supported evm chain id
|
|
2287
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2175
2288
|
*/
|
|
2176
2289
|
chainId: string;
|
|
2177
2290
|
/**
|
|
@@ -2190,12 +2303,12 @@ declare class NfTsService {
|
|
|
2190
2303
|
/**
|
|
2191
2304
|
* Get token details
|
|
2192
2305
|
* Gets token details for a specific token of an NFT contract.
|
|
2193
|
-
* @returns any
|
|
2306
|
+
* @returns any Successful response
|
|
2194
2307
|
* @throws ApiError
|
|
2195
2308
|
*/
|
|
2196
2309
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2197
2310
|
/**
|
|
2198
|
-
* A supported evm chain id
|
|
2311
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2199
2312
|
*/
|
|
2200
2313
|
chainId: string;
|
|
2201
2314
|
/**
|
|
@@ -2220,16 +2333,16 @@ declare enum EVMOperationType {
|
|
|
2220
2333
|
|
|
2221
2334
|
type CreateEvmTransactionExportRequest = {
|
|
2222
2335
|
type: EVMOperationType;
|
|
2223
|
-
firstDate
|
|
2224
|
-
lastDate
|
|
2336
|
+
firstDate?: string;
|
|
2337
|
+
lastDate?: string;
|
|
2225
2338
|
/**
|
|
2226
2339
|
* @deprecated
|
|
2227
2340
|
*/
|
|
2228
|
-
startDate
|
|
2341
|
+
startDate?: string;
|
|
2229
2342
|
/**
|
|
2230
2343
|
* @deprecated
|
|
2231
2344
|
*/
|
|
2232
|
-
endDate
|
|
2345
|
+
endDate?: string;
|
|
2233
2346
|
options: EvmNetworkOptions;
|
|
2234
2347
|
};
|
|
2235
2348
|
|
|
@@ -2242,21 +2355,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2242
2355
|
type PrimaryNetworkOptions = {
|
|
2243
2356
|
addresses?: Array<string>;
|
|
2244
2357
|
cChainEvmAddresses?: Array<string>;
|
|
2245
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2358
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2246
2359
|
};
|
|
2247
2360
|
|
|
2248
2361
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2249
2362
|
type: PrimaryNetworkOperationType;
|
|
2250
|
-
firstDate
|
|
2251
|
-
lastDate
|
|
2363
|
+
firstDate?: string;
|
|
2364
|
+
lastDate?: string;
|
|
2252
2365
|
/**
|
|
2253
2366
|
* @deprecated
|
|
2254
2367
|
*/
|
|
2255
|
-
startDate
|
|
2368
|
+
startDate?: string;
|
|
2256
2369
|
/**
|
|
2257
2370
|
* @deprecated
|
|
2258
2371
|
*/
|
|
2259
|
-
endDate
|
|
2372
|
+
endDate?: string;
|
|
2260
2373
|
options: PrimaryNetworkOptions;
|
|
2261
2374
|
};
|
|
2262
2375
|
|
|
@@ -2308,7 +2421,7 @@ declare class OperationsService {
|
|
|
2308
2421
|
/**
|
|
2309
2422
|
* Get operation
|
|
2310
2423
|
* Gets operation details for the given operation id.
|
|
2311
|
-
* @returns OperationStatusResponse
|
|
2424
|
+
* @returns OperationStatusResponse Successful response
|
|
2312
2425
|
* @throws ApiError
|
|
2313
2426
|
*/
|
|
2314
2427
|
getOperationResult({ operationId, }: {
|
|
@@ -2322,7 +2435,7 @@ declare class OperationsService {
|
|
|
2322
2435
|
* Trigger a transaction export operation with given parameters.
|
|
2323
2436
|
*
|
|
2324
2437
|
* 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
|
|
2438
|
+
* @returns OperationStatusResponse Successful response
|
|
2326
2439
|
* @throws ApiError
|
|
2327
2440
|
*/
|
|
2328
2441
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2334,8 +2447,10 @@ declare enum BlockchainIds {
|
|
|
2334
2447
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2335
2448
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2336
2449
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2450
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2337
2451
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2338
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2452
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2453
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2339
2454
|
}
|
|
2340
2455
|
|
|
2341
2456
|
type ChainAddressChainIdMap = {
|
|
@@ -2584,6 +2699,7 @@ type CompletedValidatorDetails = {
|
|
|
2584
2699
|
*/
|
|
2585
2700
|
blsCredentials?: BlsCredentials;
|
|
2586
2701
|
delegatorCount: number;
|
|
2702
|
+
amountDelegated?: string;
|
|
2587
2703
|
rewards: Rewards;
|
|
2588
2704
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2589
2705
|
};
|
|
@@ -2646,11 +2762,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2646
2762
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2647
2763
|
};
|
|
2648
2764
|
|
|
2649
|
-
declare enum Network {
|
|
2650
|
-
MAINNET = "mainnet",
|
|
2651
|
-
FUJI = "fuji"
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
2765
|
declare enum SortByOption {
|
|
2655
2766
|
BLOCK_INDEX = "blockIndex",
|
|
2656
2767
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2710,6 +2821,7 @@ type XChainAssetDetails = {
|
|
|
2710
2821
|
declare enum XChainId {
|
|
2711
2822
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2712
2823
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2824
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2713
2825
|
X_CHAIN = "x-chain"
|
|
2714
2826
|
}
|
|
2715
2827
|
|
|
@@ -2719,7 +2831,7 @@ declare class PrimaryNetworkService {
|
|
|
2719
2831
|
/**
|
|
2720
2832
|
* Get asset details
|
|
2721
2833
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2722
|
-
* @returns XChainAssetDetails
|
|
2834
|
+
* @returns XChainAssetDetails Successful response
|
|
2723
2835
|
* @throws ApiError
|
|
2724
2836
|
*/
|
|
2725
2837
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2728,7 +2840,7 @@ declare class PrimaryNetworkService {
|
|
|
2728
2840
|
*/
|
|
2729
2841
|
blockchainId: XChainId;
|
|
2730
2842
|
/**
|
|
2731
|
-
* Either mainnet or
|
|
2843
|
+
* Either mainnet or testnet/fuji.
|
|
2732
2844
|
*/
|
|
2733
2845
|
network: Network;
|
|
2734
2846
|
/**
|
|
@@ -2739,7 +2851,7 @@ declare class PrimaryNetworkService {
|
|
|
2739
2851
|
/**
|
|
2740
2852
|
* Get chain interactions for addresses
|
|
2741
2853
|
* 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
|
|
2854
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2743
2855
|
* @throws ApiError
|
|
2744
2856
|
*/
|
|
2745
2857
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2748,31 +2860,31 @@ declare class PrimaryNetworkService {
|
|
|
2748
2860
|
*/
|
|
2749
2861
|
addresses: string;
|
|
2750
2862
|
/**
|
|
2751
|
-
* Either mainnet or
|
|
2863
|
+
* Either mainnet or testnet/fuji.
|
|
2752
2864
|
*/
|
|
2753
2865
|
network: Network;
|
|
2754
2866
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2755
2867
|
/**
|
|
2756
2868
|
* Get network details
|
|
2757
2869
|
* Gets network details such as validator and delegator stats.
|
|
2758
|
-
* @returns GetNetworkDetailsResponse
|
|
2870
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2759
2871
|
* @throws ApiError
|
|
2760
2872
|
*/
|
|
2761
2873
|
getNetworkDetails({ network, }: {
|
|
2762
2874
|
/**
|
|
2763
|
-
* Either mainnet or
|
|
2875
|
+
* Either mainnet or testnet/fuji.
|
|
2764
2876
|
*/
|
|
2765
2877
|
network: Network;
|
|
2766
2878
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2767
2879
|
/**
|
|
2768
2880
|
* List blockchains
|
|
2769
2881
|
* Lists all blockchains registered on the network.
|
|
2770
|
-
* @returns ListBlockchainsResponse
|
|
2882
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2771
2883
|
* @throws ApiError
|
|
2772
2884
|
*/
|
|
2773
2885
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2774
2886
|
/**
|
|
2775
|
-
* Either mainnet or
|
|
2887
|
+
* Either mainnet or testnet/fuji.
|
|
2776
2888
|
*/
|
|
2777
2889
|
network: Network;
|
|
2778
2890
|
/**
|
|
@@ -2791,12 +2903,12 @@ declare class PrimaryNetworkService {
|
|
|
2791
2903
|
/**
|
|
2792
2904
|
* List subnets
|
|
2793
2905
|
* Lists all subnets registered on the network.
|
|
2794
|
-
* @returns ListSubnetsResponse
|
|
2906
|
+
* @returns ListSubnetsResponse Successful response
|
|
2795
2907
|
* @throws ApiError
|
|
2796
2908
|
*/
|
|
2797
2909
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2798
2910
|
/**
|
|
2799
|
-
* Either mainnet or
|
|
2911
|
+
* Either mainnet or testnet/fuji.
|
|
2800
2912
|
*/
|
|
2801
2913
|
network: Network;
|
|
2802
2914
|
/**
|
|
@@ -2815,12 +2927,12 @@ declare class PrimaryNetworkService {
|
|
|
2815
2927
|
/**
|
|
2816
2928
|
* Get Subnet details by ID
|
|
2817
2929
|
* Get details of the Subnet registered on the network.
|
|
2818
|
-
* @returns Subnet
|
|
2930
|
+
* @returns Subnet Successful response
|
|
2819
2931
|
* @throws ApiError
|
|
2820
2932
|
*/
|
|
2821
2933
|
getSubnetById({ network, subnetId, }: {
|
|
2822
2934
|
/**
|
|
2823
|
-
* Either mainnet or
|
|
2935
|
+
* Either mainnet or testnet/fuji.
|
|
2824
2936
|
*/
|
|
2825
2937
|
network: Network;
|
|
2826
2938
|
/**
|
|
@@ -2831,12 +2943,12 @@ declare class PrimaryNetworkService {
|
|
|
2831
2943
|
/**
|
|
2832
2944
|
* List validators
|
|
2833
2945
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2834
|
-
* @returns ListValidatorDetailsResponse
|
|
2946
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2835
2947
|
* @throws ApiError
|
|
2836
2948
|
*/
|
|
2837
2949
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2838
2950
|
/**
|
|
2839
|
-
* Either mainnet or
|
|
2951
|
+
* Either mainnet or testnet/fuji.
|
|
2840
2952
|
*/
|
|
2841
2953
|
network: Network;
|
|
2842
2954
|
/**
|
|
@@ -2905,12 +3017,12 @@ declare class PrimaryNetworkService {
|
|
|
2905
3017
|
/**
|
|
2906
3018
|
* Get single validator details
|
|
2907
3019
|
* List validator details for a single validator. Filterable by validation status.
|
|
2908
|
-
* @returns ListValidatorDetailsResponse
|
|
3020
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2909
3021
|
* @throws ApiError
|
|
2910
3022
|
*/
|
|
2911
3023
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2912
3024
|
/**
|
|
2913
|
-
* Either mainnet or
|
|
3025
|
+
* Either mainnet or testnet/fuji.
|
|
2914
3026
|
*/
|
|
2915
3027
|
network: Network;
|
|
2916
3028
|
/**
|
|
@@ -2937,12 +3049,12 @@ declare class PrimaryNetworkService {
|
|
|
2937
3049
|
/**
|
|
2938
3050
|
* List delegators
|
|
2939
3051
|
* Lists details for delegators.
|
|
2940
|
-
* @returns ListDelegatorDetailsResponse
|
|
3052
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2941
3053
|
* @throws ApiError
|
|
2942
3054
|
*/
|
|
2943
3055
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2944
3056
|
/**
|
|
2945
|
-
* Either mainnet or
|
|
3057
|
+
* Either mainnet or testnet/fuji.
|
|
2946
3058
|
*/
|
|
2947
3059
|
network: Network;
|
|
2948
3060
|
/**
|
|
@@ -2976,8 +3088,10 @@ declare enum BlockchainId {
|
|
|
2976
3088
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2977
3089
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2978
3090
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3091
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2979
3092
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2980
3093
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3094
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
2981
3095
|
P_CHAIN = "p-chain",
|
|
2982
3096
|
X_CHAIN = "x-chain",
|
|
2983
3097
|
C_CHAIN = "c-chain"
|
|
@@ -3016,7 +3130,8 @@ type CChainAtomicBalances = {
|
|
|
3016
3130
|
|
|
3017
3131
|
declare enum PrimaryNetwork {
|
|
3018
3132
|
MAINNET = "mainnet",
|
|
3019
|
-
FUJI = "fuji"
|
|
3133
|
+
FUJI = "fuji",
|
|
3134
|
+
DEVNET = "devnet"
|
|
3020
3135
|
}
|
|
3021
3136
|
|
|
3022
3137
|
declare enum PrimaryNetworkChainName {
|
|
@@ -3179,7 +3294,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3179
3294
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
3180
3295
|
*
|
|
3181
3296
|
* 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
|
|
3297
|
+
* @returns any Successful response
|
|
3183
3298
|
* @throws ApiError
|
|
3184
3299
|
*/
|
|
3185
3300
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -3188,7 +3303,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3188
3303
|
*/
|
|
3189
3304
|
blockchainId: BlockchainId;
|
|
3190
3305
|
/**
|
|
3191
|
-
* Either mainnet or
|
|
3306
|
+
* Either mainnet or testnet/fuji.
|
|
3192
3307
|
*/
|
|
3193
3308
|
network: Network;
|
|
3194
3309
|
/**
|
|
@@ -3251,7 +3366,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3251
3366
|
/**
|
|
3252
3367
|
* Get block
|
|
3253
3368
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3254
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3369
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3255
3370
|
* @throws ApiError
|
|
3256
3371
|
*/
|
|
3257
3372
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3260,7 +3375,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3260
3375
|
*/
|
|
3261
3376
|
blockchainId: BlockchainId;
|
|
3262
3377
|
/**
|
|
3263
|
-
* Either mainnet or
|
|
3378
|
+
* Either mainnet or testnet/fuji.
|
|
3264
3379
|
*/
|
|
3265
3380
|
network: Network;
|
|
3266
3381
|
/**
|
|
@@ -3271,7 +3386,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3271
3386
|
/**
|
|
3272
3387
|
* List blocks proposed by node
|
|
3273
3388
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3274
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3389
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3275
3390
|
* @throws ApiError
|
|
3276
3391
|
*/
|
|
3277
3392
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3280,7 +3395,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3280
3395
|
*/
|
|
3281
3396
|
blockchainId: BlockchainId;
|
|
3282
3397
|
/**
|
|
3283
|
-
* Either mainnet or
|
|
3398
|
+
* Either mainnet or testnet/fuji.
|
|
3284
3399
|
*/
|
|
3285
3400
|
network: Network;
|
|
3286
3401
|
/**
|
|
@@ -3299,7 +3414,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3299
3414
|
/**
|
|
3300
3415
|
* List latest blocks
|
|
3301
3416
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3302
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3417
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3303
3418
|
* @throws ApiError
|
|
3304
3419
|
*/
|
|
3305
3420
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3308,7 +3423,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3308
3423
|
*/
|
|
3309
3424
|
blockchainId: BlockchainId;
|
|
3310
3425
|
/**
|
|
3311
|
-
* Either mainnet or
|
|
3426
|
+
* Either mainnet or testnet/fuji.
|
|
3312
3427
|
*/
|
|
3313
3428
|
network: Network;
|
|
3314
3429
|
/**
|
|
@@ -3437,12 +3552,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3437
3552
|
/**
|
|
3438
3553
|
* List pending rewards
|
|
3439
3554
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3440
|
-
* @returns ListPendingRewardsResponse
|
|
3555
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3441
3556
|
* @throws ApiError
|
|
3442
3557
|
*/
|
|
3443
3558
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3444
3559
|
/**
|
|
3445
|
-
* Either mainnet or
|
|
3560
|
+
* Either mainnet or testnet/fuji.
|
|
3446
3561
|
*/
|
|
3447
3562
|
network: Network;
|
|
3448
3563
|
/**
|
|
@@ -3469,12 +3584,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3469
3584
|
/**
|
|
3470
3585
|
* List historical rewards
|
|
3471
3586
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3472
|
-
* @returns ListHistoricalRewardsResponse
|
|
3587
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3473
3588
|
* @throws ApiError
|
|
3474
3589
|
*/
|
|
3475
3590
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3476
3591
|
/**
|
|
3477
|
-
* Either mainnet or
|
|
3592
|
+
* Either mainnet or testnet/fuji.
|
|
3478
3593
|
*/
|
|
3479
3594
|
network: Network;
|
|
3480
3595
|
/**
|
|
@@ -4056,7 +4171,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4056
4171
|
/**
|
|
4057
4172
|
* Get transaction
|
|
4058
4173
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
4059
|
-
* @returns any
|
|
4174
|
+
* @returns any Successful response
|
|
4060
4175
|
* @throws ApiError
|
|
4061
4176
|
*/
|
|
4062
4177
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -4065,7 +4180,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4065
4180
|
*/
|
|
4066
4181
|
blockchainId: BlockchainId;
|
|
4067
4182
|
/**
|
|
4068
|
-
* Either mainnet or
|
|
4183
|
+
* Either mainnet or testnet/fuji.
|
|
4069
4184
|
*/
|
|
4070
4185
|
network: Network;
|
|
4071
4186
|
/**
|
|
@@ -4080,7 +4195,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4080
4195
|
* 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
4196
|
*
|
|
4082
4197
|
* 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
|
|
4198
|
+
* @returns any Successful response
|
|
4084
4199
|
* @throws ApiError
|
|
4085
4200
|
*/
|
|
4086
4201
|
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4089,11 +4204,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4089
4204
|
*/
|
|
4090
4205
|
blockchainId: BlockchainId;
|
|
4091
4206
|
/**
|
|
4092
|
-
* Either mainnet or
|
|
4207
|
+
* Either mainnet or testnet/fuji.
|
|
4093
4208
|
*/
|
|
4094
4209
|
network: Network;
|
|
4095
4210
|
/**
|
|
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".
|
|
4211
|
+
* 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
4212
|
*/
|
|
4098
4213
|
addresses?: string;
|
|
4099
4214
|
/**
|
|
@@ -4124,7 +4239,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4124
4239
|
/**
|
|
4125
4240
|
* List staking transactions
|
|
4126
4241
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4127
|
-
* @returns ListPChainTransactionsResponse
|
|
4242
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
4128
4243
|
* @throws ApiError
|
|
4129
4244
|
*/
|
|
4130
4245
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4133,7 +4248,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4133
4248
|
*/
|
|
4134
4249
|
blockchainId: PChainId;
|
|
4135
4250
|
/**
|
|
4136
|
-
* Either mainnet or
|
|
4251
|
+
* Either mainnet or testnet/fuji.
|
|
4137
4252
|
*/
|
|
4138
4253
|
network: Network;
|
|
4139
4254
|
/**
|
|
@@ -4168,7 +4283,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4168
4283
|
/**
|
|
4169
4284
|
* List asset transactions
|
|
4170
4285
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
4171
|
-
* @returns ListXChainTransactionsResponse
|
|
4286
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
4172
4287
|
* @throws ApiError
|
|
4173
4288
|
*/
|
|
4174
4289
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -4177,7 +4292,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4177
4292
|
*/
|
|
4178
4293
|
blockchainId: XChainId;
|
|
4179
4294
|
/**
|
|
4180
|
-
* Either mainnet or
|
|
4295
|
+
* Either mainnet or testnet/fuji.
|
|
4181
4296
|
*/
|
|
4182
4297
|
network: Network;
|
|
4183
4298
|
/**
|
|
@@ -4231,7 +4346,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4231
4346
|
/**
|
|
4232
4347
|
* List UTXOs
|
|
4233
4348
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4234
|
-
* @returns any
|
|
4349
|
+
* @returns any Successful response
|
|
4235
4350
|
* @throws ApiError
|
|
4236
4351
|
*/
|
|
4237
4352
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4240,7 +4355,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4240
4355
|
*/
|
|
4241
4356
|
blockchainId: BlockchainId;
|
|
4242
4357
|
/**
|
|
4243
|
-
* Either mainnet or
|
|
4358
|
+
* Either mainnet or testnet/fuji.
|
|
4244
4359
|
*/
|
|
4245
4360
|
network: Network;
|
|
4246
4361
|
/**
|
|
@@ -4296,7 +4411,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4296
4411
|
/**
|
|
4297
4412
|
* List vertices
|
|
4298
4413
|
* Lists latest vertices on the X-Chain.
|
|
4299
|
-
* @returns ListXChainVerticesResponse
|
|
4414
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4300
4415
|
* @throws ApiError
|
|
4301
4416
|
*/
|
|
4302
4417
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4305,7 +4420,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4305
4420
|
*/
|
|
4306
4421
|
blockchainId: XChainId;
|
|
4307
4422
|
/**
|
|
4308
|
-
* Either mainnet or
|
|
4423
|
+
* Either mainnet or testnet/fuji.
|
|
4309
4424
|
*/
|
|
4310
4425
|
network: Network;
|
|
4311
4426
|
/**
|
|
@@ -4320,7 +4435,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4320
4435
|
/**
|
|
4321
4436
|
* Get vertex
|
|
4322
4437
|
* Gets a single vertex on the X-Chain.
|
|
4323
|
-
* @returns XChainVertex
|
|
4438
|
+
* @returns XChainVertex Successful response
|
|
4324
4439
|
* @throws ApiError
|
|
4325
4440
|
*/
|
|
4326
4441
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4333,14 +4448,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4333
4448
|
*/
|
|
4334
4449
|
blockchainId: XChainId;
|
|
4335
4450
|
/**
|
|
4336
|
-
* Either mainnet or
|
|
4451
|
+
* Either mainnet or testnet/fuji.
|
|
4337
4452
|
*/
|
|
4338
4453
|
network: Network;
|
|
4339
4454
|
}): CancelablePromise<XChainVertex>;
|
|
4340
4455
|
/**
|
|
4341
4456
|
* List vertices by height
|
|
4342
4457
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4343
|
-
* @returns ListXChainVerticesResponse
|
|
4458
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4344
4459
|
* @throws ApiError
|
|
4345
4460
|
*/
|
|
4346
4461
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4353,7 +4468,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4353
4468
|
*/
|
|
4354
4469
|
blockchainId: XChainId;
|
|
4355
4470
|
/**
|
|
4356
|
-
* Either mainnet or
|
|
4471
|
+
* Either mainnet or testnet/fuji.
|
|
4357
4472
|
*/
|
|
4358
4473
|
network: Network;
|
|
4359
4474
|
/**
|
|
@@ -4402,18 +4517,49 @@ declare class RpcService {
|
|
|
4402
4517
|
/**
|
|
4403
4518
|
* Calls JSON-RPC method
|
|
4404
4519
|
* Calls JSON-RPC method.
|
|
4405
|
-
* @returns any
|
|
4520
|
+
* @returns any Successful response
|
|
4406
4521
|
* @throws ApiError
|
|
4407
4522
|
*/
|
|
4408
4523
|
rpc({ chainId, requestBody, }: {
|
|
4409
4524
|
/**
|
|
4410
|
-
* A supported evm chain id
|
|
4525
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4411
4526
|
*/
|
|
4412
4527
|
chainId: string;
|
|
4413
4528
|
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4414
4529
|
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4415
4530
|
}
|
|
4416
4531
|
|
|
4532
|
+
type SignatureAggregationResponse = {
|
|
4533
|
+
signedMessage: string;
|
|
4534
|
+
};
|
|
4535
|
+
|
|
4536
|
+
type SignatureAggregatorRequest = {
|
|
4537
|
+
/**
|
|
4538
|
+
* Must be defined if justification is not defined
|
|
4539
|
+
*/
|
|
4540
|
+
message?: string;
|
|
4541
|
+
/**
|
|
4542
|
+
* Must be defined if message is not defined
|
|
4543
|
+
*/
|
|
4544
|
+
justification?: string;
|
|
4545
|
+
signingSubnetId?: string;
|
|
4546
|
+
quorumPercentage?: number;
|
|
4547
|
+
};
|
|
4548
|
+
|
|
4549
|
+
declare class SignatureAggregatorService {
|
|
4550
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4551
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4552
|
+
/**
|
|
4553
|
+
* Aggregate Signatures
|
|
4554
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4555
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4556
|
+
* @throws ApiError
|
|
4557
|
+
*/
|
|
4558
|
+
aggregateSignatures({ requestBody, }: {
|
|
4559
|
+
requestBody: SignatureAggregatorRequest;
|
|
4560
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4561
|
+
}
|
|
4562
|
+
|
|
4417
4563
|
type TeleporterDestinationTransaction = {
|
|
4418
4564
|
txHash: string;
|
|
4419
4565
|
timestamp: number;
|
|
@@ -4554,7 +4700,7 @@ declare class TeleporterService {
|
|
|
4554
4700
|
/**
|
|
4555
4701
|
* Get a teleporter message
|
|
4556
4702
|
* Gets a teleporter message by message ID.
|
|
4557
|
-
* @returns any
|
|
4703
|
+
* @returns any Successful response
|
|
4558
4704
|
* @throws ApiError
|
|
4559
4705
|
*/
|
|
4560
4706
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4566,7 +4712,7 @@ declare class TeleporterService {
|
|
|
4566
4712
|
/**
|
|
4567
4713
|
* List teleporter messages
|
|
4568
4714
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4569
|
-
* @returns ListTeleporterMessagesResponse
|
|
4715
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4570
4716
|
* @throws ApiError
|
|
4571
4717
|
*/
|
|
4572
4718
|
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
@@ -4599,9 +4745,33 @@ declare class TeleporterService {
|
|
|
4599
4745
|
*/
|
|
4600
4746
|
from?: string;
|
|
4601
4747
|
/**
|
|
4602
|
-
* mainnet or testnet.
|
|
4748
|
+
* Either mainnet or testnet/fuji.
|
|
4749
|
+
*/
|
|
4750
|
+
network?: Network;
|
|
4751
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4752
|
+
/**
|
|
4753
|
+
* List teleporter messages by address
|
|
4754
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
4755
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4756
|
+
* @throws ApiError
|
|
4757
|
+
*/
|
|
4758
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
4759
|
+
/**
|
|
4760
|
+
* An EVM address.
|
|
4761
|
+
*/
|
|
4762
|
+
address: string;
|
|
4763
|
+
/**
|
|
4764
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4765
|
+
*/
|
|
4766
|
+
pageToken?: string;
|
|
4767
|
+
/**
|
|
4768
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4769
|
+
*/
|
|
4770
|
+
pageSize?: number;
|
|
4771
|
+
/**
|
|
4772
|
+
* Either mainnet or testnet/fuji.
|
|
4603
4773
|
*/
|
|
4604
|
-
network?:
|
|
4774
|
+
network?: Network;
|
|
4605
4775
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4606
4776
|
}
|
|
4607
4777
|
|
|
@@ -4609,7 +4779,7 @@ type AddressesChangeRequest = {
|
|
|
4609
4779
|
/**
|
|
4610
4780
|
* Ethereum address(es) for the address_activity event type
|
|
4611
4781
|
*/
|
|
4612
|
-
addresses: Array<
|
|
4782
|
+
addresses: Array<string>;
|
|
4613
4783
|
};
|
|
4614
4784
|
|
|
4615
4785
|
type AddressActivityMetadata = {
|
|
@@ -4710,7 +4880,7 @@ declare class WebhooksService {
|
|
|
4710
4880
|
/**
|
|
4711
4881
|
* Create a webhook
|
|
4712
4882
|
* Create a new webhook.
|
|
4713
|
-
* @returns WebhookResponse
|
|
4883
|
+
* @returns WebhookResponse Successful response
|
|
4714
4884
|
* @throws ApiError
|
|
4715
4885
|
*/
|
|
4716
4886
|
createWebhook({ requestBody, }: {
|
|
@@ -4719,7 +4889,7 @@ declare class WebhooksService {
|
|
|
4719
4889
|
/**
|
|
4720
4890
|
* List webhooks
|
|
4721
4891
|
* Lists webhooks for the user.
|
|
4722
|
-
* @returns ListWebhooksResponse
|
|
4892
|
+
* @returns ListWebhooksResponse Successful response
|
|
4723
4893
|
* @throws ApiError
|
|
4724
4894
|
*/
|
|
4725
4895
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4739,7 +4909,7 @@ declare class WebhooksService {
|
|
|
4739
4909
|
/**
|
|
4740
4910
|
* Get a webhook by ID
|
|
4741
4911
|
* Retrieves a webhook by ID.
|
|
4742
|
-
* @returns WebhookResponse
|
|
4912
|
+
* @returns WebhookResponse Successful response
|
|
4743
4913
|
* @throws ApiError
|
|
4744
4914
|
*/
|
|
4745
4915
|
getWebhook({ id, }: {
|
|
@@ -4751,7 +4921,7 @@ declare class WebhooksService {
|
|
|
4751
4921
|
/**
|
|
4752
4922
|
* Deactivate a webhook
|
|
4753
4923
|
* Deactivates a webhook by ID.
|
|
4754
|
-
* @returns WebhookResponse
|
|
4924
|
+
* @returns WebhookResponse Successful response
|
|
4755
4925
|
* @throws ApiError
|
|
4756
4926
|
*/
|
|
4757
4927
|
deactivateWebhook({ id, }: {
|
|
@@ -4763,7 +4933,7 @@ declare class WebhooksService {
|
|
|
4763
4933
|
/**
|
|
4764
4934
|
* Update a webhook
|
|
4765
4935
|
* Updates an existing webhook.
|
|
4766
|
-
* @returns WebhookResponse
|
|
4936
|
+
* @returns WebhookResponse Successful response
|
|
4767
4937
|
* @throws ApiError
|
|
4768
4938
|
*/
|
|
4769
4939
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4776,21 +4946,21 @@ declare class WebhooksService {
|
|
|
4776
4946
|
/**
|
|
4777
4947
|
* Generate a shared secret
|
|
4778
4948
|
* Generates a new shared secret.
|
|
4779
|
-
* @returns SharedSecretsResponse
|
|
4949
|
+
* @returns SharedSecretsResponse Successful response
|
|
4780
4950
|
* @throws ApiError
|
|
4781
4951
|
*/
|
|
4782
4952
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4783
4953
|
/**
|
|
4784
4954
|
* Get a shared secret
|
|
4785
4955
|
* Get a previously generated shared secret.
|
|
4786
|
-
* @returns SharedSecretsResponse
|
|
4956
|
+
* @returns SharedSecretsResponse Successful response
|
|
4787
4957
|
* @throws ApiError
|
|
4788
4958
|
*/
|
|
4789
4959
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4790
4960
|
/**
|
|
4791
4961
|
* Add addresses to webhook
|
|
4792
4962
|
* Add addresses to webhook.
|
|
4793
|
-
* @returns WebhookResponse
|
|
4963
|
+
* @returns WebhookResponse Successful response
|
|
4794
4964
|
* @throws ApiError
|
|
4795
4965
|
*/
|
|
4796
4966
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4803,7 +4973,7 @@ declare class WebhooksService {
|
|
|
4803
4973
|
/**
|
|
4804
4974
|
* Remove addresses from webhook
|
|
4805
4975
|
* Remove addresses from webhook.
|
|
4806
|
-
* @returns WebhookResponse
|
|
4976
|
+
* @returns WebhookResponse Successful response
|
|
4807
4977
|
* @throws ApiError
|
|
4808
4978
|
*/
|
|
4809
4979
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4816,7 +4986,7 @@ declare class WebhooksService {
|
|
|
4816
4986
|
/**
|
|
4817
4987
|
* List adresses by webhook
|
|
4818
4988
|
* List adresses by webhook.
|
|
4819
|
-
* @returns ListWebhookAddressesResponse
|
|
4989
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4820
4990
|
* @throws ApiError
|
|
4821
4991
|
*/
|
|
4822
4992
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4837,13 +5007,13 @@ declare class WebhooksService {
|
|
|
4837
5007
|
|
|
4838
5008
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4839
5009
|
declare class Glacier {
|
|
5010
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4840
5011
|
readonly default: DefaultService;
|
|
4841
5012
|
readonly evmBalances: EvmBalancesService;
|
|
4842
5013
|
readonly evmBlocks: EvmBlocksService;
|
|
4843
5014
|
readonly evmChains: EvmChainsService;
|
|
4844
5015
|
readonly evmContracts: EvmContractsService;
|
|
4845
5016
|
readonly evmTransactions: EvmTransactionsService;
|
|
4846
|
-
readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
|
|
4847
5017
|
readonly healthCheck: HealthCheckService;
|
|
4848
5018
|
readonly nfTs: NfTsService;
|
|
4849
5019
|
readonly operations: OperationsService;
|
|
@@ -4855,6 +5025,7 @@ declare class Glacier {
|
|
|
4855
5025
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4856
5026
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4857
5027
|
readonly rpc: RpcService;
|
|
5028
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4858
5029
|
readonly teleporter: TeleporterService;
|
|
4859
5030
|
readonly webhooks: WebhooksService;
|
|
4860
5031
|
readonly request: BaseHttpRequest;
|
|
@@ -4878,6 +5049,70 @@ declare class ApiError extends Error {
|
|
|
4878
5049
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4879
5050
|
}
|
|
4880
5051
|
|
|
5052
|
+
type BadGateway = {
|
|
5053
|
+
/**
|
|
5054
|
+
* The error message describing the reason for the exception
|
|
5055
|
+
*/
|
|
5056
|
+
message: (string | Array<string>);
|
|
5057
|
+
/**
|
|
5058
|
+
* The HTTP status code of the response
|
|
5059
|
+
*/
|
|
5060
|
+
statusCode: number;
|
|
5061
|
+
/**
|
|
5062
|
+
* The type of error
|
|
5063
|
+
*/
|
|
5064
|
+
error: string;
|
|
5065
|
+
};
|
|
5066
|
+
|
|
5067
|
+
type BadRequest = {
|
|
5068
|
+
/**
|
|
5069
|
+
* The error message describing the reason for the exception
|
|
5070
|
+
*/
|
|
5071
|
+
message: (string | Array<string>);
|
|
5072
|
+
/**
|
|
5073
|
+
* The HTTP status code of the response
|
|
5074
|
+
*/
|
|
5075
|
+
statusCode: number;
|
|
5076
|
+
/**
|
|
5077
|
+
* The type of error
|
|
5078
|
+
*/
|
|
5079
|
+
error: string;
|
|
5080
|
+
};
|
|
5081
|
+
|
|
5082
|
+
type DataListChainsResponse = {
|
|
5083
|
+
chains: Array<ChainInfo>;
|
|
5084
|
+
};
|
|
5085
|
+
|
|
5086
|
+
type Forbidden = {
|
|
5087
|
+
/**
|
|
5088
|
+
* The error message describing the reason for the exception
|
|
5089
|
+
*/
|
|
5090
|
+
message: (string | Array<string>);
|
|
5091
|
+
/**
|
|
5092
|
+
* The HTTP status code of the response
|
|
5093
|
+
*/
|
|
5094
|
+
statusCode: number;
|
|
5095
|
+
/**
|
|
5096
|
+
* The type of error
|
|
5097
|
+
*/
|
|
5098
|
+
error: string;
|
|
5099
|
+
};
|
|
5100
|
+
|
|
5101
|
+
type InternalServerError = {
|
|
5102
|
+
/**
|
|
5103
|
+
* The error message describing the reason for the exception
|
|
5104
|
+
*/
|
|
5105
|
+
message: (string | Array<string>);
|
|
5106
|
+
/**
|
|
5107
|
+
* The HTTP status code of the response
|
|
5108
|
+
*/
|
|
5109
|
+
statusCode: number;
|
|
5110
|
+
/**
|
|
5111
|
+
* The type of error
|
|
5112
|
+
*/
|
|
5113
|
+
error: string;
|
|
5114
|
+
};
|
|
5115
|
+
|
|
4881
5116
|
type NextPageToken = {
|
|
4882
5117
|
/**
|
|
4883
5118
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -4885,4 +5120,64 @@ type NextPageToken = {
|
|
|
4885
5120
|
nextPageToken?: string;
|
|
4886
5121
|
};
|
|
4887
5122
|
|
|
4888
|
-
|
|
5123
|
+
type NotFound = {
|
|
5124
|
+
/**
|
|
5125
|
+
* The error message describing the reason for the exception
|
|
5126
|
+
*/
|
|
5127
|
+
message: (string | Array<string>);
|
|
5128
|
+
/**
|
|
5129
|
+
* The HTTP status code of the response
|
|
5130
|
+
*/
|
|
5131
|
+
statusCode: number;
|
|
5132
|
+
/**
|
|
5133
|
+
* The type of error
|
|
5134
|
+
*/
|
|
5135
|
+
error: string;
|
|
5136
|
+
};
|
|
5137
|
+
|
|
5138
|
+
type ServiceUnavailable = {
|
|
5139
|
+
/**
|
|
5140
|
+
* The error message describing the reason for the exception
|
|
5141
|
+
*/
|
|
5142
|
+
message: (string | Array<string>);
|
|
5143
|
+
/**
|
|
5144
|
+
* The HTTP status code of the response
|
|
5145
|
+
*/
|
|
5146
|
+
statusCode: number;
|
|
5147
|
+
/**
|
|
5148
|
+
* The type of error
|
|
5149
|
+
*/
|
|
5150
|
+
error: string;
|
|
5151
|
+
};
|
|
5152
|
+
|
|
5153
|
+
type TooManyRequests = {
|
|
5154
|
+
/**
|
|
5155
|
+
* The error message describing the reason for the exception
|
|
5156
|
+
*/
|
|
5157
|
+
message: (string | Array<string>);
|
|
5158
|
+
/**
|
|
5159
|
+
* The HTTP status code of the response
|
|
5160
|
+
*/
|
|
5161
|
+
statusCode: number;
|
|
5162
|
+
/**
|
|
5163
|
+
* The type of error
|
|
5164
|
+
*/
|
|
5165
|
+
error: string;
|
|
5166
|
+
};
|
|
5167
|
+
|
|
5168
|
+
type Unauthorized = {
|
|
5169
|
+
/**
|
|
5170
|
+
* The error message describing the reason for the exception
|
|
5171
|
+
*/
|
|
5172
|
+
message: (string | Array<string>);
|
|
5173
|
+
/**
|
|
5174
|
+
* The HTTP status code of the response
|
|
5175
|
+
*/
|
|
5176
|
+
statusCode: number;
|
|
5177
|
+
/**
|
|
5178
|
+
* The type of error
|
|
5179
|
+
*/
|
|
5180
|
+
error: string;
|
|
5181
|
+
};
|
|
5182
|
+
|
|
5183
|
+
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, 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 };
|