@avalabs/glacier-sdk 3.1.0-canary.9fc81c6.0 → 3.1.0-canary.a3e15f5.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 +912 -185
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/LogsFormat.d.ts +60 -0
- package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
- package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/Network.d.ts +3 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/PChainTransaction.d.ts +14 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/RequestType.d.ts +9 -0
- package/esm/generated/models/RequestType.js +1 -0
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +47 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +14 -0
- package/esm/generated/models/SoVDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/SovDetailsFull.d.ts +33 -0
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +154 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +10 -10
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +21 -8
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +4 -4
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +24 -24
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +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 +52 -18
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +20 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +34 -6
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +10 -10
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +34 -8
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
- package/esm/generated/models/GlacierApiFeature.js +0 -1
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,411 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type LogsFormatMetadata = {
|
|
58
|
+
/**
|
|
59
|
+
* The IP address of the client that made the request.
|
|
60
|
+
*/
|
|
61
|
+
ipAddress: string;
|
|
62
|
+
/**
|
|
63
|
+
* The host for the request made by the client.
|
|
64
|
+
*/
|
|
65
|
+
host: string;
|
|
66
|
+
/**
|
|
67
|
+
* The user agent of the client that made the request.
|
|
68
|
+
*/
|
|
69
|
+
userAgent: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The type of request made by the client.
|
|
74
|
+
*/
|
|
75
|
+
declare enum RequestType {
|
|
76
|
+
DATA = "data",
|
|
77
|
+
RPC = "rpc"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type LogsFormat = {
|
|
81
|
+
/**
|
|
82
|
+
* The organization id of the request.
|
|
83
|
+
*/
|
|
84
|
+
orgId: string;
|
|
85
|
+
/**
|
|
86
|
+
* The unique log id of the request.
|
|
87
|
+
*/
|
|
88
|
+
logId: string;
|
|
89
|
+
/**
|
|
90
|
+
* The timestamp of the request.
|
|
91
|
+
*/
|
|
92
|
+
eventTimestamp: number;
|
|
93
|
+
/**
|
|
94
|
+
* The apiKey used to make the request.
|
|
95
|
+
*/
|
|
96
|
+
apiKeyId: string;
|
|
97
|
+
/**
|
|
98
|
+
* The alias of the apiKey used to make the request.
|
|
99
|
+
*/
|
|
100
|
+
apiKeyAlias: string;
|
|
101
|
+
/**
|
|
102
|
+
* The region of the host for the request made by the client.
|
|
103
|
+
*/
|
|
104
|
+
hostRegion: string;
|
|
105
|
+
requestType: RequestType;
|
|
106
|
+
/**
|
|
107
|
+
* The path of the request made by the client.
|
|
108
|
+
*/
|
|
109
|
+
requestPath: string;
|
|
110
|
+
/**
|
|
111
|
+
* The number of API credits consumed by the request.
|
|
112
|
+
*/
|
|
113
|
+
apiCreditsConsumed: number;
|
|
114
|
+
/**
|
|
115
|
+
* The duration of the request in milliseconds.
|
|
116
|
+
*/
|
|
117
|
+
requestDurationMsecs: number;
|
|
118
|
+
/**
|
|
119
|
+
* The response code of the request.
|
|
120
|
+
*/
|
|
121
|
+
responseCode: number;
|
|
122
|
+
/**
|
|
123
|
+
* The chain id of the request.
|
|
124
|
+
*/
|
|
125
|
+
chainId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The rpc method of the request.
|
|
128
|
+
*/
|
|
129
|
+
rpcMethod?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The metadata of the request.
|
|
132
|
+
*/
|
|
133
|
+
metadata: LogsFormatMetadata;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
type LogsResponseDTO = {
|
|
137
|
+
/**
|
|
138
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
139
|
+
*/
|
|
140
|
+
nextPageToken?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The organization id of the request.
|
|
143
|
+
*/
|
|
144
|
+
orgId: string;
|
|
145
|
+
/**
|
|
146
|
+
* An array of logs representing the requests made by clients.
|
|
147
|
+
*/
|
|
148
|
+
logs: Array<LogsFormat>;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
type RpcUsageMetricsValueAggregated = {
|
|
152
|
+
/**
|
|
153
|
+
* The total number of requests
|
|
154
|
+
*/
|
|
155
|
+
totalRequests: number;
|
|
156
|
+
/**
|
|
157
|
+
* The number of API credits used
|
|
158
|
+
*/
|
|
159
|
+
apiCreditsUsed: number;
|
|
160
|
+
/**
|
|
161
|
+
* The number of requests per second
|
|
162
|
+
*/
|
|
163
|
+
requestsPerSecond: number;
|
|
164
|
+
/**
|
|
165
|
+
* The success rate percentage
|
|
166
|
+
*/
|
|
167
|
+
successRatePercent: number;
|
|
168
|
+
/**
|
|
169
|
+
* The median response time in milliseconds
|
|
170
|
+
*/
|
|
171
|
+
medianResponseTimeMsecs: number;
|
|
172
|
+
/**
|
|
173
|
+
* The number of invalid requests
|
|
174
|
+
*/
|
|
175
|
+
invalidRequests: number;
|
|
176
|
+
/**
|
|
177
|
+
* Column name used for data aggregation
|
|
178
|
+
*/
|
|
179
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
180
|
+
/**
|
|
181
|
+
* The value of the column used for data aggregation
|
|
182
|
+
*/
|
|
183
|
+
groupValue?: (string | number);
|
|
184
|
+
};
|
|
185
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
186
|
+
/**
|
|
187
|
+
* Column name used for data aggregation
|
|
188
|
+
*/
|
|
189
|
+
enum groupedBy {
|
|
190
|
+
RPC_METHOD = "rpcMethod",
|
|
191
|
+
RESPONSE_CODE = "responseCode",
|
|
192
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
193
|
+
NONE = "None"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type RpcMetrics = {
|
|
198
|
+
/**
|
|
199
|
+
* The timestamp of the metrics value
|
|
200
|
+
*/
|
|
201
|
+
timestamp: number;
|
|
202
|
+
/**
|
|
203
|
+
* The metrics values for the timestamp
|
|
204
|
+
*/
|
|
205
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
type RpcUsageMetricsResponseDTO = {
|
|
209
|
+
/**
|
|
210
|
+
* Duration in which the metrics value is aggregated
|
|
211
|
+
*/
|
|
212
|
+
aggregateDuration: string;
|
|
213
|
+
/**
|
|
214
|
+
* ChainId for which the metrics are aggregated
|
|
215
|
+
*/
|
|
216
|
+
chainId: string;
|
|
217
|
+
/**
|
|
218
|
+
* Metrics values
|
|
219
|
+
*/
|
|
220
|
+
metrics: Array<RpcMetrics>;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare enum TimeIntervalGranularityExtended {
|
|
224
|
+
MINUTE = "minute",
|
|
225
|
+
HOURLY = "hourly",
|
|
226
|
+
DAILY = "daily",
|
|
227
|
+
WEEKLY = "weekly",
|
|
228
|
+
MONTHLY = "monthly"
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare enum UsageMetricsGroupByEnum {
|
|
232
|
+
REQUEST_PATH = "requestPath",
|
|
233
|
+
RESPONSE_CODE = "responseCode",
|
|
234
|
+
CHAIN_ID = "chainId",
|
|
235
|
+
API_KEY_ID = "apiKeyId",
|
|
236
|
+
REQUEST_TYPE = "requestType"
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type UsageMetricsValueDTO = {
|
|
240
|
+
/**
|
|
241
|
+
* Column name used for data aggregation
|
|
242
|
+
*/
|
|
243
|
+
groupedBy: UsageMetricsValueDTO.groupedBy;
|
|
244
|
+
/**
|
|
245
|
+
* The value of the column used for data aggregation
|
|
246
|
+
*/
|
|
247
|
+
groupValue?: (string | number);
|
|
248
|
+
/**
|
|
249
|
+
* The total number of requests
|
|
250
|
+
*/
|
|
251
|
+
totalRequests: number;
|
|
252
|
+
/**
|
|
253
|
+
* The number of requests per second
|
|
254
|
+
*/
|
|
255
|
+
requestsPerSecond: number;
|
|
256
|
+
/**
|
|
257
|
+
* The success rate percentage
|
|
258
|
+
*/
|
|
259
|
+
successRatePercent: number;
|
|
260
|
+
/**
|
|
261
|
+
* The median response time in milliseconds
|
|
262
|
+
*/
|
|
263
|
+
medianResponseTimeMsecs: number;
|
|
264
|
+
/**
|
|
265
|
+
* The number of invalid requests
|
|
266
|
+
*/
|
|
267
|
+
invalidRequests: number;
|
|
268
|
+
/**
|
|
269
|
+
* The number of API credits used
|
|
270
|
+
*/
|
|
271
|
+
apiCreditsUsed: number;
|
|
272
|
+
/**
|
|
273
|
+
* The number of API credits wasted on invalid requests
|
|
274
|
+
*/
|
|
275
|
+
apiCreditsWasted: number;
|
|
276
|
+
};
|
|
277
|
+
declare namespace UsageMetricsValueDTO {
|
|
278
|
+
/**
|
|
279
|
+
* Column name used for data aggregation
|
|
280
|
+
*/
|
|
281
|
+
enum groupedBy {
|
|
282
|
+
REQUEST_PATH = "requestPath",
|
|
283
|
+
RESPONSE_CODE = "responseCode",
|
|
284
|
+
CHAIN_ID = "chainId",
|
|
285
|
+
API_KEY_ID = "apiKeyId",
|
|
286
|
+
REQUEST_TYPE = "requestType",
|
|
287
|
+
NONE = "None"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
type Metric = {
|
|
292
|
+
/**
|
|
293
|
+
* The timestamp of the metrics value
|
|
294
|
+
*/
|
|
295
|
+
timestamp: number;
|
|
296
|
+
/**
|
|
297
|
+
* The metrics values for the timestamp
|
|
298
|
+
*/
|
|
299
|
+
values: Array<UsageMetricsValueDTO>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
type UsageMetricsResponseDTO = {
|
|
303
|
+
/**
|
|
304
|
+
* Duration in which the metrics value is aggregated
|
|
305
|
+
*/
|
|
306
|
+
aggregateDuration: string;
|
|
307
|
+
/**
|
|
308
|
+
* Org ID for which the metrics are aggregated
|
|
309
|
+
*/
|
|
310
|
+
orgId: string;
|
|
311
|
+
/**
|
|
312
|
+
* Metrics values
|
|
313
|
+
*/
|
|
314
|
+
metrics: Array<Metric>;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
declare class DataApiUsageMetricsService {
|
|
318
|
+
readonly httpRequest: BaseHttpRequest;
|
|
319
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
320
|
+
/**
|
|
321
|
+
* Get usage metrics for the Data API
|
|
322
|
+
* Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
323
|
+
* @returns UsageMetricsResponseDTO Successful response
|
|
324
|
+
* @throws ApiError
|
|
325
|
+
*/
|
|
326
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
|
|
327
|
+
/**
|
|
328
|
+
* Organization ID to fetch usage metrics for
|
|
329
|
+
*/
|
|
330
|
+
orgId?: string;
|
|
331
|
+
/**
|
|
332
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
333
|
+
*/
|
|
334
|
+
startTimestamp?: number;
|
|
335
|
+
/**
|
|
336
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
337
|
+
*/
|
|
338
|
+
endTimestamp?: number;
|
|
339
|
+
/**
|
|
340
|
+
* Time interval granularity for data aggregation
|
|
341
|
+
*/
|
|
342
|
+
timeInterval?: TimeIntervalGranularityExtended;
|
|
343
|
+
/**
|
|
344
|
+
* Query param for the criterion used for grouping metrics
|
|
345
|
+
*/
|
|
346
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
347
|
+
/**
|
|
348
|
+
* Filter data by chain ID.
|
|
349
|
+
*/
|
|
350
|
+
chainId?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Filter data by request path.
|
|
353
|
+
*/
|
|
354
|
+
requestPath?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Filter data by response status code.
|
|
357
|
+
*/
|
|
358
|
+
responseCode?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Filter data by request type.
|
|
361
|
+
*/
|
|
362
|
+
requestType?: 'data' | 'rpc';
|
|
363
|
+
/**
|
|
364
|
+
* Filter data by API key ID.
|
|
365
|
+
*/
|
|
366
|
+
apiKeyId?: string;
|
|
367
|
+
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
|
+
/**
|
|
369
|
+
* Get logs for requests made by client
|
|
370
|
+
* Gets logs for requests made by client over a specified time interval for a specific organization.
|
|
371
|
+
* @returns LogsResponseDTO Successful response
|
|
372
|
+
* @throws ApiError
|
|
373
|
+
*/
|
|
374
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
|
|
375
|
+
/**
|
|
376
|
+
* Organization ID to fetch usage metrics for
|
|
377
|
+
*/
|
|
378
|
+
orgId?: string;
|
|
379
|
+
/**
|
|
380
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
381
|
+
*/
|
|
382
|
+
startTimestamp?: number;
|
|
383
|
+
/**
|
|
384
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
385
|
+
*/
|
|
386
|
+
endTimestamp?: number;
|
|
387
|
+
/**
|
|
388
|
+
* Filter data by chain ID.
|
|
389
|
+
*/
|
|
390
|
+
chainId?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Filter data by request path.
|
|
393
|
+
*/
|
|
394
|
+
requestPath?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Filter data by response status code.
|
|
397
|
+
*/
|
|
398
|
+
responseCode?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Filter data by request type.
|
|
401
|
+
*/
|
|
402
|
+
requestType?: 'data' | 'rpc';
|
|
403
|
+
/**
|
|
404
|
+
* Filter data by API key ID.
|
|
405
|
+
*/
|
|
406
|
+
apiKeyId?: string;
|
|
407
|
+
/**
|
|
408
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
|
+
*/
|
|
410
|
+
pageToken?: string;
|
|
411
|
+
/**
|
|
412
|
+
* The maximum number of items to return.
|
|
413
|
+
*/
|
|
414
|
+
pageSize?: number;
|
|
415
|
+
}): CancelablePromise<LogsResponseDTO>;
|
|
416
|
+
/**
|
|
417
|
+
* Get usage metrics for the Subnet RPC
|
|
418
|
+
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
+
* @returns RpcUsageMetricsResponseDTO Successful response
|
|
420
|
+
* @throws ApiError
|
|
421
|
+
*/
|
|
422
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
|
+
/**
|
|
424
|
+
* Query param for setting time interval of data aggregation.
|
|
425
|
+
*/
|
|
426
|
+
timeInterval?: string;
|
|
427
|
+
/**
|
|
428
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
429
|
+
*/
|
|
430
|
+
startTimestamp?: number;
|
|
431
|
+
/**
|
|
432
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
433
|
+
*/
|
|
434
|
+
endTimestamp?: number;
|
|
435
|
+
/**
|
|
436
|
+
* Query param for the criterion used for grouping metrics
|
|
437
|
+
*/
|
|
438
|
+
groupBy?: UsageMetricsGroupByEnum;
|
|
439
|
+
/**
|
|
440
|
+
* Filter data by chain ID.
|
|
441
|
+
*/
|
|
442
|
+
chainId?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Filter data by request path.
|
|
445
|
+
*/
|
|
446
|
+
requestPath?: string;
|
|
447
|
+
/**
|
|
448
|
+
* Filter data by response status code.
|
|
449
|
+
*/
|
|
450
|
+
responseCode?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Filter data by RPC method.
|
|
453
|
+
*/
|
|
454
|
+
rpcMethod?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Filter data by Rl Bypass API Token.
|
|
457
|
+
*/
|
|
458
|
+
rlBypassApiToken?: string;
|
|
459
|
+
}): CancelablePromise<RpcUsageMetricsResponseDTO>;
|
|
460
|
+
}
|
|
461
|
+
|
|
57
462
|
declare class DefaultService {
|
|
58
463
|
readonly httpRequest: BaseHttpRequest;
|
|
59
464
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -331,12 +736,12 @@ declare class EvmBalancesService {
|
|
|
331
736
|
* Gets native token balance of a wallet address.
|
|
332
737
|
*
|
|
333
738
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
334
|
-
* @returns GetNativeBalanceResponse
|
|
739
|
+
* @returns GetNativeBalanceResponse Successful response
|
|
335
740
|
* @throws ApiError
|
|
336
741
|
*/
|
|
337
742
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
338
743
|
/**
|
|
339
|
-
* A supported evm chain id
|
|
744
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
340
745
|
*/
|
|
341
746
|
chainId: string;
|
|
342
747
|
/**
|
|
@@ -359,12 +764,12 @@ declare class EvmBalancesService {
|
|
|
359
764
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
360
765
|
*
|
|
361
766
|
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
362
|
-
* @returns ListErc20BalancesResponse
|
|
767
|
+
* @returns ListErc20BalancesResponse Successful response
|
|
363
768
|
* @throws ApiError
|
|
364
769
|
*/
|
|
365
770
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
366
771
|
/**
|
|
367
|
-
* A supported evm chain id
|
|
772
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
773
|
*/
|
|
369
774
|
chainId: string;
|
|
370
775
|
/**
|
|
@@ -401,12 +806,12 @@ declare class EvmBalancesService {
|
|
|
401
806
|
* Lists ERC-721 token balances of a wallet address.
|
|
402
807
|
*
|
|
403
808
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
404
|
-
* @returns ListErc721BalancesResponse
|
|
809
|
+
* @returns ListErc721BalancesResponse Successful response
|
|
405
810
|
* @throws ApiError
|
|
406
811
|
*/
|
|
407
812
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
408
813
|
/**
|
|
409
|
-
* A supported evm chain id
|
|
814
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
410
815
|
*/
|
|
411
816
|
chainId: string;
|
|
412
817
|
/**
|
|
@@ -433,12 +838,12 @@ declare class EvmBalancesService {
|
|
|
433
838
|
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
434
839
|
*
|
|
435
840
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
436
|
-
* @returns ListErc1155BalancesResponse
|
|
841
|
+
* @returns ListErc1155BalancesResponse Successful response
|
|
437
842
|
* @throws ApiError
|
|
438
843
|
*/
|
|
439
844
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
440
845
|
/**
|
|
441
|
-
* A supported evm chain id
|
|
846
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
442
847
|
*/
|
|
443
848
|
chainId: string;
|
|
444
849
|
/**
|
|
@@ -467,12 +872,12 @@ declare class EvmBalancesService {
|
|
|
467
872
|
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
468
873
|
*
|
|
469
874
|
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
470
|
-
* @returns ListCollectibleBalancesResponse
|
|
875
|
+
* @returns ListCollectibleBalancesResponse Successful response
|
|
471
876
|
* @throws ApiError
|
|
472
877
|
*/
|
|
473
878
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
474
879
|
/**
|
|
475
|
-
* A supported evm chain id
|
|
880
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
476
881
|
*/
|
|
477
882
|
chainId: string;
|
|
478
883
|
/**
|
|
@@ -596,12 +1001,12 @@ declare class EvmBlocksService {
|
|
|
596
1001
|
/**
|
|
597
1002
|
* List latest blocks
|
|
598
1003
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
599
|
-
* @returns ListEvmBlocksResponse
|
|
1004
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
600
1005
|
* @throws ApiError
|
|
601
1006
|
*/
|
|
602
1007
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
603
1008
|
/**
|
|
604
|
-
* A supported evm chain id
|
|
1009
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
605
1010
|
*/
|
|
606
1011
|
chainId: string;
|
|
607
1012
|
/**
|
|
@@ -616,12 +1021,12 @@ declare class EvmBlocksService {
|
|
|
616
1021
|
/**
|
|
617
1022
|
* Get block
|
|
618
1023
|
* Gets the details of an individual block on the EVM-compatible chain.
|
|
619
|
-
* @returns GetEvmBlockResponse
|
|
1024
|
+
* @returns GetEvmBlockResponse Successful response
|
|
620
1025
|
* @throws ApiError
|
|
621
1026
|
*/
|
|
622
1027
|
getBlock({ chainId, blockId, }: {
|
|
623
1028
|
/**
|
|
624
|
-
* A supported evm chain id
|
|
1029
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
1030
|
*/
|
|
626
1031
|
chainId: string;
|
|
627
1032
|
/**
|
|
@@ -631,6 +1036,12 @@ declare class EvmBlocksService {
|
|
|
631
1036
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
632
1037
|
}
|
|
633
1038
|
|
|
1039
|
+
declare enum ApiFeature {
|
|
1040
|
+
NFT_INDEXING = "nftIndexing",
|
|
1041
|
+
WEBHOOKS = "webhooks",
|
|
1042
|
+
TELEPORTER = "teleporter"
|
|
1043
|
+
}
|
|
1044
|
+
|
|
634
1045
|
/**
|
|
635
1046
|
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
636
1047
|
*/
|
|
@@ -686,14 +1097,9 @@ type GetChainResponse = {
|
|
|
686
1097
|
networkToken: NetworkToken;
|
|
687
1098
|
chainLogoUri?: string;
|
|
688
1099
|
private?: boolean;
|
|
689
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1100
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
690
1101
|
};
|
|
691
1102
|
|
|
692
|
-
declare enum GlacierApiFeature {
|
|
693
|
-
NFT_INDEXING = "nftIndexing",
|
|
694
|
-
WEBHOOKS = "webhooks"
|
|
695
|
-
}
|
|
696
|
-
|
|
697
1103
|
type ChainInfo = {
|
|
698
1104
|
chainId: string;
|
|
699
1105
|
status: ChainStatus;
|
|
@@ -711,16 +1117,23 @@ type ChainInfo = {
|
|
|
711
1117
|
networkToken: NetworkToken;
|
|
712
1118
|
chainLogoUri?: string;
|
|
713
1119
|
private?: boolean;
|
|
714
|
-
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
1120
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1123
|
+
type ListAddressChainsResponse = {
|
|
1124
|
+
indexedChains?: Array<ChainInfo>;
|
|
1125
|
+
unindexedChains?: Array<string>;
|
|
715
1126
|
};
|
|
716
1127
|
|
|
717
1128
|
type ListChainsResponse = {
|
|
718
1129
|
chains: Array<ChainInfo>;
|
|
719
1130
|
};
|
|
720
1131
|
|
|
721
|
-
declare enum
|
|
1132
|
+
declare enum Network {
|
|
722
1133
|
MAINNET = "mainnet",
|
|
723
|
-
|
|
1134
|
+
FUJI = "fuji",
|
|
1135
|
+
TESTNET = "testnet",
|
|
1136
|
+
DEVNET = "devnet"
|
|
724
1137
|
}
|
|
725
1138
|
|
|
726
1139
|
declare class EvmChainsService {
|
|
@@ -729,31 +1142,43 @@ declare class EvmChainsService {
|
|
|
729
1142
|
/**
|
|
730
1143
|
* List chains
|
|
731
1144
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
732
|
-
* @returns ListChainsResponse
|
|
1145
|
+
* @returns ListChainsResponse Successful response
|
|
733
1146
|
* @throws ApiError
|
|
734
1147
|
*/
|
|
735
1148
|
supportedChains({ network, feature, }: {
|
|
736
1149
|
/**
|
|
737
|
-
* mainnet or testnet.
|
|
1150
|
+
* Either mainnet or testnet/fuji.
|
|
738
1151
|
*/
|
|
739
|
-
network?:
|
|
1152
|
+
network?: Network;
|
|
740
1153
|
/**
|
|
741
1154
|
* Filter by feature.
|
|
742
1155
|
*/
|
|
743
|
-
feature?:
|
|
1156
|
+
feature?: ApiFeature;
|
|
744
1157
|
}): CancelablePromise<ListChainsResponse>;
|
|
745
1158
|
/**
|
|
746
1159
|
* Get chain information
|
|
747
1160
|
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
748
|
-
* @returns GetChainResponse
|
|
1161
|
+
* @returns GetChainResponse Successful response
|
|
749
1162
|
* @throws ApiError
|
|
750
1163
|
*/
|
|
751
1164
|
getChainInfo({ chainId, }: {
|
|
752
1165
|
/**
|
|
753
|
-
* A supported evm chain id
|
|
1166
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
1167
|
*/
|
|
755
1168
|
chainId: string;
|
|
756
1169
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Get chains for address
|
|
1172
|
+
* Gets the list of chains an address has interacted with.
|
|
1173
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
+
* @throws ApiError
|
|
1175
|
+
*/
|
|
1176
|
+
getAddressChains({ address, }: {
|
|
1177
|
+
/**
|
|
1178
|
+
* A wallet address.
|
|
1179
|
+
*/
|
|
1180
|
+
address: string;
|
|
1181
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
757
1182
|
}
|
|
758
1183
|
|
|
759
1184
|
type ImageAsset = {
|
|
@@ -1040,12 +1465,12 @@ declare class EvmContractsService {
|
|
|
1040
1465
|
/**
|
|
1041
1466
|
* Get contract metadata
|
|
1042
1467
|
* Gets metadata about the contract at the given address.
|
|
1043
|
-
* @returns any
|
|
1468
|
+
* @returns any Successful response
|
|
1044
1469
|
* @throws ApiError
|
|
1045
1470
|
*/
|
|
1046
1471
|
getContractMetadata({ chainId, address, }: {
|
|
1047
1472
|
/**
|
|
1048
|
-
* A supported evm chain id
|
|
1473
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
1474
|
*/
|
|
1050
1475
|
chainId: string;
|
|
1051
1476
|
/**
|
|
@@ -1056,12 +1481,12 @@ declare class EvmContractsService {
|
|
|
1056
1481
|
/**
|
|
1057
1482
|
* Update contract information
|
|
1058
1483
|
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1059
|
-
* @returns UpdateContractResponse
|
|
1484
|
+
* @returns UpdateContractResponse Successful response
|
|
1060
1485
|
* @throws ApiError
|
|
1061
1486
|
*/
|
|
1062
1487
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1063
1488
|
/**
|
|
1064
|
-
* A supported evm chain id
|
|
1489
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
1490
|
*/
|
|
1066
1491
|
chainId: string;
|
|
1067
1492
|
/**
|
|
@@ -1309,6 +1734,24 @@ type NetworkTokenDetails = {
|
|
|
1309
1734
|
historicalPrice?: Money;
|
|
1310
1735
|
};
|
|
1311
1736
|
|
|
1737
|
+
declare enum TransactionDirectionType {
|
|
1738
|
+
SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
|
|
1739
|
+
DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
type TeleporterMessageInfo = {
|
|
1743
|
+
teleporterMessageId: string;
|
|
1744
|
+
direction: TransactionDirectionType;
|
|
1745
|
+
/**
|
|
1746
|
+
* chain id of the source chain. valid only for destination transactions
|
|
1747
|
+
*/
|
|
1748
|
+
sourceChainId?: Record<string, any>;
|
|
1749
|
+
/**
|
|
1750
|
+
* chain id of the destination chain. valid only for source transactions
|
|
1751
|
+
*/
|
|
1752
|
+
destinationChainId?: Record<string, any>;
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1312
1755
|
type GetTransactionResponse = {
|
|
1313
1756
|
/**
|
|
1314
1757
|
* The list of ERC-20 transfers.
|
|
@@ -1328,6 +1771,10 @@ type GetTransactionResponse = {
|
|
|
1328
1771
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1329
1772
|
networkTokenDetails: NetworkTokenDetails;
|
|
1330
1773
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1774
|
+
/**
|
|
1775
|
+
* Corresponding teleporter message info if available.
|
|
1776
|
+
*/
|
|
1777
|
+
teleporterMessageInfo?: TeleporterMessageInfo;
|
|
1331
1778
|
};
|
|
1332
1779
|
|
|
1333
1780
|
type ListContractsResponse = {
|
|
@@ -1584,12 +2031,12 @@ declare class EvmTransactionsService {
|
|
|
1584
2031
|
/**
|
|
1585
2032
|
* Get deployment transaction
|
|
1586
2033
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
1587
|
-
* @returns GetTransactionResponse
|
|
2034
|
+
* @returns GetTransactionResponse Successful response
|
|
1588
2035
|
* @throws ApiError
|
|
1589
2036
|
*/
|
|
1590
2037
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1591
2038
|
/**
|
|
1592
|
-
* A supported evm chain id
|
|
2039
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
2040
|
*/
|
|
1594
2041
|
chainId: string;
|
|
1595
2042
|
/**
|
|
@@ -1604,12 +2051,12 @@ declare class EvmTransactionsService {
|
|
|
1604
2051
|
/**
|
|
1605
2052
|
* List deployed contracts
|
|
1606
2053
|
* Lists all contracts deployed by the given address.
|
|
1607
|
-
* @returns ListContractsResponse
|
|
2054
|
+
* @returns ListContractsResponse Successful response
|
|
1608
2055
|
* @throws ApiError
|
|
1609
2056
|
*/
|
|
1610
2057
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1611
2058
|
/**
|
|
1612
|
-
* A supported evm chain id
|
|
2059
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
2060
|
*/
|
|
1614
2061
|
chainId: string;
|
|
1615
2062
|
/**
|
|
@@ -1628,12 +2075,12 @@ declare class EvmTransactionsService {
|
|
|
1628
2075
|
/**
|
|
1629
2076
|
* List ERC transfers
|
|
1630
2077
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
1631
|
-
* @returns ListTransfersResponse
|
|
2078
|
+
* @returns ListTransfersResponse Successful response
|
|
1632
2079
|
* @throws ApiError
|
|
1633
2080
|
*/
|
|
1634
2081
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1635
2082
|
/**
|
|
1636
|
-
* A supported evm chain id
|
|
2083
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
2084
|
*/
|
|
1638
2085
|
chainId: string;
|
|
1639
2086
|
/**
|
|
@@ -1662,12 +2109,12 @@ declare class EvmTransactionsService {
|
|
|
1662
2109
|
* 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
2110
|
*
|
|
1664
2111
|
* Filterable by block ranges.
|
|
1665
|
-
* @returns ListTransactionDetailsResponse
|
|
2112
|
+
* @returns ListTransactionDetailsResponse Successful response
|
|
1666
2113
|
* @throws ApiError
|
|
1667
2114
|
*/
|
|
1668
2115
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1669
2116
|
/**
|
|
1670
|
-
* A supported evm chain id
|
|
2117
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
2118
|
*/
|
|
1672
2119
|
chainId: string;
|
|
1673
2120
|
/**
|
|
@@ -1698,12 +2145,12 @@ declare class EvmTransactionsService {
|
|
|
1698
2145
|
/**
|
|
1699
2146
|
* List native transactions
|
|
1700
2147
|
* Lists native transactions for an address. Filterable by block range.
|
|
1701
|
-
* @returns ListNativeTransactionsResponse
|
|
2148
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1702
2149
|
* @throws ApiError
|
|
1703
2150
|
*/
|
|
1704
2151
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1705
2152
|
/**
|
|
1706
|
-
* A supported evm chain id
|
|
2153
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
2154
|
*/
|
|
1708
2155
|
chainId: string;
|
|
1709
2156
|
/**
|
|
@@ -1730,12 +2177,12 @@ declare class EvmTransactionsService {
|
|
|
1730
2177
|
/**
|
|
1731
2178
|
* List ERC-20 transfers
|
|
1732
2179
|
* Lists ERC-20 transfers for an address. Filterable by block range.
|
|
1733
|
-
* @returns ListErc20TransactionsResponse
|
|
2180
|
+
* @returns ListErc20TransactionsResponse Successful response
|
|
1734
2181
|
* @throws ApiError
|
|
1735
2182
|
*/
|
|
1736
2183
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
2184
|
/**
|
|
1738
|
-
* A supported evm chain id
|
|
2185
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
2186
|
*/
|
|
1740
2187
|
chainId: string;
|
|
1741
2188
|
/**
|
|
@@ -1762,12 +2209,12 @@ declare class EvmTransactionsService {
|
|
|
1762
2209
|
/**
|
|
1763
2210
|
* List ERC-721 transfers
|
|
1764
2211
|
* Lists ERC-721 transfers for an address. Filterable by block range.
|
|
1765
|
-
* @returns ListErc721TransactionsResponse
|
|
2212
|
+
* @returns ListErc721TransactionsResponse Successful response
|
|
1766
2213
|
* @throws ApiError
|
|
1767
2214
|
*/
|
|
1768
2215
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1769
2216
|
/**
|
|
1770
|
-
* A supported evm chain id
|
|
2217
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
2218
|
*/
|
|
1772
2219
|
chainId: string;
|
|
1773
2220
|
/**
|
|
@@ -1794,12 +2241,12 @@ declare class EvmTransactionsService {
|
|
|
1794
2241
|
/**
|
|
1795
2242
|
* List ERC-1155 transfers
|
|
1796
2243
|
* Lists ERC-1155 transfers for an address. Filterable by block range.
|
|
1797
|
-
* @returns ListErc1155TransactionsResponse
|
|
2244
|
+
* @returns ListErc1155TransactionsResponse Successful response
|
|
1798
2245
|
* @throws ApiError
|
|
1799
2246
|
*/
|
|
1800
2247
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1801
2248
|
/**
|
|
1802
|
-
* A supported evm chain id
|
|
2249
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
2250
|
*/
|
|
1804
2251
|
chainId: string;
|
|
1805
2252
|
/**
|
|
@@ -1828,12 +2275,12 @@ declare class EvmTransactionsService {
|
|
|
1828
2275
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
1829
2276
|
*
|
|
1830
2277
|
* 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
|
|
2278
|
+
* @returns ListInternalTransactionsResponse Successful response
|
|
1832
2279
|
* @throws ApiError
|
|
1833
2280
|
*/
|
|
1834
2281
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1835
2282
|
/**
|
|
1836
|
-
* A supported evm chain id
|
|
2283
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
2284
|
*/
|
|
1838
2285
|
chainId: string;
|
|
1839
2286
|
/**
|
|
@@ -1860,12 +2307,12 @@ declare class EvmTransactionsService {
|
|
|
1860
2307
|
/**
|
|
1861
2308
|
* Get transaction
|
|
1862
2309
|
* Gets the details of a single transaction.
|
|
1863
|
-
* @returns GetTransactionResponse
|
|
2310
|
+
* @returns GetTransactionResponse Successful response
|
|
1864
2311
|
* @throws ApiError
|
|
1865
2312
|
*/
|
|
1866
2313
|
getTransaction({ chainId, txHash, }: {
|
|
1867
2314
|
/**
|
|
1868
|
-
* A supported evm chain id
|
|
2315
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
2316
|
*/
|
|
1870
2317
|
chainId: string;
|
|
1871
2318
|
/**
|
|
@@ -1876,12 +2323,12 @@ declare class EvmTransactionsService {
|
|
|
1876
2323
|
/**
|
|
1877
2324
|
* List transactions for a block
|
|
1878
2325
|
* Lists the transactions that occured in a given block.
|
|
1879
|
-
* @returns ListNativeTransactionsResponse
|
|
2326
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1880
2327
|
* @throws ApiError
|
|
1881
2328
|
*/
|
|
1882
2329
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1883
2330
|
/**
|
|
1884
|
-
* A supported evm chain id
|
|
2331
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
2332
|
*/
|
|
1886
2333
|
chainId: string;
|
|
1887
2334
|
/**
|
|
@@ -1892,12 +2339,12 @@ declare class EvmTransactionsService {
|
|
|
1892
2339
|
/**
|
|
1893
2340
|
* List latest transactions
|
|
1894
2341
|
* Lists the latest transactions. Filterable by status.
|
|
1895
|
-
* @returns ListNativeTransactionsResponse
|
|
2342
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1896
2343
|
* @throws ApiError
|
|
1897
2344
|
*/
|
|
1898
2345
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1899
2346
|
/**
|
|
1900
|
-
* A supported evm chain id
|
|
2347
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
2348
|
*/
|
|
1902
2349
|
chainId: string;
|
|
1903
2350
|
/**
|
|
@@ -1923,7 +2370,7 @@ declare class HealthCheckService {
|
|
|
1923
2370
|
* @returns any The Health Check is successful
|
|
1924
2371
|
* @throws ApiError
|
|
1925
2372
|
*/
|
|
1926
|
-
|
|
2373
|
+
dataHealthCheck(): CancelablePromise<{
|
|
1927
2374
|
status?: string;
|
|
1928
2375
|
info?: Record<string, Record<string, string>> | null;
|
|
1929
2376
|
error?: Record<string, Record<string, string>> | null;
|
|
@@ -1945,12 +2392,12 @@ declare class NfTsService {
|
|
|
1945
2392
|
/**
|
|
1946
2393
|
* Reindex NFT metadata
|
|
1947
2394
|
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
1948
|
-
* @returns any
|
|
2395
|
+
* @returns any Successful response
|
|
1949
2396
|
* @throws ApiError
|
|
1950
2397
|
*/
|
|
1951
2398
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1952
2399
|
/**
|
|
1953
|
-
* A supported evm chain id
|
|
2400
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1954
2401
|
*/
|
|
1955
2402
|
chainId: string;
|
|
1956
2403
|
/**
|
|
@@ -1965,12 +2412,12 @@ declare class NfTsService {
|
|
|
1965
2412
|
/**
|
|
1966
2413
|
* List tokens
|
|
1967
2414
|
* Lists tokens for an NFT contract.
|
|
1968
|
-
* @returns ListNftTokens
|
|
2415
|
+
* @returns ListNftTokens Successful response
|
|
1969
2416
|
* @throws ApiError
|
|
1970
2417
|
*/
|
|
1971
2418
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1972
2419
|
/**
|
|
1973
|
-
* A supported evm chain id
|
|
2420
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1974
2421
|
*/
|
|
1975
2422
|
chainId: string;
|
|
1976
2423
|
/**
|
|
@@ -1989,12 +2436,12 @@ declare class NfTsService {
|
|
|
1989
2436
|
/**
|
|
1990
2437
|
* Get token details
|
|
1991
2438
|
* Gets token details for a specific token of an NFT contract.
|
|
1992
|
-
* @returns any
|
|
2439
|
+
* @returns any Successful response
|
|
1993
2440
|
* @throws ApiError
|
|
1994
2441
|
*/
|
|
1995
2442
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1996
2443
|
/**
|
|
1997
|
-
* A supported evm chain id
|
|
2444
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1998
2445
|
*/
|
|
1999
2446
|
chainId: string;
|
|
2000
2447
|
/**
|
|
@@ -2019,16 +2466,16 @@ declare enum EVMOperationType {
|
|
|
2019
2466
|
|
|
2020
2467
|
type CreateEvmTransactionExportRequest = {
|
|
2021
2468
|
type: EVMOperationType;
|
|
2022
|
-
firstDate
|
|
2023
|
-
lastDate
|
|
2469
|
+
firstDate?: string;
|
|
2470
|
+
lastDate?: string;
|
|
2024
2471
|
/**
|
|
2025
2472
|
* @deprecated
|
|
2026
2473
|
*/
|
|
2027
|
-
startDate
|
|
2474
|
+
startDate?: string;
|
|
2028
2475
|
/**
|
|
2029
2476
|
* @deprecated
|
|
2030
2477
|
*/
|
|
2031
|
-
endDate
|
|
2478
|
+
endDate?: string;
|
|
2032
2479
|
options: EvmNetworkOptions;
|
|
2033
2480
|
};
|
|
2034
2481
|
|
|
@@ -2041,21 +2488,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2041
2488
|
type PrimaryNetworkOptions = {
|
|
2042
2489
|
addresses?: Array<string>;
|
|
2043
2490
|
cChainEvmAddresses?: Array<string>;
|
|
2044
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2491
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2045
2492
|
};
|
|
2046
2493
|
|
|
2047
2494
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2048
2495
|
type: PrimaryNetworkOperationType;
|
|
2049
|
-
firstDate
|
|
2050
|
-
lastDate
|
|
2496
|
+
firstDate?: string;
|
|
2497
|
+
lastDate?: string;
|
|
2051
2498
|
/**
|
|
2052
2499
|
* @deprecated
|
|
2053
2500
|
*/
|
|
2054
|
-
startDate
|
|
2501
|
+
startDate?: string;
|
|
2055
2502
|
/**
|
|
2056
2503
|
* @deprecated
|
|
2057
2504
|
*/
|
|
2058
|
-
endDate
|
|
2505
|
+
endDate?: string;
|
|
2059
2506
|
options: PrimaryNetworkOptions;
|
|
2060
2507
|
};
|
|
2061
2508
|
|
|
@@ -2107,7 +2554,7 @@ declare class OperationsService {
|
|
|
2107
2554
|
/**
|
|
2108
2555
|
* Get operation
|
|
2109
2556
|
* Gets operation details for the given operation id.
|
|
2110
|
-
* @returns OperationStatusResponse
|
|
2557
|
+
* @returns OperationStatusResponse Successful response
|
|
2111
2558
|
* @throws ApiError
|
|
2112
2559
|
*/
|
|
2113
2560
|
getOperationResult({ operationId, }: {
|
|
@@ -2121,7 +2568,7 @@ declare class OperationsService {
|
|
|
2121
2568
|
* Trigger a transaction export operation with given parameters.
|
|
2122
2569
|
*
|
|
2123
2570
|
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2124
|
-
* @returns OperationStatusResponse
|
|
2571
|
+
* @returns OperationStatusResponse Successful response
|
|
2125
2572
|
* @throws ApiError
|
|
2126
2573
|
*/
|
|
2127
2574
|
postTransactionExportJob({ requestBody, }: {
|
|
@@ -2133,8 +2580,10 @@ declare enum BlockchainIds {
|
|
|
2133
2580
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2134
2581
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2135
2582
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2583
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2136
2584
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2137
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2585
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
2586
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2138
2587
|
}
|
|
2139
2588
|
|
|
2140
2589
|
type ChainAddressChainIdMap = {
|
|
@@ -2258,10 +2707,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2258
2707
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2259
2708
|
};
|
|
2260
2709
|
|
|
2710
|
+
type BalanceOwner = {
|
|
2711
|
+
addresses: Array<string>;
|
|
2712
|
+
threshold: number;
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
type SovDetailsFull = {
|
|
2716
|
+
/**
|
|
2717
|
+
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
2718
|
+
*/
|
|
2719
|
+
validationId: string;
|
|
2720
|
+
nodeId: string;
|
|
2721
|
+
subnetId: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
2724
|
+
*/
|
|
2725
|
+
weight: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
2728
|
+
*/
|
|
2729
|
+
remainingBalance: number;
|
|
2730
|
+
/**
|
|
2731
|
+
* The timestamp of the transaction which created this SoV
|
|
2732
|
+
*/
|
|
2733
|
+
creationTimestamp: number;
|
|
2734
|
+
blsCredentials: Record<string, any>;
|
|
2735
|
+
/**
|
|
2736
|
+
* The SoV owner's balance, returned after it's disabled or removed
|
|
2737
|
+
*/
|
|
2738
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2739
|
+
/**
|
|
2740
|
+
* Owner ddresses details which can disable or remove the SoV
|
|
2741
|
+
*/
|
|
2742
|
+
deactivationOwner: BalanceOwner;
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
type ListSubnetOnlyValidatorsResponse = {
|
|
2746
|
+
/**
|
|
2747
|
+
* 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.
|
|
2748
|
+
*/
|
|
2749
|
+
nextPageToken?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
|
+
*/
|
|
2753
|
+
validators: Array<SovDetailsFull>;
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2261
2756
|
type BlockchainInfo = {
|
|
2262
2757
|
blockchainId: string;
|
|
2263
2758
|
};
|
|
2264
2759
|
|
|
2760
|
+
type L1ValidatorManagerDetails = {
|
|
2761
|
+
blockchainId: string;
|
|
2762
|
+
contractAddress: string;
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2265
2765
|
type SubnetOwnershipInfo = {
|
|
2266
2766
|
/**
|
|
2267
2767
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2300,6 +2800,14 @@ type Subnet = {
|
|
|
2300
2800
|
* Latest subnet owner details for this Subnet.
|
|
2301
2801
|
*/
|
|
2302
2802
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2803
|
+
/**
|
|
2804
|
+
* Whether the subnet is an L1 or not.
|
|
2805
|
+
*/
|
|
2806
|
+
isL1: boolean;
|
|
2807
|
+
/**
|
|
2808
|
+
* L1 validator manager details.
|
|
2809
|
+
*/
|
|
2810
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2303
2811
|
blockchains: Array<BlockchainInfo>;
|
|
2304
2812
|
};
|
|
2305
2813
|
|
|
@@ -2383,6 +2891,7 @@ type CompletedValidatorDetails = {
|
|
|
2383
2891
|
*/
|
|
2384
2892
|
blsCredentials?: BlsCredentials;
|
|
2385
2893
|
delegatorCount: number;
|
|
2894
|
+
amountDelegated?: string;
|
|
2386
2895
|
rewards: Rewards;
|
|
2387
2896
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2388
2897
|
};
|
|
@@ -2445,11 +2954,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2445
2954
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2446
2955
|
};
|
|
2447
2956
|
|
|
2448
|
-
declare enum Network {
|
|
2449
|
-
MAINNET = "mainnet",
|
|
2450
|
-
FUJI = "fuji"
|
|
2451
|
-
}
|
|
2452
|
-
|
|
2453
2957
|
declare enum SortByOption {
|
|
2454
2958
|
BLOCK_INDEX = "blockIndex",
|
|
2455
2959
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2509,6 +3013,7 @@ type XChainAssetDetails = {
|
|
|
2509
3013
|
declare enum XChainId {
|
|
2510
3014
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2511
3015
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3016
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2512
3017
|
X_CHAIN = "x-chain"
|
|
2513
3018
|
}
|
|
2514
3019
|
|
|
@@ -2518,7 +3023,7 @@ declare class PrimaryNetworkService {
|
|
|
2518
3023
|
/**
|
|
2519
3024
|
* Get asset details
|
|
2520
3025
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
2521
|
-
* @returns XChainAssetDetails
|
|
3026
|
+
* @returns XChainAssetDetails Successful response
|
|
2522
3027
|
* @throws ApiError
|
|
2523
3028
|
*/
|
|
2524
3029
|
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
@@ -2527,7 +3032,7 @@ declare class PrimaryNetworkService {
|
|
|
2527
3032
|
*/
|
|
2528
3033
|
blockchainId: XChainId;
|
|
2529
3034
|
/**
|
|
2530
|
-
* Either mainnet or
|
|
3035
|
+
* Either mainnet or testnet/fuji.
|
|
2531
3036
|
*/
|
|
2532
3037
|
network: Network;
|
|
2533
3038
|
/**
|
|
@@ -2538,7 +3043,7 @@ declare class PrimaryNetworkService {
|
|
|
2538
3043
|
/**
|
|
2539
3044
|
* Get chain interactions for addresses
|
|
2540
3045
|
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
2541
|
-
* @returns ChainAddressChainIdMapListResponse
|
|
3046
|
+
* @returns ChainAddressChainIdMapListResponse Successful response
|
|
2542
3047
|
* @throws ApiError
|
|
2543
3048
|
*/
|
|
2544
3049
|
getChainIdsForAddresses({ addresses, network, }: {
|
|
@@ -2547,31 +3052,31 @@ declare class PrimaryNetworkService {
|
|
|
2547
3052
|
*/
|
|
2548
3053
|
addresses: string;
|
|
2549
3054
|
/**
|
|
2550
|
-
* Either mainnet or
|
|
3055
|
+
* Either mainnet or testnet/fuji.
|
|
2551
3056
|
*/
|
|
2552
3057
|
network: Network;
|
|
2553
3058
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
2554
3059
|
/**
|
|
2555
3060
|
* Get network details
|
|
2556
3061
|
* Gets network details such as validator and delegator stats.
|
|
2557
|
-
* @returns GetNetworkDetailsResponse
|
|
3062
|
+
* @returns GetNetworkDetailsResponse Successful response
|
|
2558
3063
|
* @throws ApiError
|
|
2559
3064
|
*/
|
|
2560
3065
|
getNetworkDetails({ network, }: {
|
|
2561
3066
|
/**
|
|
2562
|
-
* Either mainnet or
|
|
3067
|
+
* Either mainnet or testnet/fuji.
|
|
2563
3068
|
*/
|
|
2564
3069
|
network: Network;
|
|
2565
3070
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
2566
3071
|
/**
|
|
2567
3072
|
* List blockchains
|
|
2568
3073
|
* Lists all blockchains registered on the network.
|
|
2569
|
-
* @returns ListBlockchainsResponse
|
|
3074
|
+
* @returns ListBlockchainsResponse Successful response
|
|
2570
3075
|
* @throws ApiError
|
|
2571
3076
|
*/
|
|
2572
3077
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2573
3078
|
/**
|
|
2574
|
-
* Either mainnet or
|
|
3079
|
+
* Either mainnet or testnet/fuji.
|
|
2575
3080
|
*/
|
|
2576
3081
|
network: Network;
|
|
2577
3082
|
/**
|
|
@@ -2590,12 +3095,12 @@ declare class PrimaryNetworkService {
|
|
|
2590
3095
|
/**
|
|
2591
3096
|
* List subnets
|
|
2592
3097
|
* Lists all subnets registered on the network.
|
|
2593
|
-
* @returns ListSubnetsResponse
|
|
3098
|
+
* @returns ListSubnetsResponse Successful response
|
|
2594
3099
|
* @throws ApiError
|
|
2595
3100
|
*/
|
|
2596
3101
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2597
3102
|
/**
|
|
2598
|
-
* Either mainnet or
|
|
3103
|
+
* Either mainnet or testnet/fuji.
|
|
2599
3104
|
*/
|
|
2600
3105
|
network: Network;
|
|
2601
3106
|
/**
|
|
@@ -2614,12 +3119,12 @@ declare class PrimaryNetworkService {
|
|
|
2614
3119
|
/**
|
|
2615
3120
|
* Get Subnet details by ID
|
|
2616
3121
|
* Get details of the Subnet registered on the network.
|
|
2617
|
-
* @returns Subnet
|
|
3122
|
+
* @returns Subnet Successful response
|
|
2618
3123
|
* @throws ApiError
|
|
2619
3124
|
*/
|
|
2620
3125
|
getSubnetById({ network, subnetId, }: {
|
|
2621
3126
|
/**
|
|
2622
|
-
* Either mainnet or
|
|
3127
|
+
* Either mainnet or testnet/fuji.
|
|
2623
3128
|
*/
|
|
2624
3129
|
network: Network;
|
|
2625
3130
|
/**
|
|
@@ -2630,12 +3135,12 @@ declare class PrimaryNetworkService {
|
|
|
2630
3135
|
/**
|
|
2631
3136
|
* List validators
|
|
2632
3137
|
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
2633
|
-
* @returns ListValidatorDetailsResponse
|
|
3138
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2634
3139
|
* @throws ApiError
|
|
2635
3140
|
*/
|
|
2636
3141
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2637
3142
|
/**
|
|
2638
|
-
* Either mainnet or
|
|
3143
|
+
* Either mainnet or testnet/fuji.
|
|
2639
3144
|
*/
|
|
2640
3145
|
network: Network;
|
|
2641
3146
|
/**
|
|
@@ -2704,12 +3209,12 @@ declare class PrimaryNetworkService {
|
|
|
2704
3209
|
/**
|
|
2705
3210
|
* Get single validator details
|
|
2706
3211
|
* List validator details for a single validator. Filterable by validation status.
|
|
2707
|
-
* @returns ListValidatorDetailsResponse
|
|
3212
|
+
* @returns ListValidatorDetailsResponse Successful response
|
|
2708
3213
|
* @throws ApiError
|
|
2709
3214
|
*/
|
|
2710
3215
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2711
3216
|
/**
|
|
2712
|
-
* Either mainnet or
|
|
3217
|
+
* Either mainnet or testnet/fuji.
|
|
2713
3218
|
*/
|
|
2714
3219
|
network: Network;
|
|
2715
3220
|
/**
|
|
@@ -2736,12 +3241,12 @@ declare class PrimaryNetworkService {
|
|
|
2736
3241
|
/**
|
|
2737
3242
|
* List delegators
|
|
2738
3243
|
* Lists details for delegators.
|
|
2739
|
-
* @returns ListDelegatorDetailsResponse
|
|
3244
|
+
* @returns ListDelegatorDetailsResponse Successful response
|
|
2740
3245
|
* @throws ApiError
|
|
2741
3246
|
*/
|
|
2742
3247
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
3248
|
/**
|
|
2744
|
-
* Either mainnet or
|
|
3249
|
+
* Either mainnet or testnet/fuji.
|
|
2745
3250
|
*/
|
|
2746
3251
|
network: Network;
|
|
2747
3252
|
/**
|
|
@@ -2769,14 +3274,49 @@ declare class PrimaryNetworkService {
|
|
|
2769
3274
|
*/
|
|
2770
3275
|
nodeIds?: string;
|
|
2771
3276
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3277
|
+
/**
|
|
3278
|
+
* List subnet-only validators
|
|
3279
|
+
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3280
|
+
* @returns ListSubnetOnlyValidatorsResponse Successful response
|
|
3281
|
+
* @throws ApiError
|
|
3282
|
+
*/
|
|
3283
|
+
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
3284
|
+
/**
|
|
3285
|
+
* Either mainnet or testnet/fuji.
|
|
3286
|
+
*/
|
|
3287
|
+
network: Network;
|
|
3288
|
+
/**
|
|
3289
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3290
|
+
*/
|
|
3291
|
+
pageToken?: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3294
|
+
*/
|
|
3295
|
+
pageSize?: number;
|
|
3296
|
+
/**
|
|
3297
|
+
* The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
|
|
3298
|
+
*/
|
|
3299
|
+
sovValidationId?: any;
|
|
3300
|
+
includeInactiveSovs?: boolean;
|
|
3301
|
+
/**
|
|
3302
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
3303
|
+
*/
|
|
3304
|
+
nodeId?: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3307
|
+
*/
|
|
3308
|
+
subnetId?: any;
|
|
3309
|
+
}): CancelablePromise<ListSubnetOnlyValidatorsResponse>;
|
|
2772
3310
|
}
|
|
2773
3311
|
|
|
2774
3312
|
declare enum BlockchainId {
|
|
2775
3313
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2776
3314
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2777
3315
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3316
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2778
3317
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2779
3318
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3319
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
2780
3320
|
P_CHAIN = "p-chain",
|
|
2781
3321
|
X_CHAIN = "x-chain",
|
|
2782
3322
|
C_CHAIN = "c-chain"
|
|
@@ -2813,11 +3353,6 @@ type CChainAtomicBalances = {
|
|
|
2813
3353
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
2814
3354
|
};
|
|
2815
3355
|
|
|
2816
|
-
declare enum PrimaryNetwork {
|
|
2817
|
-
MAINNET = "mainnet",
|
|
2818
|
-
FUJI = "fuji"
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
3356
|
declare enum PrimaryNetworkChainName {
|
|
2822
3357
|
P_CHAIN = "p-chain",
|
|
2823
3358
|
X_CHAIN = "x-chain",
|
|
@@ -2826,7 +3361,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
2826
3361
|
|
|
2827
3362
|
type PrimaryNetworkChainInfo = {
|
|
2828
3363
|
chainName: PrimaryNetworkChainName;
|
|
2829
|
-
network:
|
|
3364
|
+
network: Network;
|
|
2830
3365
|
};
|
|
2831
3366
|
|
|
2832
3367
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -2978,7 +3513,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2978
3513
|
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
2979
3514
|
*
|
|
2980
3515
|
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
2981
|
-
* @returns any
|
|
3516
|
+
* @returns any Successful response
|
|
2982
3517
|
* @throws ApiError
|
|
2983
3518
|
*/
|
|
2984
3519
|
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
@@ -2987,7 +3522,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
2987
3522
|
*/
|
|
2988
3523
|
blockchainId: BlockchainId;
|
|
2989
3524
|
/**
|
|
2990
|
-
* Either mainnet or
|
|
3525
|
+
* Either mainnet or testnet/fuji.
|
|
2991
3526
|
*/
|
|
2992
3527
|
network: Network;
|
|
2993
3528
|
/**
|
|
@@ -3018,6 +3553,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3018
3553
|
txCount: number;
|
|
3019
3554
|
transactions: Array<string>;
|
|
3020
3555
|
blockSizeBytes: number;
|
|
3556
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3557
|
+
activeSubnetOnlyValidators?: number;
|
|
3021
3558
|
currentSupply?: string;
|
|
3022
3559
|
proposerDetails?: ProposerDetails;
|
|
3023
3560
|
};
|
|
@@ -3031,6 +3568,8 @@ type PrimaryNetworkBlock = {
|
|
|
3031
3568
|
txCount: number;
|
|
3032
3569
|
transactions: Array<string>;
|
|
3033
3570
|
blockSizeBytes: number;
|
|
3571
|
+
subnetOnlyValidatorsAccruedFees?: number;
|
|
3572
|
+
activeSubnetOnlyValidators?: number;
|
|
3034
3573
|
currentSupply?: string;
|
|
3035
3574
|
proposerDetails?: ProposerDetails;
|
|
3036
3575
|
};
|
|
@@ -3050,7 +3589,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3050
3589
|
/**
|
|
3051
3590
|
* Get block
|
|
3052
3591
|
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
3053
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
3592
|
+
* @returns GetPrimaryNetworkBlockResponse Successful response
|
|
3054
3593
|
* @throws ApiError
|
|
3055
3594
|
*/
|
|
3056
3595
|
getBlockById({ blockchainId, network, blockId, }: {
|
|
@@ -3059,7 +3598,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3059
3598
|
*/
|
|
3060
3599
|
blockchainId: BlockchainId;
|
|
3061
3600
|
/**
|
|
3062
|
-
* Either mainnet or
|
|
3601
|
+
* Either mainnet or testnet/fuji.
|
|
3063
3602
|
*/
|
|
3064
3603
|
network: Network;
|
|
3065
3604
|
/**
|
|
@@ -3070,7 +3609,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3070
3609
|
/**
|
|
3071
3610
|
* List blocks proposed by node
|
|
3072
3611
|
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
3073
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3612
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3074
3613
|
* @throws ApiError
|
|
3075
3614
|
*/
|
|
3076
3615
|
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
@@ -3079,7 +3618,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3079
3618
|
*/
|
|
3080
3619
|
blockchainId: BlockchainId;
|
|
3081
3620
|
/**
|
|
3082
|
-
* Either mainnet or
|
|
3621
|
+
* Either mainnet or testnet/fuji.
|
|
3083
3622
|
*/
|
|
3084
3623
|
network: Network;
|
|
3085
3624
|
/**
|
|
@@ -3098,7 +3637,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3098
3637
|
/**
|
|
3099
3638
|
* List latest blocks
|
|
3100
3639
|
* Lists latest blocks on one of the Primary Network chains.
|
|
3101
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
3640
|
+
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3102
3641
|
* @throws ApiError
|
|
3103
3642
|
*/
|
|
3104
3643
|
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -3107,7 +3646,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3107
3646
|
*/
|
|
3108
3647
|
blockchainId: BlockchainId;
|
|
3109
3648
|
/**
|
|
3110
|
-
* Either mainnet or
|
|
3649
|
+
* Either mainnet or testnet/fuji.
|
|
3111
3650
|
*/
|
|
3112
3651
|
network: Network;
|
|
3113
3652
|
/**
|
|
@@ -3236,12 +3775,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3236
3775
|
/**
|
|
3237
3776
|
* List pending rewards
|
|
3238
3777
|
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
3239
|
-
* @returns ListPendingRewardsResponse
|
|
3778
|
+
* @returns ListPendingRewardsResponse Successful response
|
|
3240
3779
|
* @throws ApiError
|
|
3241
3780
|
*/
|
|
3242
3781
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3243
3782
|
/**
|
|
3244
|
-
* Either mainnet or
|
|
3783
|
+
* Either mainnet or testnet/fuji.
|
|
3245
3784
|
*/
|
|
3246
3785
|
network: Network;
|
|
3247
3786
|
/**
|
|
@@ -3268,12 +3807,12 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3268
3807
|
/**
|
|
3269
3808
|
* List historical rewards
|
|
3270
3809
|
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
3271
|
-
* @returns ListHistoricalRewardsResponse
|
|
3810
|
+
* @returns ListHistoricalRewardsResponse Successful response
|
|
3272
3811
|
* @throws ApiError
|
|
3273
3812
|
*/
|
|
3274
3813
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3275
3814
|
/**
|
|
3276
|
-
* Either mainnet or
|
|
3815
|
+
* Either mainnet or testnet/fuji.
|
|
3277
3816
|
*/
|
|
3278
3817
|
network: Network;
|
|
3279
3818
|
/**
|
|
@@ -3535,6 +4074,11 @@ declare enum PChainTransactionType {
|
|
|
3535
4074
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3536
4075
|
BASE_TX = "BaseTx",
|
|
3537
4076
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4077
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4078
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4079
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4080
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4081
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
3538
4082
|
UNKNOWN = "UNKNOWN"
|
|
3539
4083
|
}
|
|
3540
4084
|
|
|
@@ -3589,6 +4133,28 @@ type PChainUtxo = {
|
|
|
3589
4133
|
utxoType: UtxoType;
|
|
3590
4134
|
};
|
|
3591
4135
|
|
|
4136
|
+
type SoVDetailsTransaction = {
|
|
4137
|
+
/**
|
|
4138
|
+
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
4139
|
+
*/
|
|
4140
|
+
validationId: string;
|
|
4141
|
+
nodeId: string;
|
|
4142
|
+
subnetId: string;
|
|
4143
|
+
/**
|
|
4144
|
+
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
4145
|
+
*/
|
|
4146
|
+
weight: number;
|
|
4147
|
+
/**
|
|
4148
|
+
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
4149
|
+
*/
|
|
4150
|
+
remainingBalance: number;
|
|
4151
|
+
/**
|
|
4152
|
+
* The increase in SoV balance in the current transaction. When the balance is returned after the SoV is disabled or removed, this value is negative
|
|
4153
|
+
*/
|
|
4154
|
+
balanceChange?: number;
|
|
4155
|
+
blsCredentials?: Record<string, any>;
|
|
4156
|
+
};
|
|
4157
|
+
|
|
3592
4158
|
type PChainTransaction = {
|
|
3593
4159
|
/**
|
|
3594
4160
|
* A P-Chain transaction hash.
|
|
@@ -3623,6 +4189,10 @@ type PChainTransaction = {
|
|
|
3623
4189
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3624
4190
|
*/
|
|
3625
4191
|
amountStaked: Array<AssetAmount>;
|
|
4192
|
+
/**
|
|
4193
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4194
|
+
*/
|
|
4195
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
3626
4196
|
/**
|
|
3627
4197
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3628
4198
|
*/
|
|
@@ -3643,6 +4213,14 @@ type PChainTransaction = {
|
|
|
3643
4213
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
3644
4214
|
*/
|
|
3645
4215
|
subnetId?: string;
|
|
4216
|
+
/**
|
|
4217
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1
|
|
4218
|
+
*/
|
|
4219
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4220
|
+
/**
|
|
4221
|
+
* Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4222
|
+
*/
|
|
4223
|
+
l1ValidatorDetails?: Array<SoVDetailsTransaction>;
|
|
3646
4224
|
/**
|
|
3647
4225
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3648
4226
|
*/
|
|
@@ -3844,6 +4422,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
3844
4422
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3845
4423
|
BASE_TX = "BaseTx",
|
|
3846
4424
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4425
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4426
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4427
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4428
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4429
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
3847
4430
|
UNKNOWN = "UNKNOWN",
|
|
3848
4431
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3849
4432
|
OPERATION_TX = "OperationTx"
|
|
@@ -3855,7 +4438,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3855
4438
|
/**
|
|
3856
4439
|
* Get transaction
|
|
3857
4440
|
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
3858
|
-
* @returns any
|
|
4441
|
+
* @returns any Successful response
|
|
3859
4442
|
* @throws ApiError
|
|
3860
4443
|
*/
|
|
3861
4444
|
getTxByHash({ blockchainId, network, txHash, }: {
|
|
@@ -3864,7 +4447,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3864
4447
|
*/
|
|
3865
4448
|
blockchainId: BlockchainId;
|
|
3866
4449
|
/**
|
|
3867
|
-
* Either mainnet or
|
|
4450
|
+
* Either mainnet or testnet/fuji.
|
|
3868
4451
|
*/
|
|
3869
4452
|
network: Network;
|
|
3870
4453
|
/**
|
|
@@ -3878,23 +4461,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3878
4461
|
*
|
|
3879
4462
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3880
4463
|
*
|
|
4464
|
+
* For P-Chain, you can fetch all the Subnet-only-Validator (SoV) related transactions like ConvertSubnetTx, IncreaseBalanceTx etc. using the unique SoV validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4465
|
+
*
|
|
3881
4466
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3882
|
-
* @returns any
|
|
4467
|
+
* @returns any Successful response
|
|
3883
4468
|
* @throws ApiError
|
|
3884
4469
|
*/
|
|
3885
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4470
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, sovValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3886
4471
|
/**
|
|
3887
4472
|
* A primary network blockchain id or alias.
|
|
3888
4473
|
*/
|
|
3889
4474
|
blockchainId: BlockchainId;
|
|
3890
4475
|
/**
|
|
3891
|
-
* Either mainnet or
|
|
4476
|
+
* Either mainnet or testnet/fuji.
|
|
3892
4477
|
*/
|
|
3893
4478
|
network: Network;
|
|
3894
4479
|
/**
|
|
3895
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
4480
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
3896
4481
|
*/
|
|
3897
4482
|
addresses?: string;
|
|
4483
|
+
sovValidationId?: string;
|
|
3898
4484
|
/**
|
|
3899
4485
|
* Query param for filtering items based on transaction types.
|
|
3900
4486
|
*/
|
|
@@ -3923,7 +4509,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3923
4509
|
/**
|
|
3924
4510
|
* List staking transactions
|
|
3925
4511
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
3926
|
-
* @returns ListPChainTransactionsResponse
|
|
4512
|
+
* @returns ListPChainTransactionsResponse Successful response
|
|
3927
4513
|
* @throws ApiError
|
|
3928
4514
|
*/
|
|
3929
4515
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -3932,7 +4518,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3932
4518
|
*/
|
|
3933
4519
|
blockchainId: PChainId;
|
|
3934
4520
|
/**
|
|
3935
|
-
* Either mainnet or
|
|
4521
|
+
* Either mainnet or testnet/fuji.
|
|
3936
4522
|
*/
|
|
3937
4523
|
network: Network;
|
|
3938
4524
|
/**
|
|
@@ -3967,7 +4553,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3967
4553
|
/**
|
|
3968
4554
|
* List asset transactions
|
|
3969
4555
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
3970
|
-
* @returns ListXChainTransactionsResponse
|
|
4556
|
+
* @returns ListXChainTransactionsResponse Successful response
|
|
3971
4557
|
* @throws ApiError
|
|
3972
4558
|
*/
|
|
3973
4559
|
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
@@ -3976,7 +4562,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3976
4562
|
*/
|
|
3977
4563
|
blockchainId: XChainId;
|
|
3978
4564
|
/**
|
|
3979
|
-
* Either mainnet or
|
|
4565
|
+
* Either mainnet or testnet/fuji.
|
|
3980
4566
|
*/
|
|
3981
4567
|
network: Network;
|
|
3982
4568
|
/**
|
|
@@ -4030,7 +4616,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4030
4616
|
/**
|
|
4031
4617
|
* List UTXOs
|
|
4032
4618
|
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
4033
|
-
* @returns any
|
|
4619
|
+
* @returns any Successful response
|
|
4034
4620
|
* @throws ApiError
|
|
4035
4621
|
*/
|
|
4036
4622
|
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
@@ -4039,7 +4625,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4039
4625
|
*/
|
|
4040
4626
|
blockchainId: BlockchainId;
|
|
4041
4627
|
/**
|
|
4042
|
-
* Either mainnet or
|
|
4628
|
+
* Either mainnet or testnet/fuji.
|
|
4043
4629
|
*/
|
|
4044
4630
|
network: Network;
|
|
4045
4631
|
/**
|
|
@@ -4095,7 +4681,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4095
4681
|
/**
|
|
4096
4682
|
* List vertices
|
|
4097
4683
|
* Lists latest vertices on the X-Chain.
|
|
4098
|
-
* @returns ListXChainVerticesResponse
|
|
4684
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4099
4685
|
* @throws ApiError
|
|
4100
4686
|
*/
|
|
4101
4687
|
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
@@ -4104,7 +4690,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4104
4690
|
*/
|
|
4105
4691
|
blockchainId: XChainId;
|
|
4106
4692
|
/**
|
|
4107
|
-
* Either mainnet or
|
|
4693
|
+
* Either mainnet or testnet/fuji.
|
|
4108
4694
|
*/
|
|
4109
4695
|
network: Network;
|
|
4110
4696
|
/**
|
|
@@ -4119,7 +4705,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4119
4705
|
/**
|
|
4120
4706
|
* Get vertex
|
|
4121
4707
|
* Gets a single vertex on the X-Chain.
|
|
4122
|
-
* @returns XChainVertex
|
|
4708
|
+
* @returns XChainVertex Successful response
|
|
4123
4709
|
* @throws ApiError
|
|
4124
4710
|
*/
|
|
4125
4711
|
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
@@ -4132,14 +4718,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4132
4718
|
*/
|
|
4133
4719
|
blockchainId: XChainId;
|
|
4134
4720
|
/**
|
|
4135
|
-
* Either mainnet or
|
|
4721
|
+
* Either mainnet or testnet/fuji.
|
|
4136
4722
|
*/
|
|
4137
4723
|
network: Network;
|
|
4138
4724
|
}): CancelablePromise<XChainVertex>;
|
|
4139
4725
|
/**
|
|
4140
4726
|
* List vertices by height
|
|
4141
4727
|
* Lists vertices at the given vertex height on the X-Chain.
|
|
4142
|
-
* @returns ListXChainVerticesResponse
|
|
4728
|
+
* @returns ListXChainVerticesResponse Successful response
|
|
4143
4729
|
* @throws ApiError
|
|
4144
4730
|
*/
|
|
4145
4731
|
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4152,7 +4738,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4152
4738
|
*/
|
|
4153
4739
|
blockchainId: XChainId;
|
|
4154
4740
|
/**
|
|
4155
|
-
* Either mainnet or
|
|
4741
|
+
* Either mainnet or testnet/fuji.
|
|
4156
4742
|
*/
|
|
4157
4743
|
network: Network;
|
|
4158
4744
|
/**
|
|
@@ -4170,47 +4756,35 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4170
4756
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4171
4757
|
}
|
|
4172
4758
|
|
|
4173
|
-
type
|
|
4174
|
-
|
|
4175
|
-
message: string;
|
|
4176
|
-
data?: Record<string, any>;
|
|
4759
|
+
type SignatureAggregationResponse = {
|
|
4760
|
+
signedMessage: string;
|
|
4177
4761
|
};
|
|
4178
4762
|
|
|
4179
|
-
type
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
};
|
|
4191
|
-
|
|
4192
|
-
type RpcSuccessResponseDto = {
|
|
4193
|
-
jsonrpc: string;
|
|
4194
|
-
id?: (string | number);
|
|
4195
|
-
result: Record<string, any>;
|
|
4763
|
+
type SignatureAggregatorRequest = {
|
|
4764
|
+
/**
|
|
4765
|
+
* Must be defined if justification is not defined
|
|
4766
|
+
*/
|
|
4767
|
+
message?: string;
|
|
4768
|
+
/**
|
|
4769
|
+
* Must be defined if message is not defined
|
|
4770
|
+
*/
|
|
4771
|
+
justification?: string;
|
|
4772
|
+
signingSubnetId?: string;
|
|
4773
|
+
quorumPercentage?: number;
|
|
4196
4774
|
};
|
|
4197
4775
|
|
|
4198
|
-
declare class
|
|
4776
|
+
declare class SignatureAggregatorService {
|
|
4199
4777
|
readonly httpRequest: BaseHttpRequest;
|
|
4200
4778
|
constructor(httpRequest: BaseHttpRequest);
|
|
4201
4779
|
/**
|
|
4202
|
-
*
|
|
4203
|
-
*
|
|
4204
|
-
* @returns
|
|
4780
|
+
* Aggregate Signatures
|
|
4781
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
4782
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4205
4783
|
* @throws ApiError
|
|
4206
4784
|
*/
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
*/
|
|
4211
|
-
chainId: string;
|
|
4212
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4213
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4785
|
+
aggregateSignatures({ requestBody, }: {
|
|
4786
|
+
requestBody: SignatureAggregatorRequest;
|
|
4787
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4214
4788
|
}
|
|
4215
4789
|
|
|
4216
4790
|
type TeleporterDestinationTransaction = {
|
|
@@ -4353,7 +4927,7 @@ declare class TeleporterService {
|
|
|
4353
4927
|
/**
|
|
4354
4928
|
* Get a teleporter message
|
|
4355
4929
|
* Gets a teleporter message by message ID.
|
|
4356
|
-
* @returns any
|
|
4930
|
+
* @returns any Successful response
|
|
4357
4931
|
* @throws ApiError
|
|
4358
4932
|
*/
|
|
4359
4933
|
getTeleporterMessage({ messageId, }: {
|
|
@@ -4365,10 +4939,10 @@ declare class TeleporterService {
|
|
|
4365
4939
|
/**
|
|
4366
4940
|
* List teleporter messages
|
|
4367
4941
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4368
|
-
* @returns ListTeleporterMessagesResponse
|
|
4942
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4369
4943
|
* @throws ApiError
|
|
4370
4944
|
*/
|
|
4371
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4945
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
4372
4946
|
/**
|
|
4373
4947
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4374
4948
|
*/
|
|
@@ -4385,6 +4959,10 @@ declare class TeleporterService {
|
|
|
4385
4959
|
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4386
4960
|
*/
|
|
4387
4961
|
destinationBlockchainId?: string;
|
|
4962
|
+
/**
|
|
4963
|
+
* The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
|
|
4964
|
+
*/
|
|
4965
|
+
blockchainId?: string;
|
|
4388
4966
|
/**
|
|
4389
4967
|
* The address of the recipient of the teleporter message.
|
|
4390
4968
|
*/
|
|
@@ -4394,9 +4972,33 @@ declare class TeleporterService {
|
|
|
4394
4972
|
*/
|
|
4395
4973
|
from?: string;
|
|
4396
4974
|
/**
|
|
4397
|
-
* mainnet or testnet.
|
|
4975
|
+
* Either mainnet or testnet/fuji.
|
|
4976
|
+
*/
|
|
4977
|
+
network?: Network;
|
|
4978
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4979
|
+
/**
|
|
4980
|
+
* List teleporter messages by address
|
|
4981
|
+
* Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
4982
|
+
* @returns ListTeleporterMessagesResponse Successful response
|
|
4983
|
+
* @throws ApiError
|
|
4984
|
+
*/
|
|
4985
|
+
listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
4986
|
+
/**
|
|
4987
|
+
* An EVM address.
|
|
4988
|
+
*/
|
|
4989
|
+
address: string;
|
|
4990
|
+
/**
|
|
4991
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4992
|
+
*/
|
|
4993
|
+
pageToken?: string;
|
|
4994
|
+
/**
|
|
4995
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4398
4996
|
*/
|
|
4399
|
-
|
|
4997
|
+
pageSize?: number;
|
|
4998
|
+
/**
|
|
4999
|
+
* Either mainnet or testnet/fuji.
|
|
5000
|
+
*/
|
|
5001
|
+
network?: Network;
|
|
4400
5002
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4401
5003
|
}
|
|
4402
5004
|
|
|
@@ -4404,7 +5006,7 @@ type AddressesChangeRequest = {
|
|
|
4404
5006
|
/**
|
|
4405
5007
|
* Ethereum address(es) for the address_activity event type
|
|
4406
5008
|
*/
|
|
4407
|
-
addresses: Array<
|
|
5009
|
+
addresses: Array<string>;
|
|
4408
5010
|
};
|
|
4409
5011
|
|
|
4410
5012
|
type AddressActivityMetadata = {
|
|
@@ -4505,7 +5107,7 @@ declare class WebhooksService {
|
|
|
4505
5107
|
/**
|
|
4506
5108
|
* Create a webhook
|
|
4507
5109
|
* Create a new webhook.
|
|
4508
|
-
* @returns WebhookResponse
|
|
5110
|
+
* @returns WebhookResponse Successful response
|
|
4509
5111
|
* @throws ApiError
|
|
4510
5112
|
*/
|
|
4511
5113
|
createWebhook({ requestBody, }: {
|
|
@@ -4514,7 +5116,7 @@ declare class WebhooksService {
|
|
|
4514
5116
|
/**
|
|
4515
5117
|
* List webhooks
|
|
4516
5118
|
* Lists webhooks for the user.
|
|
4517
|
-
* @returns ListWebhooksResponse
|
|
5119
|
+
* @returns ListWebhooksResponse Successful response
|
|
4518
5120
|
* @throws ApiError
|
|
4519
5121
|
*/
|
|
4520
5122
|
listWebhooks({ pageToken, pageSize, status, }: {
|
|
@@ -4534,7 +5136,7 @@ declare class WebhooksService {
|
|
|
4534
5136
|
/**
|
|
4535
5137
|
* Get a webhook by ID
|
|
4536
5138
|
* Retrieves a webhook by ID.
|
|
4537
|
-
* @returns WebhookResponse
|
|
5139
|
+
* @returns WebhookResponse Successful response
|
|
4538
5140
|
* @throws ApiError
|
|
4539
5141
|
*/
|
|
4540
5142
|
getWebhook({ id, }: {
|
|
@@ -4546,7 +5148,7 @@ declare class WebhooksService {
|
|
|
4546
5148
|
/**
|
|
4547
5149
|
* Deactivate a webhook
|
|
4548
5150
|
* Deactivates a webhook by ID.
|
|
4549
|
-
* @returns WebhookResponse
|
|
5151
|
+
* @returns WebhookResponse Successful response
|
|
4550
5152
|
* @throws ApiError
|
|
4551
5153
|
*/
|
|
4552
5154
|
deactivateWebhook({ id, }: {
|
|
@@ -4558,7 +5160,7 @@ declare class WebhooksService {
|
|
|
4558
5160
|
/**
|
|
4559
5161
|
* Update a webhook
|
|
4560
5162
|
* Updates an existing webhook.
|
|
4561
|
-
* @returns WebhookResponse
|
|
5163
|
+
* @returns WebhookResponse Successful response
|
|
4562
5164
|
* @throws ApiError
|
|
4563
5165
|
*/
|
|
4564
5166
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4571,21 +5173,21 @@ declare class WebhooksService {
|
|
|
4571
5173
|
/**
|
|
4572
5174
|
* Generate a shared secret
|
|
4573
5175
|
* Generates a new shared secret.
|
|
4574
|
-
* @returns SharedSecretsResponse
|
|
5176
|
+
* @returns SharedSecretsResponse Successful response
|
|
4575
5177
|
* @throws ApiError
|
|
4576
5178
|
*/
|
|
4577
5179
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4578
5180
|
/**
|
|
4579
5181
|
* Get a shared secret
|
|
4580
5182
|
* Get a previously generated shared secret.
|
|
4581
|
-
* @returns SharedSecretsResponse
|
|
5183
|
+
* @returns SharedSecretsResponse Successful response
|
|
4582
5184
|
* @throws ApiError
|
|
4583
5185
|
*/
|
|
4584
5186
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4585
5187
|
/**
|
|
4586
5188
|
* Add addresses to webhook
|
|
4587
5189
|
* Add addresses to webhook.
|
|
4588
|
-
* @returns WebhookResponse
|
|
5190
|
+
* @returns WebhookResponse Successful response
|
|
4589
5191
|
* @throws ApiError
|
|
4590
5192
|
*/
|
|
4591
5193
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4598,7 +5200,7 @@ declare class WebhooksService {
|
|
|
4598
5200
|
/**
|
|
4599
5201
|
* Remove addresses from webhook
|
|
4600
5202
|
* Remove addresses from webhook.
|
|
4601
|
-
* @returns WebhookResponse
|
|
5203
|
+
* @returns WebhookResponse Successful response
|
|
4602
5204
|
* @throws ApiError
|
|
4603
5205
|
*/
|
|
4604
5206
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4611,7 +5213,7 @@ declare class WebhooksService {
|
|
|
4611
5213
|
/**
|
|
4612
5214
|
* List adresses by webhook
|
|
4613
5215
|
* List adresses by webhook.
|
|
4614
|
-
* @returns ListWebhookAddressesResponse
|
|
5216
|
+
* @returns ListWebhookAddressesResponse Successful response
|
|
4615
5217
|
* @throws ApiError
|
|
4616
5218
|
*/
|
|
4617
5219
|
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
@@ -4632,6 +5234,7 @@ declare class WebhooksService {
|
|
|
4632
5234
|
|
|
4633
5235
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4634
5236
|
declare class Glacier {
|
|
5237
|
+
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4635
5238
|
readonly default: DefaultService;
|
|
4636
5239
|
readonly evmBalances: EvmBalancesService;
|
|
4637
5240
|
readonly evmBlocks: EvmBlocksService;
|
|
@@ -4648,7 +5251,7 @@ declare class Glacier {
|
|
|
4648
5251
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4649
5252
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4650
5253
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4651
|
-
readonly
|
|
5254
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4652
5255
|
readonly teleporter: TeleporterService;
|
|
4653
5256
|
readonly webhooks: WebhooksService;
|
|
4654
5257
|
readonly request: BaseHttpRequest;
|
|
@@ -4672,6 +5275,70 @@ declare class ApiError extends Error {
|
|
|
4672
5275
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4673
5276
|
}
|
|
4674
5277
|
|
|
5278
|
+
type BadGateway = {
|
|
5279
|
+
/**
|
|
5280
|
+
* The error message describing the reason for the exception
|
|
5281
|
+
*/
|
|
5282
|
+
message: (string | Array<string>);
|
|
5283
|
+
/**
|
|
5284
|
+
* The HTTP status code of the response
|
|
5285
|
+
*/
|
|
5286
|
+
statusCode: number;
|
|
5287
|
+
/**
|
|
5288
|
+
* The type of error
|
|
5289
|
+
*/
|
|
5290
|
+
error: string;
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5293
|
+
type BadRequest = {
|
|
5294
|
+
/**
|
|
5295
|
+
* The error message describing the reason for the exception
|
|
5296
|
+
*/
|
|
5297
|
+
message: (string | Array<string>);
|
|
5298
|
+
/**
|
|
5299
|
+
* The HTTP status code of the response
|
|
5300
|
+
*/
|
|
5301
|
+
statusCode: number;
|
|
5302
|
+
/**
|
|
5303
|
+
* The type of error
|
|
5304
|
+
*/
|
|
5305
|
+
error: string;
|
|
5306
|
+
};
|
|
5307
|
+
|
|
5308
|
+
type DataListChainsResponse = {
|
|
5309
|
+
chains: Array<ChainInfo>;
|
|
5310
|
+
};
|
|
5311
|
+
|
|
5312
|
+
type Forbidden = {
|
|
5313
|
+
/**
|
|
5314
|
+
* The error message describing the reason for the exception
|
|
5315
|
+
*/
|
|
5316
|
+
message: (string | Array<string>);
|
|
5317
|
+
/**
|
|
5318
|
+
* The HTTP status code of the response
|
|
5319
|
+
*/
|
|
5320
|
+
statusCode: number;
|
|
5321
|
+
/**
|
|
5322
|
+
* The type of error
|
|
5323
|
+
*/
|
|
5324
|
+
error: string;
|
|
5325
|
+
};
|
|
5326
|
+
|
|
5327
|
+
type InternalServerError = {
|
|
5328
|
+
/**
|
|
5329
|
+
* The error message describing the reason for the exception
|
|
5330
|
+
*/
|
|
5331
|
+
message: (string | Array<string>);
|
|
5332
|
+
/**
|
|
5333
|
+
* The HTTP status code of the response
|
|
5334
|
+
*/
|
|
5335
|
+
statusCode: number;
|
|
5336
|
+
/**
|
|
5337
|
+
* The type of error
|
|
5338
|
+
*/
|
|
5339
|
+
error: string;
|
|
5340
|
+
};
|
|
5341
|
+
|
|
4675
5342
|
type NextPageToken = {
|
|
4676
5343
|
/**
|
|
4677
5344
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -4679,4 +5346,64 @@ type NextPageToken = {
|
|
|
4679
5346
|
nextPageToken?: string;
|
|
4680
5347
|
};
|
|
4681
5348
|
|
|
4682
|
-
|
|
5349
|
+
type NotFound = {
|
|
5350
|
+
/**
|
|
5351
|
+
* The error message describing the reason for the exception
|
|
5352
|
+
*/
|
|
5353
|
+
message: (string | Array<string>);
|
|
5354
|
+
/**
|
|
5355
|
+
* The HTTP status code of the response
|
|
5356
|
+
*/
|
|
5357
|
+
statusCode: number;
|
|
5358
|
+
/**
|
|
5359
|
+
* The type of error
|
|
5360
|
+
*/
|
|
5361
|
+
error: string;
|
|
5362
|
+
};
|
|
5363
|
+
|
|
5364
|
+
type ServiceUnavailable = {
|
|
5365
|
+
/**
|
|
5366
|
+
* The error message describing the reason for the exception
|
|
5367
|
+
*/
|
|
5368
|
+
message: (string | Array<string>);
|
|
5369
|
+
/**
|
|
5370
|
+
* The HTTP status code of the response
|
|
5371
|
+
*/
|
|
5372
|
+
statusCode: number;
|
|
5373
|
+
/**
|
|
5374
|
+
* The type of error
|
|
5375
|
+
*/
|
|
5376
|
+
error: string;
|
|
5377
|
+
};
|
|
5378
|
+
|
|
5379
|
+
type TooManyRequests = {
|
|
5380
|
+
/**
|
|
5381
|
+
* The error message describing the reason for the exception
|
|
5382
|
+
*/
|
|
5383
|
+
message: (string | Array<string>);
|
|
5384
|
+
/**
|
|
5385
|
+
* The HTTP status code of the response
|
|
5386
|
+
*/
|
|
5387
|
+
statusCode: number;
|
|
5388
|
+
/**
|
|
5389
|
+
* The type of error
|
|
5390
|
+
*/
|
|
5391
|
+
error: string;
|
|
5392
|
+
};
|
|
5393
|
+
|
|
5394
|
+
type Unauthorized = {
|
|
5395
|
+
/**
|
|
5396
|
+
* The error message describing the reason for the exception
|
|
5397
|
+
*/
|
|
5398
|
+
message: (string | Array<string>);
|
|
5399
|
+
/**
|
|
5400
|
+
* The HTTP status code of the response
|
|
5401
|
+
*/
|
|
5402
|
+
statusCode: number;
|
|
5403
|
+
/**
|
|
5404
|
+
* The type of error
|
|
5405
|
+
*/
|
|
5406
|
+
error: string;
|
|
5407
|
+
};
|
|
5408
|
+
|
|
5409
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetOnlyValidatorsResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SoVDetailsTransaction, SortByOption, SortOrder, SovDetailsFull, 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 };
|