@avalabs/glacier-sdk 3.1.0-canary.22147bb.0 → 3.1.0-canary.2630dc5.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 +1239 -306
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- 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/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +11 -5
- 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/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/L1ValidatorDetailsTransaction.d.ts +1 -1
- 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/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainBalanceType.d.ts +15 -0
- package/esm/generated/models/PChainBalanceType.js +1 -0
- package/esm/generated/models/PChainTransaction.d.ts +20 -8
- 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 +9 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- 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/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -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 +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +4 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- 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/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +69 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
- 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/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/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- 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 +35 -3
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,28 @@ 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
|
+
|
|
151
173
|
type RpcUsageMetricsValueAggregated = {
|
|
152
174
|
/**
|
|
153
175
|
* The total number of requests
|
|
@@ -173,6 +195,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
195
|
* The number of invalid requests
|
|
174
196
|
*/
|
|
175
197
|
invalidRequests: number;
|
|
198
|
+
/**
|
|
199
|
+
* The number of API credits wasted on invalid requests
|
|
200
|
+
*/
|
|
201
|
+
apiCreditsWasted: number;
|
|
176
202
|
/**
|
|
177
203
|
* Column name used for data aggregation
|
|
178
204
|
*/
|
|
@@ -190,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
216
|
RPC_METHOD = "rpcMethod",
|
|
191
217
|
RESPONSE_CODE = "responseCode",
|
|
192
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
193
223
|
NONE = "None"
|
|
194
224
|
}
|
|
195
225
|
}
|
|
@@ -205,19 +235,56 @@ type RpcMetrics = {
|
|
|
205
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
236
|
};
|
|
207
237
|
|
|
208
|
-
type
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
239
|
/**
|
|
210
240
|
* Duration in which the metrics value is aggregated
|
|
211
241
|
*/
|
|
212
242
|
aggregateDuration: string;
|
|
213
243
|
/**
|
|
214
|
-
*
|
|
244
|
+
* Metrics values
|
|
215
245
|
*/
|
|
216
|
-
|
|
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;
|
|
217
280
|
/**
|
|
218
281
|
* Metrics values
|
|
219
282
|
*/
|
|
220
283
|
metrics: Array<RpcMetrics>;
|
|
284
|
+
/**
|
|
285
|
+
* ChainId for which the metrics are aggregated
|
|
286
|
+
*/
|
|
287
|
+
chainId: string;
|
|
221
288
|
};
|
|
222
289
|
|
|
223
290
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +390,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
390
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
391
|
* @throws ApiError
|
|
325
392
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
393
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
394
|
/**
|
|
328
395
|
* Organization ID to fetch usage metrics for
|
|
329
396
|
*/
|
|
@@ -348,10 +415,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
415
|
* Filter data by chain ID.
|
|
349
416
|
*/
|
|
350
417
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
418
|
/**
|
|
356
419
|
* Filter data by response status code.
|
|
357
420
|
*/
|
|
@@ -364,6 +427,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
427
|
* Filter data by API key ID.
|
|
365
428
|
*/
|
|
366
429
|
apiKeyId?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Filter data by request path.
|
|
432
|
+
*/
|
|
433
|
+
requestPath?: string;
|
|
367
434
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
435
|
/**
|
|
369
436
|
* Get logs for requests made by client
|
|
@@ -371,7 +438,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
438
|
* @returns LogsResponseDTO Successful response
|
|
372
439
|
* @throws ApiError
|
|
373
440
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
441
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
442
|
/**
|
|
376
443
|
* Organization ID to fetch usage metrics for
|
|
377
444
|
*/
|
|
@@ -388,10 +455,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
455
|
* Filter data by chain ID.
|
|
389
456
|
*/
|
|
390
457
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
458
|
/**
|
|
396
459
|
* Filter data by response status code.
|
|
397
460
|
*/
|
|
@@ -404,6 +467,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
467
|
* Filter data by API key ID.
|
|
405
468
|
*/
|
|
406
469
|
apiKeyId?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Filter data by request path.
|
|
472
|
+
*/
|
|
473
|
+
requestPath?: string;
|
|
407
474
|
/**
|
|
408
475
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
476
|
*/
|
|
@@ -415,15 +482,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
482
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
483
|
/**
|
|
417
484
|
* Get usage metrics for the Subnet RPC
|
|
418
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
-
* @returns
|
|
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
|
|
420
487
|
* @throws ApiError
|
|
421
488
|
*/
|
|
422
|
-
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
490
|
/**
|
|
424
|
-
*
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
425
493
|
*/
|
|
426
|
-
timeInterval?:
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
495
|
/**
|
|
428
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.
|
|
429
497
|
*/
|
|
@@ -435,15 +503,54 @@ declare class DataApiUsageMetricsService {
|
|
|
435
503
|
/**
|
|
436
504
|
* Query param for the criterion used for grouping metrics
|
|
437
505
|
*/
|
|
438
|
-
groupBy?:
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
507
|
/**
|
|
440
508
|
* Filter data by chain ID.
|
|
441
509
|
*/
|
|
442
510
|
chainId?: string;
|
|
443
511
|
/**
|
|
444
|
-
* Filter data by
|
|
512
|
+
* Filter data by response status code.
|
|
445
513
|
*/
|
|
446
|
-
|
|
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;
|
|
447
554
|
/**
|
|
448
555
|
* Filter data by response status code.
|
|
449
556
|
*/
|
|
@@ -456,7 +563,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
563
|
* Filter data by Rl Bypass API Token.
|
|
457
564
|
*/
|
|
458
565
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
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>;
|
|
460
620
|
}
|
|
461
621
|
|
|
462
622
|
declare class DefaultService {
|
|
@@ -655,6 +815,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
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.
|
|
656
816
|
*/
|
|
657
817
|
nextPageToken?: string;
|
|
818
|
+
/**
|
|
819
|
+
* The native token balance for the address.
|
|
820
|
+
*/
|
|
821
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
822
|
/**
|
|
659
823
|
* The list of ERC-1155 token balances for the address.
|
|
660
824
|
*/
|
|
@@ -699,11 +863,22 @@ type Erc20TokenBalance = {
|
|
|
699
863
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
864
|
*/
|
|
701
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;
|
|
702
870
|
};
|
|
703
871
|
declare namespace Erc20TokenBalance {
|
|
704
872
|
enum ercType {
|
|
705
873
|
ERC_20 = "ERC-20"
|
|
706
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
|
+
}
|
|
707
882
|
}
|
|
708
883
|
|
|
709
884
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +886,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
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.
|
|
712
887
|
*/
|
|
713
888
|
nextPageToken?: string;
|
|
889
|
+
/**
|
|
890
|
+
* The native token balance for the address.
|
|
891
|
+
*/
|
|
892
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
893
|
/**
|
|
715
894
|
* The list of ERC-20 token balances for the address.
|
|
716
895
|
*/
|
|
@@ -722,6 +901,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
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.
|
|
723
902
|
*/
|
|
724
903
|
nextPageToken?: string;
|
|
904
|
+
/**
|
|
905
|
+
* The native token balance for the address.
|
|
906
|
+
*/
|
|
907
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
908
|
/**
|
|
726
909
|
* The list of ERC-721 token balances for the address.
|
|
727
910
|
*/
|
|
@@ -785,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
785
968
|
*/
|
|
786
969
|
pageToken?: string;
|
|
787
970
|
/**
|
|
788
|
-
* 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.
|
|
789
972
|
*/
|
|
790
973
|
pageSize?: number;
|
|
791
974
|
/**
|
|
@@ -823,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
823
1006
|
*/
|
|
824
1007
|
pageToken?: string;
|
|
825
1008
|
/**
|
|
826
|
-
* 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.
|
|
827
1010
|
*/
|
|
828
1011
|
pageSize?: number;
|
|
829
1012
|
/**
|
|
@@ -859,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
859
1042
|
*/
|
|
860
1043
|
pageToken?: string;
|
|
861
1044
|
/**
|
|
862
|
-
* 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.
|
|
863
1046
|
*/
|
|
864
1047
|
pageSize?: number;
|
|
865
1048
|
/**
|
|
@@ -889,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
889
1072
|
*/
|
|
890
1073
|
pageToken?: string;
|
|
891
1074
|
/**
|
|
892
|
-
* 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.
|
|
893
1076
|
*/
|
|
894
1077
|
pageSize?: number;
|
|
895
1078
|
/**
|
|
@@ -900,6 +1083,10 @@ declare class EvmBalancesService {
|
|
|
900
1083
|
}
|
|
901
1084
|
|
|
902
1085
|
type GetEvmBlockResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* The EVM chain ID on which the block was created.
|
|
1088
|
+
*/
|
|
1089
|
+
chainId: string;
|
|
903
1090
|
/**
|
|
904
1091
|
* The block number on the chain.
|
|
905
1092
|
*/
|
|
@@ -944,6 +1131,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1131
|
};
|
|
945
1132
|
|
|
946
1133
|
type EvmBlock = {
|
|
1134
|
+
/**
|
|
1135
|
+
* The EVM chain ID on which the block was created.
|
|
1136
|
+
*/
|
|
1137
|
+
chainId: string;
|
|
947
1138
|
/**
|
|
948
1139
|
* The block number on the chain.
|
|
949
1140
|
*/
|
|
@@ -998,6 +1189,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1189
|
declare class EvmBlocksService {
|
|
999
1190
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
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>;
|
|
1001
1212
|
/**
|
|
1002
1213
|
* List latest blocks
|
|
1003
1214
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1129,64 +1340,231 @@ type ListChainsResponse = {
|
|
|
1129
1340
|
chains: Array<ChainInfo>;
|
|
1130
1341
|
};
|
|
1131
1342
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
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"
|
|
1137
1350
|
}
|
|
1138
1351
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1352
|
+
type Method = {
|
|
1353
|
+
callType: TransactionMethodType;
|
|
1142
1354
|
/**
|
|
1143
|
-
*
|
|
1144
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1145
|
-
* @returns ListChainsResponse Successful response
|
|
1146
|
-
* @throws ApiError
|
|
1355
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1147
1356
|
*/
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Either mainnet or testnet/fuji.
|
|
1151
|
-
*/
|
|
1152
|
-
network?: Network;
|
|
1153
|
-
/**
|
|
1154
|
-
* Filter by feature.
|
|
1155
|
-
*/
|
|
1156
|
-
feature?: ApiFeature;
|
|
1157
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1357
|
+
methodHash: string;
|
|
1158
1358
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1161
|
-
* @returns GetChainResponse Successful response
|
|
1162
|
-
* @throws ApiError
|
|
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'.
|
|
1163
1360
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
chainId: string;
|
|
1169
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1361
|
+
methodName?: string;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
type RichAddress = {
|
|
1170
1365
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* Gets the list of chains an address has interacted with.
|
|
1173
|
-
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
-
* @throws ApiError
|
|
1366
|
+
* The contract name.
|
|
1175
1367
|
*/
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* A wallet address.
|
|
1179
|
-
*/
|
|
1180
|
-
address: string;
|
|
1181
|
-
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
type ImageAsset = {
|
|
1185
|
-
assetId?: string;
|
|
1368
|
+
name?: string;
|
|
1186
1369
|
/**
|
|
1187
|
-
*
|
|
1370
|
+
* The contract symbol.
|
|
1188
1371
|
*/
|
|
1189
|
-
|
|
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"
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
declare class EvmChainsService {
|
|
1456
|
+
readonly httpRequest: BaseHttpRequest;
|
|
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>;
|
|
1470
|
+
/**
|
|
1471
|
+
* List chains
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1473
|
+
* @returns ListChainsResponse Successful response
|
|
1474
|
+
* @throws ApiError
|
|
1475
|
+
*/
|
|
1476
|
+
supportedChains({ network, feature, }: {
|
|
1477
|
+
/**
|
|
1478
|
+
* Either mainnet or testnet/fuji.
|
|
1479
|
+
*/
|
|
1480
|
+
network?: Network;
|
|
1481
|
+
/**
|
|
1482
|
+
* Filter by feature.
|
|
1483
|
+
*/
|
|
1484
|
+
feature?: ApiFeature;
|
|
1485
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Get chain information
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1489
|
+
* @returns GetChainResponse Successful response
|
|
1490
|
+
* @throws ApiError
|
|
1491
|
+
*/
|
|
1492
|
+
getChainInfo({ chainId, }: {
|
|
1493
|
+
/**
|
|
1494
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1495
|
+
*/
|
|
1496
|
+
chainId: string;
|
|
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>;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
type ImageAsset = {
|
|
1563
|
+
assetId?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* OUTPUT ONLY
|
|
1566
|
+
*/
|
|
1567
|
+
imageUri?: string;
|
|
1190
1568
|
};
|
|
1191
1569
|
|
|
1192
1570
|
type PricingProviders = {
|
|
@@ -1513,29 +1891,6 @@ declare namespace Erc1155Token {
|
|
|
1513
1891
|
}
|
|
1514
1892
|
}
|
|
1515
1893
|
|
|
1516
|
-
type RichAddress = {
|
|
1517
|
-
/**
|
|
1518
|
-
* The contract name.
|
|
1519
|
-
*/
|
|
1520
|
-
name?: string;
|
|
1521
|
-
/**
|
|
1522
|
-
* The contract symbol.
|
|
1523
|
-
*/
|
|
1524
|
-
symbol?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1527
|
-
*/
|
|
1528
|
-
decimals?: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* The logo uri for the address.
|
|
1531
|
-
*/
|
|
1532
|
-
logoUri?: string;
|
|
1533
|
-
/**
|
|
1534
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1535
|
-
*/
|
|
1536
|
-
address: string;
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
1894
|
type Erc1155TransferDetails = {
|
|
1540
1895
|
from: RichAddress;
|
|
1541
1896
|
to: RichAddress;
|
|
@@ -1620,27 +1975,6 @@ type Erc721TransferDetails = {
|
|
|
1620
1975
|
erc721Token: Erc721Token;
|
|
1621
1976
|
};
|
|
1622
1977
|
|
|
1623
|
-
/**
|
|
1624
|
-
* 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.
|
|
1625
|
-
*/
|
|
1626
|
-
declare enum TransactionMethodType {
|
|
1627
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1628
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1629
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
type Method = {
|
|
1633
|
-
callType: TransactionMethodType;
|
|
1634
|
-
/**
|
|
1635
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1636
|
-
*/
|
|
1637
|
-
methodHash: string;
|
|
1638
|
-
/**
|
|
1639
|
-
* 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'.
|
|
1640
|
-
*/
|
|
1641
|
-
methodName?: string;
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
1978
|
type FullNativeTransactionDetails = {
|
|
1645
1979
|
/**
|
|
1646
1980
|
* The block number on the chain.
|
|
@@ -1654,6 +1988,10 @@ type FullNativeTransactionDetails = {
|
|
|
1654
1988
|
* The block hash identifier.
|
|
1655
1989
|
*/
|
|
1656
1990
|
blockHash: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The EVM chain ID on which the transaction occured.
|
|
1993
|
+
*/
|
|
1994
|
+
chainId: string;
|
|
1657
1995
|
/**
|
|
1658
1996
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1659
1997
|
*/
|
|
@@ -1917,99 +2255,40 @@ type ListInternalTransactionsResponse = {
|
|
|
1917
2255
|
transactions: Array<InternalTransaction>;
|
|
1918
2256
|
};
|
|
1919
2257
|
|
|
1920
|
-
type
|
|
1921
|
-
/**
|
|
1922
|
-
* The block number on the chain.
|
|
1923
|
-
*/
|
|
1924
|
-
blockNumber: string;
|
|
2258
|
+
type TransactionDetails = {
|
|
1925
2259
|
/**
|
|
1926
|
-
* The
|
|
2260
|
+
* The native (top-level) transaction details.
|
|
1927
2261
|
*/
|
|
1928
|
-
|
|
2262
|
+
nativeTransaction: NativeTransaction;
|
|
1929
2263
|
/**
|
|
1930
|
-
* The
|
|
2264
|
+
* The list of ERC-20 transfers.
|
|
1931
2265
|
*/
|
|
1932
|
-
|
|
2266
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1933
2267
|
/**
|
|
1934
|
-
* The
|
|
2268
|
+
* The list of ERC-721 transfers.
|
|
1935
2269
|
*/
|
|
1936
|
-
|
|
2270
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1937
2271
|
/**
|
|
1938
|
-
* The
|
|
2272
|
+
* The list of ERC-1155 transfers.
|
|
1939
2273
|
*/
|
|
1940
|
-
|
|
2274
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1941
2275
|
/**
|
|
1942
|
-
* The
|
|
2276
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1943
2277
|
*/
|
|
1944
|
-
|
|
2278
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2281
|
+
type ListTransactionDetailsResponse = {
|
|
1945
2282
|
/**
|
|
1946
|
-
*
|
|
2283
|
+
* 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.
|
|
1947
2284
|
*/
|
|
1948
|
-
|
|
2285
|
+
nextPageToken?: string;
|
|
2286
|
+
transactions: Array<TransactionDetails>;
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
type ListTransfersResponse = {
|
|
1949
2290
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
*/
|
|
1952
|
-
gasLimit: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* The amount of gas used.
|
|
1955
|
-
*/
|
|
1956
|
-
gasUsed: string;
|
|
1957
|
-
/**
|
|
1958
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1959
|
-
*/
|
|
1960
|
-
gasPrice: string;
|
|
1961
|
-
/**
|
|
1962
|
-
* The nonce used by the sender of the transaction.
|
|
1963
|
-
*/
|
|
1964
|
-
nonce: string;
|
|
1965
|
-
from: RichAddress;
|
|
1966
|
-
to: RichAddress;
|
|
1967
|
-
method?: Method;
|
|
1968
|
-
value: string;
|
|
1969
|
-
};
|
|
1970
|
-
|
|
1971
|
-
type ListNativeTransactionsResponse = {
|
|
1972
|
-
/**
|
|
1973
|
-
* 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.
|
|
1974
|
-
*/
|
|
1975
|
-
nextPageToken?: string;
|
|
1976
|
-
transactions: Array<NativeTransaction>;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
type TransactionDetails = {
|
|
1980
|
-
/**
|
|
1981
|
-
* The native (top-level) transaction details.
|
|
1982
|
-
*/
|
|
1983
|
-
nativeTransaction: NativeTransaction;
|
|
1984
|
-
/**
|
|
1985
|
-
* The list of ERC-20 transfers.
|
|
1986
|
-
*/
|
|
1987
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1988
|
-
/**
|
|
1989
|
-
* The list of ERC-721 transfers.
|
|
1990
|
-
*/
|
|
1991
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1992
|
-
/**
|
|
1993
|
-
* The list of ERC-1155 transfers.
|
|
1994
|
-
*/
|
|
1995
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1996
|
-
/**
|
|
1997
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1998
|
-
*/
|
|
1999
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2000
|
-
};
|
|
2001
|
-
|
|
2002
|
-
type ListTransactionDetailsResponse = {
|
|
2003
|
-
/**
|
|
2004
|
-
* 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.
|
|
2005
|
-
*/
|
|
2006
|
-
nextPageToken?: string;
|
|
2007
|
-
transactions: Array<TransactionDetails>;
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
type ListTransfersResponse = {
|
|
2011
|
-
/**
|
|
2012
|
-
* 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.
|
|
2291
|
+
* 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.
|
|
2013
2292
|
*/
|
|
2014
2293
|
nextPageToken?: string;
|
|
2015
2294
|
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
@@ -2020,14 +2299,33 @@ declare enum SortOrder {
|
|
|
2020
2299
|
DESC = "desc"
|
|
2021
2300
|
}
|
|
2022
2301
|
|
|
2023
|
-
declare enum TransactionStatus {
|
|
2024
|
-
FAILED = "failed",
|
|
2025
|
-
SUCCESS = "success"
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2302
|
declare class EvmTransactionsService {
|
|
2029
2303
|
readonly httpRequest: BaseHttpRequest;
|
|
2030
2304
|
constructor(httpRequest: BaseHttpRequest);
|
|
2305
|
+
/**
|
|
2306
|
+
* List the latest transactions across all supported EVM chains
|
|
2307
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2308
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2309
|
+
* @throws ApiError
|
|
2310
|
+
*/
|
|
2311
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2312
|
+
/**
|
|
2313
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2314
|
+
*/
|
|
2315
|
+
pageToken?: string;
|
|
2316
|
+
/**
|
|
2317
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2318
|
+
*/
|
|
2319
|
+
pageSize?: number;
|
|
2320
|
+
/**
|
|
2321
|
+
* Either mainnet or testnet/fuji.
|
|
2322
|
+
*/
|
|
2323
|
+
network?: Network;
|
|
2324
|
+
/**
|
|
2325
|
+
* A status filter for listed transactions.
|
|
2326
|
+
*/
|
|
2327
|
+
status?: TransactionStatus;
|
|
2328
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2031
2329
|
/**
|
|
2032
2330
|
* Get deployment transaction
|
|
2033
2331
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2326,7 +2624,7 @@ declare class EvmTransactionsService {
|
|
|
2326
2624
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
2625
|
* @throws ApiError
|
|
2328
2626
|
*/
|
|
2329
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2627
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2330
2628
|
/**
|
|
2331
2629
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2332
2630
|
*/
|
|
@@ -2335,6 +2633,14 @@ declare class EvmTransactionsService {
|
|
|
2335
2633
|
* A block identifier which is either a block number or the block hash.
|
|
2336
2634
|
*/
|
|
2337
2635
|
blockId: string;
|
|
2636
|
+
/**
|
|
2637
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2638
|
+
*/
|
|
2639
|
+
pageToken?: string;
|
|
2640
|
+
/**
|
|
2641
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2642
|
+
*/
|
|
2643
|
+
pageSize?: number;
|
|
2338
2644
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2339
2645
|
/**
|
|
2340
2646
|
* List latest transactions
|
|
@@ -2362,20 +2668,261 @@ declare class EvmTransactionsService {
|
|
|
2362
2668
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2363
2669
|
}
|
|
2364
2670
|
|
|
2671
|
+
type HealthIndicatorResultDto = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Status of the health indicator.
|
|
2674
|
+
*/
|
|
2675
|
+
status?: HealthIndicatorResultDto.status;
|
|
2676
|
+
};
|
|
2677
|
+
declare namespace HealthIndicatorResultDto {
|
|
2678
|
+
/**
|
|
2679
|
+
* Status of the health indicator.
|
|
2680
|
+
*/
|
|
2681
|
+
enum status {
|
|
2682
|
+
UP = "up",
|
|
2683
|
+
DOWN = "down"
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
type HealthCheckResultDto = {
|
|
2688
|
+
status?: HealthCheckResultDto.status;
|
|
2689
|
+
info?: any | null;
|
|
2690
|
+
error?: any | null;
|
|
2691
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2692
|
+
};
|
|
2693
|
+
declare namespace HealthCheckResultDto {
|
|
2694
|
+
enum status {
|
|
2695
|
+
ERROR = "error",
|
|
2696
|
+
OK = "ok",
|
|
2697
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2365
2701
|
declare class HealthCheckService {
|
|
2366
2702
|
readonly httpRequest: BaseHttpRequest;
|
|
2367
2703
|
constructor(httpRequest: BaseHttpRequest);
|
|
2368
2704
|
/**
|
|
2369
2705
|
* Get the health of the service
|
|
2370
|
-
*
|
|
2706
|
+
* Check the health of the service.
|
|
2707
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2371
2708
|
* @throws ApiError
|
|
2372
2709
|
*/
|
|
2373
|
-
dataHealthCheck(): CancelablePromise<
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2710
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
type IcmDestinationTransaction = {
|
|
2714
|
+
txHash: string;
|
|
2715
|
+
timestamp: number;
|
|
2716
|
+
gasSpent: string;
|
|
2717
|
+
rewardRedeemer: string;
|
|
2718
|
+
delivererAddress: string;
|
|
2719
|
+
};
|
|
2720
|
+
|
|
2721
|
+
type IcmReceipt = {
|
|
2722
|
+
receivedMessageNonce: string;
|
|
2723
|
+
relayerRewardAddress: string;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
type IcmRewardDetails = {
|
|
2727
|
+
/**
|
|
2728
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2729
|
+
*/
|
|
2730
|
+
address: string;
|
|
2731
|
+
/**
|
|
2732
|
+
* The contract name.
|
|
2733
|
+
*/
|
|
2734
|
+
name: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The contract symbol.
|
|
2737
|
+
*/
|
|
2738
|
+
symbol: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2741
|
+
*/
|
|
2742
|
+
decimals: number;
|
|
2743
|
+
/**
|
|
2744
|
+
* The logo uri for the address.
|
|
2745
|
+
*/
|
|
2746
|
+
logoUri?: string;
|
|
2747
|
+
ercType: IcmRewardDetails.ercType;
|
|
2748
|
+
/**
|
|
2749
|
+
* The token price, if available.
|
|
2750
|
+
*/
|
|
2751
|
+
price?: Money;
|
|
2752
|
+
value: string;
|
|
2753
|
+
};
|
|
2754
|
+
declare namespace IcmRewardDetails {
|
|
2755
|
+
enum ercType {
|
|
2756
|
+
ERC_20 = "ERC-20"
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
type IcmSourceTransaction = {
|
|
2761
|
+
txHash: string;
|
|
2762
|
+
timestamp: number;
|
|
2763
|
+
gasSpent: string;
|
|
2764
|
+
};
|
|
2765
|
+
|
|
2766
|
+
type DeliveredIcmMessage = {
|
|
2767
|
+
messageId: string;
|
|
2768
|
+
icmContractAddress: string;
|
|
2769
|
+
sourceBlockchainId: string;
|
|
2770
|
+
destinationBlockchainId: string;
|
|
2771
|
+
sourceEvmChainId: string;
|
|
2772
|
+
destinationEvmChainId: string;
|
|
2773
|
+
messageNonce: string;
|
|
2774
|
+
from: string;
|
|
2775
|
+
to: string;
|
|
2776
|
+
data?: string;
|
|
2777
|
+
messageExecuted: boolean;
|
|
2778
|
+
receipts: Array<IcmReceipt>;
|
|
2779
|
+
receiptDelivered: boolean;
|
|
2780
|
+
rewardDetails: IcmRewardDetails;
|
|
2781
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2782
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2783
|
+
status: DeliveredIcmMessage.status;
|
|
2784
|
+
};
|
|
2785
|
+
declare namespace DeliveredIcmMessage {
|
|
2786
|
+
enum status {
|
|
2787
|
+
DELIVERED = "delivered"
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2792
|
+
messageId: string;
|
|
2793
|
+
icmContractAddress: string;
|
|
2794
|
+
sourceBlockchainId: string;
|
|
2795
|
+
destinationBlockchainId: string;
|
|
2796
|
+
sourceEvmChainId: string;
|
|
2797
|
+
destinationEvmChainId: string;
|
|
2798
|
+
messageNonce: string;
|
|
2799
|
+
from: string;
|
|
2800
|
+
to: string;
|
|
2801
|
+
data?: string;
|
|
2802
|
+
messageExecuted: boolean;
|
|
2803
|
+
receipts: Array<IcmReceipt>;
|
|
2804
|
+
receiptDelivered: boolean;
|
|
2805
|
+
rewardDetails: IcmRewardDetails;
|
|
2806
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2807
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2808
|
+
};
|
|
2809
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2810
|
+
enum status {
|
|
2811
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
type PendingIcmMessage = {
|
|
2816
|
+
messageId: string;
|
|
2817
|
+
icmContractAddress: string;
|
|
2818
|
+
sourceBlockchainId: string;
|
|
2819
|
+
destinationBlockchainId: string;
|
|
2820
|
+
sourceEvmChainId: string;
|
|
2821
|
+
destinationEvmChainId: string;
|
|
2822
|
+
messageNonce: string;
|
|
2823
|
+
from: string;
|
|
2824
|
+
to: string;
|
|
2825
|
+
data?: string;
|
|
2826
|
+
messageExecuted: boolean;
|
|
2827
|
+
receipts: Array<IcmReceipt>;
|
|
2828
|
+
receiptDelivered: boolean;
|
|
2829
|
+
rewardDetails: IcmRewardDetails;
|
|
2830
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2831
|
+
status: PendingIcmMessage.status;
|
|
2832
|
+
};
|
|
2833
|
+
declare namespace PendingIcmMessage {
|
|
2834
|
+
enum status {
|
|
2835
|
+
PENDING = "pending"
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
type ListIcmMessagesResponse = {
|
|
2840
|
+
/**
|
|
2841
|
+
* 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.
|
|
2842
|
+
*/
|
|
2843
|
+
nextPageToken?: string;
|
|
2844
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
declare class InterchainMessagingService {
|
|
2848
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2849
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2850
|
+
/**
|
|
2851
|
+
* Get an ICM message
|
|
2852
|
+
* Gets an ICM message by message ID.
|
|
2853
|
+
* @returns any Successful response
|
|
2854
|
+
* @throws ApiError
|
|
2855
|
+
*/
|
|
2856
|
+
getIcmMessage({ messageId, }: {
|
|
2857
|
+
/**
|
|
2858
|
+
* The message ID of the ICM message.
|
|
2859
|
+
*/
|
|
2860
|
+
messageId: string;
|
|
2861
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2862
|
+
/**
|
|
2863
|
+
* List ICM messages
|
|
2864
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2865
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2866
|
+
* @throws ApiError
|
|
2867
|
+
*/
|
|
2868
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2869
|
+
/**
|
|
2870
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2871
|
+
*/
|
|
2872
|
+
pageToken?: string;
|
|
2873
|
+
/**
|
|
2874
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2875
|
+
*/
|
|
2876
|
+
pageSize?: number;
|
|
2877
|
+
/**
|
|
2878
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2879
|
+
*/
|
|
2880
|
+
sourceBlockchainId?: string;
|
|
2881
|
+
/**
|
|
2882
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2883
|
+
*/
|
|
2884
|
+
destinationBlockchainId?: string;
|
|
2885
|
+
/**
|
|
2886
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2887
|
+
*/
|
|
2888
|
+
blockchainId?: string;
|
|
2889
|
+
/**
|
|
2890
|
+
* The address of the recipient of the ICM message.
|
|
2891
|
+
*/
|
|
2892
|
+
to?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* The address of the sender of the ICM message.
|
|
2895
|
+
*/
|
|
2896
|
+
from?: string;
|
|
2897
|
+
/**
|
|
2898
|
+
* Either mainnet or testnet/fuji.
|
|
2899
|
+
*/
|
|
2900
|
+
network?: Network;
|
|
2901
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2902
|
+
/**
|
|
2903
|
+
* List ICM messages by address
|
|
2904
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2905
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2906
|
+
* @throws ApiError
|
|
2907
|
+
*/
|
|
2908
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2909
|
+
/**
|
|
2910
|
+
* An EVM address.
|
|
2911
|
+
*/
|
|
2912
|
+
address: string;
|
|
2913
|
+
/**
|
|
2914
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2915
|
+
*/
|
|
2916
|
+
pageToken?: string;
|
|
2917
|
+
/**
|
|
2918
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2919
|
+
*/
|
|
2920
|
+
pageSize?: number;
|
|
2921
|
+
/**
|
|
2922
|
+
* Either mainnet or testnet/fuji.
|
|
2923
|
+
*/
|
|
2924
|
+
network?: Network;
|
|
2925
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2379
2926
|
}
|
|
2380
2927
|
|
|
2381
2928
|
type ListNftTokens = {
|
|
@@ -2410,49 +2957,151 @@ declare class NfTsService {
|
|
|
2410
2957
|
tokenId: string;
|
|
2411
2958
|
}): CancelablePromise<any>;
|
|
2412
2959
|
/**
|
|
2413
|
-
* List tokens
|
|
2414
|
-
* Lists tokens for an NFT contract.
|
|
2415
|
-
* @returns ListNftTokens Successful response
|
|
2960
|
+
* List tokens
|
|
2961
|
+
* Lists tokens for an NFT contract.
|
|
2962
|
+
* @returns ListNftTokens Successful response
|
|
2963
|
+
* @throws ApiError
|
|
2964
|
+
*/
|
|
2965
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2966
|
+
/**
|
|
2967
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2968
|
+
*/
|
|
2969
|
+
chainId: string;
|
|
2970
|
+
/**
|
|
2971
|
+
* Contract address on the relevant chain.
|
|
2972
|
+
*/
|
|
2973
|
+
address: string;
|
|
2974
|
+
/**
|
|
2975
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2976
|
+
*/
|
|
2977
|
+
pageToken?: string;
|
|
2978
|
+
/**
|
|
2979
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2980
|
+
*/
|
|
2981
|
+
pageSize?: number;
|
|
2982
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2983
|
+
/**
|
|
2984
|
+
* Get token details
|
|
2985
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2986
|
+
* @returns any Successful response
|
|
2987
|
+
* @throws ApiError
|
|
2988
|
+
*/
|
|
2989
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2990
|
+
/**
|
|
2991
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2992
|
+
*/
|
|
2993
|
+
chainId: string;
|
|
2994
|
+
/**
|
|
2995
|
+
* Contract address on the relevant chain.
|
|
2996
|
+
*/
|
|
2997
|
+
address: string;
|
|
2998
|
+
/**
|
|
2999
|
+
* TokenId on the contract
|
|
3000
|
+
*/
|
|
3001
|
+
tokenId: string;
|
|
3002
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
type AccessRequest = {
|
|
3006
|
+
/**
|
|
3007
|
+
* The email address to send the access token to
|
|
3008
|
+
*/
|
|
3009
|
+
email: string;
|
|
3010
|
+
/**
|
|
3011
|
+
* The captcha to verify the user
|
|
3012
|
+
*/
|
|
3013
|
+
captcha: string;
|
|
3014
|
+
};
|
|
3015
|
+
|
|
3016
|
+
type NotificationsResponse = {
|
|
3017
|
+
message: string;
|
|
3018
|
+
};
|
|
3019
|
+
|
|
3020
|
+
type SubscribeRequest = {
|
|
3021
|
+
/**
|
|
3022
|
+
* The access token to use for authentication
|
|
3023
|
+
*/
|
|
3024
|
+
accessToken: string;
|
|
3025
|
+
/**
|
|
3026
|
+
* The node ID to subscribe to
|
|
3027
|
+
*/
|
|
3028
|
+
nodeId: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3031
|
+
*/
|
|
3032
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
type SubscriptionsRequest = {
|
|
3036
|
+
/**
|
|
3037
|
+
* The access token to use for authentication
|
|
3038
|
+
*/
|
|
3039
|
+
accessToken: string;
|
|
3040
|
+
};
|
|
3041
|
+
|
|
3042
|
+
type SubscriptionsResponse = {
|
|
3043
|
+
/**
|
|
3044
|
+
* The email address of the user
|
|
3045
|
+
*/
|
|
3046
|
+
email: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* The subscriptions of the user
|
|
3049
|
+
*/
|
|
3050
|
+
subscriptions: Record<string, {
|
|
3051
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3052
|
+
}>;
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
type UnsubscribeRequest = {
|
|
3056
|
+
/**
|
|
3057
|
+
* The access token to use for authentication
|
|
3058
|
+
*/
|
|
3059
|
+
accessToken: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* The node ID to subscribe to
|
|
3062
|
+
*/
|
|
3063
|
+
nodeId: string;
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
declare class NotificationsService {
|
|
3067
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3068
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3069
|
+
/**
|
|
3070
|
+
* Access Notifications
|
|
3071
|
+
* Access notifications.
|
|
3072
|
+
* @returns NotificationsResponse Successful response
|
|
2416
3073
|
* @throws ApiError
|
|
2417
3074
|
*/
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
*/
|
|
2422
|
-
chainId: string;
|
|
2423
|
-
/**
|
|
2424
|
-
* Contract address on the relevant chain.
|
|
2425
|
-
*/
|
|
2426
|
-
address: string;
|
|
2427
|
-
/**
|
|
2428
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2429
|
-
*/
|
|
2430
|
-
pageToken?: string;
|
|
2431
|
-
/**
|
|
2432
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2433
|
-
*/
|
|
2434
|
-
pageSize?: number;
|
|
2435
|
-
}): CancelablePromise<ListNftTokens>;
|
|
3075
|
+
access({ requestBody, }: {
|
|
3076
|
+
requestBody: AccessRequest;
|
|
3077
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
2436
3078
|
/**
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2439
|
-
* @returns
|
|
3079
|
+
* Subscribe to Notifications
|
|
3080
|
+
* Subscribe to receive notifications.
|
|
3081
|
+
* @returns NotificationsResponse Successful response
|
|
2440
3082
|
* @throws ApiError
|
|
2441
3083
|
*/
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
3084
|
+
subscribe({ requestBody, }: {
|
|
3085
|
+
requestBody: SubscribeRequest;
|
|
3086
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3087
|
+
/**
|
|
3088
|
+
* Unsubscribe from Notifications
|
|
3089
|
+
* Unsubscribe from receiving notifications.
|
|
3090
|
+
* @returns NotificationsResponse Successful response
|
|
3091
|
+
* @throws ApiError
|
|
3092
|
+
*/
|
|
3093
|
+
unsubscribe({ requestBody, }: {
|
|
3094
|
+
requestBody: UnsubscribeRequest;
|
|
3095
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3096
|
+
/**
|
|
3097
|
+
* Get Subscriptions
|
|
3098
|
+
* Get subscriptions.
|
|
3099
|
+
* @returns SubscriptionsResponse Successful response
|
|
3100
|
+
* @throws ApiError
|
|
3101
|
+
*/
|
|
3102
|
+
subscriptions({ requestBody, }: {
|
|
3103
|
+
requestBody: SubscriptionsRequest;
|
|
3104
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
2456
3105
|
}
|
|
2457
3106
|
|
|
2458
3107
|
type EvmNetworkOptions = {
|
|
@@ -2543,7 +3192,7 @@ type OperationStatusResponse = {
|
|
|
2543
3192
|
operationType: OperationType;
|
|
2544
3193
|
operationStatus: OperationStatus;
|
|
2545
3194
|
message?: string;
|
|
2546
|
-
metadata
|
|
3195
|
+
metadata?: TransactionExportMetadata;
|
|
2547
3196
|
createdAtTimestamp: number;
|
|
2548
3197
|
updatedAtTimestamp: number;
|
|
2549
3198
|
};
|
|
@@ -2607,16 +3256,31 @@ type DelegatorsDetails = {
|
|
|
2607
3256
|
};
|
|
2608
3257
|
|
|
2609
3258
|
type StakingDistribution = {
|
|
3259
|
+
/**
|
|
3260
|
+
* AvalancheGo version for the validator node.
|
|
3261
|
+
*/
|
|
2610
3262
|
version: string;
|
|
3263
|
+
/**
|
|
3264
|
+
* The total amount staked by validators using this version.
|
|
3265
|
+
*/
|
|
2611
3266
|
amountStaked: string;
|
|
3267
|
+
/**
|
|
3268
|
+
* The number of validators using this version.
|
|
3269
|
+
*/
|
|
2612
3270
|
validatorCount: number;
|
|
2613
3271
|
};
|
|
2614
3272
|
|
|
2615
3273
|
type ValidatorsDetails = {
|
|
2616
3274
|
validatorCount: number;
|
|
2617
3275
|
totalAmountStaked: string;
|
|
3276
|
+
/**
|
|
3277
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3278
|
+
*/
|
|
2618
3279
|
estimatedAnnualStakingReward: string;
|
|
2619
3280
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3281
|
+
/**
|
|
3282
|
+
* Ratio of total active stake amount to the current supply.
|
|
3283
|
+
*/
|
|
2620
3284
|
stakingRatio: string;
|
|
2621
3285
|
};
|
|
2622
3286
|
|
|
@@ -2668,7 +3332,13 @@ type CompletedDelegatorDetails = {
|
|
|
2668
3332
|
delegationFee: string;
|
|
2669
3333
|
startTimestamp: number;
|
|
2670
3334
|
endTimestamp: number;
|
|
3335
|
+
/**
|
|
3336
|
+
* Total rewards distributed for the successful delegation.
|
|
3337
|
+
*/
|
|
2671
3338
|
grossReward: string;
|
|
3339
|
+
/**
|
|
3340
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3341
|
+
*/
|
|
2672
3342
|
netReward: string;
|
|
2673
3343
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2674
3344
|
};
|
|
@@ -2686,7 +3356,13 @@ type PendingDelegatorDetails = {
|
|
|
2686
3356
|
delegationFee: string;
|
|
2687
3357
|
startTimestamp: number;
|
|
2688
3358
|
endTimestamp: number;
|
|
3359
|
+
/**
|
|
3360
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3361
|
+
*/
|
|
2689
3362
|
estimatedGrossReward: string;
|
|
3363
|
+
/**
|
|
3364
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3365
|
+
*/
|
|
2690
3366
|
estimatedNetReward: string;
|
|
2691
3367
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2692
3368
|
};
|
|
@@ -2804,6 +3480,10 @@ type Subnet = {
|
|
|
2804
3480
|
* Whether the subnet is an L1 or not.
|
|
2805
3481
|
*/
|
|
2806
3482
|
isL1: boolean;
|
|
3483
|
+
/**
|
|
3484
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3485
|
+
*/
|
|
3486
|
+
l1ConversionTransactionHash?: string;
|
|
2807
3487
|
/**
|
|
2808
3488
|
* L1 validator manager details.
|
|
2809
3489
|
*/
|
|
@@ -2855,6 +3535,9 @@ type ActiveValidatorDetails = {
|
|
|
2855
3535
|
nodeId: string;
|
|
2856
3536
|
subnetId: string;
|
|
2857
3537
|
amountStaked: string;
|
|
3538
|
+
/**
|
|
3539
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3540
|
+
*/
|
|
2858
3541
|
delegationFee?: string;
|
|
2859
3542
|
startTimestamp: number;
|
|
2860
3543
|
endTimestamp: number;
|
|
@@ -2862,12 +3545,30 @@ type ActiveValidatorDetails = {
|
|
|
2862
3545
|
* Present for AddPermissionlessValidatorTx
|
|
2863
3546
|
*/
|
|
2864
3547
|
blsCredentials?: BlsCredentials;
|
|
3548
|
+
/**
|
|
3549
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3550
|
+
*/
|
|
2865
3551
|
stakePercentage: number;
|
|
3552
|
+
/**
|
|
3553
|
+
* The number of delegators linked to the validator.
|
|
3554
|
+
*/
|
|
2866
3555
|
delegatorCount: number;
|
|
3556
|
+
/**
|
|
3557
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3558
|
+
*/
|
|
2867
3559
|
amountDelegated?: string;
|
|
3560
|
+
/**
|
|
3561
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3562
|
+
*/
|
|
2868
3563
|
uptimePerformance: number;
|
|
2869
3564
|
avalancheGoVersion?: string;
|
|
3565
|
+
/**
|
|
3566
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3567
|
+
*/
|
|
2870
3568
|
delegationCapacity?: string;
|
|
3569
|
+
/**
|
|
3570
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3571
|
+
*/
|
|
2871
3572
|
potentialRewards: Rewards;
|
|
2872
3573
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2873
3574
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2883,6 +3584,9 @@ type CompletedValidatorDetails = {
|
|
|
2883
3584
|
nodeId: string;
|
|
2884
3585
|
subnetId: string;
|
|
2885
3586
|
amountStaked: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3589
|
+
*/
|
|
2886
3590
|
delegationFee?: string;
|
|
2887
3591
|
startTimestamp: number;
|
|
2888
3592
|
endTimestamp: number;
|
|
@@ -2906,6 +3610,9 @@ type PendingValidatorDetails = {
|
|
|
2906
3610
|
nodeId: string;
|
|
2907
3611
|
subnetId: string;
|
|
2908
3612
|
amountStaked: string;
|
|
3613
|
+
/**
|
|
3614
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3615
|
+
*/
|
|
2909
3616
|
delegationFee?: string;
|
|
2910
3617
|
startTimestamp: number;
|
|
2911
3618
|
endTimestamp: number;
|
|
@@ -2926,6 +3633,9 @@ type RemovedValidatorDetails = {
|
|
|
2926
3633
|
nodeId: string;
|
|
2927
3634
|
subnetId: string;
|
|
2928
3635
|
amountStaked: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3638
|
+
*/
|
|
2929
3639
|
delegationFee?: string;
|
|
2930
3640
|
startTimestamp: number;
|
|
2931
3641
|
endTimestamp: number;
|
|
@@ -2933,7 +3643,13 @@ type RemovedValidatorDetails = {
|
|
|
2933
3643
|
* Present for AddPermissionlessValidatorTx
|
|
2934
3644
|
*/
|
|
2935
3645
|
blsCredentials?: BlsCredentials;
|
|
3646
|
+
/**
|
|
3647
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3648
|
+
*/
|
|
2936
3649
|
removeTxHash: string;
|
|
3650
|
+
/**
|
|
3651
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3652
|
+
*/
|
|
2937
3653
|
removeTimestamp: number;
|
|
2938
3654
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2939
3655
|
};
|
|
@@ -3612,7 +4328,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3612
4328
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3613
4329
|
* @throws ApiError
|
|
3614
4330
|
*/
|
|
3615
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4331
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3616
4332
|
/**
|
|
3617
4333
|
* A primary network blockchain id or alias.
|
|
3618
4334
|
*/
|
|
@@ -3625,6 +4341,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3625
4341
|
* A primary network (P or X chain) nodeId.
|
|
3626
4342
|
*/
|
|
3627
4343
|
nodeId: string;
|
|
4344
|
+
/**
|
|
4345
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4346
|
+
*/
|
|
4347
|
+
startTimestamp?: number;
|
|
4348
|
+
/**
|
|
4349
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4350
|
+
*/
|
|
4351
|
+
endTimestamp?: number;
|
|
3628
4352
|
/**
|
|
3629
4353
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3630
4354
|
*/
|
|
@@ -3640,7 +4364,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3640
4364
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3641
4365
|
* @throws ApiError
|
|
3642
4366
|
*/
|
|
3643
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4367
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3644
4368
|
/**
|
|
3645
4369
|
* A primary network blockchain id or alias.
|
|
3646
4370
|
*/
|
|
@@ -3649,6 +4373,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3649
4373
|
* Either mainnet or testnet/fuji.
|
|
3650
4374
|
*/
|
|
3651
4375
|
network: Network;
|
|
4376
|
+
/**
|
|
4377
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4378
|
+
*/
|
|
4379
|
+
startTimestamp?: number;
|
|
4380
|
+
/**
|
|
4381
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4382
|
+
*/
|
|
4383
|
+
endTimestamp?: number;
|
|
3652
4384
|
/**
|
|
3653
4385
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3654
4386
|
*/
|
|
@@ -4074,7 +4806,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4074
4806
|
*/
|
|
4075
4807
|
remainingBalance: number;
|
|
4076
4808
|
/**
|
|
4077
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4809
|
+
* 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
|
|
4078
4810
|
*/
|
|
4079
4811
|
balanceChange?: number;
|
|
4080
4812
|
blsCredentials?: Record<string, any>;
|
|
@@ -4104,6 +4836,9 @@ declare enum PChainTransactionType {
|
|
|
4104
4836
|
UNKNOWN = "UNKNOWN"
|
|
4105
4837
|
}
|
|
4106
4838
|
|
|
4839
|
+
/**
|
|
4840
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4841
|
+
*/
|
|
4107
4842
|
declare enum UtxoType {
|
|
4108
4843
|
STAKE = "STAKE",
|
|
4109
4844
|
TRANSFER = "TRANSFER"
|
|
@@ -4141,16 +4876,43 @@ type PChainUtxo = {
|
|
|
4141
4876
|
assetId: string;
|
|
4142
4877
|
blockNumber: string;
|
|
4143
4878
|
blockTimestamp: number;
|
|
4879
|
+
/**
|
|
4880
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4881
|
+
*/
|
|
4144
4882
|
consumingBlockNumber?: string;
|
|
4883
|
+
/**
|
|
4884
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4885
|
+
*/
|
|
4145
4886
|
consumingBlockTimestamp?: number;
|
|
4887
|
+
/**
|
|
4888
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4889
|
+
*/
|
|
4146
4890
|
platformLocktime?: number;
|
|
4891
|
+
/**
|
|
4892
|
+
* The index of the UTXO in the transaction
|
|
4893
|
+
*/
|
|
4147
4894
|
outputIndex: number;
|
|
4148
4895
|
rewardType?: RewardType;
|
|
4896
|
+
/**
|
|
4897
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4898
|
+
*/
|
|
4149
4899
|
stakeableLocktime?: number;
|
|
4150
4900
|
staked?: boolean;
|
|
4901
|
+
/**
|
|
4902
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4903
|
+
*/
|
|
4151
4904
|
threshold?: number;
|
|
4905
|
+
/**
|
|
4906
|
+
* The hash of the transaction that created this UTXO
|
|
4907
|
+
*/
|
|
4152
4908
|
txHash: string;
|
|
4909
|
+
/**
|
|
4910
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4911
|
+
*/
|
|
4153
4912
|
utxoEndTimestamp?: number;
|
|
4913
|
+
/**
|
|
4914
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4915
|
+
*/
|
|
4154
4916
|
utxoStartTimestamp?: number;
|
|
4155
4917
|
utxoType: UtxoType;
|
|
4156
4918
|
};
|
|
@@ -4165,9 +4927,18 @@ type PChainTransaction = {
|
|
|
4165
4927
|
* The block finality timestamp.
|
|
4166
4928
|
*/
|
|
4167
4929
|
blockTimestamp: number;
|
|
4930
|
+
/**
|
|
4931
|
+
* The height of the block in which the transaction was included
|
|
4932
|
+
*/
|
|
4168
4933
|
blockNumber: string;
|
|
4169
4934
|
blockHash: string;
|
|
4935
|
+
/**
|
|
4936
|
+
* The consumed UTXOs of the transaction
|
|
4937
|
+
*/
|
|
4170
4938
|
consumedUtxos: Array<PChainUtxo>;
|
|
4939
|
+
/**
|
|
4940
|
+
* The newly created UTXOs of the transaction
|
|
4941
|
+
*/
|
|
4171
4942
|
emittedUtxos: Array<PChainUtxo>;
|
|
4172
4943
|
/**
|
|
4173
4944
|
* Source chain for an atomic transaction.
|
|
@@ -4178,11 +4949,11 @@ type PChainTransaction = {
|
|
|
4178
4949
|
*/
|
|
4179
4950
|
destinationChain?: string;
|
|
4180
4951
|
/**
|
|
4181
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4952
|
+
* 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
|
|
4182
4953
|
*/
|
|
4183
4954
|
value: Array<AssetAmount>;
|
|
4184
4955
|
/**
|
|
4185
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4956
|
+
* 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
|
|
4186
4957
|
*/
|
|
4187
4958
|
amountBurned: Array<AssetAmount>;
|
|
4188
4959
|
/**
|
|
@@ -4190,7 +4961,7 @@ type PChainTransaction = {
|
|
|
4190
4961
|
*/
|
|
4191
4962
|
amountStaked: Array<AssetAmount>;
|
|
4192
4963
|
/**
|
|
4193
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4964
|
+
* 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.
|
|
4194
4965
|
*/
|
|
4195
4966
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4196
4967
|
/**
|
|
@@ -4202,11 +4973,11 @@ type PChainTransaction = {
|
|
|
4202
4973
|
*/
|
|
4203
4974
|
endTimestamp?: number;
|
|
4204
4975
|
/**
|
|
4205
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4976
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4206
4977
|
*/
|
|
4207
4978
|
delegationFeePercent?: string;
|
|
4208
4979
|
/**
|
|
4209
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4980
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4210
4981
|
*/
|
|
4211
4982
|
nodeId?: string;
|
|
4212
4983
|
/**
|
|
@@ -4222,14 +4993,17 @@ type PChainTransaction = {
|
|
|
4222
4993
|
*/
|
|
4223
4994
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4224
4995
|
/**
|
|
4225
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4996
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4226
4997
|
*/
|
|
4227
4998
|
estimatedReward?: string;
|
|
4999
|
+
/**
|
|
5000
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5001
|
+
*/
|
|
4228
5002
|
rewardTxHash?: string;
|
|
4229
5003
|
rewardAddresses?: Array<string>;
|
|
4230
5004
|
memo?: string;
|
|
4231
5005
|
/**
|
|
4232
|
-
*
|
|
5006
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4233
5007
|
*/
|
|
4234
5008
|
stakingTxHash?: string;
|
|
4235
5009
|
/**
|
|
@@ -4237,7 +5011,7 @@ type PChainTransaction = {
|
|
|
4237
5011
|
*/
|
|
4238
5012
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4239
5013
|
/**
|
|
4240
|
-
* Present for AddPermissionlessValidatorTx
|
|
5014
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4241
5015
|
*/
|
|
4242
5016
|
blsCredentials?: BlsCredentials;
|
|
4243
5017
|
};
|
|
@@ -4776,9 +5550,29 @@ declare class SignatureAggregatorService {
|
|
|
4776
5550
|
* @returns SignatureAggregationResponse Successful response
|
|
4777
5551
|
* @throws ApiError
|
|
4778
5552
|
*/
|
|
4779
|
-
aggregateSignatures({ requestBody, }: {
|
|
5553
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5554
|
+
/**
|
|
5555
|
+
* Either mainnet or testnet/fuji.
|
|
5556
|
+
*/
|
|
5557
|
+
network: Network;
|
|
4780
5558
|
requestBody: SignatureAggregatorRequest;
|
|
4781
5559
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5560
|
+
/**
|
|
5561
|
+
* Get Aggregated Signatures
|
|
5562
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5563
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5564
|
+
* @throws ApiError
|
|
5565
|
+
*/
|
|
5566
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5567
|
+
/**
|
|
5568
|
+
* Either mainnet or testnet/fuji.
|
|
5569
|
+
*/
|
|
5570
|
+
network: Network;
|
|
5571
|
+
/**
|
|
5572
|
+
* A primary network (P or X chain) transaction hash.
|
|
5573
|
+
*/
|
|
5574
|
+
txHash: string;
|
|
5575
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4782
5576
|
}
|
|
4783
5577
|
|
|
4784
5578
|
type TeleporterDestinationTransaction = {
|
|
@@ -4919,8 +5713,10 @@ declare class TeleporterService {
|
|
|
4919
5713
|
readonly httpRequest: BaseHttpRequest;
|
|
4920
5714
|
constructor(httpRequest: BaseHttpRequest);
|
|
4921
5715
|
/**
|
|
4922
|
-
*
|
|
4923
|
-
* Gets a teleporter message by message ID.
|
|
5716
|
+
* @deprecated
|
|
5717
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5718
|
+
*
|
|
5719
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4924
5720
|
* @returns any Successful response
|
|
4925
5721
|
* @throws ApiError
|
|
4926
5722
|
*/
|
|
@@ -4931,8 +5727,10 @@ declare class TeleporterService {
|
|
|
4931
5727
|
messageId: string;
|
|
4932
5728
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4933
5729
|
/**
|
|
4934
|
-
*
|
|
4935
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5730
|
+
* @deprecated
|
|
5731
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5732
|
+
*
|
|
5733
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4936
5734
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4937
5735
|
* @throws ApiError
|
|
4938
5736
|
*/
|
|
@@ -4971,8 +5769,10 @@ declare class TeleporterService {
|
|
|
4971
5769
|
network?: Network;
|
|
4972
5770
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4973
5771
|
/**
|
|
4974
|
-
*
|
|
4975
|
-
* Lists teleporter messages by address. Ordered by
|
|
5772
|
+
* @deprecated
|
|
5773
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5774
|
+
*
|
|
5775
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4976
5776
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4977
5777
|
* @throws ApiError
|
|
4978
5778
|
*/
|
|
@@ -5014,15 +5814,16 @@ type AddressActivityMetadata = {
|
|
|
5014
5814
|
eventSignatures?: Array<string>;
|
|
5015
5815
|
};
|
|
5016
5816
|
|
|
5017
|
-
declare enum
|
|
5018
|
-
|
|
5817
|
+
declare enum PrimaryNetworkType {
|
|
5818
|
+
MAINNET = "mainnet",
|
|
5819
|
+
FUJI = "fuji"
|
|
5019
5820
|
}
|
|
5020
5821
|
|
|
5021
|
-
type
|
|
5822
|
+
type EVMAddressActivityRequest = {
|
|
5823
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5022
5824
|
url: string;
|
|
5023
5825
|
chainId: string;
|
|
5024
|
-
|
|
5025
|
-
metadata: AddressActivityMetadata;
|
|
5826
|
+
network?: PrimaryNetworkType;
|
|
5026
5827
|
name?: string;
|
|
5027
5828
|
description?: string;
|
|
5028
5829
|
/**
|
|
@@ -5033,25 +5834,34 @@ type CreateWebhookRequest = {
|
|
|
5033
5834
|
* Whether to include logs in the webhook payload.
|
|
5034
5835
|
*/
|
|
5035
5836
|
includeLogs?: boolean;
|
|
5837
|
+
metadata: AddressActivityMetadata;
|
|
5036
5838
|
};
|
|
5839
|
+
declare namespace EVMAddressActivityRequest {
|
|
5840
|
+
enum eventType {
|
|
5841
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5842
|
+
}
|
|
5843
|
+
}
|
|
5037
5844
|
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
addresses: Array<string>;
|
|
5044
|
-
totalAddresses: number;
|
|
5045
|
-
};
|
|
5845
|
+
declare enum EventType {
|
|
5846
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5847
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5848
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5849
|
+
}
|
|
5046
5850
|
|
|
5047
5851
|
declare enum WebhookStatusType {
|
|
5048
5852
|
ACTIVE = "active",
|
|
5049
5853
|
INACTIVE = "inactive"
|
|
5050
5854
|
}
|
|
5051
5855
|
|
|
5052
|
-
type
|
|
5856
|
+
type EVMAddressActivityResponse = {
|
|
5053
5857
|
id: string;
|
|
5054
5858
|
eventType: EventType;
|
|
5859
|
+
url: string;
|
|
5860
|
+
chainId: string;
|
|
5861
|
+
status: WebhookStatusType;
|
|
5862
|
+
createdAt: number;
|
|
5863
|
+
name: string;
|
|
5864
|
+
description: string;
|
|
5055
5865
|
metadata: AddressActivityMetadata;
|
|
5056
5866
|
/**
|
|
5057
5867
|
* Whether to include traces in the webhook payload.
|
|
@@ -5061,12 +5871,106 @@ type WebhookResponse = {
|
|
|
5061
5871
|
* Whether to include logs in the webhook payload.
|
|
5062
5872
|
*/
|
|
5063
5873
|
includeLogs?: boolean;
|
|
5874
|
+
};
|
|
5875
|
+
|
|
5876
|
+
type ListWebhookAddressesResponse = {
|
|
5877
|
+
/**
|
|
5878
|
+
* 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.
|
|
5879
|
+
*/
|
|
5880
|
+
nextPageToken?: string;
|
|
5881
|
+
addresses: Array<string>;
|
|
5882
|
+
totalAddresses: number;
|
|
5883
|
+
};
|
|
5884
|
+
|
|
5885
|
+
/**
|
|
5886
|
+
* The type of key for platform activity depending on the event type
|
|
5887
|
+
*/
|
|
5888
|
+
declare enum PlatformActivityKeyType {
|
|
5889
|
+
ADDRESSES = "addresses",
|
|
5890
|
+
NODE_ID = "nodeId",
|
|
5891
|
+
SUBNET_ID = "subnetId"
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
/**
|
|
5895
|
+
* Array of address activity sub-event types
|
|
5896
|
+
*/
|
|
5897
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5898
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5899
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform"
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
type PlatformActivitySubEvents = {
|
|
5903
|
+
/**
|
|
5904
|
+
* Array of validator activity sub-event types
|
|
5905
|
+
*/
|
|
5906
|
+
validatorActivitySubEvents?: Array<'validator_registration' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5907
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5908
|
+
};
|
|
5909
|
+
|
|
5910
|
+
/**
|
|
5911
|
+
* Type of balance to monitor
|
|
5912
|
+
*/
|
|
5913
|
+
declare enum PChainBalanceType {
|
|
5914
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5915
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5916
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5917
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5918
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5919
|
+
PENDING_STAKED = "pendingStaked",
|
|
5920
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5921
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5924
|
+
type PlatformBalanceThresholdFilter = {
|
|
5925
|
+
balanceType: PChainBalanceType;
|
|
5926
|
+
/**
|
|
5927
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5928
|
+
*/
|
|
5929
|
+
balanceThreshold: string;
|
|
5930
|
+
};
|
|
5931
|
+
|
|
5932
|
+
type PlatformActivityMetadata = {
|
|
5933
|
+
keyType: PlatformActivityKeyType;
|
|
5934
|
+
/**
|
|
5935
|
+
* 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
|
|
5936
|
+
*/
|
|
5937
|
+
keys: Array<string>;
|
|
5938
|
+
/**
|
|
5939
|
+
* Sub-events to monitor
|
|
5940
|
+
*/
|
|
5941
|
+
subEvents?: PlatformActivitySubEvents;
|
|
5942
|
+
/**
|
|
5943
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5944
|
+
*/
|
|
5945
|
+
eventSignatures?: Array<string>;
|
|
5946
|
+
/**
|
|
5947
|
+
* Array of node IDs to filter the events
|
|
5948
|
+
*/
|
|
5949
|
+
nodeIds?: Array<string>;
|
|
5950
|
+
/**
|
|
5951
|
+
* Array of subnet IDs to filter the events
|
|
5952
|
+
*/
|
|
5953
|
+
subnetIds?: Array<string>;
|
|
5954
|
+
/**
|
|
5955
|
+
* Balance threshold filter
|
|
5956
|
+
*/
|
|
5957
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
5958
|
+
/**
|
|
5959
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5960
|
+
*/
|
|
5961
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
5962
|
+
};
|
|
5963
|
+
|
|
5964
|
+
type PlatformActivityResponse = {
|
|
5965
|
+
id: string;
|
|
5966
|
+
eventType: EventType;
|
|
5064
5967
|
url: string;
|
|
5065
5968
|
chainId: string;
|
|
5066
5969
|
status: WebhookStatusType;
|
|
5067
5970
|
createdAt: number;
|
|
5068
5971
|
name: string;
|
|
5069
5972
|
description: string;
|
|
5973
|
+
metadata: PlatformActivityMetadata;
|
|
5070
5974
|
};
|
|
5071
5975
|
|
|
5072
5976
|
type ListWebhooksResponse = {
|
|
@@ -5074,8 +5978,35 @@ type ListWebhooksResponse = {
|
|
|
5074
5978
|
* 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.
|
|
5075
5979
|
*/
|
|
5076
5980
|
nextPageToken?: string;
|
|
5077
|
-
webhooks: Array<
|
|
5981
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5982
|
+
};
|
|
5983
|
+
|
|
5984
|
+
type PlatformActivityRequest = {
|
|
5985
|
+
eventType: PlatformActivityRequest.eventType;
|
|
5986
|
+
url: string;
|
|
5987
|
+
chainId: string;
|
|
5988
|
+
network?: PrimaryNetworkType;
|
|
5989
|
+
name?: string;
|
|
5990
|
+
description?: string;
|
|
5991
|
+
/**
|
|
5992
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5993
|
+
*/
|
|
5994
|
+
includeInternalTxs?: boolean;
|
|
5995
|
+
/**
|
|
5996
|
+
* Whether to include logs in the webhook payload.
|
|
5997
|
+
*/
|
|
5998
|
+
includeLogs?: boolean;
|
|
5999
|
+
/**
|
|
6000
|
+
* Metadata for platform activity
|
|
6001
|
+
*/
|
|
6002
|
+
metadata: PlatformActivityMetadata;
|
|
5078
6003
|
};
|
|
6004
|
+
declare namespace PlatformActivityRequest {
|
|
6005
|
+
enum eventType {
|
|
6006
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6007
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6008
|
+
}
|
|
6009
|
+
}
|
|
5079
6010
|
|
|
5080
6011
|
type SharedSecretsResponse = {
|
|
5081
6012
|
secret: string;
|
|
@@ -5104,12 +6035,12 @@ declare class WebhooksService {
|
|
|
5104
6035
|
/**
|
|
5105
6036
|
* Create a webhook
|
|
5106
6037
|
* Create a new webhook.
|
|
5107
|
-
* @returns
|
|
6038
|
+
* @returns any Successful response
|
|
5108
6039
|
* @throws ApiError
|
|
5109
6040
|
*/
|
|
5110
6041
|
createWebhook({ requestBody, }: {
|
|
5111
|
-
requestBody:
|
|
5112
|
-
}): CancelablePromise<
|
|
6042
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6043
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5113
6044
|
/**
|
|
5114
6045
|
* List webhooks
|
|
5115
6046
|
* Lists webhooks for the user.
|
|
@@ -5133,7 +6064,7 @@ declare class WebhooksService {
|
|
|
5133
6064
|
/**
|
|
5134
6065
|
* Get a webhook by ID
|
|
5135
6066
|
* Retrieves a webhook by ID.
|
|
5136
|
-
* @returns
|
|
6067
|
+
* @returns any Successful response
|
|
5137
6068
|
* @throws ApiError
|
|
5138
6069
|
*/
|
|
5139
6070
|
getWebhook({ id, }: {
|
|
@@ -5141,11 +6072,11 @@ declare class WebhooksService {
|
|
|
5141
6072
|
* The webhook identifier.
|
|
5142
6073
|
*/
|
|
5143
6074
|
id: string;
|
|
5144
|
-
}): CancelablePromise<
|
|
6075
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5145
6076
|
/**
|
|
5146
6077
|
* Deactivate a webhook
|
|
5147
6078
|
* Deactivates a webhook by ID.
|
|
5148
|
-
* @returns
|
|
6079
|
+
* @returns any Successful response
|
|
5149
6080
|
* @throws ApiError
|
|
5150
6081
|
*/
|
|
5151
6082
|
deactivateWebhook({ id, }: {
|
|
@@ -5153,11 +6084,11 @@ declare class WebhooksService {
|
|
|
5153
6084
|
* The webhook identifier.
|
|
5154
6085
|
*/
|
|
5155
6086
|
id: string;
|
|
5156
|
-
}): CancelablePromise<
|
|
6087
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5157
6088
|
/**
|
|
5158
6089
|
* Update a webhook
|
|
5159
6090
|
* Updates an existing webhook.
|
|
5160
|
-
* @returns
|
|
6091
|
+
* @returns any Successful response
|
|
5161
6092
|
* @throws ApiError
|
|
5162
6093
|
*/
|
|
5163
6094
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5166,14 +6097,14 @@ declare class WebhooksService {
|
|
|
5166
6097
|
*/
|
|
5167
6098
|
id: string;
|
|
5168
6099
|
requestBody: UpdateWebhookRequest;
|
|
5169
|
-
}): CancelablePromise<
|
|
6100
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5170
6101
|
/**
|
|
5171
|
-
* Generate a shared secret
|
|
5172
|
-
* Generates a new shared secret.
|
|
6102
|
+
* Generate or rotate a shared secret
|
|
6103
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5173
6104
|
* @returns SharedSecretsResponse Successful response
|
|
5174
6105
|
* @throws ApiError
|
|
5175
6106
|
*/
|
|
5176
|
-
|
|
6107
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5177
6108
|
/**
|
|
5178
6109
|
* Get a shared secret
|
|
5179
6110
|
* Get a previously generated shared secret.
|
|
@@ -5182,9 +6113,9 @@ declare class WebhooksService {
|
|
|
5182
6113
|
*/
|
|
5183
6114
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5184
6115
|
/**
|
|
5185
|
-
* Add addresses to webhook
|
|
5186
|
-
* Add addresses to webhook.
|
|
5187
|
-
* @returns
|
|
6116
|
+
* Add addresses to EVM activity webhook
|
|
6117
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6118
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5188
6119
|
* @throws ApiError
|
|
5189
6120
|
*/
|
|
5190
6121
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5193,11 +6124,11 @@ declare class WebhooksService {
|
|
|
5193
6124
|
*/
|
|
5194
6125
|
id: string;
|
|
5195
6126
|
requestBody: AddressesChangeRequest;
|
|
5196
|
-
}): CancelablePromise<
|
|
6127
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5197
6128
|
/**
|
|
5198
|
-
* Remove addresses from webhook
|
|
5199
|
-
* Remove addresses from webhook.
|
|
5200
|
-
* @returns
|
|
6129
|
+
* Remove addresses from EVM activity webhook
|
|
6130
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6131
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5201
6132
|
* @throws ApiError
|
|
5202
6133
|
*/
|
|
5203
6134
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5206,10 +6137,10 @@ declare class WebhooksService {
|
|
|
5206
6137
|
*/
|
|
5207
6138
|
id: string;
|
|
5208
6139
|
requestBody: AddressesChangeRequest;
|
|
5209
|
-
}): CancelablePromise<
|
|
6140
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5210
6141
|
/**
|
|
5211
|
-
* List adresses by
|
|
5212
|
-
* List adresses by webhook.
|
|
6142
|
+
* List adresses by EVM activity webhooks
|
|
6143
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5213
6144
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5214
6145
|
* @throws ApiError
|
|
5215
6146
|
*/
|
|
@@ -5239,7 +6170,9 @@ declare class Glacier {
|
|
|
5239
6170
|
readonly evmContracts: EvmContractsService;
|
|
5240
6171
|
readonly evmTransactions: EvmTransactionsService;
|
|
5241
6172
|
readonly healthCheck: HealthCheckService;
|
|
6173
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5242
6174
|
readonly nfTs: NfTsService;
|
|
6175
|
+
readonly notifications: NotificationsService;
|
|
5243
6176
|
readonly operations: OperationsService;
|
|
5244
6177
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5245
6178
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5403,4 +6336,4 @@ type Unauthorized = {
|
|
|
5403
6336
|
error: string;
|
|
5404
6337
|
};
|
|
5405
6338
|
|
|
5406
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest,
|
|
6339
|
+
export { AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainBalanceType, 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, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|