@avalabs/glacier-sdk 3.1.0-canary.9f81e3c.0 → 3.1.0-canary.a32c8a3.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 +1835 -323
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +6 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -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/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -2
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -2
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/InternalTransaction.d.ts +15 -16
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +33 -7
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- 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/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +15 -2
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.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 +166 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +9 -9
- package/esm/generated/services/EvmBlocksService.d.ts +23 -2
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +81 -3
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +46 -13
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NfTsService.d.ts +3 -3
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +8 -5
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +54 -9
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- 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
|
@@ -148,6 +148,145 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet"
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
158
|
+
RPC_METHOD = "rpcMethod",
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
167
|
+
HOURLY = "hourly",
|
|
168
|
+
DAILY = "daily",
|
|
169
|
+
WEEKLY = "weekly",
|
|
170
|
+
MONTHLY = "monthly"
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type RpcUsageMetricsValueAggregated = {
|
|
174
|
+
/**
|
|
175
|
+
* The total number of requests
|
|
176
|
+
*/
|
|
177
|
+
totalRequests: number;
|
|
178
|
+
/**
|
|
179
|
+
* The number of API credits used
|
|
180
|
+
*/
|
|
181
|
+
apiCreditsUsed: number;
|
|
182
|
+
/**
|
|
183
|
+
* The number of requests per second
|
|
184
|
+
*/
|
|
185
|
+
requestsPerSecond: number;
|
|
186
|
+
/**
|
|
187
|
+
* The success rate percentage
|
|
188
|
+
*/
|
|
189
|
+
successRatePercent: number;
|
|
190
|
+
/**
|
|
191
|
+
* The median response time in milliseconds
|
|
192
|
+
*/
|
|
193
|
+
medianResponseTimeMsecs: number;
|
|
194
|
+
/**
|
|
195
|
+
* The number of invalid requests
|
|
196
|
+
*/
|
|
197
|
+
invalidRequests: number;
|
|
198
|
+
/**
|
|
199
|
+
* The number of API credits wasted on invalid requests
|
|
200
|
+
*/
|
|
201
|
+
apiCreditsWasted: number;
|
|
202
|
+
/**
|
|
203
|
+
* Column name used for data aggregation
|
|
204
|
+
*/
|
|
205
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
206
|
+
/**
|
|
207
|
+
* The value of the column used for data aggregation
|
|
208
|
+
*/
|
|
209
|
+
groupValue?: (string | number);
|
|
210
|
+
};
|
|
211
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
212
|
+
/**
|
|
213
|
+
* Column name used for data aggregation
|
|
214
|
+
*/
|
|
215
|
+
enum groupedBy {
|
|
216
|
+
RPC_METHOD = "rpcMethod",
|
|
217
|
+
RESPONSE_CODE = "responseCode",
|
|
218
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
223
|
+
NONE = "None"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
type RpcMetrics = {
|
|
228
|
+
/**
|
|
229
|
+
* The timestamp of the metrics value
|
|
230
|
+
*/
|
|
231
|
+
timestamp: number;
|
|
232
|
+
/**
|
|
233
|
+
* The metrics values for the timestamp
|
|
234
|
+
*/
|
|
235
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
239
|
+
/**
|
|
240
|
+
* Duration in which the metrics value is aggregated
|
|
241
|
+
*/
|
|
242
|
+
aggregateDuration: string;
|
|
243
|
+
/**
|
|
244
|
+
* Metrics values
|
|
245
|
+
*/
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
276
|
+
/**
|
|
277
|
+
* Duration in which the metrics value is aggregated
|
|
278
|
+
*/
|
|
279
|
+
aggregateDuration: string;
|
|
280
|
+
/**
|
|
281
|
+
* Metrics values
|
|
282
|
+
*/
|
|
283
|
+
metrics: Array<RpcMetrics>;
|
|
284
|
+
/**
|
|
285
|
+
* ChainId for which the metrics are aggregated
|
|
286
|
+
*/
|
|
287
|
+
chainId: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
151
290
|
declare enum TimeIntervalGranularityExtended {
|
|
152
291
|
MINUTE = "minute",
|
|
153
292
|
HOURLY = "hourly",
|
|
@@ -251,17 +390,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
390
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
391
|
* @throws ApiError
|
|
253
392
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
393
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
255
394
|
/**
|
|
256
395
|
* Organization ID to fetch usage metrics for
|
|
257
396
|
*/
|
|
258
397
|
orgId?: string;
|
|
259
398
|
/**
|
|
260
|
-
*
|
|
399
|
+
* 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.
|
|
261
400
|
*/
|
|
262
401
|
startTimestamp?: number;
|
|
263
402
|
/**
|
|
264
|
-
*
|
|
403
|
+
* 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.
|
|
265
404
|
*/
|
|
266
405
|
endTimestamp?: number;
|
|
267
406
|
/**
|
|
@@ -273,25 +412,25 @@ declare class DataApiUsageMetricsService {
|
|
|
273
412
|
*/
|
|
274
413
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
414
|
/**
|
|
276
|
-
* Filter data by
|
|
277
|
-
*/
|
|
278
|
-
requestPath?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Filter data by request type.
|
|
415
|
+
* Filter data by chain ID.
|
|
281
416
|
*/
|
|
282
|
-
|
|
417
|
+
chainId?: string;
|
|
283
418
|
/**
|
|
284
419
|
* Filter data by response status code.
|
|
285
420
|
*/
|
|
286
421
|
responseCode?: string;
|
|
287
422
|
/**
|
|
288
|
-
* Filter data by
|
|
423
|
+
* Filter data by request type.
|
|
289
424
|
*/
|
|
290
|
-
|
|
425
|
+
requestType?: 'data' | 'rpc';
|
|
291
426
|
/**
|
|
292
427
|
* Filter data by API key ID.
|
|
293
428
|
*/
|
|
294
429
|
apiKeyId?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Filter data by request path.
|
|
432
|
+
*/
|
|
433
|
+
requestPath?: string;
|
|
295
434
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
435
|
/**
|
|
297
436
|
* Get logs for requests made by client
|
|
@@ -299,39 +438,39 @@ declare class DataApiUsageMetricsService {
|
|
|
299
438
|
* @returns LogsResponseDTO Successful response
|
|
300
439
|
* @throws ApiError
|
|
301
440
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
441
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
303
442
|
/**
|
|
304
443
|
* Organization ID to fetch usage metrics for
|
|
305
444
|
*/
|
|
306
445
|
orgId?: string;
|
|
307
446
|
/**
|
|
308
|
-
*
|
|
447
|
+
* 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.
|
|
309
448
|
*/
|
|
310
449
|
startTimestamp?: number;
|
|
311
450
|
/**
|
|
312
|
-
*
|
|
451
|
+
* 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.
|
|
313
452
|
*/
|
|
314
453
|
endTimestamp?: number;
|
|
315
454
|
/**
|
|
316
|
-
* Filter data by
|
|
317
|
-
*/
|
|
318
|
-
requestPath?: string;
|
|
319
|
-
/**
|
|
320
|
-
* Filter data by request type.
|
|
455
|
+
* Filter data by chain ID.
|
|
321
456
|
*/
|
|
322
|
-
|
|
457
|
+
chainId?: string;
|
|
323
458
|
/**
|
|
324
459
|
* Filter data by response status code.
|
|
325
460
|
*/
|
|
326
461
|
responseCode?: string;
|
|
327
462
|
/**
|
|
328
|
-
* Filter data by
|
|
463
|
+
* Filter data by request type.
|
|
329
464
|
*/
|
|
330
|
-
|
|
465
|
+
requestType?: 'data' | 'rpc';
|
|
331
466
|
/**
|
|
332
467
|
* Filter data by API key ID.
|
|
333
468
|
*/
|
|
334
469
|
apiKeyId?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Filter data by request path.
|
|
472
|
+
*/
|
|
473
|
+
requestPath?: string;
|
|
335
474
|
/**
|
|
336
475
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
476
|
*/
|
|
@@ -341,6 +480,143 @@ declare class DataApiUsageMetricsService {
|
|
|
341
480
|
*/
|
|
342
481
|
pageSize?: number;
|
|
343
482
|
}): CancelablePromise<LogsResponseDTO>;
|
|
483
|
+
/**
|
|
484
|
+
* Get usage metrics for the Subnet RPC
|
|
485
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
486
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
487
|
+
* @throws ApiError
|
|
488
|
+
*/
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
490
|
+
/**
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
493
|
+
*/
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
495
|
+
/**
|
|
496
|
+
* 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.
|
|
497
|
+
*/
|
|
498
|
+
startTimestamp?: number;
|
|
499
|
+
/**
|
|
500
|
+
* 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.
|
|
501
|
+
*/
|
|
502
|
+
endTimestamp?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Query param for the criterion used for grouping metrics
|
|
505
|
+
*/
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
507
|
+
/**
|
|
508
|
+
* Filter data by chain ID.
|
|
509
|
+
*/
|
|
510
|
+
chainId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Filter data by response status code.
|
|
513
|
+
*/
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
530
|
+
* @throws ApiError
|
|
531
|
+
*/
|
|
532
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
533
|
+
/**
|
|
534
|
+
* Time interval granularity for data aggregation for subnet
|
|
535
|
+
* rpc metrics
|
|
536
|
+
*/
|
|
537
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
538
|
+
/**
|
|
539
|
+
* 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.
|
|
540
|
+
*/
|
|
541
|
+
startTimestamp?: number;
|
|
542
|
+
/**
|
|
543
|
+
* 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.
|
|
544
|
+
*/
|
|
545
|
+
endTimestamp?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Query param for the criterion used for grouping metrics
|
|
548
|
+
*/
|
|
549
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
550
|
+
/**
|
|
551
|
+
* Filter data by chain ID.
|
|
552
|
+
*/
|
|
553
|
+
chainId?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Filter data by response status code.
|
|
556
|
+
*/
|
|
557
|
+
responseCode?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Filter data by RPC method.
|
|
560
|
+
*/
|
|
561
|
+
rpcMethod?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Filter data by Rl Bypass API Token.
|
|
564
|
+
*/
|
|
565
|
+
rlBypassApiToken?: string;
|
|
566
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
567
|
+
/**
|
|
568
|
+
* Get usage metrics for the Primary Network RPC
|
|
569
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
570
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
571
|
+
* @throws ApiError
|
|
572
|
+
*/
|
|
573
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
574
|
+
/**
|
|
575
|
+
* Either mainnet or testnet/fuji.
|
|
576
|
+
*/
|
|
577
|
+
network: Network;
|
|
578
|
+
/**
|
|
579
|
+
* Time interval granularity for data aggregation for subnet
|
|
580
|
+
* rpc metrics
|
|
581
|
+
*/
|
|
582
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
583
|
+
/**
|
|
584
|
+
* 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.
|
|
585
|
+
*/
|
|
586
|
+
startTimestamp?: number;
|
|
587
|
+
/**
|
|
588
|
+
* 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.
|
|
589
|
+
*/
|
|
590
|
+
endTimestamp?: number;
|
|
591
|
+
/**
|
|
592
|
+
* Query param for the criterion used for grouping metrics
|
|
593
|
+
*/
|
|
594
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
595
|
+
/**
|
|
596
|
+
* Filter data by response status code.
|
|
597
|
+
*/
|
|
598
|
+
responseCode?: string;
|
|
599
|
+
/**
|
|
600
|
+
* Filter data by request path.
|
|
601
|
+
*/
|
|
602
|
+
requestPath?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
605
|
+
*/
|
|
606
|
+
country?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
609
|
+
*/
|
|
610
|
+
continent?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Filter data by User Agent.
|
|
613
|
+
*/
|
|
614
|
+
userAgent?: string;
|
|
615
|
+
/**
|
|
616
|
+
* Filter data by RPC method.
|
|
617
|
+
*/
|
|
618
|
+
rpcMethod?: string;
|
|
619
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
344
620
|
}
|
|
345
621
|
|
|
346
622
|
declare class DefaultService {
|
|
@@ -539,6 +815,10 @@ type ListErc1155BalancesResponse = {
|
|
|
539
815
|
* 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.
|
|
540
816
|
*/
|
|
541
817
|
nextPageToken?: string;
|
|
818
|
+
/**
|
|
819
|
+
* The native token balance for the address.
|
|
820
|
+
*/
|
|
821
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
542
822
|
/**
|
|
543
823
|
* The list of ERC-1155 token balances for the address.
|
|
544
824
|
*/
|
|
@@ -583,11 +863,22 @@ type Erc20TokenBalance = {
|
|
|
583
863
|
* The monetary value of the balance, if a price is available for the token.
|
|
584
864
|
*/
|
|
585
865
|
balanceValue?: Money;
|
|
866
|
+
/**
|
|
867
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
868
|
+
*/
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
586
870
|
};
|
|
587
871
|
declare namespace Erc20TokenBalance {
|
|
588
872
|
enum ercType {
|
|
589
873
|
ERC_20 = "ERC-20"
|
|
590
874
|
}
|
|
875
|
+
/**
|
|
876
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
877
|
+
*/
|
|
878
|
+
enum tokenReputation {
|
|
879
|
+
MALICIOUS = "Malicious",
|
|
880
|
+
BENIGN = "Benign"
|
|
881
|
+
}
|
|
591
882
|
}
|
|
592
883
|
|
|
593
884
|
type ListErc20BalancesResponse = {
|
|
@@ -595,6 +886,10 @@ type ListErc20BalancesResponse = {
|
|
|
595
886
|
* 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.
|
|
596
887
|
*/
|
|
597
888
|
nextPageToken?: string;
|
|
889
|
+
/**
|
|
890
|
+
* The native token balance for the address.
|
|
891
|
+
*/
|
|
892
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
598
893
|
/**
|
|
599
894
|
* The list of ERC-20 token balances for the address.
|
|
600
895
|
*/
|
|
@@ -606,6 +901,10 @@ type ListErc721BalancesResponse = {
|
|
|
606
901
|
* 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.
|
|
607
902
|
*/
|
|
608
903
|
nextPageToken?: string;
|
|
904
|
+
/**
|
|
905
|
+
* The native token balance for the address.
|
|
906
|
+
*/
|
|
907
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
609
908
|
/**
|
|
610
909
|
* The list of ERC-721 token balances for the address.
|
|
611
910
|
*/
|
|
@@ -625,7 +924,7 @@ declare class EvmBalancesService {
|
|
|
625
924
|
*/
|
|
626
925
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
627
926
|
/**
|
|
628
|
-
* A supported evm chain id
|
|
927
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
629
928
|
*/
|
|
630
929
|
chainId: string;
|
|
631
930
|
/**
|
|
@@ -653,7 +952,7 @@ declare class EvmBalancesService {
|
|
|
653
952
|
*/
|
|
654
953
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
655
954
|
/**
|
|
656
|
-
* A supported evm chain id
|
|
955
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
657
956
|
*/
|
|
658
957
|
chainId: string;
|
|
659
958
|
/**
|
|
@@ -669,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
669
968
|
*/
|
|
670
969
|
pageToken?: string;
|
|
671
970
|
/**
|
|
672
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
971
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
673
972
|
*/
|
|
674
973
|
pageSize?: number;
|
|
675
974
|
/**
|
|
@@ -695,7 +994,7 @@ declare class EvmBalancesService {
|
|
|
695
994
|
*/
|
|
696
995
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
697
996
|
/**
|
|
698
|
-
* A supported evm chain id
|
|
997
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
699
998
|
*/
|
|
700
999
|
chainId: string;
|
|
701
1000
|
/**
|
|
@@ -707,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
707
1006
|
*/
|
|
708
1007
|
pageToken?: string;
|
|
709
1008
|
/**
|
|
710
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1009
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
711
1010
|
*/
|
|
712
1011
|
pageSize?: number;
|
|
713
1012
|
/**
|
|
@@ -727,7 +1026,7 @@ declare class EvmBalancesService {
|
|
|
727
1026
|
*/
|
|
728
1027
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
729
1028
|
/**
|
|
730
|
-
* 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.
|
|
731
1030
|
*/
|
|
732
1031
|
chainId: string;
|
|
733
1032
|
/**
|
|
@@ -743,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
743
1042
|
*/
|
|
744
1043
|
pageToken?: string;
|
|
745
1044
|
/**
|
|
746
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1045
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
747
1046
|
*/
|
|
748
1047
|
pageSize?: number;
|
|
749
1048
|
/**
|
|
@@ -761,7 +1060,7 @@ declare class EvmBalancesService {
|
|
|
761
1060
|
*/
|
|
762
1061
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
763
1062
|
/**
|
|
764
|
-
* A supported evm chain id
|
|
1063
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
765
1064
|
*/
|
|
766
1065
|
chainId: string;
|
|
767
1066
|
/**
|
|
@@ -773,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
773
1072
|
*/
|
|
774
1073
|
pageToken?: string;
|
|
775
1074
|
/**
|
|
776
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
777
1076
|
*/
|
|
778
1077
|
pageSize?: number;
|
|
779
1078
|
/**
|
|
@@ -784,6 +1083,10 @@ declare class EvmBalancesService {
|
|
|
784
1083
|
}
|
|
785
1084
|
|
|
786
1085
|
type GetEvmBlockResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* The EVM chain ID on which the block was created.
|
|
1088
|
+
*/
|
|
1089
|
+
chainId: string;
|
|
787
1090
|
/**
|
|
788
1091
|
* The block number on the chain.
|
|
789
1092
|
*/
|
|
@@ -829,7 +1132,11 @@ type GetEvmBlockResponse = {
|
|
|
829
1132
|
|
|
830
1133
|
type EvmBlock = {
|
|
831
1134
|
/**
|
|
832
|
-
* The
|
|
1135
|
+
* The EVM chain ID on which the block was created.
|
|
1136
|
+
*/
|
|
1137
|
+
chainId: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* The block number on the chain.
|
|
833
1140
|
*/
|
|
834
1141
|
blockNumber: string;
|
|
835
1142
|
/**
|
|
@@ -882,6 +1189,26 @@ type ListEvmBlocksResponse = {
|
|
|
882
1189
|
declare class EvmBlocksService {
|
|
883
1190
|
readonly httpRequest: BaseHttpRequest;
|
|
884
1191
|
constructor(httpRequest: BaseHttpRequest);
|
|
1192
|
+
/**
|
|
1193
|
+
* List latest blocks across all supported EVM chains
|
|
1194
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1195
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1196
|
+
* @throws ApiError
|
|
1197
|
+
*/
|
|
1198
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1199
|
+
/**
|
|
1200
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1201
|
+
*/
|
|
1202
|
+
pageToken?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1205
|
+
*/
|
|
1206
|
+
pageSize?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* Either mainnet or testnet/fuji.
|
|
1209
|
+
*/
|
|
1210
|
+
network?: Network;
|
|
1211
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
885
1212
|
/**
|
|
886
1213
|
* List latest blocks
|
|
887
1214
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -890,7 +1217,7 @@ declare class EvmBlocksService {
|
|
|
890
1217
|
*/
|
|
891
1218
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
892
1219
|
/**
|
|
893
|
-
* A supported evm chain id
|
|
1220
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
894
1221
|
*/
|
|
895
1222
|
chainId: string;
|
|
896
1223
|
/**
|
|
@@ -910,7 +1237,7 @@ declare class EvmBlocksService {
|
|
|
910
1237
|
*/
|
|
911
1238
|
getBlock({ chainId, blockId, }: {
|
|
912
1239
|
/**
|
|
913
|
-
* A supported evm chain id
|
|
1240
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
914
1241
|
*/
|
|
915
1242
|
chainId: string;
|
|
916
1243
|
/**
|
|
@@ -1004,22 +1331,145 @@ type ChainInfo = {
|
|
|
1004
1331
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1332
|
};
|
|
1006
1333
|
|
|
1334
|
+
type ListAddressChainsResponse = {
|
|
1335
|
+
indexedChains?: Array<ChainInfo>;
|
|
1336
|
+
unindexedChains?: Array<string>;
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1007
1339
|
type ListChainsResponse = {
|
|
1008
1340
|
chains: Array<ChainInfo>;
|
|
1009
1341
|
};
|
|
1010
1342
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1343
|
+
/**
|
|
1344
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1345
|
+
*/
|
|
1346
|
+
declare enum TransactionMethodType {
|
|
1347
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1348
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1349
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
type Method = {
|
|
1353
|
+
callType: TransactionMethodType;
|
|
1354
|
+
/**
|
|
1355
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1356
|
+
*/
|
|
1357
|
+
methodHash: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1360
|
+
*/
|
|
1361
|
+
methodName?: string;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
type RichAddress = {
|
|
1365
|
+
/**
|
|
1366
|
+
* The contract name.
|
|
1367
|
+
*/
|
|
1368
|
+
name?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* The contract symbol.
|
|
1371
|
+
*/
|
|
1372
|
+
symbol?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1375
|
+
*/
|
|
1376
|
+
decimals?: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* The logo uri for the address.
|
|
1379
|
+
*/
|
|
1380
|
+
logoUri?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1383
|
+
*/
|
|
1384
|
+
address: string;
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
type NativeTransaction = {
|
|
1388
|
+
/**
|
|
1389
|
+
* The block number on the chain.
|
|
1390
|
+
*/
|
|
1391
|
+
blockNumber: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* The block finality timestamp.
|
|
1394
|
+
*/
|
|
1395
|
+
blockTimestamp: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* The block hash identifier.
|
|
1398
|
+
*/
|
|
1399
|
+
blockHash: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* The EVM chain ID on which the transaction occured.
|
|
1402
|
+
*/
|
|
1403
|
+
chainId: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1406
|
+
*/
|
|
1407
|
+
blockIndex: number;
|
|
1408
|
+
/**
|
|
1409
|
+
* The transaction hash identifier.
|
|
1410
|
+
*/
|
|
1411
|
+
txHash: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1414
|
+
*/
|
|
1415
|
+
txStatus: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* The transaction type.
|
|
1418
|
+
*/
|
|
1419
|
+
txType: number;
|
|
1420
|
+
/**
|
|
1421
|
+
* The gas limit set for the transaction.
|
|
1422
|
+
*/
|
|
1423
|
+
gasLimit: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* The amount of gas used.
|
|
1426
|
+
*/
|
|
1427
|
+
gasUsed: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1430
|
+
*/
|
|
1431
|
+
gasPrice: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* The nonce used by the sender of the transaction.
|
|
1434
|
+
*/
|
|
1435
|
+
nonce: string;
|
|
1436
|
+
from: RichAddress;
|
|
1437
|
+
to: RichAddress;
|
|
1438
|
+
method?: Method;
|
|
1439
|
+
value: string;
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
type ListNativeTransactionsResponse = {
|
|
1443
|
+
/**
|
|
1444
|
+
* 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.
|
|
1445
|
+
*/
|
|
1446
|
+
nextPageToken?: string;
|
|
1447
|
+
transactions: Array<NativeTransaction>;
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
declare enum TransactionStatus {
|
|
1451
|
+
FAILED = "failed",
|
|
1452
|
+
SUCCESS = "success"
|
|
1015
1453
|
}
|
|
1016
1454
|
|
|
1017
1455
|
declare class EvmChainsService {
|
|
1018
1456
|
readonly httpRequest: BaseHttpRequest;
|
|
1019
1457
|
constructor(httpRequest: BaseHttpRequest);
|
|
1458
|
+
/**
|
|
1459
|
+
* List all chains associated with a given address
|
|
1460
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1461
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
listAddressChains({ address, }: {
|
|
1465
|
+
/**
|
|
1466
|
+
* A wallet address.
|
|
1467
|
+
*/
|
|
1468
|
+
address: string;
|
|
1469
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1020
1470
|
/**
|
|
1021
1471
|
* List chains
|
|
1022
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1023
1473
|
* @returns ListChainsResponse Successful response
|
|
1024
1474
|
* @throws ApiError
|
|
1025
1475
|
*/
|
|
@@ -1035,16 +1485,78 @@ declare class EvmChainsService {
|
|
|
1035
1485
|
}): CancelablePromise<ListChainsResponse>;
|
|
1036
1486
|
/**
|
|
1037
1487
|
* Get chain information
|
|
1038
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1039
1489
|
* @returns GetChainResponse Successful response
|
|
1040
1490
|
* @throws ApiError
|
|
1041
1491
|
*/
|
|
1042
1492
|
getChainInfo({ chainId, }: {
|
|
1043
1493
|
/**
|
|
1044
|
-
* A supported evm chain id
|
|
1494
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1045
1495
|
*/
|
|
1046
1496
|
chainId: string;
|
|
1047
1497
|
}): CancelablePromise<GetChainResponse>;
|
|
1498
|
+
/**
|
|
1499
|
+
* @deprecated
|
|
1500
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1501
|
+
*
|
|
1502
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1503
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1504
|
+
* @throws ApiError
|
|
1505
|
+
*/
|
|
1506
|
+
getAddressChains({ address, }: {
|
|
1507
|
+
/**
|
|
1508
|
+
* A wallet address.
|
|
1509
|
+
*/
|
|
1510
|
+
address: string;
|
|
1511
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1512
|
+
/**
|
|
1513
|
+
* @deprecated
|
|
1514
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1515
|
+
*
|
|
1516
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1517
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1518
|
+
* @throws ApiError
|
|
1519
|
+
*/
|
|
1520
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1521
|
+
/**
|
|
1522
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1523
|
+
*/
|
|
1524
|
+
pageToken?: string;
|
|
1525
|
+
/**
|
|
1526
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1527
|
+
*/
|
|
1528
|
+
pageSize?: number;
|
|
1529
|
+
/**
|
|
1530
|
+
* Either mainnet or testnet/fuji.
|
|
1531
|
+
*/
|
|
1532
|
+
network?: Network;
|
|
1533
|
+
/**
|
|
1534
|
+
* A status filter for listed transactions.
|
|
1535
|
+
*/
|
|
1536
|
+
status?: TransactionStatus;
|
|
1537
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1538
|
+
/**
|
|
1539
|
+
* @deprecated
|
|
1540
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1541
|
+
*
|
|
1542
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1543
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1544
|
+
* @throws ApiError
|
|
1545
|
+
*/
|
|
1546
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1547
|
+
/**
|
|
1548
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1549
|
+
*/
|
|
1550
|
+
pageToken?: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1553
|
+
*/
|
|
1554
|
+
pageSize?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Either mainnet or testnet/fuji.
|
|
1557
|
+
*/
|
|
1558
|
+
network?: Network;
|
|
1559
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1048
1560
|
}
|
|
1049
1561
|
|
|
1050
1562
|
type ImageAsset = {
|
|
@@ -1336,7 +1848,7 @@ declare class EvmContractsService {
|
|
|
1336
1848
|
*/
|
|
1337
1849
|
getContractMetadata({ chainId, address, }: {
|
|
1338
1850
|
/**
|
|
1339
|
-
* A supported evm chain id
|
|
1851
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1340
1852
|
*/
|
|
1341
1853
|
chainId: string;
|
|
1342
1854
|
/**
|
|
@@ -1352,7 +1864,7 @@ declare class EvmContractsService {
|
|
|
1352
1864
|
*/
|
|
1353
1865
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1354
1866
|
/**
|
|
1355
|
-
* A supported evm chain id
|
|
1867
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1356
1868
|
*/
|
|
1357
1869
|
chainId: string;
|
|
1358
1870
|
/**
|
|
@@ -1379,29 +1891,6 @@ declare namespace Erc1155Token {
|
|
|
1379
1891
|
}
|
|
1380
1892
|
}
|
|
1381
1893
|
|
|
1382
|
-
type RichAddress = {
|
|
1383
|
-
/**
|
|
1384
|
-
* The contract name.
|
|
1385
|
-
*/
|
|
1386
|
-
name?: string;
|
|
1387
|
-
/**
|
|
1388
|
-
* The contract symbol.
|
|
1389
|
-
*/
|
|
1390
|
-
symbol?: string;
|
|
1391
|
-
/**
|
|
1392
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1393
|
-
*/
|
|
1394
|
-
decimals?: number;
|
|
1395
|
-
/**
|
|
1396
|
-
* The logo uri for the address.
|
|
1397
|
-
*/
|
|
1398
|
-
logoUri?: string;
|
|
1399
|
-
/**
|
|
1400
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1401
|
-
*/
|
|
1402
|
-
address: string;
|
|
1403
|
-
};
|
|
1404
|
-
|
|
1405
1894
|
type Erc1155TransferDetails = {
|
|
1406
1895
|
from: RichAddress;
|
|
1407
1896
|
to: RichAddress;
|
|
@@ -1486,27 +1975,6 @@ type Erc721TransferDetails = {
|
|
|
1486
1975
|
erc721Token: Erc721Token;
|
|
1487
1976
|
};
|
|
1488
1977
|
|
|
1489
|
-
/**
|
|
1490
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1491
|
-
*/
|
|
1492
|
-
declare enum TransactionMethodType {
|
|
1493
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1494
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1495
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
type Method = {
|
|
1499
|
-
callType: TransactionMethodType;
|
|
1500
|
-
/**
|
|
1501
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1502
|
-
*/
|
|
1503
|
-
methodHash: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1506
|
-
*/
|
|
1507
|
-
methodName?: string;
|
|
1508
|
-
};
|
|
1509
|
-
|
|
1510
1978
|
type FullNativeTransactionDetails = {
|
|
1511
1979
|
/**
|
|
1512
1980
|
* The block number on the chain.
|
|
@@ -1520,6 +1988,10 @@ type FullNativeTransactionDetails = {
|
|
|
1520
1988
|
* The block hash identifier.
|
|
1521
1989
|
*/
|
|
1522
1990
|
blockHash: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The EVM chain ID on which the transaction occured.
|
|
1993
|
+
*/
|
|
1994
|
+
chainId: string;
|
|
1523
1995
|
/**
|
|
1524
1996
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1525
1997
|
*/
|
|
@@ -1748,98 +2220,41 @@ type ListErc721TransactionsResponse = {
|
|
|
1748
2220
|
|
|
1749
2221
|
type InternalTransaction = {
|
|
1750
2222
|
/**
|
|
1751
|
-
*
|
|
2223
|
+
* Sender address
|
|
1752
2224
|
*/
|
|
1753
|
-
|
|
2225
|
+
from: string;
|
|
1754
2226
|
/**
|
|
1755
|
-
*
|
|
2227
|
+
* Recipient address
|
|
1756
2228
|
*/
|
|
1757
|
-
|
|
2229
|
+
to: string;
|
|
1758
2230
|
/**
|
|
1759
|
-
*
|
|
2231
|
+
* Internal transaction type
|
|
1760
2232
|
*/
|
|
1761
|
-
|
|
2233
|
+
internalTxType: string;
|
|
1762
2234
|
/**
|
|
1763
|
-
*
|
|
2235
|
+
* Value transferred
|
|
1764
2236
|
*/
|
|
1765
|
-
txHash: string;
|
|
1766
|
-
from: RichAddress;
|
|
1767
|
-
to: RichAddress;
|
|
1768
|
-
internalTxType: InternalTransactionOpCall;
|
|
1769
2237
|
value: string;
|
|
1770
2238
|
/**
|
|
1771
|
-
*
|
|
2239
|
+
* Gas used
|
|
1772
2240
|
*/
|
|
1773
|
-
isReverted: boolean;
|
|
1774
2241
|
gasUsed: string;
|
|
1775
|
-
gasLimit: string;
|
|
1776
|
-
};
|
|
1777
|
-
|
|
1778
|
-
type ListInternalTransactionsResponse = {
|
|
1779
|
-
/**
|
|
1780
|
-
* 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.
|
|
1781
|
-
*/
|
|
1782
|
-
nextPageToken?: string;
|
|
1783
|
-
transactions: Array<InternalTransaction>;
|
|
1784
|
-
};
|
|
1785
|
-
|
|
1786
|
-
type NativeTransaction = {
|
|
1787
|
-
/**
|
|
1788
|
-
* The block number on the chain.
|
|
1789
|
-
*/
|
|
1790
|
-
blockNumber: string;
|
|
1791
|
-
/**
|
|
1792
|
-
* The block finality timestamp.
|
|
1793
|
-
*/
|
|
1794
|
-
blockTimestamp: number;
|
|
1795
|
-
/**
|
|
1796
|
-
* The block hash identifier.
|
|
1797
|
-
*/
|
|
1798
|
-
blockHash: string;
|
|
1799
|
-
/**
|
|
1800
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1801
|
-
*/
|
|
1802
|
-
blockIndex: number;
|
|
1803
|
-
/**
|
|
1804
|
-
* The transaction hash identifier.
|
|
1805
|
-
*/
|
|
1806
|
-
txHash: string;
|
|
1807
2242
|
/**
|
|
1808
|
-
*
|
|
1809
|
-
*/
|
|
1810
|
-
txStatus: string;
|
|
1811
|
-
/**
|
|
1812
|
-
* The transaction type.
|
|
1813
|
-
*/
|
|
1814
|
-
txType: number;
|
|
1815
|
-
/**
|
|
1816
|
-
* The gas limit set for the transaction.
|
|
2243
|
+
* Gas limit
|
|
1817
2244
|
*/
|
|
1818
2245
|
gasLimit: string;
|
|
1819
2246
|
/**
|
|
1820
|
-
*
|
|
1821
|
-
*/
|
|
1822
|
-
gasUsed: string;
|
|
1823
|
-
/**
|
|
1824
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1825
|
-
*/
|
|
1826
|
-
gasPrice: string;
|
|
1827
|
-
/**
|
|
1828
|
-
* The nonce used by the sender of the transaction.
|
|
2247
|
+
* Transaction hash
|
|
1829
2248
|
*/
|
|
1830
|
-
|
|
1831
|
-
from: RichAddress;
|
|
1832
|
-
to: RichAddress;
|
|
1833
|
-
method?: Method;
|
|
1834
|
-
value: string;
|
|
2249
|
+
transactionHash: string;
|
|
1835
2250
|
};
|
|
1836
2251
|
|
|
1837
|
-
type
|
|
2252
|
+
type ListInternalTransactionsResponse = {
|
|
1838
2253
|
/**
|
|
1839
2254
|
* 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.
|
|
1840
2255
|
*/
|
|
1841
2256
|
nextPageToken?: string;
|
|
1842
|
-
transactions: Array<
|
|
2257
|
+
transactions: Array<InternalTransaction>;
|
|
1843
2258
|
};
|
|
1844
2259
|
|
|
1845
2260
|
type TransactionDetails = {
|
|
@@ -1886,14 +2301,33 @@ declare enum SortOrder {
|
|
|
1886
2301
|
DESC = "desc"
|
|
1887
2302
|
}
|
|
1888
2303
|
|
|
1889
|
-
declare enum TransactionStatus {
|
|
1890
|
-
FAILED = "failed",
|
|
1891
|
-
SUCCESS = "success"
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
2304
|
declare class EvmTransactionsService {
|
|
1895
2305
|
readonly httpRequest: BaseHttpRequest;
|
|
1896
2306
|
constructor(httpRequest: BaseHttpRequest);
|
|
2307
|
+
/**
|
|
2308
|
+
* List the latest transactions across all supported EVM chains
|
|
2309
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2310
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2311
|
+
* @throws ApiError
|
|
2312
|
+
*/
|
|
2313
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2314
|
+
/**
|
|
2315
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2316
|
+
*/
|
|
2317
|
+
pageToken?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2320
|
+
*/
|
|
2321
|
+
pageSize?: number;
|
|
2322
|
+
/**
|
|
2323
|
+
* Either mainnet or testnet/fuji.
|
|
2324
|
+
*/
|
|
2325
|
+
network?: Network;
|
|
2326
|
+
/**
|
|
2327
|
+
* A status filter for listed transactions.
|
|
2328
|
+
*/
|
|
2329
|
+
status?: TransactionStatus;
|
|
2330
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1897
2331
|
/**
|
|
1898
2332
|
* Get deployment transaction
|
|
1899
2333
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -1902,7 +2336,7 @@ declare class EvmTransactionsService {
|
|
|
1902
2336
|
*/
|
|
1903
2337
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1904
2338
|
/**
|
|
1905
|
-
* A supported evm chain id
|
|
2339
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1906
2340
|
*/
|
|
1907
2341
|
chainId: string;
|
|
1908
2342
|
/**
|
|
@@ -1922,7 +2356,7 @@ declare class EvmTransactionsService {
|
|
|
1922
2356
|
*/
|
|
1923
2357
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1924
2358
|
/**
|
|
1925
|
-
* A supported evm chain id
|
|
2359
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1926
2360
|
*/
|
|
1927
2361
|
chainId: string;
|
|
1928
2362
|
/**
|
|
@@ -1946,7 +2380,7 @@ declare class EvmTransactionsService {
|
|
|
1946
2380
|
*/
|
|
1947
2381
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1948
2382
|
/**
|
|
1949
|
-
* A supported evm chain id
|
|
2383
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1950
2384
|
*/
|
|
1951
2385
|
chainId: string;
|
|
1952
2386
|
/**
|
|
@@ -1980,7 +2414,7 @@ declare class EvmTransactionsService {
|
|
|
1980
2414
|
*/
|
|
1981
2415
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1982
2416
|
/**
|
|
1983
|
-
* A supported evm chain id
|
|
2417
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1984
2418
|
*/
|
|
1985
2419
|
chainId: string;
|
|
1986
2420
|
/**
|
|
@@ -2016,7 +2450,7 @@ declare class EvmTransactionsService {
|
|
|
2016
2450
|
*/
|
|
2017
2451
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2018
2452
|
/**
|
|
2019
|
-
* A supported evm chain id
|
|
2453
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2020
2454
|
*/
|
|
2021
2455
|
chainId: string;
|
|
2022
2456
|
/**
|
|
@@ -2048,7 +2482,7 @@ declare class EvmTransactionsService {
|
|
|
2048
2482
|
*/
|
|
2049
2483
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2050
2484
|
/**
|
|
2051
|
-
* A supported evm chain id
|
|
2485
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2052
2486
|
*/
|
|
2053
2487
|
chainId: string;
|
|
2054
2488
|
/**
|
|
@@ -2080,7 +2514,7 @@ declare class EvmTransactionsService {
|
|
|
2080
2514
|
*/
|
|
2081
2515
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2082
2516
|
/**
|
|
2083
|
-
* A supported evm chain id
|
|
2517
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2084
2518
|
*/
|
|
2085
2519
|
chainId: string;
|
|
2086
2520
|
/**
|
|
@@ -2112,7 +2546,7 @@ declare class EvmTransactionsService {
|
|
|
2112
2546
|
*/
|
|
2113
2547
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2114
2548
|
/**
|
|
2115
|
-
* A supported evm chain id
|
|
2549
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2116
2550
|
*/
|
|
2117
2551
|
chainId: string;
|
|
2118
2552
|
/**
|
|
@@ -2146,7 +2580,7 @@ declare class EvmTransactionsService {
|
|
|
2146
2580
|
*/
|
|
2147
2581
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2148
2582
|
/**
|
|
2149
|
-
* A supported evm chain id
|
|
2583
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2150
2584
|
*/
|
|
2151
2585
|
chainId: string;
|
|
2152
2586
|
/**
|
|
@@ -2178,7 +2612,7 @@ declare class EvmTransactionsService {
|
|
|
2178
2612
|
*/
|
|
2179
2613
|
getTransaction({ chainId, txHash, }: {
|
|
2180
2614
|
/**
|
|
2181
|
-
* A supported evm chain id
|
|
2615
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2182
2616
|
*/
|
|
2183
2617
|
chainId: string;
|
|
2184
2618
|
/**
|
|
@@ -2192,15 +2626,23 @@ declare class EvmTransactionsService {
|
|
|
2192
2626
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2193
2627
|
* @throws ApiError
|
|
2194
2628
|
*/
|
|
2195
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2629
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2196
2630
|
/**
|
|
2197
|
-
* A supported evm chain id
|
|
2631
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2198
2632
|
*/
|
|
2199
2633
|
chainId: string;
|
|
2200
2634
|
/**
|
|
2201
2635
|
* A block identifier which is either a block number or the block hash.
|
|
2202
2636
|
*/
|
|
2203
2637
|
blockId: string;
|
|
2638
|
+
/**
|
|
2639
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2640
|
+
*/
|
|
2641
|
+
pageToken?: string;
|
|
2642
|
+
/**
|
|
2643
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2644
|
+
*/
|
|
2645
|
+
pageSize?: number;
|
|
2204
2646
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2205
2647
|
/**
|
|
2206
2648
|
* List latest transactions
|
|
@@ -2210,7 +2652,7 @@ declare class EvmTransactionsService {
|
|
|
2210
2652
|
*/
|
|
2211
2653
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2212
2654
|
/**
|
|
2213
|
-
* A supported evm chain id
|
|
2655
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2214
2656
|
*/
|
|
2215
2657
|
chainId: string;
|
|
2216
2658
|
/**
|
|
@@ -2228,66 +2670,246 @@ declare class EvmTransactionsService {
|
|
|
2228
2670
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2229
2671
|
}
|
|
2230
2672
|
|
|
2673
|
+
type HealthIndicatorResultDto = {
|
|
2674
|
+
/**
|
|
2675
|
+
* Status of the health indicator.
|
|
2676
|
+
*/
|
|
2677
|
+
status?: HealthIndicatorResultDto.status;
|
|
2678
|
+
};
|
|
2679
|
+
declare namespace HealthIndicatorResultDto {
|
|
2680
|
+
/**
|
|
2681
|
+
* Status of the health indicator.
|
|
2682
|
+
*/
|
|
2683
|
+
enum status {
|
|
2684
|
+
UP = "up",
|
|
2685
|
+
DOWN = "down"
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
type HealthCheckResultDto = {
|
|
2690
|
+
status?: HealthCheckResultDto.status;
|
|
2691
|
+
info?: any | null;
|
|
2692
|
+
error?: any | null;
|
|
2693
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2694
|
+
};
|
|
2695
|
+
declare namespace HealthCheckResultDto {
|
|
2696
|
+
enum status {
|
|
2697
|
+
ERROR = "error",
|
|
2698
|
+
OK = "ok",
|
|
2699
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2231
2703
|
declare class HealthCheckService {
|
|
2232
2704
|
readonly httpRequest: BaseHttpRequest;
|
|
2233
2705
|
constructor(httpRequest: BaseHttpRequest);
|
|
2234
2706
|
/**
|
|
2235
2707
|
* Get the health of the service
|
|
2236
|
-
*
|
|
2708
|
+
* Check the health of the service.
|
|
2709
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2237
2710
|
* @throws ApiError
|
|
2238
2711
|
*/
|
|
2239
|
-
dataHealthCheck(): CancelablePromise<
|
|
2240
|
-
status?: string;
|
|
2241
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2242
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2243
|
-
details?: Record<string, Record<string, string>>;
|
|
2244
|
-
}>;
|
|
2712
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2245
2713
|
}
|
|
2246
2714
|
|
|
2247
|
-
type
|
|
2715
|
+
type IcmDestinationTransaction = {
|
|
2716
|
+
txHash: string;
|
|
2717
|
+
timestamp: number;
|
|
2718
|
+
gasSpent: string;
|
|
2719
|
+
rewardRedeemer: string;
|
|
2720
|
+
delivererAddress: string;
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
type IcmReceipt = {
|
|
2724
|
+
receivedMessageNonce: string;
|
|
2725
|
+
relayerRewardAddress: string;
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
type IcmRewardDetails = {
|
|
2729
|
+
/**
|
|
2730
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2731
|
+
*/
|
|
2732
|
+
address: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* The contract name.
|
|
2735
|
+
*/
|
|
2736
|
+
name: string;
|
|
2737
|
+
/**
|
|
2738
|
+
* The contract symbol.
|
|
2739
|
+
*/
|
|
2740
|
+
symbol: string;
|
|
2741
|
+
/**
|
|
2742
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2743
|
+
*/
|
|
2744
|
+
decimals: number;
|
|
2745
|
+
/**
|
|
2746
|
+
* The logo uri for the address.
|
|
2747
|
+
*/
|
|
2748
|
+
logoUri?: string;
|
|
2749
|
+
ercType: IcmRewardDetails.ercType;
|
|
2750
|
+
/**
|
|
2751
|
+
* The token price, if available.
|
|
2752
|
+
*/
|
|
2753
|
+
price?: Money;
|
|
2754
|
+
value: string;
|
|
2755
|
+
};
|
|
2756
|
+
declare namespace IcmRewardDetails {
|
|
2757
|
+
enum ercType {
|
|
2758
|
+
ERC_20 = "ERC-20"
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
type IcmSourceTransaction = {
|
|
2763
|
+
txHash: string;
|
|
2764
|
+
timestamp: number;
|
|
2765
|
+
gasSpent: string;
|
|
2766
|
+
};
|
|
2767
|
+
|
|
2768
|
+
type DeliveredIcmMessage = {
|
|
2769
|
+
messageId: string;
|
|
2770
|
+
icmContractAddress: string;
|
|
2771
|
+
sourceBlockchainId: string;
|
|
2772
|
+
destinationBlockchainId: string;
|
|
2773
|
+
sourceEvmChainId: string;
|
|
2774
|
+
destinationEvmChainId: string;
|
|
2775
|
+
messageNonce: string;
|
|
2776
|
+
from: string;
|
|
2777
|
+
to: string;
|
|
2778
|
+
data?: string;
|
|
2779
|
+
messageExecuted: boolean;
|
|
2780
|
+
receipts: Array<IcmReceipt>;
|
|
2781
|
+
receiptDelivered: boolean;
|
|
2782
|
+
rewardDetails: IcmRewardDetails;
|
|
2783
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2784
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2785
|
+
status: DeliveredIcmMessage.status;
|
|
2786
|
+
};
|
|
2787
|
+
declare namespace DeliveredIcmMessage {
|
|
2788
|
+
enum status {
|
|
2789
|
+
DELIVERED = "delivered"
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2794
|
+
messageId: string;
|
|
2795
|
+
icmContractAddress: string;
|
|
2796
|
+
sourceBlockchainId: string;
|
|
2797
|
+
destinationBlockchainId: string;
|
|
2798
|
+
sourceEvmChainId: string;
|
|
2799
|
+
destinationEvmChainId: string;
|
|
2800
|
+
messageNonce: string;
|
|
2801
|
+
from: string;
|
|
2802
|
+
to: string;
|
|
2803
|
+
data?: string;
|
|
2804
|
+
messageExecuted: boolean;
|
|
2805
|
+
receipts: Array<IcmReceipt>;
|
|
2806
|
+
receiptDelivered: boolean;
|
|
2807
|
+
rewardDetails: IcmRewardDetails;
|
|
2808
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2809
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2810
|
+
};
|
|
2811
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2812
|
+
enum status {
|
|
2813
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
type PendingIcmMessage = {
|
|
2818
|
+
messageId: string;
|
|
2819
|
+
icmContractAddress: string;
|
|
2820
|
+
sourceBlockchainId: string;
|
|
2821
|
+
destinationBlockchainId: string;
|
|
2822
|
+
sourceEvmChainId: string;
|
|
2823
|
+
destinationEvmChainId: string;
|
|
2824
|
+
messageNonce: string;
|
|
2825
|
+
from: string;
|
|
2826
|
+
to: string;
|
|
2827
|
+
data?: string;
|
|
2828
|
+
messageExecuted: boolean;
|
|
2829
|
+
receipts: Array<IcmReceipt>;
|
|
2830
|
+
receiptDelivered: boolean;
|
|
2831
|
+
rewardDetails: IcmRewardDetails;
|
|
2832
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2833
|
+
status: PendingIcmMessage.status;
|
|
2834
|
+
};
|
|
2835
|
+
declare namespace PendingIcmMessage {
|
|
2836
|
+
enum status {
|
|
2837
|
+
PENDING = "pending"
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
type ListIcmMessagesResponse = {
|
|
2248
2842
|
/**
|
|
2249
2843
|
* 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.
|
|
2250
2844
|
*/
|
|
2251
2845
|
nextPageToken?: string;
|
|
2252
|
-
|
|
2846
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2253
2847
|
};
|
|
2254
2848
|
|
|
2255
|
-
declare class
|
|
2849
|
+
declare class InterchainMessagingService {
|
|
2256
2850
|
readonly httpRequest: BaseHttpRequest;
|
|
2257
2851
|
constructor(httpRequest: BaseHttpRequest);
|
|
2258
2852
|
/**
|
|
2259
|
-
*
|
|
2260
|
-
*
|
|
2853
|
+
* Get an ICM message
|
|
2854
|
+
* Gets an ICM message by message ID.
|
|
2261
2855
|
* @returns any Successful response
|
|
2262
2856
|
* @throws ApiError
|
|
2263
2857
|
*/
|
|
2264
|
-
|
|
2858
|
+
getIcmMessage({ messageId, }: {
|
|
2265
2859
|
/**
|
|
2266
|
-
*
|
|
2860
|
+
* The message ID of the ICM message.
|
|
2267
2861
|
*/
|
|
2268
|
-
|
|
2862
|
+
messageId: string;
|
|
2863
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2864
|
+
/**
|
|
2865
|
+
* List ICM messages
|
|
2866
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2867
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2868
|
+
* @throws ApiError
|
|
2869
|
+
*/
|
|
2870
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2269
2871
|
/**
|
|
2270
|
-
*
|
|
2872
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2271
2873
|
*/
|
|
2272
|
-
|
|
2874
|
+
pageToken?: string;
|
|
2273
2875
|
/**
|
|
2274
|
-
*
|
|
2876
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2275
2877
|
*/
|
|
2276
|
-
|
|
2277
|
-
|
|
2878
|
+
pageSize?: number;
|
|
2879
|
+
/**
|
|
2880
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2881
|
+
*/
|
|
2882
|
+
sourceBlockchainId?: string;
|
|
2883
|
+
/**
|
|
2884
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2885
|
+
*/
|
|
2886
|
+
destinationBlockchainId?: string;
|
|
2887
|
+
/**
|
|
2888
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2889
|
+
*/
|
|
2890
|
+
blockchainId?: string;
|
|
2891
|
+
/**
|
|
2892
|
+
* The address of the recipient of the ICM message.
|
|
2893
|
+
*/
|
|
2894
|
+
to?: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* The address of the sender of the ICM message.
|
|
2897
|
+
*/
|
|
2898
|
+
from?: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Either mainnet or testnet/fuji.
|
|
2901
|
+
*/
|
|
2902
|
+
network?: Network;
|
|
2903
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2278
2904
|
/**
|
|
2279
|
-
* List
|
|
2280
|
-
* Lists
|
|
2281
|
-
* @returns
|
|
2905
|
+
* List ICM messages by address
|
|
2906
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2907
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2282
2908
|
* @throws ApiError
|
|
2283
2909
|
*/
|
|
2284
|
-
|
|
2910
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2285
2911
|
/**
|
|
2286
|
-
*
|
|
2287
|
-
*/
|
|
2288
|
-
chainId: string;
|
|
2289
|
-
/**
|
|
2290
|
-
* Contract address on the relevant chain.
|
|
2912
|
+
* An EVM address.
|
|
2291
2913
|
*/
|
|
2292
2914
|
address: string;
|
|
2293
2915
|
/**
|
|
@@ -2298,16 +2920,77 @@ declare class NfTsService {
|
|
|
2298
2920
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2299
2921
|
*/
|
|
2300
2922
|
pageSize?: number;
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2923
|
+
/**
|
|
2924
|
+
* Either mainnet or testnet/fuji.
|
|
2925
|
+
*/
|
|
2926
|
+
network?: Network;
|
|
2927
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
type ListNftTokens = {
|
|
2931
|
+
/**
|
|
2932
|
+
* 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.
|
|
2933
|
+
*/
|
|
2934
|
+
nextPageToken?: string;
|
|
2935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
declare class NfTsService {
|
|
2939
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2940
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2941
|
+
/**
|
|
2942
|
+
* Reindex NFT metadata
|
|
2943
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2944
|
+
* @returns any Successful response
|
|
2945
|
+
* @throws ApiError
|
|
2946
|
+
*/
|
|
2947
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2948
|
+
/**
|
|
2949
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2950
|
+
*/
|
|
2951
|
+
chainId: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* Contract address on the relevant chain.
|
|
2954
|
+
*/
|
|
2955
|
+
address: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* TokenId on the contract
|
|
2958
|
+
*/
|
|
2959
|
+
tokenId: string;
|
|
2960
|
+
}): CancelablePromise<any>;
|
|
2961
|
+
/**
|
|
2962
|
+
* List tokens
|
|
2963
|
+
* Lists tokens for an NFT contract.
|
|
2964
|
+
* @returns ListNftTokens Successful response
|
|
2965
|
+
* @throws ApiError
|
|
2966
|
+
*/
|
|
2967
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2968
|
+
/**
|
|
2969
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2970
|
+
*/
|
|
2971
|
+
chainId: string;
|
|
2972
|
+
/**
|
|
2973
|
+
* Contract address on the relevant chain.
|
|
2974
|
+
*/
|
|
2975
|
+
address: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2978
|
+
*/
|
|
2979
|
+
pageToken?: string;
|
|
2980
|
+
/**
|
|
2981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2982
|
+
*/
|
|
2983
|
+
pageSize?: number;
|
|
2984
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2985
|
+
/**
|
|
2986
|
+
* Get token details
|
|
2304
2987
|
* Gets token details for a specific token of an NFT contract.
|
|
2305
2988
|
* @returns any Successful response
|
|
2306
2989
|
* @throws ApiError
|
|
2307
2990
|
*/
|
|
2308
2991
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2309
2992
|
/**
|
|
2310
|
-
* A supported evm chain id
|
|
2993
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2311
2994
|
*/
|
|
2312
2995
|
chainId: string;
|
|
2313
2996
|
/**
|
|
@@ -2321,6 +3004,108 @@ declare class NfTsService {
|
|
|
2321
3004
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2322
3005
|
}
|
|
2323
3006
|
|
|
3007
|
+
type AccessRequest = {
|
|
3008
|
+
/**
|
|
3009
|
+
* The email address to send the access token to
|
|
3010
|
+
*/
|
|
3011
|
+
email: string;
|
|
3012
|
+
/**
|
|
3013
|
+
* The captcha to verify the user
|
|
3014
|
+
*/
|
|
3015
|
+
captcha: string;
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
type NotificationsResponse = {
|
|
3019
|
+
message: string;
|
|
3020
|
+
};
|
|
3021
|
+
|
|
3022
|
+
type SubscribeRequest = {
|
|
3023
|
+
/**
|
|
3024
|
+
* The access token to use for authentication
|
|
3025
|
+
*/
|
|
3026
|
+
accessToken: string;
|
|
3027
|
+
/**
|
|
3028
|
+
* The node ID to subscribe to
|
|
3029
|
+
*/
|
|
3030
|
+
nodeId: string;
|
|
3031
|
+
/**
|
|
3032
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3033
|
+
*/
|
|
3034
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
type SubscriptionsRequest = {
|
|
3038
|
+
/**
|
|
3039
|
+
* The access token to use for authentication
|
|
3040
|
+
*/
|
|
3041
|
+
accessToken: string;
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
type SubscriptionsResponse = {
|
|
3045
|
+
/**
|
|
3046
|
+
* The email address of the user
|
|
3047
|
+
*/
|
|
3048
|
+
email: string;
|
|
3049
|
+
/**
|
|
3050
|
+
* The subscriptions of the user
|
|
3051
|
+
*/
|
|
3052
|
+
subscriptions: Record<string, {
|
|
3053
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3054
|
+
}>;
|
|
3055
|
+
};
|
|
3056
|
+
|
|
3057
|
+
type UnsubscribeRequest = {
|
|
3058
|
+
/**
|
|
3059
|
+
* The access token to use for authentication
|
|
3060
|
+
*/
|
|
3061
|
+
accessToken: string;
|
|
3062
|
+
/**
|
|
3063
|
+
* The node ID to subscribe to
|
|
3064
|
+
*/
|
|
3065
|
+
nodeId: string;
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
declare class NotificationsService {
|
|
3069
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3070
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3071
|
+
/**
|
|
3072
|
+
* Access Notifications
|
|
3073
|
+
* Access notifications.
|
|
3074
|
+
* @returns NotificationsResponse Successful response
|
|
3075
|
+
* @throws ApiError
|
|
3076
|
+
*/
|
|
3077
|
+
access({ requestBody, }: {
|
|
3078
|
+
requestBody: AccessRequest;
|
|
3079
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3080
|
+
/**
|
|
3081
|
+
* Subscribe to Notifications
|
|
3082
|
+
* Subscribe to receive notifications.
|
|
3083
|
+
* @returns NotificationsResponse Successful response
|
|
3084
|
+
* @throws ApiError
|
|
3085
|
+
*/
|
|
3086
|
+
subscribe({ requestBody, }: {
|
|
3087
|
+
requestBody: SubscribeRequest;
|
|
3088
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3089
|
+
/**
|
|
3090
|
+
* Unsubscribe from Notifications
|
|
3091
|
+
* Unsubscribe from receiving notifications.
|
|
3092
|
+
* @returns NotificationsResponse Successful response
|
|
3093
|
+
* @throws ApiError
|
|
3094
|
+
*/
|
|
3095
|
+
unsubscribe({ requestBody, }: {
|
|
3096
|
+
requestBody: UnsubscribeRequest;
|
|
3097
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3098
|
+
/**
|
|
3099
|
+
* Get Subscriptions
|
|
3100
|
+
* Get subscriptions.
|
|
3101
|
+
* @returns SubscriptionsResponse Successful response
|
|
3102
|
+
* @throws ApiError
|
|
3103
|
+
*/
|
|
3104
|
+
subscriptions({ requestBody, }: {
|
|
3105
|
+
requestBody: SubscriptionsRequest;
|
|
3106
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
2324
3109
|
type EvmNetworkOptions = {
|
|
2325
3110
|
addresses: Array<string>;
|
|
2326
3111
|
includeChains: Array<string>;
|
|
@@ -2337,11 +3122,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2337
3122
|
/**
|
|
2338
3123
|
* @deprecated
|
|
2339
3124
|
*/
|
|
2340
|
-
startDate
|
|
3125
|
+
startDate?: string;
|
|
2341
3126
|
/**
|
|
2342
3127
|
* @deprecated
|
|
2343
3128
|
*/
|
|
2344
|
-
endDate
|
|
3129
|
+
endDate?: string;
|
|
2345
3130
|
options: EvmNetworkOptions;
|
|
2346
3131
|
};
|
|
2347
3132
|
|
|
@@ -2354,7 +3139,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2354
3139
|
type PrimaryNetworkOptions = {
|
|
2355
3140
|
addresses?: Array<string>;
|
|
2356
3141
|
cChainEvmAddresses?: Array<string>;
|
|
2357
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3142
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2358
3143
|
};
|
|
2359
3144
|
|
|
2360
3145
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2364,11 +3149,11 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2364
3149
|
/**
|
|
2365
3150
|
* @deprecated
|
|
2366
3151
|
*/
|
|
2367
|
-
startDate
|
|
3152
|
+
startDate?: string;
|
|
2368
3153
|
/**
|
|
2369
3154
|
* @deprecated
|
|
2370
3155
|
*/
|
|
2371
|
-
endDate
|
|
3156
|
+
endDate?: string;
|
|
2372
3157
|
options: PrimaryNetworkOptions;
|
|
2373
3158
|
};
|
|
2374
3159
|
|
|
@@ -2409,7 +3194,7 @@ type OperationStatusResponse = {
|
|
|
2409
3194
|
operationType: OperationType;
|
|
2410
3195
|
operationStatus: OperationStatus;
|
|
2411
3196
|
message?: string;
|
|
2412
|
-
metadata
|
|
3197
|
+
metadata?: TransactionExportMetadata;
|
|
2413
3198
|
createdAtTimestamp: number;
|
|
2414
3199
|
updatedAtTimestamp: number;
|
|
2415
3200
|
};
|
|
@@ -2442,12 +3227,23 @@ declare class OperationsService {
|
|
|
2442
3227
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2443
3228
|
}
|
|
2444
3229
|
|
|
3230
|
+
type Blockchain = {
|
|
3231
|
+
createBlockTimestamp: number;
|
|
3232
|
+
createBlockNumber: string;
|
|
3233
|
+
blockchainId: string;
|
|
3234
|
+
vmId: string;
|
|
3235
|
+
subnetId: string;
|
|
3236
|
+
blockchainName: string;
|
|
3237
|
+
};
|
|
3238
|
+
|
|
2445
3239
|
declare enum BlockchainIds {
|
|
2446
3240
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2447
3241
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2448
3242
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3243
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2449
3244
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2450
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3245
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3246
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2451
3247
|
}
|
|
2452
3248
|
|
|
2453
3249
|
type ChainAddressChainIdMap = {
|
|
@@ -2471,16 +3267,31 @@ type DelegatorsDetails = {
|
|
|
2471
3267
|
};
|
|
2472
3268
|
|
|
2473
3269
|
type StakingDistribution = {
|
|
3270
|
+
/**
|
|
3271
|
+
* AvalancheGo version for the validator node.
|
|
3272
|
+
*/
|
|
2474
3273
|
version: string;
|
|
3274
|
+
/**
|
|
3275
|
+
* The total amount staked by validators using this version.
|
|
3276
|
+
*/
|
|
2475
3277
|
amountStaked: string;
|
|
3278
|
+
/**
|
|
3279
|
+
* The number of validators using this version.
|
|
3280
|
+
*/
|
|
2476
3281
|
validatorCount: number;
|
|
2477
3282
|
};
|
|
2478
3283
|
|
|
2479
3284
|
type ValidatorsDetails = {
|
|
2480
3285
|
validatorCount: number;
|
|
2481
3286
|
totalAmountStaked: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3289
|
+
*/
|
|
2482
3290
|
estimatedAnnualStakingReward: string;
|
|
2483
3291
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3292
|
+
/**
|
|
3293
|
+
* Ratio of total active stake amount to the current supply.
|
|
3294
|
+
*/
|
|
2484
3295
|
stakingRatio: string;
|
|
2485
3296
|
};
|
|
2486
3297
|
|
|
@@ -2489,15 +3300,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2489
3300
|
delegatorDetails: DelegatorsDetails;
|
|
2490
3301
|
};
|
|
2491
3302
|
|
|
2492
|
-
type Blockchain = {
|
|
2493
|
-
createBlockTimestamp: number;
|
|
2494
|
-
createBlockNumber: string;
|
|
2495
|
-
blockchainId: string;
|
|
2496
|
-
vmId: string;
|
|
2497
|
-
subnetId: string;
|
|
2498
|
-
blockchainName: string;
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
3303
|
type ListBlockchainsResponse = {
|
|
2502
3304
|
/**
|
|
2503
3305
|
* 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.
|
|
@@ -2532,7 +3334,13 @@ type CompletedDelegatorDetails = {
|
|
|
2532
3334
|
delegationFee: string;
|
|
2533
3335
|
startTimestamp: number;
|
|
2534
3336
|
endTimestamp: number;
|
|
3337
|
+
/**
|
|
3338
|
+
* Total rewards distributed for the successful delegation.
|
|
3339
|
+
*/
|
|
2535
3340
|
grossReward: string;
|
|
3341
|
+
/**
|
|
3342
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3343
|
+
*/
|
|
2536
3344
|
netReward: string;
|
|
2537
3345
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2538
3346
|
};
|
|
@@ -2550,7 +3358,13 @@ type PendingDelegatorDetails = {
|
|
|
2550
3358
|
delegationFee: string;
|
|
2551
3359
|
startTimestamp: number;
|
|
2552
3360
|
endTimestamp: number;
|
|
3361
|
+
/**
|
|
3362
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3363
|
+
*/
|
|
2553
3364
|
estimatedGrossReward: string;
|
|
3365
|
+
/**
|
|
3366
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3367
|
+
*/
|
|
2554
3368
|
estimatedNetReward: string;
|
|
2555
3369
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2556
3370
|
};
|
|
@@ -2571,8 +3385,59 @@ type ListDelegatorDetailsResponse = {
|
|
|
2571
3385
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2572
3386
|
};
|
|
2573
3387
|
|
|
2574
|
-
type
|
|
3388
|
+
type BalanceOwner = {
|
|
3389
|
+
addresses: Array<string>;
|
|
3390
|
+
threshold: number;
|
|
3391
|
+
};
|
|
3392
|
+
|
|
3393
|
+
type L1ValidatorDetailsFull = {
|
|
3394
|
+
/**
|
|
3395
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3396
|
+
*/
|
|
3397
|
+
validationId: string;
|
|
3398
|
+
/**
|
|
3399
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3400
|
+
*/
|
|
3401
|
+
validationIdHex: string;
|
|
3402
|
+
nodeId: string;
|
|
3403
|
+
subnetId: string;
|
|
3404
|
+
/**
|
|
3405
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
3406
|
+
*/
|
|
3407
|
+
weight: number;
|
|
3408
|
+
/**
|
|
3409
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3410
|
+
*/
|
|
3411
|
+
remainingBalance: number;
|
|
3412
|
+
/**
|
|
3413
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3414
|
+
*/
|
|
3415
|
+
creationTimestamp: number;
|
|
3416
|
+
blsCredentials: Record<string, any>;
|
|
3417
|
+
/**
|
|
3418
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3419
|
+
*/
|
|
3420
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3421
|
+
/**
|
|
3422
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3423
|
+
*/
|
|
3424
|
+
deactivationOwner: BalanceOwner;
|
|
3425
|
+
};
|
|
3426
|
+
|
|
3427
|
+
type ListL1ValidatorsResponse = {
|
|
3428
|
+
/**
|
|
3429
|
+
* 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.
|
|
3430
|
+
*/
|
|
3431
|
+
nextPageToken?: string;
|
|
3432
|
+
/**
|
|
3433
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3434
|
+
*/
|
|
3435
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3436
|
+
};
|
|
3437
|
+
|
|
3438
|
+
type L1ValidatorManagerDetails = {
|
|
2575
3439
|
blockchainId: string;
|
|
3440
|
+
contractAddress: string;
|
|
2576
3441
|
};
|
|
2577
3442
|
|
|
2578
3443
|
type SubnetOwnershipInfo = {
|
|
@@ -2613,7 +3478,19 @@ type Subnet = {
|
|
|
2613
3478
|
* Latest subnet owner details for this Subnet.
|
|
2614
3479
|
*/
|
|
2615
3480
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2616
|
-
|
|
3481
|
+
/**
|
|
3482
|
+
* Whether the subnet is an L1 or not.
|
|
3483
|
+
*/
|
|
3484
|
+
isL1: boolean;
|
|
3485
|
+
/**
|
|
3486
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3487
|
+
*/
|
|
3488
|
+
l1ConversionTransactionHash?: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* L1 validator manager details.
|
|
3491
|
+
*/
|
|
3492
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3493
|
+
blockchains: Array<Blockchain>;
|
|
2617
3494
|
};
|
|
2618
3495
|
|
|
2619
3496
|
type ListSubnetsResponse = {
|
|
@@ -2660,6 +3537,9 @@ type ActiveValidatorDetails = {
|
|
|
2660
3537
|
nodeId: string;
|
|
2661
3538
|
subnetId: string;
|
|
2662
3539
|
amountStaked: string;
|
|
3540
|
+
/**
|
|
3541
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3542
|
+
*/
|
|
2663
3543
|
delegationFee?: string;
|
|
2664
3544
|
startTimestamp: number;
|
|
2665
3545
|
endTimestamp: number;
|
|
@@ -2667,12 +3547,30 @@ type ActiveValidatorDetails = {
|
|
|
2667
3547
|
* Present for AddPermissionlessValidatorTx
|
|
2668
3548
|
*/
|
|
2669
3549
|
blsCredentials?: BlsCredentials;
|
|
3550
|
+
/**
|
|
3551
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3552
|
+
*/
|
|
2670
3553
|
stakePercentage: number;
|
|
3554
|
+
/**
|
|
3555
|
+
* The number of delegators linked to the validator.
|
|
3556
|
+
*/
|
|
2671
3557
|
delegatorCount: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3560
|
+
*/
|
|
2672
3561
|
amountDelegated?: string;
|
|
3562
|
+
/**
|
|
3563
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3564
|
+
*/
|
|
2673
3565
|
uptimePerformance: number;
|
|
2674
3566
|
avalancheGoVersion?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3569
|
+
*/
|
|
2675
3570
|
delegationCapacity?: string;
|
|
3571
|
+
/**
|
|
3572
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3573
|
+
*/
|
|
2676
3574
|
potentialRewards: Rewards;
|
|
2677
3575
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2678
3576
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2688,6 +3586,9 @@ type CompletedValidatorDetails = {
|
|
|
2688
3586
|
nodeId: string;
|
|
2689
3587
|
subnetId: string;
|
|
2690
3588
|
amountStaked: string;
|
|
3589
|
+
/**
|
|
3590
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3591
|
+
*/
|
|
2691
3592
|
delegationFee?: string;
|
|
2692
3593
|
startTimestamp: number;
|
|
2693
3594
|
endTimestamp: number;
|
|
@@ -2711,6 +3612,9 @@ type PendingValidatorDetails = {
|
|
|
2711
3612
|
nodeId: string;
|
|
2712
3613
|
subnetId: string;
|
|
2713
3614
|
amountStaked: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3617
|
+
*/
|
|
2714
3618
|
delegationFee?: string;
|
|
2715
3619
|
startTimestamp: number;
|
|
2716
3620
|
endTimestamp: number;
|
|
@@ -2731,6 +3635,9 @@ type RemovedValidatorDetails = {
|
|
|
2731
3635
|
nodeId: string;
|
|
2732
3636
|
subnetId: string;
|
|
2733
3637
|
amountStaked: string;
|
|
3638
|
+
/**
|
|
3639
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3640
|
+
*/
|
|
2734
3641
|
delegationFee?: string;
|
|
2735
3642
|
startTimestamp: number;
|
|
2736
3643
|
endTimestamp: number;
|
|
@@ -2738,7 +3645,13 @@ type RemovedValidatorDetails = {
|
|
|
2738
3645
|
* Present for AddPermissionlessValidatorTx
|
|
2739
3646
|
*/
|
|
2740
3647
|
blsCredentials?: BlsCredentials;
|
|
3648
|
+
/**
|
|
3649
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3650
|
+
*/
|
|
2741
3651
|
removeTxHash: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3654
|
+
*/
|
|
2742
3655
|
removeTimestamp: number;
|
|
2743
3656
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2744
3657
|
};
|
|
@@ -2818,6 +3731,7 @@ type XChainAssetDetails = {
|
|
|
2818
3731
|
declare enum XChainId {
|
|
2819
3732
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2820
3733
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3734
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2821
3735
|
X_CHAIN = "x-chain"
|
|
2822
3736
|
}
|
|
2823
3737
|
|
|
@@ -2896,6 +3810,22 @@ declare class PrimaryNetworkService {
|
|
|
2896
3810
|
*/
|
|
2897
3811
|
sortOrder?: SortOrder;
|
|
2898
3812
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3813
|
+
/**
|
|
3814
|
+
* Get blockchain details by ID
|
|
3815
|
+
* Get details of the blockchain registered on the network.
|
|
3816
|
+
* @returns Blockchain Successful response
|
|
3817
|
+
* @throws ApiError
|
|
3818
|
+
*/
|
|
3819
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3820
|
+
/**
|
|
3821
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3822
|
+
*/
|
|
3823
|
+
blockchainId: string;
|
|
3824
|
+
/**
|
|
3825
|
+
* Either mainnet or testnet/fuji.
|
|
3826
|
+
*/
|
|
3827
|
+
network: Network;
|
|
3828
|
+
}): CancelablePromise<Blockchain>;
|
|
2899
3829
|
/**
|
|
2900
3830
|
* List subnets
|
|
2901
3831
|
* Lists all subnets registered on the network.
|
|
@@ -3078,14 +4008,49 @@ declare class PrimaryNetworkService {
|
|
|
3078
4008
|
*/
|
|
3079
4009
|
nodeIds?: string;
|
|
3080
4010
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4011
|
+
/**
|
|
4012
|
+
* List L1 validators
|
|
4013
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4014
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4015
|
+
* @throws ApiError
|
|
4016
|
+
*/
|
|
4017
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4018
|
+
/**
|
|
4019
|
+
* Either mainnet or testnet/fuji.
|
|
4020
|
+
*/
|
|
4021
|
+
network: Network;
|
|
4022
|
+
/**
|
|
4023
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4024
|
+
*/
|
|
4025
|
+
pageToken?: string;
|
|
4026
|
+
/**
|
|
4027
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4028
|
+
*/
|
|
4029
|
+
pageSize?: number;
|
|
4030
|
+
/**
|
|
4031
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4032
|
+
*/
|
|
4033
|
+
l1ValidationId?: any;
|
|
4034
|
+
includeInactiveL1Validators?: boolean;
|
|
4035
|
+
/**
|
|
4036
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4037
|
+
*/
|
|
4038
|
+
nodeId?: string;
|
|
4039
|
+
/**
|
|
4040
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4041
|
+
*/
|
|
4042
|
+
subnetId?: any;
|
|
4043
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3081
4044
|
}
|
|
3082
4045
|
|
|
3083
4046
|
declare enum BlockchainId {
|
|
3084
4047
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3085
4048
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3086
4049
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4050
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3087
4051
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3088
4052
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4053
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3089
4054
|
P_CHAIN = "p-chain",
|
|
3090
4055
|
X_CHAIN = "x-chain",
|
|
3091
4056
|
C_CHAIN = "c-chain"
|
|
@@ -3122,11 +4087,6 @@ type CChainAtomicBalances = {
|
|
|
3122
4087
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3123
4088
|
};
|
|
3124
4089
|
|
|
3125
|
-
declare enum PrimaryNetwork {
|
|
3126
|
-
MAINNET = "mainnet",
|
|
3127
|
-
FUJI = "fuji"
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
4090
|
declare enum PrimaryNetworkChainName {
|
|
3131
4091
|
P_CHAIN = "p-chain",
|
|
3132
4092
|
X_CHAIN = "x-chain",
|
|
@@ -3135,7 +4095,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3135
4095
|
|
|
3136
4096
|
type PrimaryNetworkChainInfo = {
|
|
3137
4097
|
chainName: PrimaryNetworkChainName;
|
|
3138
|
-
network:
|
|
4098
|
+
network: Network;
|
|
3139
4099
|
};
|
|
3140
4100
|
|
|
3141
4101
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3327,6 +4287,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3327
4287
|
txCount: number;
|
|
3328
4288
|
transactions: Array<string>;
|
|
3329
4289
|
blockSizeBytes: number;
|
|
4290
|
+
l1ValidatorsAccruedFees?: number;
|
|
4291
|
+
activeL1Validators?: number;
|
|
3330
4292
|
currentSupply?: string;
|
|
3331
4293
|
proposerDetails?: ProposerDetails;
|
|
3332
4294
|
};
|
|
@@ -3340,6 +4302,8 @@ type PrimaryNetworkBlock = {
|
|
|
3340
4302
|
txCount: number;
|
|
3341
4303
|
transactions: Array<string>;
|
|
3342
4304
|
blockSizeBytes: number;
|
|
4305
|
+
l1ValidatorsAccruedFees?: number;
|
|
4306
|
+
activeL1Validators?: number;
|
|
3343
4307
|
currentSupply?: string;
|
|
3344
4308
|
proposerDetails?: ProposerDetails;
|
|
3345
4309
|
};
|
|
@@ -3382,7 +4346,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3382
4346
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3383
4347
|
* @throws ApiError
|
|
3384
4348
|
*/
|
|
3385
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4349
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3386
4350
|
/**
|
|
3387
4351
|
* A primary network blockchain id or alias.
|
|
3388
4352
|
*/
|
|
@@ -3395,6 +4359,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3395
4359
|
* A primary network (P or X chain) nodeId.
|
|
3396
4360
|
*/
|
|
3397
4361
|
nodeId: string;
|
|
4362
|
+
/**
|
|
4363
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4364
|
+
*/
|
|
4365
|
+
startTimestamp?: number;
|
|
4366
|
+
/**
|
|
4367
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4368
|
+
*/
|
|
4369
|
+
endTimestamp?: number;
|
|
3398
4370
|
/**
|
|
3399
4371
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3400
4372
|
*/
|
|
@@ -3410,7 +4382,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3410
4382
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3411
4383
|
* @throws ApiError
|
|
3412
4384
|
*/
|
|
3413
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4385
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3414
4386
|
/**
|
|
3415
4387
|
* A primary network blockchain id or alias.
|
|
3416
4388
|
*/
|
|
@@ -3420,7 +4392,15 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3420
4392
|
*/
|
|
3421
4393
|
network: Network;
|
|
3422
4394
|
/**
|
|
3423
|
-
*
|
|
4395
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4396
|
+
*/
|
|
4397
|
+
startTimestamp?: number;
|
|
4398
|
+
/**
|
|
4399
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4400
|
+
*/
|
|
4401
|
+
endTimestamp?: number;
|
|
4402
|
+
/**
|
|
4403
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3424
4404
|
*/
|
|
3425
4405
|
pageToken?: string;
|
|
3426
4406
|
/**
|
|
@@ -3828,6 +4808,32 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3828
4808
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3829
4809
|
};
|
|
3830
4810
|
|
|
4811
|
+
type L1ValidatorDetailsTransaction = {
|
|
4812
|
+
/**
|
|
4813
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4814
|
+
*/
|
|
4815
|
+
validationId: string;
|
|
4816
|
+
/**
|
|
4817
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4818
|
+
*/
|
|
4819
|
+
validationIdHex: string;
|
|
4820
|
+
nodeId: string;
|
|
4821
|
+
subnetId: string;
|
|
4822
|
+
/**
|
|
4823
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4824
|
+
*/
|
|
4825
|
+
weight: number;
|
|
4826
|
+
/**
|
|
4827
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4828
|
+
*/
|
|
4829
|
+
remainingBalance: number;
|
|
4830
|
+
/**
|
|
4831
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4832
|
+
*/
|
|
4833
|
+
balanceChange?: number;
|
|
4834
|
+
blsCredentials?: Record<string, any>;
|
|
4835
|
+
};
|
|
4836
|
+
|
|
3831
4837
|
declare enum PChainTransactionType {
|
|
3832
4838
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3833
4839
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3844,9 +4850,17 @@ declare enum PChainTransactionType {
|
|
|
3844
4850
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3845
4851
|
BASE_TX = "BaseTx",
|
|
3846
4852
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4853
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4854
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4855
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4856
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4857
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3847
4858
|
UNKNOWN = "UNKNOWN"
|
|
3848
4859
|
}
|
|
3849
4860
|
|
|
4861
|
+
/**
|
|
4862
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4863
|
+
*/
|
|
3850
4864
|
declare enum UtxoType {
|
|
3851
4865
|
STAKE = "STAKE",
|
|
3852
4866
|
TRANSFER = "TRANSFER"
|
|
@@ -3884,16 +4898,43 @@ type PChainUtxo = {
|
|
|
3884
4898
|
assetId: string;
|
|
3885
4899
|
blockNumber: string;
|
|
3886
4900
|
blockTimestamp: number;
|
|
4901
|
+
/**
|
|
4902
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4903
|
+
*/
|
|
3887
4904
|
consumingBlockNumber?: string;
|
|
4905
|
+
/**
|
|
4906
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4907
|
+
*/
|
|
3888
4908
|
consumingBlockTimestamp?: number;
|
|
4909
|
+
/**
|
|
4910
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4911
|
+
*/
|
|
3889
4912
|
platformLocktime?: number;
|
|
4913
|
+
/**
|
|
4914
|
+
* The index of the UTXO in the transaction
|
|
4915
|
+
*/
|
|
3890
4916
|
outputIndex: number;
|
|
3891
4917
|
rewardType?: RewardType;
|
|
4918
|
+
/**
|
|
4919
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4920
|
+
*/
|
|
3892
4921
|
stakeableLocktime?: number;
|
|
3893
4922
|
staked?: boolean;
|
|
4923
|
+
/**
|
|
4924
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4925
|
+
*/
|
|
3894
4926
|
threshold?: number;
|
|
4927
|
+
/**
|
|
4928
|
+
* The hash of the transaction that created this UTXO
|
|
4929
|
+
*/
|
|
3895
4930
|
txHash: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4933
|
+
*/
|
|
3896
4934
|
utxoEndTimestamp?: number;
|
|
4935
|
+
/**
|
|
4936
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4937
|
+
*/
|
|
3897
4938
|
utxoStartTimestamp?: number;
|
|
3898
4939
|
utxoType: UtxoType;
|
|
3899
4940
|
};
|
|
@@ -3908,9 +4949,18 @@ type PChainTransaction = {
|
|
|
3908
4949
|
* The block finality timestamp.
|
|
3909
4950
|
*/
|
|
3910
4951
|
blockTimestamp: number;
|
|
4952
|
+
/**
|
|
4953
|
+
* The height of the block in which the transaction was included
|
|
4954
|
+
*/
|
|
3911
4955
|
blockNumber: string;
|
|
3912
4956
|
blockHash: string;
|
|
4957
|
+
/**
|
|
4958
|
+
* The consumed UTXOs of the transaction
|
|
4959
|
+
*/
|
|
3913
4960
|
consumedUtxos: Array<PChainUtxo>;
|
|
4961
|
+
/**
|
|
4962
|
+
* The newly created UTXOs of the transaction
|
|
4963
|
+
*/
|
|
3914
4964
|
emittedUtxos: Array<PChainUtxo>;
|
|
3915
4965
|
/**
|
|
3916
4966
|
* Source chain for an atomic transaction.
|
|
@@ -3921,17 +4971,21 @@ type PChainTransaction = {
|
|
|
3921
4971
|
*/
|
|
3922
4972
|
destinationChain?: string;
|
|
3923
4973
|
/**
|
|
3924
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4974
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
3925
4975
|
*/
|
|
3926
4976
|
value: Array<AssetAmount>;
|
|
3927
4977
|
/**
|
|
3928
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4978
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
3929
4979
|
*/
|
|
3930
4980
|
amountBurned: Array<AssetAmount>;
|
|
3931
4981
|
/**
|
|
3932
4982
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3933
4983
|
*/
|
|
3934
4984
|
amountStaked: Array<AssetAmount>;
|
|
4985
|
+
/**
|
|
4986
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4987
|
+
*/
|
|
4988
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3935
4989
|
/**
|
|
3936
4990
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3937
4991
|
*/
|
|
@@ -3941,11 +4995,11 @@ type PChainTransaction = {
|
|
|
3941
4995
|
*/
|
|
3942
4996
|
endTimestamp?: number;
|
|
3943
4997
|
/**
|
|
3944
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4998
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3945
4999
|
*/
|
|
3946
5000
|
delegationFeePercent?: string;
|
|
3947
5001
|
/**
|
|
3948
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5002
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3949
5003
|
*/
|
|
3950
5004
|
nodeId?: string;
|
|
3951
5005
|
/**
|
|
@@ -3953,14 +5007,25 @@ type PChainTransaction = {
|
|
|
3953
5007
|
*/
|
|
3954
5008
|
subnetId?: string;
|
|
3955
5009
|
/**
|
|
3956
|
-
* Present for
|
|
5010
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5011
|
+
*/
|
|
5012
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5013
|
+
/**
|
|
5014
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
5015
|
+
*/
|
|
5016
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5017
|
+
/**
|
|
5018
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3957
5019
|
*/
|
|
3958
5020
|
estimatedReward?: string;
|
|
5021
|
+
/**
|
|
5022
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5023
|
+
*/
|
|
3959
5024
|
rewardTxHash?: string;
|
|
3960
5025
|
rewardAddresses?: Array<string>;
|
|
3961
5026
|
memo?: string;
|
|
3962
5027
|
/**
|
|
3963
|
-
*
|
|
5028
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3964
5029
|
*/
|
|
3965
5030
|
stakingTxHash?: string;
|
|
3966
5031
|
/**
|
|
@@ -3968,7 +5033,7 @@ type PChainTransaction = {
|
|
|
3968
5033
|
*/
|
|
3969
5034
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3970
5035
|
/**
|
|
3971
|
-
* Present for AddPermissionlessValidatorTx
|
|
5036
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3972
5037
|
*/
|
|
3973
5038
|
blsCredentials?: BlsCredentials;
|
|
3974
5039
|
};
|
|
@@ -4153,6 +5218,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4153
5218
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4154
5219
|
BASE_TX = "BaseTx",
|
|
4155
5220
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5221
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5222
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5223
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5224
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5225
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4156
5226
|
UNKNOWN = "UNKNOWN",
|
|
4157
5227
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4158
5228
|
OPERATION_TX = "OperationTx"
|
|
@@ -4187,15 +5257,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4187
5257
|
*
|
|
4188
5258
|
* 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.
|
|
4189
5259
|
*
|
|
5260
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
5261
|
+
*
|
|
4190
5262
|
* 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.
|
|
4191
5263
|
* @returns any Successful response
|
|
4192
5264
|
* @throws ApiError
|
|
4193
5265
|
*/
|
|
4194
|
-
listLatestPrimaryNetworkTransactions({
|
|
4195
|
-
/**
|
|
4196
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4197
|
-
*/
|
|
4198
|
-
addresses: string;
|
|
5266
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4199
5267
|
/**
|
|
4200
5268
|
* A primary network blockchain id or alias.
|
|
4201
5269
|
*/
|
|
@@ -4204,6 +5272,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4204
5272
|
* Either mainnet or testnet/fuji.
|
|
4205
5273
|
*/
|
|
4206
5274
|
network: Network;
|
|
5275
|
+
/**
|
|
5276
|
+
* 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.
|
|
5277
|
+
*/
|
|
5278
|
+
addresses?: string;
|
|
5279
|
+
l1ValidationId?: string;
|
|
4207
5280
|
/**
|
|
4208
5281
|
* Query param for filtering items based on transaction types.
|
|
4209
5282
|
*/
|
|
@@ -4479,47 +5552,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4479
5552
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4480
5553
|
}
|
|
4481
5554
|
|
|
4482
|
-
type
|
|
4483
|
-
|
|
4484
|
-
message: string;
|
|
4485
|
-
data?: Record<string, any>;
|
|
4486
|
-
};
|
|
4487
|
-
|
|
4488
|
-
type RpcErrorResponseDto = {
|
|
4489
|
-
jsonrpc: string;
|
|
4490
|
-
id?: (string | number);
|
|
4491
|
-
error: RpcErrorDto;
|
|
4492
|
-
};
|
|
4493
|
-
|
|
4494
|
-
type RpcRequestBodyDto = {
|
|
4495
|
-
method: string;
|
|
4496
|
-
params?: Record<string, any>;
|
|
4497
|
-
id?: (string | number);
|
|
4498
|
-
jsonrpc?: string;
|
|
5555
|
+
type SignatureAggregationResponse = {
|
|
5556
|
+
signedMessage: string;
|
|
4499
5557
|
};
|
|
4500
5558
|
|
|
4501
|
-
type
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
5559
|
+
type SignatureAggregatorRequest = {
|
|
5560
|
+
message: string;
|
|
5561
|
+
justification?: string;
|
|
5562
|
+
signingSubnetId?: string;
|
|
5563
|
+
quorumPercentage?: number;
|
|
4505
5564
|
};
|
|
4506
5565
|
|
|
4507
|
-
declare class
|
|
5566
|
+
declare class SignatureAggregatorService {
|
|
4508
5567
|
readonly httpRequest: BaseHttpRequest;
|
|
4509
5568
|
constructor(httpRequest: BaseHttpRequest);
|
|
4510
5569
|
/**
|
|
4511
|
-
*
|
|
4512
|
-
*
|
|
4513
|
-
* @returns
|
|
5570
|
+
* Aggregate Signatures
|
|
5571
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
5572
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4514
5573
|
* @throws ApiError
|
|
4515
5574
|
*/
|
|
4516
|
-
|
|
5575
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
4517
5576
|
/**
|
|
4518
|
-
*
|
|
5577
|
+
* Either mainnet or testnet/fuji.
|
|
4519
5578
|
*/
|
|
4520
|
-
|
|
4521
|
-
requestBody:
|
|
4522
|
-
}): CancelablePromise<
|
|
5579
|
+
network: Network;
|
|
5580
|
+
requestBody: SignatureAggregatorRequest;
|
|
5581
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5582
|
+
/**
|
|
5583
|
+
* Get Aggregated Signatures
|
|
5584
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5585
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5586
|
+
* @throws ApiError
|
|
5587
|
+
*/
|
|
5588
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5589
|
+
/**
|
|
5590
|
+
* Either mainnet or testnet/fuji.
|
|
5591
|
+
*/
|
|
5592
|
+
network: Network;
|
|
5593
|
+
/**
|
|
5594
|
+
* A primary network (P or X chain) transaction hash.
|
|
5595
|
+
*/
|
|
5596
|
+
txHash: string;
|
|
5597
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4523
5598
|
}
|
|
4524
5599
|
|
|
4525
5600
|
type TeleporterDestinationTransaction = {
|
|
@@ -4660,8 +5735,10 @@ declare class TeleporterService {
|
|
|
4660
5735
|
readonly httpRequest: BaseHttpRequest;
|
|
4661
5736
|
constructor(httpRequest: BaseHttpRequest);
|
|
4662
5737
|
/**
|
|
4663
|
-
*
|
|
4664
|
-
* Gets a teleporter message by message ID.
|
|
5738
|
+
* @deprecated
|
|
5739
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5740
|
+
*
|
|
5741
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4665
5742
|
* @returns any Successful response
|
|
4666
5743
|
* @throws ApiError
|
|
4667
5744
|
*/
|
|
@@ -4672,8 +5749,10 @@ declare class TeleporterService {
|
|
|
4672
5749
|
messageId: string;
|
|
4673
5750
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4674
5751
|
/**
|
|
4675
|
-
*
|
|
4676
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5752
|
+
* @deprecated
|
|
5753
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5754
|
+
*
|
|
5755
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4677
5756
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4678
5757
|
* @throws ApiError
|
|
4679
5758
|
*/
|
|
@@ -4712,8 +5791,10 @@ declare class TeleporterService {
|
|
|
4712
5791
|
network?: Network;
|
|
4713
5792
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4714
5793
|
/**
|
|
4715
|
-
*
|
|
4716
|
-
* Lists teleporter messages by address. Ordered by
|
|
5794
|
+
* @deprecated
|
|
5795
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5796
|
+
*
|
|
5797
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4717
5798
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4718
5799
|
* @throws ApiError
|
|
4719
5800
|
*/
|
|
@@ -4755,44 +5836,54 @@ type AddressActivityMetadata = {
|
|
|
4755
5836
|
eventSignatures?: Array<string>;
|
|
4756
5837
|
};
|
|
4757
5838
|
|
|
4758
|
-
declare enum
|
|
4759
|
-
|
|
5839
|
+
declare enum PrimaryNetworkType {
|
|
5840
|
+
MAINNET = "mainnet",
|
|
5841
|
+
FUJI = "fuji"
|
|
4760
5842
|
}
|
|
4761
5843
|
|
|
4762
|
-
type
|
|
5844
|
+
type EVMAddressActivityRequest = {
|
|
5845
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
4763
5846
|
url: string;
|
|
4764
5847
|
chainId: string;
|
|
4765
|
-
|
|
4766
|
-
metadata: AddressActivityMetadata;
|
|
5848
|
+
network?: PrimaryNetworkType;
|
|
4767
5849
|
name?: string;
|
|
4768
5850
|
description?: string;
|
|
4769
5851
|
/**
|
|
4770
|
-
* Whether to include traces in the webhook payload.
|
|
5852
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4771
5853
|
*/
|
|
4772
5854
|
includeInternalTxs?: boolean;
|
|
4773
5855
|
/**
|
|
4774
5856
|
* Whether to include logs in the webhook payload.
|
|
4775
5857
|
*/
|
|
4776
5858
|
includeLogs?: boolean;
|
|
5859
|
+
metadata: AddressActivityMetadata;
|
|
4777
5860
|
};
|
|
5861
|
+
declare namespace EVMAddressActivityRequest {
|
|
5862
|
+
enum eventType {
|
|
5863
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5864
|
+
}
|
|
5865
|
+
}
|
|
4778
5866
|
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
addresses: Array<string>;
|
|
4785
|
-
totalAddresses: number;
|
|
4786
|
-
};
|
|
5867
|
+
declare enum EventType {
|
|
5868
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5869
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5870
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5871
|
+
}
|
|
4787
5872
|
|
|
4788
5873
|
declare enum WebhookStatusType {
|
|
4789
5874
|
ACTIVE = "active",
|
|
4790
5875
|
INACTIVE = "inactive"
|
|
4791
5876
|
}
|
|
4792
5877
|
|
|
4793
|
-
type
|
|
5878
|
+
type EVMAddressActivityResponse = {
|
|
4794
5879
|
id: string;
|
|
4795
5880
|
eventType: EventType;
|
|
5881
|
+
url: string;
|
|
5882
|
+
chainId: string;
|
|
5883
|
+
status: WebhookStatusType;
|
|
5884
|
+
createdAt: number;
|
|
5885
|
+
name: string;
|
|
5886
|
+
description: string;
|
|
4796
5887
|
metadata: AddressActivityMetadata;
|
|
4797
5888
|
/**
|
|
4798
5889
|
* Whether to include traces in the webhook payload.
|
|
@@ -4802,12 +5893,109 @@ type WebhookResponse = {
|
|
|
4802
5893
|
* Whether to include logs in the webhook payload.
|
|
4803
5894
|
*/
|
|
4804
5895
|
includeLogs?: boolean;
|
|
5896
|
+
};
|
|
5897
|
+
|
|
5898
|
+
type ListWebhookAddressesResponse = {
|
|
5899
|
+
/**
|
|
5900
|
+
* 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.
|
|
5901
|
+
*/
|
|
5902
|
+
nextPageToken?: string;
|
|
5903
|
+
addresses: Array<string>;
|
|
5904
|
+
totalAddresses: number;
|
|
5905
|
+
};
|
|
5906
|
+
|
|
5907
|
+
/**
|
|
5908
|
+
* The type of key for platform activity depending on the event type
|
|
5909
|
+
*/
|
|
5910
|
+
declare enum PlatformActivityKeyType {
|
|
5911
|
+
ADDRESSES = "addresses",
|
|
5912
|
+
NODE_ID = "nodeId",
|
|
5913
|
+
SUBNET_ID = "subnetId"
|
|
5914
|
+
}
|
|
5915
|
+
|
|
5916
|
+
/**
|
|
5917
|
+
* Array of address activity sub-event types
|
|
5918
|
+
*/
|
|
5919
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5920
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5921
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
5922
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5923
|
+
}
|
|
5924
|
+
|
|
5925
|
+
type PlatformActivitySubEvents = {
|
|
5926
|
+
/**
|
|
5927
|
+
* Array of validator activity sub-event types
|
|
5928
|
+
*/
|
|
5929
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5930
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5931
|
+
};
|
|
5932
|
+
|
|
5933
|
+
/**
|
|
5934
|
+
* Type of balance to monitor
|
|
5935
|
+
*/
|
|
5936
|
+
declare enum CommonBalanceType {
|
|
5937
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5938
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5939
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5940
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5941
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5942
|
+
PENDING_STAKED = "pendingStaked",
|
|
5943
|
+
UNLOCKED = "unlocked",
|
|
5944
|
+
LOCKED = "locked",
|
|
5945
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5946
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
type PlatformBalanceThresholdFilter = {
|
|
5950
|
+
balanceType: CommonBalanceType;
|
|
5951
|
+
/**
|
|
5952
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5953
|
+
*/
|
|
5954
|
+
balanceThreshold: string;
|
|
5955
|
+
};
|
|
5956
|
+
|
|
5957
|
+
type PlatformActivityMetadata = {
|
|
5958
|
+
keyType: PlatformActivityKeyType;
|
|
5959
|
+
/**
|
|
5960
|
+
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
5961
|
+
*/
|
|
5962
|
+
keys: Array<string>;
|
|
5963
|
+
/**
|
|
5964
|
+
* Sub-events to monitor
|
|
5965
|
+
*/
|
|
5966
|
+
subEvents?: PlatformActivitySubEvents;
|
|
5967
|
+
/**
|
|
5968
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5969
|
+
*/
|
|
5970
|
+
eventSignatures?: Array<string>;
|
|
5971
|
+
/**
|
|
5972
|
+
* Array of node IDs to filter the events
|
|
5973
|
+
*/
|
|
5974
|
+
nodeIds?: Array<string>;
|
|
5975
|
+
/**
|
|
5976
|
+
* Array of subnet IDs to filter the events
|
|
5977
|
+
*/
|
|
5978
|
+
subnetIds?: Array<string>;
|
|
5979
|
+
/**
|
|
5980
|
+
* Balance threshold filter
|
|
5981
|
+
*/
|
|
5982
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
5983
|
+
/**
|
|
5984
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5985
|
+
*/
|
|
5986
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
5987
|
+
};
|
|
5988
|
+
|
|
5989
|
+
type PlatformActivityResponse = {
|
|
5990
|
+
id: string;
|
|
5991
|
+
eventType: EventType;
|
|
4805
5992
|
url: string;
|
|
4806
5993
|
chainId: string;
|
|
4807
5994
|
status: WebhookStatusType;
|
|
4808
5995
|
createdAt: number;
|
|
4809
5996
|
name: string;
|
|
4810
5997
|
description: string;
|
|
5998
|
+
metadata: PlatformActivityMetadata;
|
|
4811
5999
|
};
|
|
4812
6000
|
|
|
4813
6001
|
type ListWebhooksResponse = {
|
|
@@ -4815,9 +6003,36 @@ type ListWebhooksResponse = {
|
|
|
4815
6003
|
* 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.
|
|
4816
6004
|
*/
|
|
4817
6005
|
nextPageToken?: string;
|
|
4818
|
-
webhooks: Array<
|
|
6006
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4819
6007
|
};
|
|
4820
6008
|
|
|
6009
|
+
type PlatformActivityRequest = {
|
|
6010
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6011
|
+
url: string;
|
|
6012
|
+
chainId: string;
|
|
6013
|
+
network?: PrimaryNetworkType;
|
|
6014
|
+
name?: string;
|
|
6015
|
+
description?: string;
|
|
6016
|
+
/**
|
|
6017
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6018
|
+
*/
|
|
6019
|
+
includeInternalTxs?: boolean;
|
|
6020
|
+
/**
|
|
6021
|
+
* Whether to include logs in the webhook payload.
|
|
6022
|
+
*/
|
|
6023
|
+
includeLogs?: boolean;
|
|
6024
|
+
/**
|
|
6025
|
+
* Metadata for platform activity
|
|
6026
|
+
*/
|
|
6027
|
+
metadata: PlatformActivityMetadata;
|
|
6028
|
+
};
|
|
6029
|
+
declare namespace PlatformActivityRequest {
|
|
6030
|
+
enum eventType {
|
|
6031
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6032
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6033
|
+
}
|
|
6034
|
+
}
|
|
6035
|
+
|
|
4821
6036
|
type SharedSecretsResponse = {
|
|
4822
6037
|
secret: string;
|
|
4823
6038
|
};
|
|
@@ -4827,6 +6042,9 @@ type UpdateWebhookRequest = {
|
|
|
4827
6042
|
description?: string;
|
|
4828
6043
|
url?: string;
|
|
4829
6044
|
status?: WebhookStatusType;
|
|
6045
|
+
/**
|
|
6046
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6047
|
+
*/
|
|
4830
6048
|
includeInternalTxs?: boolean;
|
|
4831
6049
|
includeLogs?: boolean;
|
|
4832
6050
|
};
|
|
@@ -4842,12 +6060,12 @@ declare class WebhooksService {
|
|
|
4842
6060
|
/**
|
|
4843
6061
|
* Create a webhook
|
|
4844
6062
|
* Create a new webhook.
|
|
4845
|
-
* @returns
|
|
6063
|
+
* @returns any Successful response
|
|
4846
6064
|
* @throws ApiError
|
|
4847
6065
|
*/
|
|
4848
6066
|
createWebhook({ requestBody, }: {
|
|
4849
|
-
requestBody:
|
|
4850
|
-
}): CancelablePromise<
|
|
6067
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6068
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4851
6069
|
/**
|
|
4852
6070
|
* List webhooks
|
|
4853
6071
|
* Lists webhooks for the user.
|
|
@@ -4871,7 +6089,7 @@ declare class WebhooksService {
|
|
|
4871
6089
|
/**
|
|
4872
6090
|
* Get a webhook by ID
|
|
4873
6091
|
* Retrieves a webhook by ID.
|
|
4874
|
-
* @returns
|
|
6092
|
+
* @returns any Successful response
|
|
4875
6093
|
* @throws ApiError
|
|
4876
6094
|
*/
|
|
4877
6095
|
getWebhook({ id, }: {
|
|
@@ -4879,11 +6097,11 @@ declare class WebhooksService {
|
|
|
4879
6097
|
* The webhook identifier.
|
|
4880
6098
|
*/
|
|
4881
6099
|
id: string;
|
|
4882
|
-
}): CancelablePromise<
|
|
6100
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4883
6101
|
/**
|
|
4884
6102
|
* Deactivate a webhook
|
|
4885
6103
|
* Deactivates a webhook by ID.
|
|
4886
|
-
* @returns
|
|
6104
|
+
* @returns any Successful response
|
|
4887
6105
|
* @throws ApiError
|
|
4888
6106
|
*/
|
|
4889
6107
|
deactivateWebhook({ id, }: {
|
|
@@ -4891,11 +6109,11 @@ declare class WebhooksService {
|
|
|
4891
6109
|
* The webhook identifier.
|
|
4892
6110
|
*/
|
|
4893
6111
|
id: string;
|
|
4894
|
-
}): CancelablePromise<
|
|
6112
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4895
6113
|
/**
|
|
4896
6114
|
* Update a webhook
|
|
4897
6115
|
* Updates an existing webhook.
|
|
4898
|
-
* @returns
|
|
6116
|
+
* @returns any Successful response
|
|
4899
6117
|
* @throws ApiError
|
|
4900
6118
|
*/
|
|
4901
6119
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4904,14 +6122,14 @@ declare class WebhooksService {
|
|
|
4904
6122
|
*/
|
|
4905
6123
|
id: string;
|
|
4906
6124
|
requestBody: UpdateWebhookRequest;
|
|
4907
|
-
}): CancelablePromise<
|
|
6125
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4908
6126
|
/**
|
|
4909
|
-
* Generate a shared secret
|
|
4910
|
-
* Generates a new shared secret.
|
|
6127
|
+
* Generate or rotate a shared secret
|
|
6128
|
+
* Generates a new shared secret or rotate an existing one.
|
|
4911
6129
|
* @returns SharedSecretsResponse Successful response
|
|
4912
6130
|
* @throws ApiError
|
|
4913
6131
|
*/
|
|
4914
|
-
|
|
6132
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4915
6133
|
/**
|
|
4916
6134
|
* Get a shared secret
|
|
4917
6135
|
* Get a previously generated shared secret.
|
|
@@ -4920,9 +6138,9 @@ declare class WebhooksService {
|
|
|
4920
6138
|
*/
|
|
4921
6139
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4922
6140
|
/**
|
|
4923
|
-
* Add addresses to webhook
|
|
4924
|
-
* Add addresses to webhook.
|
|
4925
|
-
* @returns
|
|
6141
|
+
* Add addresses to EVM activity webhook
|
|
6142
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6143
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4926
6144
|
* @throws ApiError
|
|
4927
6145
|
*/
|
|
4928
6146
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4931,11 +6149,11 @@ declare class WebhooksService {
|
|
|
4931
6149
|
*/
|
|
4932
6150
|
id: string;
|
|
4933
6151
|
requestBody: AddressesChangeRequest;
|
|
4934
|
-
}): CancelablePromise<
|
|
6152
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4935
6153
|
/**
|
|
4936
|
-
* Remove addresses from webhook
|
|
4937
|
-
* Remove addresses from webhook.
|
|
4938
|
-
* @returns
|
|
6154
|
+
* Remove addresses from EVM activity webhook
|
|
6155
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6156
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4939
6157
|
* @throws ApiError
|
|
4940
6158
|
*/
|
|
4941
6159
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4944,10 +6162,10 @@ declare class WebhooksService {
|
|
|
4944
6162
|
*/
|
|
4945
6163
|
id: string;
|
|
4946
6164
|
requestBody: AddressesChangeRequest;
|
|
4947
|
-
}): CancelablePromise<
|
|
6165
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4948
6166
|
/**
|
|
4949
|
-
* List adresses by
|
|
4950
|
-
* List adresses by webhook.
|
|
6167
|
+
* List adresses by EVM activity webhooks
|
|
6168
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
4951
6169
|
* @returns ListWebhookAddressesResponse Successful response
|
|
4952
6170
|
* @throws ApiError
|
|
4953
6171
|
*/
|
|
@@ -4977,7 +6195,9 @@ declare class Glacier {
|
|
|
4977
6195
|
readonly evmContracts: EvmContractsService;
|
|
4978
6196
|
readonly evmTransactions: EvmTransactionsService;
|
|
4979
6197
|
readonly healthCheck: HealthCheckService;
|
|
6198
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
4980
6199
|
readonly nfTs: NfTsService;
|
|
6200
|
+
readonly notifications: NotificationsService;
|
|
4981
6201
|
readonly operations: OperationsService;
|
|
4982
6202
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
4983
6203
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -4986,7 +6206,7 @@ declare class Glacier {
|
|
|
4986
6206
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4987
6207
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4988
6208
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4989
|
-
readonly
|
|
6209
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4990
6210
|
readonly teleporter: TeleporterService;
|
|
4991
6211
|
readonly webhooks: WebhooksService;
|
|
4992
6212
|
readonly request: BaseHttpRequest;
|
|
@@ -5010,6 +6230,17 @@ declare class ApiError extends Error {
|
|
|
5010
6230
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5011
6231
|
}
|
|
5012
6232
|
|
|
6233
|
+
type AccessListData = {
|
|
6234
|
+
/**
|
|
6235
|
+
* Access Address
|
|
6236
|
+
*/
|
|
6237
|
+
accessAddresses: string;
|
|
6238
|
+
/**
|
|
6239
|
+
* Storage keys
|
|
6240
|
+
*/
|
|
6241
|
+
storageKeys: Array<string>;
|
|
6242
|
+
};
|
|
6243
|
+
|
|
5013
6244
|
type BadGateway = {
|
|
5014
6245
|
/**
|
|
5015
6246
|
* The error message describing the reason for the exception
|
|
@@ -5044,6 +6275,76 @@ type DataListChainsResponse = {
|
|
|
5044
6275
|
chains: Array<ChainInfo>;
|
|
5045
6276
|
};
|
|
5046
6277
|
|
|
6278
|
+
type ERCToken = {
|
|
6279
|
+
/**
|
|
6280
|
+
* Token contract address
|
|
6281
|
+
*/
|
|
6282
|
+
address: string;
|
|
6283
|
+
/**
|
|
6284
|
+
* Token name
|
|
6285
|
+
*/
|
|
6286
|
+
name: string;
|
|
6287
|
+
/**
|
|
6288
|
+
* Token symbol
|
|
6289
|
+
*/
|
|
6290
|
+
symbol: string;
|
|
6291
|
+
/**
|
|
6292
|
+
* Token decimals
|
|
6293
|
+
*/
|
|
6294
|
+
decimals: number;
|
|
6295
|
+
/**
|
|
6296
|
+
* Value including decimals
|
|
6297
|
+
*/
|
|
6298
|
+
valueWithDecimals: string;
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
type ERCTransfer = {
|
|
6302
|
+
/**
|
|
6303
|
+
* Transaction hash
|
|
6304
|
+
*/
|
|
6305
|
+
transactionHash: string;
|
|
6306
|
+
/**
|
|
6307
|
+
* Transfer type
|
|
6308
|
+
*/
|
|
6309
|
+
type: string;
|
|
6310
|
+
/**
|
|
6311
|
+
* Sender address
|
|
6312
|
+
*/
|
|
6313
|
+
from: string;
|
|
6314
|
+
/**
|
|
6315
|
+
* Recipient address
|
|
6316
|
+
*/
|
|
6317
|
+
to: string;
|
|
6318
|
+
/**
|
|
6319
|
+
* Amount transferred
|
|
6320
|
+
*/
|
|
6321
|
+
value: string;
|
|
6322
|
+
/**
|
|
6323
|
+
* Token Id
|
|
6324
|
+
*/
|
|
6325
|
+
tokenId?: string;
|
|
6326
|
+
/**
|
|
6327
|
+
* Block timestamp
|
|
6328
|
+
*/
|
|
6329
|
+
blockTimestamp: number;
|
|
6330
|
+
/**
|
|
6331
|
+
* Log index
|
|
6332
|
+
*/
|
|
6333
|
+
logIndex: number;
|
|
6334
|
+
/**
|
|
6335
|
+
* erc20 Token details
|
|
6336
|
+
*/
|
|
6337
|
+
erc20Token?: ERCToken;
|
|
6338
|
+
/**
|
|
6339
|
+
* erc721 Token details
|
|
6340
|
+
*/
|
|
6341
|
+
erc721Token?: ERCToken;
|
|
6342
|
+
/**
|
|
6343
|
+
* erc1155 Token details
|
|
6344
|
+
*/
|
|
6345
|
+
erc1155Token?: ERCToken;
|
|
6346
|
+
};
|
|
6347
|
+
|
|
5047
6348
|
type Forbidden = {
|
|
5048
6349
|
/**
|
|
5049
6350
|
* The error message describing the reason for the exception
|
|
@@ -5074,6 +6375,64 @@ type InternalServerError = {
|
|
|
5074
6375
|
error: string;
|
|
5075
6376
|
};
|
|
5076
6377
|
|
|
6378
|
+
type Log = {
|
|
6379
|
+
/**
|
|
6380
|
+
* Contract address
|
|
6381
|
+
*/
|
|
6382
|
+
address: string;
|
|
6383
|
+
/**
|
|
6384
|
+
* First topic
|
|
6385
|
+
*/
|
|
6386
|
+
topic0: string;
|
|
6387
|
+
/**
|
|
6388
|
+
* Second topic (optional)
|
|
6389
|
+
*/
|
|
6390
|
+
topic1?: string;
|
|
6391
|
+
/**
|
|
6392
|
+
* Third topic (optional)
|
|
6393
|
+
*/
|
|
6394
|
+
topic2?: string;
|
|
6395
|
+
/**
|
|
6396
|
+
* Fourth topic (optional)
|
|
6397
|
+
*/
|
|
6398
|
+
topic3?: string;
|
|
6399
|
+
/**
|
|
6400
|
+
* Event data
|
|
6401
|
+
*/
|
|
6402
|
+
data: string;
|
|
6403
|
+
/**
|
|
6404
|
+
* Transaction index
|
|
6405
|
+
*/
|
|
6406
|
+
transactionIndex: number;
|
|
6407
|
+
/**
|
|
6408
|
+
* Log index
|
|
6409
|
+
*/
|
|
6410
|
+
logIndex: number;
|
|
6411
|
+
/**
|
|
6412
|
+
* Indicates if the log was removed
|
|
6413
|
+
*/
|
|
6414
|
+
removed: boolean;
|
|
6415
|
+
};
|
|
6416
|
+
|
|
6417
|
+
type NetworkTokenInfo = {
|
|
6418
|
+
/**
|
|
6419
|
+
* Token name
|
|
6420
|
+
*/
|
|
6421
|
+
tokenName?: string;
|
|
6422
|
+
/**
|
|
6423
|
+
* Token symbol
|
|
6424
|
+
*/
|
|
6425
|
+
tokenSymbol?: string;
|
|
6426
|
+
/**
|
|
6427
|
+
* Token decimals
|
|
6428
|
+
*/
|
|
6429
|
+
tokenDecimals?: number;
|
|
6430
|
+
/**
|
|
6431
|
+
* Value including decimals
|
|
6432
|
+
*/
|
|
6433
|
+
valueWithDecimals?: string;
|
|
6434
|
+
};
|
|
6435
|
+
|
|
5077
6436
|
type NextPageToken = {
|
|
5078
6437
|
/**
|
|
5079
6438
|
* 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.
|
|
@@ -5126,6 +6485,132 @@ type TooManyRequests = {
|
|
|
5126
6485
|
error: string;
|
|
5127
6486
|
};
|
|
5128
6487
|
|
|
6488
|
+
type Transaction = {
|
|
6489
|
+
/**
|
|
6490
|
+
* Block hash of the transaction
|
|
6491
|
+
*/
|
|
6492
|
+
blockHash: string;
|
|
6493
|
+
/**
|
|
6494
|
+
* Block number of the transaction
|
|
6495
|
+
*/
|
|
6496
|
+
blockNumber: string;
|
|
6497
|
+
/**
|
|
6498
|
+
* Sender address
|
|
6499
|
+
*/
|
|
6500
|
+
from: string;
|
|
6501
|
+
/**
|
|
6502
|
+
* Gas limit for the transaction
|
|
6503
|
+
*/
|
|
6504
|
+
gas: string;
|
|
6505
|
+
/**
|
|
6506
|
+
* Gas price used
|
|
6507
|
+
*/
|
|
6508
|
+
gasPrice: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Maximum fee per gas
|
|
6511
|
+
*/
|
|
6512
|
+
maxFeePerGas: string;
|
|
6513
|
+
/**
|
|
6514
|
+
* Maximum priority fee per gas
|
|
6515
|
+
*/
|
|
6516
|
+
maxPriorityFeePerGas: string;
|
|
6517
|
+
/**
|
|
6518
|
+
* Transaction hash
|
|
6519
|
+
*/
|
|
6520
|
+
txHash: string;
|
|
6521
|
+
/**
|
|
6522
|
+
* Transaction status
|
|
6523
|
+
*/
|
|
6524
|
+
txStatus: string;
|
|
6525
|
+
/**
|
|
6526
|
+
* Input data
|
|
6527
|
+
*/
|
|
6528
|
+
input: string;
|
|
6529
|
+
/**
|
|
6530
|
+
* Nonce value
|
|
6531
|
+
*/
|
|
6532
|
+
nonce: string;
|
|
6533
|
+
/**
|
|
6534
|
+
* Recipient address
|
|
6535
|
+
*/
|
|
6536
|
+
to: string;
|
|
6537
|
+
/**
|
|
6538
|
+
* Transaction index
|
|
6539
|
+
*/
|
|
6540
|
+
transactionIndex: number;
|
|
6541
|
+
/**
|
|
6542
|
+
* Value transferred in the transaction
|
|
6543
|
+
*/
|
|
6544
|
+
value: string;
|
|
6545
|
+
/**
|
|
6546
|
+
* Transaction type
|
|
6547
|
+
*/
|
|
6548
|
+
type: number;
|
|
6549
|
+
/**
|
|
6550
|
+
* Chain ID of the network
|
|
6551
|
+
*/
|
|
6552
|
+
chainId: string;
|
|
6553
|
+
/**
|
|
6554
|
+
* Cumulative gas used
|
|
6555
|
+
*/
|
|
6556
|
+
receiptCumulativeGasUsed: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Gas used
|
|
6559
|
+
*/
|
|
6560
|
+
receiptGasUsed: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* Effective gas price
|
|
6563
|
+
*/
|
|
6564
|
+
receiptEffectiveGasPrice: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Receipt root
|
|
6567
|
+
*/
|
|
6568
|
+
receiptRoot: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Block timestamp
|
|
6571
|
+
*/
|
|
6572
|
+
blockTimestamp: number;
|
|
6573
|
+
/**
|
|
6574
|
+
* Contract address (optional)
|
|
6575
|
+
*/
|
|
6576
|
+
contractAddress?: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* ERC20 transfers
|
|
6579
|
+
*/
|
|
6580
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6581
|
+
/**
|
|
6582
|
+
* ERC721 transfers
|
|
6583
|
+
*/
|
|
6584
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6585
|
+
/**
|
|
6586
|
+
* ERC1155 transfers
|
|
6587
|
+
*/
|
|
6588
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6589
|
+
/**
|
|
6590
|
+
* Internal transactions (optional)
|
|
6591
|
+
*/
|
|
6592
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
6593
|
+
/**
|
|
6594
|
+
* Access list (optional)
|
|
6595
|
+
*/
|
|
6596
|
+
accessList?: Array<AccessListData>;
|
|
6597
|
+
/**
|
|
6598
|
+
* Network token info (optional)
|
|
6599
|
+
*/
|
|
6600
|
+
networkToken?: NetworkTokenInfo;
|
|
6601
|
+
};
|
|
6602
|
+
|
|
6603
|
+
type TransactionEvent = {
|
|
6604
|
+
/**
|
|
6605
|
+
* Transaction details
|
|
6606
|
+
*/
|
|
6607
|
+
transaction: Transaction;
|
|
6608
|
+
/**
|
|
6609
|
+
* Array of log events
|
|
6610
|
+
*/
|
|
6611
|
+
logs?: Array<Log>;
|
|
6612
|
+
};
|
|
6613
|
+
|
|
5129
6614
|
type Unauthorized = {
|
|
5130
6615
|
/**
|
|
5131
6616
|
* The error message describing the reason for the exception
|
|
@@ -5141,4 +6626,31 @@ type Unauthorized = {
|
|
|
5141
6626
|
error: string;
|
|
5142
6627
|
};
|
|
5143
6628
|
|
|
5144
|
-
|
|
6629
|
+
type WebhookAddressActivityResponse = {
|
|
6630
|
+
/**
|
|
6631
|
+
* Webhook ID
|
|
6632
|
+
*/
|
|
6633
|
+
webhookId: string;
|
|
6634
|
+
/**
|
|
6635
|
+
* Event type
|
|
6636
|
+
*/
|
|
6637
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6638
|
+
/**
|
|
6639
|
+
* Message ID
|
|
6640
|
+
*/
|
|
6641
|
+
messageId: string;
|
|
6642
|
+
/**
|
|
6643
|
+
* Event details
|
|
6644
|
+
*/
|
|
6645
|
+
event: TransactionEvent;
|
|
6646
|
+
};
|
|
6647
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6648
|
+
/**
|
|
6649
|
+
* Event type
|
|
6650
|
+
*/
|
|
6651
|
+
enum eventType {
|
|
6652
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6653
|
+
}
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6656
|
+
export { AccessListData, AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, ERCToken, ERCTransfer, EVMAddressActivityRequest, EVMAddressActivityResponse, 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, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityMetadata, PlatformActivityRequest, PlatformActivityResponse, PlatformActivitySubEvents, PlatformAddressActivitySubEventType, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, Transaction, TransactionDetails, TransactionDirectionType, TransactionEvent, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|