@avalabs/glacier-sdk 2.8.0-canary.e5344d2.0 → 2.8.0-canary.e6e93fd.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.
Files changed (127) hide show
  1. package/dist/index.d.ts +984 -522
  2. package/dist/index.js +412 -200
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
  9. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +1 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  20. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  22. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  23. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  24. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  25. package/esm/generated/models/EVMInput.d.ts +3 -3
  26. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  27. package/esm/generated/models/EVMOperationType.js +6 -0
  28. package/esm/generated/models/EVMOutput.d.ts +3 -3
  29. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  30. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  31. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  32. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  33. package/esm/generated/models/GlacierApiFeature.js +7 -0
  34. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  35. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  36. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  37. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  38. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  39. package/esm/generated/models/Method.d.ts +0 -3
  40. package/esm/generated/models/Money.d.ts +0 -3
  41. package/esm/generated/models/NextPageToken.d.ts +8 -0
  42. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  43. package/esm/generated/models/OperationType.d.ts +4 -2
  44. package/esm/generated/models/OperationType.js +3 -1
  45. package/esm/generated/models/PChainBalance.d.ts +15 -15
  46. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  47. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  48. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  49. package/esm/generated/models/PChainTransactionType.js +8 -5
  50. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  51. package/esm/generated/models/PendingReward.d.ts +3 -3
  52. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  53. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  54. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  55. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  56. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  57. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  58. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  59. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  60. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  61. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  62. package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
  63. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  64. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  65. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  66. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  67. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  68. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  69. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  70. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  71. package/esm/generated/models/Subnet.d.ts +17 -0
  72. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  73. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  74. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  75. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  76. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  77. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  78. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  79. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  80. package/esm/generated/models/Utxo.d.ts +30 -30
  81. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  82. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  83. package/esm/generated/models/ValidationStatusType.js +1 -0
  84. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  85. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  86. package/esm/generated/models/XChainBalances.d.ts +3 -3
  87. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  88. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  89. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  90. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  91. package/esm/generated/services/DefaultService.d.ts +0 -45
  92. package/esm/generated/services/DefaultService.js +0 -36
  93. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  94. package/esm/generated/services/EvmBalancesService.js +8 -8
  95. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  96. package/esm/generated/services/EvmBlocksService.js +4 -4
  97. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  98. package/esm/generated/services/EvmChainsService.js +4 -2
  99. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  100. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  101. package/esm/generated/services/EvmTransactionsService.js +32 -32
  102. package/esm/generated/services/NfTsService.d.ts +8 -8
  103. package/esm/generated/services/NfTsService.js +4 -4
  104. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  105. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  106. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  107. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  108. package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
  109. package/esm/generated/services/PrimaryNetworkService.js +20 -20
  110. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  111. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  112. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  113. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  114. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  115. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  116. package/esm/generated/services/RpcService.d.ts +25 -0
  117. package/esm/generated/services/RpcService.js +24 -0
  118. package/esm/generated/services/TeleporterService.d.ts +57 -0
  119. package/esm/generated/services/TeleporterService.js +39 -0
  120. package/esm/generated/services/WebhooksService.d.ts +122 -0
  121. package/esm/generated/services/WebhooksService.js +108 -0
  122. package/esm/index.d.ts +29 -3
  123. package/esm/index.js +13 -2
  124. package/package.json +3 -3
  125. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  126. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  127. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,56 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- topic0?: string;
69
- };
70
-
71
- declare enum EventType {
72
- ADDRESS_ACTIVITY = "address_activity"
73
- }
74
-
75
- declare enum WebhookStatusType {
76
- ACTIVE = "active",
77
- INACTIVE = "inactive"
78
- }
79
-
80
- type WebhookResponse = {
81
- id: string;
82
- eventType: EventType;
83
- metadata: AddressActivityMetadata;
84
- url: string;
85
- chainId: string;
86
- status: WebhookStatusType;
87
- createdAt: number;
88
- };
89
-
90
- type ListWebhooksResponse = {
91
- /**
92
- * 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.
93
- */
94
- nextPageToken?: string;
95
- webhooks: Array<WebhookResponse>;
96
- };
97
-
98
- type RegisterWebhookRequest = {
99
- url: string;
100
- chainId: string;
101
- /**
102
- * The type of event for the webhook
103
- */
104
- eventType: EventType;
105
- metadata: AddressActivityMetadata;
106
- };
107
-
108
- declare enum WebhookStatus {
109
- ACTIVE = "active",
110
- INACTIVE = "inactive"
111
- }
112
-
113
57
  declare class DefaultService {
114
58
  readonly httpRequest: BaseHttpRequest;
115
59
  constructor(httpRequest: BaseHttpRequest);
@@ -118,49 +62,11 @@ declare class DefaultService {
118
62
  * @throws ApiError
119
63
  */
120
64
  mediaControllerUploadImage(): CancelablePromise<any>;
121
- /**
122
- * Register a webhook
123
- * Registers a new webhook.
124
- * @returns WebhookResponse
125
- * @throws ApiError
126
- */
127
- registerWebhook({ requestBody, }: {
128
- requestBody: RegisterWebhookRequest;
129
- }): CancelablePromise<WebhookResponse>;
130
- /**
131
- * List webhooks
132
- * Lists webhooks for the user.
133
- * @returns ListWebhooksResponse
134
- * @throws ApiError
135
- */
136
- listWebhooks({ pageSize, pageToken, status, }: {
137
- /**
138
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
139
- */
140
- pageSize?: number;
141
- /**
142
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
143
- */
144
- pageToken?: string;
145
- /**
146
- * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
147
- */
148
- status?: WebhookStatus;
149
- }): CancelablePromise<ListWebhooksResponse>;
150
- /**
151
- * Deactivate a webhook
152
- * Deactivates a webhook by ID.
153
- * @returns WebhookResponse
154
- * @throws ApiError
155
- */
156
- deactivateWebhook({ id, }: {
157
- /**
158
- * The webhook identifier.
159
- */
160
- id: string;
161
- }): CancelablePromise<WebhookResponse>;
162
65
  }
163
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
164
70
  declare enum CurrencyCode {
165
71
  USD = "usd",
166
72
  EUR = "eur",
@@ -179,9 +85,6 @@ declare enum CurrencyCode {
179
85
  }
180
86
 
181
87
  type Money = {
182
- /**
183
- * ISO 4217 currency code.
184
- */
185
88
  currencyCode: CurrencyCode;
186
89
  /**
187
90
  * Monetary value in base 10 decimals.
@@ -231,6 +134,9 @@ type GetNativeBalanceResponse = {
231
134
  nativeTokenBalance: NativeTokenBalance;
232
135
  };
233
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
234
140
  declare enum NftTokenMetadataStatus {
235
141
  UNKNOWN = "UNKNOWN",
236
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -246,9 +152,6 @@ declare enum NftTokenMetadataStatus {
246
152
  }
247
153
 
248
154
  type Erc1155TokenMetadata = {
249
- /**
250
- * The metadata indexing status of the nft.
251
- */
252
155
  indexStatus: NftTokenMetadataStatus;
253
156
  metadataLastUpdatedTimestamp?: number;
254
157
  name?: string;
@@ -287,9 +190,6 @@ declare namespace Erc1155TokenBalance {
287
190
  }
288
191
 
289
192
  type Erc721TokenMetadata = {
290
- /**
291
- * The metadata indexing status of the nft.
292
- */
293
193
  indexStatus: NftTokenMetadataStatus;
294
194
  metadataLastUpdatedTimestamp?: number;
295
195
  name?: string;
@@ -436,7 +336,7 @@ declare class EvmBalancesService {
436
336
  */
437
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
438
338
  /**
439
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
440
340
  */
441
341
  chainId: string;
442
342
  /**
@@ -462,9 +362,9 @@ declare class EvmBalancesService {
462
362
  * @returns ListErc20BalancesResponse
463
363
  * @throws ApiError
464
364
  */
465
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
466
366
  /**
467
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
468
368
  */
469
369
  chainId: string;
470
370
  /**
@@ -475,14 +375,14 @@ declare class EvmBalancesService {
475
375
  * The block number, if not defined the block number will be the latest block.
476
376
  */
477
377
  blockNumber?: string;
478
- /**
479
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
480
- */
481
- pageSize?: number;
482
378
  /**
483
379
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
484
380
  */
485
381
  pageToken?: string;
382
+ /**
383
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
384
+ */
385
+ pageSize?: number;
486
386
  /**
487
387
  * A comma separated list of contract addresses to filter by.
488
388
  */
@@ -500,23 +400,23 @@ declare class EvmBalancesService {
500
400
  * @returns ListErc721BalancesResponse
501
401
  * @throws ApiError
502
402
  */
503
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
403
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
504
404
  /**
505
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
506
406
  */
507
407
  chainId: string;
508
408
  /**
509
409
  * A wallet address.
510
410
  */
511
411
  address: string;
512
- /**
513
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
514
- */
515
- pageSize?: number;
516
412
  /**
517
413
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
518
414
  */
519
415
  pageToken?: string;
416
+ /**
417
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
418
+ */
419
+ pageSize?: number;
520
420
  /**
521
421
  * A contract addresses to filter by.
522
422
  */
@@ -532,9 +432,9 @@ declare class EvmBalancesService {
532
432
  * @returns ListErc1155BalancesResponse
533
433
  * @throws ApiError
534
434
  */
535
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
435
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
536
436
  /**
537
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
538
438
  */
539
439
  chainId: string;
540
440
  /**
@@ -545,14 +445,14 @@ declare class EvmBalancesService {
545
445
  * The block number, if not defined the block number will be the latest block.
546
446
  */
547
447
  blockNumber?: string;
548
- /**
549
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
550
- */
551
- pageSize?: number;
552
448
  /**
553
449
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
554
450
  */
555
451
  pageToken?: string;
452
+ /**
453
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
454
+ */
455
+ pageSize?: number;
556
456
  /**
557
457
  * A contract addresses to filter by.
558
458
  */
@@ -566,23 +466,23 @@ declare class EvmBalancesService {
566
466
  * @returns ListCollectibleBalancesResponse
567
467
  * @throws ApiError
568
468
  */
569
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
469
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
570
470
  /**
571
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
572
472
  */
573
473
  chainId: string;
574
474
  /**
575
475
  * A wallet address.
576
476
  */
577
477
  address: string;
578
- /**
579
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
580
- */
581
- pageSize?: number;
582
478
  /**
583
479
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
584
480
  */
585
481
  pageToken?: string;
482
+ /**
483
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
484
+ */
485
+ pageSize?: number;
586
486
  /**
587
487
  * A contract addresses to filter by.
588
488
  */
@@ -695,19 +595,19 @@ declare class EvmBlocksService {
695
595
  * @returns ListEvmBlocksResponse
696
596
  * @throws ApiError
697
597
  */
698
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
598
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
699
599
  /**
700
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
701
601
  */
702
602
  chainId: string;
703
- /**
704
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
705
- */
706
- pageSize?: number;
707
603
  /**
708
604
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
709
605
  */
710
606
  pageToken?: string;
607
+ /**
608
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
609
+ */
610
+ pageSize?: number;
711
611
  }): CancelablePromise<ListEvmBlocksResponse>;
712
612
  /**
713
613
  * Get block
@@ -717,7 +617,7 @@ declare class EvmBlocksService {
717
617
  */
718
618
  getBlock({ chainId, blockId, }: {
719
619
  /**
720
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
721
621
  */
722
622
  chainId: string;
723
623
  /**
@@ -727,6 +627,9 @@ declare class EvmBlocksService {
727
627
  }): CancelablePromise<GetEvmBlockResponse>;
728
628
  }
729
629
 
630
+ /**
631
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
632
+ */
730
633
  declare enum ChainStatus {
731
634
  OK = "OK",
732
635
  UNAVAILABLE = "UNAVAILABLE"
@@ -764,9 +667,6 @@ declare enum VmName {
764
667
 
765
668
  type GetChainResponse = {
766
669
  chainId: string;
767
- /**
768
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
769
- */
770
670
  status: ChainStatus;
771
671
  chainName: string;
772
672
  description: string;
@@ -782,13 +682,16 @@ type GetChainResponse = {
782
682
  networkToken: NetworkToken;
783
683
  chainLogoUri?: string;
784
684
  private?: boolean;
685
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
785
686
  };
786
687
 
688
+ declare enum GlacierApiFeature {
689
+ NFT_INDEXING = "nftIndexing",
690
+ WEBHOOKS = "webhooks"
691
+ }
692
+
787
693
  type ChainInfo = {
788
694
  chainId: string;
789
- /**
790
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
791
- */
792
695
  status: ChainStatus;
793
696
  chainName: string;
794
697
  description: string;
@@ -804,6 +707,7 @@ type ChainInfo = {
804
707
  networkToken: NetworkToken;
805
708
  chainLogoUri?: string;
806
709
  private?: boolean;
710
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
807
711
  };
808
712
 
809
713
  type ListChainsResponse = {
@@ -824,11 +728,15 @@ declare class EvmChainsService {
824
728
  * @returns ListChainsResponse
825
729
  * @throws ApiError
826
730
  */
827
- supportedChains({ network, }: {
731
+ supportedChains({ network, feature, }: {
828
732
  /**
829
733
  * mainnet or testnet.
830
734
  */
831
735
  network?: NetworkType;
736
+ /**
737
+ * Filter by feature.
738
+ */
739
+ feature?: GlacierApiFeature;
832
740
  }): CancelablePromise<ListChainsResponse>;
833
741
  /**
834
742
  * Get chain information
@@ -838,7 +746,7 @@ declare class EvmChainsService {
838
746
  */
839
747
  getChainInfo({ chainId, }: {
840
748
  /**
841
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
749
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
842
750
  */
843
751
  chainId: string;
844
752
  }): CancelablePromise<GetChainResponse>;
@@ -1133,7 +1041,7 @@ declare class EvmContractsService {
1133
1041
  */
1134
1042
  getContractMetadata({ chainId, address, }: {
1135
1043
  /**
1136
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1044
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1137
1045
  */
1138
1046
  chainId: string;
1139
1047
  /**
@@ -1149,7 +1057,7 @@ declare class EvmContractsService {
1149
1057
  */
1150
1058
  updateContractInfo({ chainId, address, requestBody, }: {
1151
1059
  /**
1152
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1060
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1153
1061
  */
1154
1062
  chainId: string;
1155
1063
  /**
@@ -1283,6 +1191,9 @@ type Erc721TransferDetails = {
1283
1191
  erc721Token: Erc721Token;
1284
1192
  };
1285
1193
 
1194
+ /**
1195
+ * 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.
1196
+ */
1286
1197
  declare enum TransactionMethodType {
1287
1198
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1288
1199
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1290,9 +1201,6 @@ declare enum TransactionMethodType {
1290
1201
  }
1291
1202
 
1292
1203
  type Method = {
1293
- /**
1294
- * 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.
1295
- */
1296
1204
  callType: TransactionMethodType;
1297
1205
  /**
1298
1206
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1653,7 +1561,7 @@ type ListTransfersResponse = {
1653
1561
  * 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.
1654
1562
  */
1655
1563
  nextPageToken?: string;
1656
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1564
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1657
1565
  };
1658
1566
 
1659
1567
  declare enum SortOrder {
@@ -1677,7 +1585,7 @@ declare class EvmTransactionsService {
1677
1585
  */
1678
1586
  getDeploymentTransaction({ chainId, address, currency, }: {
1679
1587
  /**
1680
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1588
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1681
1589
  */
1682
1590
  chainId: string;
1683
1591
  /**
@@ -1695,23 +1603,23 @@ declare class EvmTransactionsService {
1695
1603
  * @returns ListContractsResponse
1696
1604
  * @throws ApiError
1697
1605
  */
1698
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1606
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1699
1607
  /**
1700
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1608
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1701
1609
  */
1702
1610
  chainId: string;
1703
1611
  /**
1704
1612
  * A wallet address.
1705
1613
  */
1706
1614
  address: string;
1707
- /**
1708
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1709
- */
1710
- pageSize?: number;
1711
1615
  /**
1712
1616
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1713
1617
  */
1714
1618
  pageToken?: string;
1619
+ /**
1620
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1621
+ */
1622
+ pageSize?: number;
1715
1623
  }): CancelablePromise<ListContractsResponse>;
1716
1624
  /**
1717
1625
  * List ERC transfers
@@ -1719,9 +1627,9 @@ declare class EvmTransactionsService {
1719
1627
  * @returns ListTransfersResponse
1720
1628
  * @throws ApiError
1721
1629
  */
1722
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1630
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1723
1631
  /**
1724
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1632
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1725
1633
  */
1726
1634
  chainId: string;
1727
1635
  /**
@@ -1736,14 +1644,14 @@ declare class EvmTransactionsService {
1736
1644
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1737
1645
  */
1738
1646
  endBlock?: number;
1739
- /**
1740
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1741
- */
1742
- pageSize?: number;
1743
1647
  /**
1744
1648
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
1649
  */
1746
1650
  pageToken?: string;
1651
+ /**
1652
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1653
+ */
1654
+ pageSize?: number;
1747
1655
  }): CancelablePromise<ListTransfersResponse>;
1748
1656
  /**
1749
1657
  * List transactions
@@ -1753,23 +1661,23 @@ declare class EvmTransactionsService {
1753
1661
  * @returns ListTransactionDetailsResponse
1754
1662
  * @throws ApiError
1755
1663
  */
1756
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1664
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1757
1665
  /**
1758
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1666
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1759
1667
  */
1760
1668
  chainId: string;
1761
1669
  /**
1762
1670
  * A wallet address.
1763
1671
  */
1764
1672
  address: string;
1765
- /**
1766
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1767
- */
1768
- pageSize?: number;
1769
1673
  /**
1770
1674
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1771
1675
  */
1772
1676
  pageToken?: string;
1677
+ /**
1678
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1679
+ */
1680
+ pageSize?: number;
1773
1681
  /**
1774
1682
  * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1775
1683
  */
@@ -1789,9 +1697,9 @@ declare class EvmTransactionsService {
1789
1697
  * @returns ListNativeTransactionsResponse
1790
1698
  * @throws ApiError
1791
1699
  */
1792
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1700
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1793
1701
  /**
1794
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1702
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1795
1703
  */
1796
1704
  chainId: string;
1797
1705
  /**
@@ -1806,14 +1714,14 @@ declare class EvmTransactionsService {
1806
1714
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1807
1715
  */
1808
1716
  endBlock?: number;
1809
- /**
1810
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1811
- */
1812
- pageSize?: number;
1813
1717
  /**
1814
1718
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1815
1719
  */
1816
1720
  pageToken?: string;
1721
+ /**
1722
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1723
+ */
1724
+ pageSize?: number;
1817
1725
  }): CancelablePromise<ListNativeTransactionsResponse>;
1818
1726
  /**
1819
1727
  * List ERC-20 transfers
@@ -1821,9 +1729,9 @@ declare class EvmTransactionsService {
1821
1729
  * @returns ListErc20TransactionsResponse
1822
1730
  * @throws ApiError
1823
1731
  */
1824
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1732
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1825
1733
  /**
1826
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1734
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1827
1735
  */
1828
1736
  chainId: string;
1829
1737
  /**
@@ -1838,14 +1746,14 @@ declare class EvmTransactionsService {
1838
1746
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1839
1747
  */
1840
1748
  endBlock?: number;
1841
- /**
1842
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1843
- */
1844
- pageSize?: number;
1845
1749
  /**
1846
1750
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1847
1751
  */
1848
1752
  pageToken?: string;
1753
+ /**
1754
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1755
+ */
1756
+ pageSize?: number;
1849
1757
  }): CancelablePromise<ListErc20TransactionsResponse>;
1850
1758
  /**
1851
1759
  * List ERC-721 transfers
@@ -1853,9 +1761,9 @@ declare class EvmTransactionsService {
1853
1761
  * @returns ListErc721TransactionsResponse
1854
1762
  * @throws ApiError
1855
1763
  */
1856
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1764
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1857
1765
  /**
1858
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1766
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1859
1767
  */
1860
1768
  chainId: string;
1861
1769
  /**
@@ -1870,14 +1778,14 @@ declare class EvmTransactionsService {
1870
1778
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1871
1779
  */
1872
1780
  endBlock?: number;
1873
- /**
1874
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1875
- */
1876
- pageSize?: number;
1877
1781
  /**
1878
1782
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1879
1783
  */
1880
1784
  pageToken?: string;
1785
+ /**
1786
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1787
+ */
1788
+ pageSize?: number;
1881
1789
  }): CancelablePromise<ListErc721TransactionsResponse>;
1882
1790
  /**
1883
1791
  * List ERC-1155 transfers
@@ -1885,9 +1793,9 @@ declare class EvmTransactionsService {
1885
1793
  * @returns ListErc1155TransactionsResponse
1886
1794
  * @throws ApiError
1887
1795
  */
1888
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1796
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1889
1797
  /**
1890
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1798
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1891
1799
  */
1892
1800
  chainId: string;
1893
1801
  /**
@@ -1902,14 +1810,14 @@ declare class EvmTransactionsService {
1902
1810
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1903
1811
  */
1904
1812
  endBlock?: number;
1905
- /**
1906
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1907
- */
1908
- pageSize?: number;
1909
1813
  /**
1910
1814
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1911
1815
  */
1912
1816
  pageToken?: string;
1817
+ /**
1818
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1819
+ */
1820
+ pageSize?: number;
1913
1821
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1914
1822
  /**
1915
1823
  * List internal transactions
@@ -1919,9 +1827,9 @@ declare class EvmTransactionsService {
1919
1827
  * @returns ListInternalTransactionsResponse
1920
1828
  * @throws ApiError
1921
1829
  */
1922
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1830
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1923
1831
  /**
1924
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1832
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
1833
  */
1926
1834
  chainId: string;
1927
1835
  /**
@@ -1936,14 +1844,14 @@ declare class EvmTransactionsService {
1936
1844
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1937
1845
  */
1938
1846
  endBlock?: number;
1939
- /**
1940
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1941
- */
1942
- pageSize?: number;
1943
1847
  /**
1944
1848
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1945
1849
  */
1946
1850
  pageToken?: string;
1851
+ /**
1852
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1853
+ */
1854
+ pageSize?: number;
1947
1855
  }): CancelablePromise<ListInternalTransactionsResponse>;
1948
1856
  /**
1949
1857
  * Get transaction
@@ -1953,7 +1861,7 @@ declare class EvmTransactionsService {
1953
1861
  */
1954
1862
  getTransaction({ chainId, txHash, }: {
1955
1863
  /**
1956
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1864
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1957
1865
  */
1958
1866
  chainId: string;
1959
1867
  /**
@@ -1969,7 +1877,7 @@ declare class EvmTransactionsService {
1969
1877
  */
1970
1878
  getTransactionsForBlock({ chainId, blockId, }: {
1971
1879
  /**
1972
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1880
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1973
1881
  */
1974
1882
  chainId: string;
1975
1883
  /**
@@ -1983,19 +1891,19 @@ declare class EvmTransactionsService {
1983
1891
  * @returns ListNativeTransactionsResponse
1984
1892
  * @throws ApiError
1985
1893
  */
1986
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1894
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1987
1895
  /**
1988
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1896
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1989
1897
  */
1990
1898
  chainId: string;
1991
- /**
1992
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1993
- */
1994
- pageSize?: number;
1995
1899
  /**
1996
1900
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1997
1901
  */
1998
1902
  pageToken?: string;
1903
+ /**
1904
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1905
+ */
1906
+ pageSize?: number;
1999
1907
  /**
2000
1908
  * A status filter for listed transactions.
2001
1909
  */
@@ -2024,7 +1932,7 @@ type ListNftTokens = {
2024
1932
  * 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.
2025
1933
  */
2026
1934
  nextPageToken?: string;
2027
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1935
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2028
1936
  };
2029
1937
 
2030
1938
  declare class NfTsService {
@@ -2038,7 +1946,7 @@ declare class NfTsService {
2038
1946
  */
2039
1947
  reindexNft({ chainId, address, tokenId, }: {
2040
1948
  /**
2041
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1949
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2042
1950
  */
2043
1951
  chainId: string;
2044
1952
  /**
@@ -2056,23 +1964,23 @@ declare class NfTsService {
2056
1964
  * @returns ListNftTokens
2057
1965
  * @throws ApiError
2058
1966
  */
2059
- listTokens({ chainId, address, pageSize, pageToken, }: {
1967
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2060
1968
  /**
2061
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1969
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2062
1970
  */
2063
1971
  chainId: string;
2064
1972
  /**
2065
1973
  * Contract address on the relevant chain.
2066
1974
  */
2067
1975
  address: string;
2068
- /**
2069
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2070
- */
2071
- pageSize?: number;
2072
1976
  /**
2073
1977
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2074
1978
  */
2075
1979
  pageToken?: string;
1980
+ /**
1981
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1982
+ */
1983
+ pageSize?: number;
2076
1984
  }): CancelablePromise<ListNftTokens>;
2077
1985
  /**
2078
1986
  * Get token details
@@ -2082,7 +1990,7 @@ declare class NfTsService {
2082
1990
  */
2083
1991
  getTokenDetails({ chainId, address, tokenId, }: {
2084
1992
  /**
2085
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1993
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2086
1994
  */
2087
1995
  chainId: string;
2088
1996
  /**
@@ -2101,8 +2009,12 @@ type EvmNetworkOptions = {
2101
2009
  includeChains: Array<string>;
2102
2010
  };
2103
2011
 
2012
+ declare enum EVMOperationType {
2013
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2014
+ }
2015
+
2104
2016
  type CreateEvmTransactionExportRequest = {
2105
- type: CreateEvmTransactionExportRequest.type;
2017
+ type: EVMOperationType;
2106
2018
  firstDate: string;
2107
2019
  lastDate: string;
2108
2020
  /**
@@ -2115,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
2115
2027
  endDate: string;
2116
2028
  options: EvmNetworkOptions;
2117
2029
  };
2118
- declare namespace CreateEvmTransactionExportRequest {
2119
- enum type {
2120
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2121
- }
2030
+
2031
+ declare enum PrimaryNetworkOperationType {
2032
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2033
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2034
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2122
2035
  }
2123
2036
 
2124
2037
  type PrimaryNetworkOptions = {
2125
- addresses: Array<string>;
2038
+ addresses?: Array<string>;
2126
2039
  cChainEvmAddresses?: Array<string>;
2127
2040
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2128
2041
  };
2129
2042
 
2130
2043
  type CreatePrimaryNetworkTransactionExportRequest = {
2131
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2044
+ type: PrimaryNetworkOperationType;
2132
2045
  firstDate: string;
2133
2046
  lastDate: string;
2134
2047
  /**
@@ -2141,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2141
2054
  endDate: string;
2142
2055
  options: PrimaryNetworkOptions;
2143
2056
  };
2144
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2145
- enum type {
2146
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2147
- }
2148
- }
2149
2057
 
2150
2058
  declare enum OperationStatus {
2151
2059
  RUNNING = "RUNNING",
@@ -2155,8 +2063,10 @@ declare enum OperationStatus {
2155
2063
  }
2156
2064
 
2157
2065
  declare enum OperationType {
2158
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2159
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2066
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2067
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2068
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2069
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2160
2070
  }
2161
2071
 
2162
2072
  declare enum OperationStatusCode {
@@ -2348,13 +2258,44 @@ type BlockchainInfo = {
2348
2258
  blockchainId: string;
2349
2259
  };
2350
2260
 
2261
+ type SubnetOwnershipInfo = {
2262
+ /**
2263
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2264
+ */
2265
+ locktime: number;
2266
+ /**
2267
+ * Minimum number of signatures required to sign the Subnet update transactions.
2268
+ */
2269
+ threshold: number;
2270
+ /**
2271
+ * Addresses that are eligible to sign the Subnet update transactions.
2272
+ */
2273
+ addresses: Array<string>;
2274
+ };
2275
+
2351
2276
  type Subnet = {
2352
2277
  createBlockTimestamp: number;
2353
2278
  createBlockIndex: string;
2354
2279
  subnetId: string;
2280
+ /**
2281
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2282
+ * @deprecated
2283
+ */
2355
2284
  ownerAddresses: Array<string>;
2285
+ /**
2286
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2287
+ * @deprecated
2288
+ */
2356
2289
  threshold: number;
2290
+ /**
2291
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2292
+ * @deprecated
2293
+ */
2357
2294
  locktime: number;
2295
+ /**
2296
+ * Latest subnet owner details for this Subnet.
2297
+ */
2298
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2358
2299
  blockchains: Array<BlockchainInfo>;
2359
2300
  };
2360
2301
 
@@ -2450,15 +2391,33 @@ declare namespace PendingValidatorDetails {
2450
2391
  }
2451
2392
  }
2452
2393
 
2453
- type ListValidatorDetailsResponse = {
2454
- /**
2455
- * 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.
2456
- */
2457
- nextPageToken?: string;
2458
- /**
2394
+ type RemovedValidatorDetails = {
2395
+ txHash: string;
2396
+ nodeId: string;
2397
+ subnetId: string;
2398
+ amountStaked: string;
2399
+ delegationFee?: string;
2400
+ startTimestamp: number;
2401
+ endTimestamp: number;
2402
+ removeTxHash: string;
2403
+ removeTimestamp: number;
2404
+ validationStatus: RemovedValidatorDetails.validationStatus;
2405
+ };
2406
+ declare namespace RemovedValidatorDetails {
2407
+ enum validationStatus {
2408
+ REMOVED = "removed"
2409
+ }
2410
+ }
2411
+
2412
+ type ListValidatorDetailsResponse = {
2413
+ /**
2414
+ * 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.
2415
+ */
2416
+ nextPageToken?: string;
2417
+ /**
2459
2418
  * The list of validator Details.
2460
2419
  */
2461
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2420
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2462
2421
  };
2463
2422
 
2464
2423
  declare enum Network {
@@ -2469,7 +2428,24 @@ declare enum Network {
2469
2428
  declare enum ValidationStatusType {
2470
2429
  COMPLETED = "completed",
2471
2430
  ACTIVE = "active",
2472
- PENDING = "pending"
2431
+ PENDING = "pending",
2432
+ REMOVED = "removed"
2433
+ }
2434
+
2435
+ /**
2436
+ * Cap represents if an asset is a variable or fixed cap asset.
2437
+ */
2438
+ declare enum PrimaryNetworkAssetCap {
2439
+ FIXED = "fixed",
2440
+ VARIABLE = "variable"
2441
+ }
2442
+
2443
+ /**
2444
+ * Type of asset like SECP256K1 or NFT.
2445
+ */
2446
+ declare enum PrimaryNetworkAssetType {
2447
+ SECP256K1 = "secp256k1",
2448
+ NFT = "nft"
2473
2449
  }
2474
2450
 
2475
2451
  type XChainAssetDetails = {
@@ -2489,18 +2465,12 @@ type XChainAssetDetails = {
2489
2465
  * Denomination of this asset to represent fungibility.
2490
2466
  */
2491
2467
  denomination: number;
2492
- /**
2493
- * Type of asset like SECP256K1 or NFT.
2494
- */
2495
- type: string;
2468
+ type: PrimaryNetworkAssetType;
2496
2469
  /**
2497
2470
  * Timestamp in seconds this asset was created on.
2498
2471
  */
2499
2472
  createdAtTimestamp: number;
2500
- /**
2501
- * Cap represents if an asset can be or is fixed cap.
2502
- */
2503
- cap: string;
2473
+ cap: PrimaryNetworkAssetCap;
2504
2474
  };
2505
2475
 
2506
2476
  declare enum XChainId {
@@ -2566,19 +2536,19 @@ declare class PrimaryNetworkService {
2566
2536
  * @returns ListBlockchainsResponse
2567
2537
  * @throws ApiError
2568
2538
  */
2569
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2539
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2570
2540
  /**
2571
2541
  * Either mainnet or a testnet.
2572
2542
  */
2573
2543
  network: Network;
2574
- /**
2575
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2576
- */
2577
- pageSize?: number;
2578
2544
  /**
2579
2545
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2580
2546
  */
2581
2547
  pageToken?: string;
2548
+ /**
2549
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2550
+ */
2551
+ pageSize?: number;
2582
2552
  /**
2583
2553
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2584
2554
  */
@@ -2590,19 +2560,19 @@ declare class PrimaryNetworkService {
2590
2560
  * @returns ListSubnetsResponse
2591
2561
  * @throws ApiError
2592
2562
  */
2593
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2563
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2594
2564
  /**
2595
2565
  * Either mainnet or a testnet.
2596
2566
  */
2597
2567
  network: Network;
2598
- /**
2599
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2600
- */
2601
- pageSize?: number;
2602
2568
  /**
2603
2569
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2604
2570
  */
2605
2571
  pageToken?: string;
2572
+ /**
2573
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2574
+ */
2575
+ pageSize?: number;
2606
2576
  /**
2607
2577
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2608
2578
  */
@@ -2614,59 +2584,59 @@ declare class PrimaryNetworkService {
2614
2584
  * @returns ListValidatorDetailsResponse
2615
2585
  * @throws ApiError
2616
2586
  */
2617
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2587
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2618
2588
  /**
2619
2589
  * Either mainnet or a testnet.
2620
2590
  */
2621
2591
  network: Network;
2592
+ /**
2593
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2594
+ */
2595
+ pageToken?: string;
2622
2596
  /**
2623
2597
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2624
2598
  */
2625
2599
  pageSize?: number;
2626
2600
  /**
2627
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2601
+ * A comma separated list of node ids to filter by.
2628
2602
  */
2629
- pageToken?: string;
2603
+ nodeIds?: string;
2630
2604
  /**
2631
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2605
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2632
2606
  */
2633
- minTimeRemaining?: any;
2607
+ sortOrder?: SortOrder;
2634
2608
  /**
2635
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2609
+ * Validation status of the node.
2636
2610
  */
2637
- maxTimeRemaining?: any;
2611
+ validationStatus?: ValidationStatusType;
2638
2612
  /**
2639
2613
  * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2640
2614
  */
2641
- minDelegationCapacity?: number;
2615
+ minDelegationCapacity?: string;
2642
2616
  /**
2643
2617
  * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2644
2618
  */
2645
- maxDelegationCapacity?: number;
2646
- /**
2647
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2648
- */
2649
- minFeePercentage?: any;
2619
+ maxDelegationCapacity?: string;
2650
2620
  /**
2651
- * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2621
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2652
2622
  */
2653
- maxFeePercentage?: any;
2623
+ minTimeRemaining?: number;
2654
2624
  /**
2655
- * A comma separated list of node ids to filter by.
2625
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2656
2626
  */
2657
- nodeIds?: string;
2627
+ maxTimeRemaining?: number;
2658
2628
  /**
2659
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2629
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2660
2630
  */
2661
- sortOrder?: SortOrder;
2631
+ minFeePercentage?: number;
2662
2632
  /**
2663
- * Validation status of the node.
2633
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2664
2634
  */
2665
- validationStatus?: ValidationStatusType;
2635
+ maxFeePercentage?: number;
2666
2636
  /**
2667
2637
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2668
2638
  */
2669
- subnetId?: string;
2639
+ subnetId?: any;
2670
2640
  }): CancelablePromise<ListValidatorDetailsResponse>;
2671
2641
  /**
2672
2642
  * Get single validator details
@@ -2674,7 +2644,7 @@ declare class PrimaryNetworkService {
2674
2644
  * @returns ListValidatorDetailsResponse
2675
2645
  * @throws ApiError
2676
2646
  */
2677
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2647
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2678
2648
  /**
2679
2649
  * Either mainnet or a testnet.
2680
2650
  */
@@ -2683,14 +2653,14 @@ declare class PrimaryNetworkService {
2683
2653
  * A primary network (P or X chain) nodeId.
2684
2654
  */
2685
2655
  nodeId: string;
2686
- /**
2687
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2688
- */
2689
- pageSize?: number;
2690
2656
  /**
2691
2657
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2692
2658
  */
2693
2659
  pageToken?: string;
2660
+ /**
2661
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2662
+ */
2663
+ pageSize?: number;
2694
2664
  /**
2695
2665
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2696
2666
  */
@@ -2706,19 +2676,19 @@ declare class PrimaryNetworkService {
2706
2676
  * @returns ListDelegatorDetailsResponse
2707
2677
  * @throws ApiError
2708
2678
  */
2709
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2679
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2710
2680
  /**
2711
2681
  * Either mainnet or a testnet.
2712
2682
  */
2713
2683
  network: Network;
2714
- /**
2715
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2716
- */
2717
- pageSize?: number;
2718
2684
  /**
2719
2685
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2720
2686
  */
2721
2687
  pageToken?: string;
2688
+ /**
2689
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2690
+ */
2691
+ pageSize?: number;
2722
2692
  /**
2723
2693
  * A comma separated list of reward addresses to filter by.
2724
2694
  */
@@ -2766,10 +2736,7 @@ type CChainSharedAssetBalance = {
2766
2736
  * Denomination of this asset to represent fungibility.
2767
2737
  */
2768
2738
  denomination: number;
2769
- /**
2770
- * Type of asset like SECP256K1 or NFT.
2771
- */
2772
- type: string;
2739
+ type: PrimaryNetworkAssetType;
2773
2740
  /**
2774
2741
  * Amount of the asset.
2775
2742
  */
@@ -2804,49 +2771,89 @@ type ListCChainAtomicBalancesResponse = {
2804
2771
  chainInfo: PrimaryNetworkChainInfo;
2805
2772
  };
2806
2773
 
2807
- type PChainAsset = {
2774
+ type AggregatedAssetAmount = {
2775
+ /**
2776
+ * Unique ID for an asset.
2777
+ */
2808
2778
  assetId: string;
2779
+ /**
2780
+ * Name of this asset.
2781
+ */
2782
+ name: string;
2783
+ /**
2784
+ * Symbol for this asset (max 4 characters).
2785
+ */
2786
+ symbol: string;
2787
+ /**
2788
+ * Denomination of this asset to represent fungibility.
2789
+ */
2790
+ denomination: number;
2791
+ type: PrimaryNetworkAssetType;
2792
+ /**
2793
+ * Amount of the asset.
2794
+ */
2809
2795
  amount: string;
2796
+ utxoCount: number;
2810
2797
  };
2811
2798
 
2812
2799
  type PChainSharedAsset = {
2800
+ /**
2801
+ * Unique ID for an asset.
2802
+ */
2813
2803
  assetId: string;
2804
+ /**
2805
+ * Name of this asset.
2806
+ */
2807
+ name: string;
2808
+ /**
2809
+ * Symbol for this asset (max 4 characters).
2810
+ */
2811
+ symbol: string;
2812
+ /**
2813
+ * Denomination of this asset to represent fungibility.
2814
+ */
2815
+ denomination: number;
2816
+ type: PrimaryNetworkAssetType;
2817
+ /**
2818
+ * Amount of the asset.
2819
+ */
2814
2820
  amount: string;
2821
+ utxoCount: number;
2815
2822
  sharedWithChainId: string;
2816
2823
  status: string;
2817
2824
  };
2818
2825
 
2819
2826
  type PChainBalance = {
2820
2827
  /**
2821
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2828
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2822
2829
  */
2823
- unlockedUnstaked: Array<PChainAsset>;
2830
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2824
2831
  /**
2825
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2832
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2826
2833
  */
2827
- unlockedStaked: Array<PChainAsset>;
2834
+ unlockedStaked: Array<AggregatedAssetAmount>;
2828
2835
  /**
2829
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2836
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2830
2837
  */
2831
- lockedPlatform: Array<PChainAsset>;
2838
+ lockedPlatform: Array<AggregatedAssetAmount>;
2832
2839
  /**
2833
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2840
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2834
2841
  */
2835
- lockedStakeable: Array<PChainAsset>;
2842
+ lockedStakeable: Array<AggregatedAssetAmount>;
2836
2843
  /**
2837
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2844
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2838
2845
  */
2839
- lockedStaked: Array<PChainAsset>;
2846
+ lockedStaked: Array<AggregatedAssetAmount>;
2840
2847
  /**
2841
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2848
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2842
2849
  */
2843
- pendingStaked: Array<PChainAsset>;
2850
+ pendingStaked: Array<AggregatedAssetAmount>;
2844
2851
  /**
2845
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2852
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2846
2853
  */
2847
2854
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2848
2855
  /**
2849
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2856
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2850
2857
  */
2851
2858
  atomicMemoryLocked: Array<PChainSharedAsset>;
2852
2859
  };
@@ -2856,34 +2863,6 @@ type ListPChainBalancesResponse = {
2856
2863
  chainInfo: PrimaryNetworkChainInfo;
2857
2864
  };
2858
2865
 
2859
- type XChainAssetBalance = {
2860
- /**
2861
- * Unique ID for an asset.
2862
- */
2863
- assetId: string;
2864
- /**
2865
- * Name of this asset.
2866
- */
2867
- name: string;
2868
- /**
2869
- * Symbol for this asset (max 4 characters).
2870
- */
2871
- symbol: string;
2872
- /**
2873
- * Denomination of this asset to represent fungibility.
2874
- */
2875
- denomination: number;
2876
- /**
2877
- * Type of asset like SECP256K1 or NFT.
2878
- */
2879
- type: string;
2880
- /**
2881
- * Amount of the asset.
2882
- */
2883
- amount: string;
2884
- utxoCount: number;
2885
- };
2886
-
2887
2866
  type XChainSharedAssetBalance = {
2888
2867
  /**
2889
2868
  * Unique ID for an asset.
@@ -2901,10 +2880,7 @@ type XChainSharedAssetBalance = {
2901
2880
  * Denomination of this asset to represent fungibility.
2902
2881
  */
2903
2882
  denomination: number;
2904
- /**
2905
- * Type of asset like SECP256K1 or NFT.
2906
- */
2907
- type: string;
2883
+ type: PrimaryNetworkAssetType;
2908
2884
  /**
2909
2885
  * Amount of the asset.
2910
2886
  */
@@ -2917,11 +2893,11 @@ type XChainBalances = {
2917
2893
  /**
2918
2894
  * A list of objects containing X-chain Asset balance information.
2919
2895
  */
2920
- locked: Array<XChainAssetBalance>;
2896
+ locked: Array<AggregatedAssetAmount>;
2921
2897
  /**
2922
2898
  * A list of objects containing X-chain Asset balance information.
2923
2899
  */
2924
- unlocked: Array<XChainAssetBalance>;
2900
+ unlocked: Array<AggregatedAssetAmount>;
2925
2901
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2926
2902
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2927
2903
  };
@@ -3034,7 +3010,7 @@ declare class PrimaryNetworkBlocksService {
3034
3010
  * @returns ListPrimaryNetworkBlocksResponse
3035
3011
  * @throws ApiError
3036
3012
  */
3037
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3013
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3038
3014
  /**
3039
3015
  * A primary network blockchain id or alias.
3040
3016
  */
@@ -3047,14 +3023,14 @@ declare class PrimaryNetworkBlocksService {
3047
3023
  * A primary network (P or X chain) nodeId.
3048
3024
  */
3049
3025
  nodeId: string;
3050
- /**
3051
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3052
- */
3053
- pageSize?: number;
3054
3026
  /**
3055
3027
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3056
3028
  */
3057
3029
  pageToken?: string;
3030
+ /**
3031
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3032
+ */
3033
+ pageSize?: number;
3058
3034
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3059
3035
  /**
3060
3036
  * List latest blocks
@@ -3062,7 +3038,7 @@ declare class PrimaryNetworkBlocksService {
3062
3038
  * @returns ListPrimaryNetworkBlocksResponse
3063
3039
  * @throws ApiError
3064
3040
  */
3065
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3041
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3066
3042
  /**
3067
3043
  * A primary network blockchain id or alias.
3068
3044
  */
@@ -3071,17 +3047,45 @@ declare class PrimaryNetworkBlocksService {
3071
3047
  * Either mainnet or a testnet.
3072
3048
  */
3073
3049
  network: Network;
3074
- /**
3075
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3076
- */
3077
- pageSize?: number;
3078
3050
  /**
3079
3051
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3080
3052
  */
3081
3053
  pageToken?: string;
3054
+ /**
3055
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3056
+ */
3057
+ pageSize?: number;
3082
3058
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3083
3059
  }
3084
3060
 
3061
+ type AssetWithPriceInfo = {
3062
+ /**
3063
+ * Unique ID for an asset.
3064
+ */
3065
+ assetId: string;
3066
+ /**
3067
+ * Name of this asset.
3068
+ */
3069
+ name: string;
3070
+ /**
3071
+ * Symbol for this asset (max 4 characters).
3072
+ */
3073
+ symbol: string;
3074
+ /**
3075
+ * Denomination of this asset to represent fungibility.
3076
+ */
3077
+ denomination: number;
3078
+ type: PrimaryNetworkAssetType;
3079
+ /**
3080
+ * Amount of the asset.
3081
+ */
3082
+ amount: string;
3083
+ /**
3084
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3085
+ */
3086
+ historicalPrice?: Money;
3087
+ };
3088
+
3085
3089
  declare enum RewardType {
3086
3090
  VALIDATOR = "VALIDATOR",
3087
3091
  DELEGATOR = "DELEGATOR",
@@ -3101,10 +3105,7 @@ type HistoricalReward = {
3101
3105
  rewardType: RewardType;
3102
3106
  utxoId: string;
3103
3107
  outputIndex: number;
3104
- /**
3105
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3106
- */
3107
- reward: PChainAsset;
3108
+ reward: AssetWithPriceInfo;
3108
3109
  rewardTxHash: string;
3109
3110
  };
3110
3111
 
@@ -3116,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
3116
3117
  historicalRewards: Array<HistoricalReward>;
3117
3118
  };
3118
3119
 
3120
+ type AssetAmount = {
3121
+ /**
3122
+ * Unique ID for an asset.
3123
+ */
3124
+ assetId: string;
3125
+ /**
3126
+ * Name of this asset.
3127
+ */
3128
+ name: string;
3129
+ /**
3130
+ * Symbol for this asset (max 4 characters).
3131
+ */
3132
+ symbol: string;
3133
+ /**
3134
+ * Denomination of this asset to represent fungibility.
3135
+ */
3136
+ denomination: number;
3137
+ type: PrimaryNetworkAssetType;
3138
+ /**
3139
+ * Amount of the asset.
3140
+ */
3141
+ amount: string;
3142
+ };
3143
+
3119
3144
  type PendingReward = {
3120
3145
  /**
3121
3146
  * An array of P-Chain wallet addresses.
@@ -3129,9 +3154,9 @@ type PendingReward = {
3129
3154
  rewardType: RewardType;
3130
3155
  progress: number;
3131
3156
  /**
3132
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3157
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3133
3158
  */
3134
- estimatedReward: PChainAsset;
3159
+ estimatedReward: AssetAmount;
3135
3160
  };
3136
3161
 
3137
3162
  type ListPendingRewardsResponse = {
@@ -3151,25 +3176,25 @@ declare class PrimaryNetworkRewardsService {
3151
3176
  * @returns ListPendingRewardsResponse
3152
3177
  * @throws ApiError
3153
3178
  */
3154
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3179
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3155
3180
  /**
3156
3181
  * Either mainnet or a testnet.
3157
3182
  */
3158
3183
  network: Network;
3159
3184
  /**
3160
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3185
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
3161
3186
  */
3162
3187
  addresses?: string;
3163
- /**
3164
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3165
- */
3166
- pageSize?: number;
3167
3188
  /**
3168
3189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3169
3190
  */
3170
3191
  pageToken?: string;
3171
3192
  /**
3172
- * A comma separated list of node ids to filter by.
3193
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3194
+ */
3195
+ pageSize?: number;
3196
+ /**
3197
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3173
3198
  */
3174
3199
  nodeIds?: string;
3175
3200
  /**
@@ -3183,81 +3208,58 @@ declare class PrimaryNetworkRewardsService {
3183
3208
  * @returns ListHistoricalRewardsResponse
3184
3209
  * @throws ApiError
3185
3210
  */
3186
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3211
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3187
3212
  /**
3188
3213
  * Either mainnet or a testnet.
3189
3214
  */
3190
3215
  network: Network;
3191
3216
  /**
3192
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3217
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3193
3218
  */
3194
3219
  addresses?: string;
3195
- /**
3196
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3197
- */
3198
- pageSize?: number;
3199
3220
  /**
3200
3221
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3201
3222
  */
3202
3223
  pageToken?: string;
3203
3224
  /**
3204
- * A comma separated list of node ids to filter by.
3225
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3226
+ */
3227
+ pageSize?: number;
3228
+ /**
3229
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3205
3230
  */
3206
3231
  nodeIds?: string;
3207
3232
  /**
3208
3233
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3209
3234
  */
3210
3235
  sortOrder?: SortOrder;
3236
+ /**
3237
+ * The currency that return values should use. Defaults to USD.
3238
+ */
3239
+ currency?: CurrencyCode;
3211
3240
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3212
3241
  }
3213
3242
 
3214
- type Asset = {
3243
+ type UtxoCredential = {
3215
3244
  /**
3216
- * Unique ID for an asset.
3245
+ * Signature provided to consume the output.
3217
3246
  */
3218
- assetId: string;
3247
+ signature?: string;
3219
3248
  /**
3220
- * Name of this asset.
3249
+ * Public key associated with the signature.
3221
3250
  */
3222
- name: string;
3251
+ publicKey?: string;
3252
+ };
3253
+
3254
+ type EVMInput = {
3223
3255
  /**
3224
- * Symbol for this asset (max 4 characters).
3225
- */
3226
- symbol: string;
3227
- /**
3228
- * Denomination of this asset to represent fungibility.
3229
- */
3230
- denomination: number;
3231
- /**
3232
- * Type of asset like SECP256K1 or NFT.
3233
- */
3234
- type: string;
3235
- /**
3236
- * Amount of the asset.
3237
- */
3238
- amount: string;
3239
- };
3240
-
3241
- type UtxoCredential = {
3242
- /**
3243
- * Signature provided to consume the output
3244
- */
3245
- signature?: string;
3246
- /**
3247
- * Public key associated with the signature
3248
- */
3249
- publicKey?: string;
3250
- };
3251
-
3252
- type EVMInput = {
3253
- /**
3254
- * EVM address from which the asset is exported in ExportTx.
3256
+ * EVM address from which the asset is exported in ExportTx.
3255
3257
  */
3256
3258
  fromAddress: string;
3257
3259
  /**
3258
- * Asset details for the asset being transferred.
3260
+ * AssetAmount details for the asset being transferred.
3259
3261
  */
3260
- asset: Asset;
3262
+ asset: AssetAmount;
3261
3263
  /**
3262
3264
  * Credentials that signed this transaction.
3263
3265
  */
@@ -3266,66 +3268,66 @@ type EVMInput = {
3266
3268
 
3267
3269
  type Utxo = {
3268
3270
  /**
3269
- * UTXO ID for this output.
3271
+ * Addresses that are eligible to sign the consumption of this output.
3270
3272
  */
3271
- utxoId: string;
3272
- asset: Asset;
3273
+ addresses: Array<string>;
3274
+ asset: AssetAmount;
3273
3275
  /**
3274
- * Type of output.
3276
+ * Blockchain ID on which this output is consumed on.
3275
3277
  */
3276
- utxoType: string;
3278
+ consumedOnChainId: string;
3277
3279
  /**
3278
- * Blockchain ID on which this output is created on.
3280
+ * Transaction ID that consumed this output.
3279
3281
  */
3280
- createdOnChainId: string;
3282
+ consumingTxHash?: string;
3281
3283
  /**
3282
- * Blockchain ID on which this output is consumed on.
3284
+ * Blockchain ID on which this output is created on.
3283
3285
  */
3284
- consumedOnChainId: string;
3286
+ createdOnChainId: string;
3285
3287
  /**
3286
- * Transaction ID that created this output.
3288
+ * UTXO ID for this output.
3287
3289
  */
3288
- creationTxHash: string;
3290
+ utxoId: string;
3289
3291
  /**
3290
- * Transaction ID that consumed this output.
3292
+ * Unix timestamp in seconds at which this output was consumed.
3291
3293
  */
3292
- consumingTxHash?: string;
3294
+ consumingTxTimestamp?: number;
3293
3295
  /**
3294
- * Timestamp in seconds this output is consumed.
3296
+ * Transaction ID that created this output.
3295
3297
  */
3296
- consumingTxTimestamp?: number;
3298
+ creationTxHash: string;
3297
3299
  /**
3298
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3300
+ * Credentials that signed the transaction to consume this utxo
3299
3301
  */
3300
- outputIndex: string;
3302
+ credentials?: Array<UtxoCredential>;
3301
3303
  /**
3302
- * Timestamp in seconds this outptut is created on.
3304
+ * Index representing the minting set for the NFT mint output.
3303
3305
  */
3304
- timestamp: number;
3306
+ groupId?: number;
3305
3307
  /**
3306
3308
  * Locktime in seconds after which this output can be consumed.
3307
3309
  */
3308
3310
  locktime: number;
3309
3311
  /**
3310
- * Minimum number of signatures required to consume this output.
3312
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3311
3313
  */
3312
- threshold: number;
3314
+ outputIndex: string;
3313
3315
  /**
3314
- * Addresses that are eligible to sign the consumption of this output.
3316
+ * Hex encoded data for NFT assets.
3315
3317
  */
3316
- addresses: Array<string>;
3318
+ payload?: string;
3317
3319
  /**
3318
- * Hex encoded data for NFT assets
3320
+ * Minimum number of signatures required to consume this output.
3319
3321
  */
3320
- payload?: string;
3322
+ threshold: number;
3321
3323
  /**
3322
- * Index representing the minting set for the NFT mint output
3324
+ * Unix timestamp in seconds at which this outptut was created.
3323
3325
  */
3324
- groupId?: number;
3326
+ timestamp: number;
3325
3327
  /**
3326
- * Credentials that signed the transaction to consume this utxo
3328
+ * Type of output.
3327
3329
  */
3328
- credentials?: Array<UtxoCredential>;
3330
+ utxoType: string;
3329
3331
  };
3330
3332
 
3331
3333
  type CChainExportTransaction = {
@@ -3352,11 +3354,11 @@ type CChainExportTransaction = {
3352
3354
  /**
3353
3355
  * Assets unlocked by inputs of this transaction.
3354
3356
  */
3355
- amountUnlocked: Array<Asset>;
3357
+ amountUnlocked: Array<AssetAmount>;
3356
3358
  /**
3357
3359
  * Assets created by outputs of this transaction.
3358
3360
  */
3359
- amountCreated: Array<Asset>;
3361
+ amountCreated: Array<AssetAmount>;
3360
3362
  /**
3361
3363
  * Source chain for an atomic transaction.
3362
3364
  */
@@ -3387,9 +3389,9 @@ type EVMOutput = {
3387
3389
  */
3388
3390
  toAddress: string;
3389
3391
  /**
3390
- * Asset details for the asset being transferred.
3392
+ * AssetAmount details for the asset being transferred.
3391
3393
  */
3392
- asset: Asset;
3394
+ asset: AssetAmount;
3393
3395
  };
3394
3396
 
3395
3397
  type CChainImportTransaction = {
@@ -3416,11 +3418,11 @@ type CChainImportTransaction = {
3416
3418
  /**
3417
3419
  * Assets unlocked by inputs of this transaction.
3418
3420
  */
3419
- amountUnlocked: Array<Asset>;
3421
+ amountUnlocked: Array<AssetAmount>;
3420
3422
  /**
3421
3423
  * Assets created by outputs of this transaction.
3422
3424
  */
3423
- amountCreated: Array<Asset>;
3425
+ amountCreated: Array<AssetAmount>;
3424
3426
  /**
3425
3427
  * Source chain for an atomic transaction.
3426
3428
  */
@@ -3456,17 +3458,20 @@ type ListCChainAtomicTransactionsResponse = {
3456
3458
 
3457
3459
  declare enum PChainTransactionType {
3458
3460
  ADD_VALIDATOR_TX = "AddValidatorTx",
3459
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3460
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3462
3461
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3463
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3464
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3462
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3465
3463
  CREATE_CHAIN_TX = "CreateChainTx",
3466
3464
  CREATE_SUBNET_TX = "CreateSubnetTx",
3467
3465
  IMPORT_TX = "ImportTx",
3468
3466
  EXPORT_TX = "ExportTx",
3469
3467
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3468
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3469
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3470
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3471
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
+ BASE_TX = "BaseTx",
3474
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3470
3475
  UNKNOWN = "UNKNOWN"
3471
3476
  }
3472
3477
 
@@ -3477,29 +3482,48 @@ declare enum UtxoType {
3477
3482
 
3478
3483
  type PChainUtxo = {
3479
3484
  /**
3480
- * An array of P-Chain wallet addresses.
3485
+ * Addresses that are eligible to sign the consumption of this output.
3481
3486
  */
3482
3487
  addresses: Array<string>;
3488
+ asset: AssetAmount;
3489
+ /**
3490
+ * Blockchain ID on which this output is consumed on.
3491
+ */
3492
+ consumedOnChainId: string;
3493
+ /**
3494
+ * Transaction ID that consumed this output.
3495
+ */
3496
+ consumingTxHash?: string;
3497
+ /**
3498
+ * Blockchain ID on which this output is created on.
3499
+ */
3500
+ createdOnChainId: string;
3501
+ /**
3502
+ * UTXO ID for this output.
3503
+ */
3483
3504
  utxoId: string;
3484
- txHash: string;
3485
- outputIndex: number;
3505
+ /**
3506
+ * @deprecated
3507
+ */
3508
+ amount: string;
3509
+ /**
3510
+ * @deprecated
3511
+ */
3512
+ assetId: string;
3486
3513
  blockNumber: string;
3487
3514
  blockTimestamp: number;
3488
- consumingTxHash?: string;
3489
- consumingBlockTimestamp?: number;
3490
3515
  consumingBlockNumber?: string;
3491
- assetId: string;
3492
- utxoType: UtxoType;
3493
- amount: string;
3494
- stakeableLocktime?: number;
3516
+ consumingBlockTimestamp?: number;
3495
3517
  platformLocktime?: number;
3496
- threshold?: number;
3497
- createdOnChainId: string;
3498
- consumedOnChainId: string;
3518
+ outputIndex: number;
3519
+ rewardType?: RewardType;
3520
+ stakeableLocktime?: number;
3499
3521
  staked?: boolean;
3500
- utxoStartTimestamp?: number;
3522
+ threshold?: number;
3523
+ txHash: string;
3501
3524
  utxoEndTimestamp?: number;
3502
- rewardType?: RewardType;
3525
+ utxoStartTimestamp?: number;
3526
+ utxoType: UtxoType;
3503
3527
  };
3504
3528
 
3505
3529
  type PChainTransaction = {
@@ -3525,17 +3549,17 @@ type PChainTransaction = {
3525
3549
  */
3526
3550
  destinationChain?: string;
3527
3551
  /**
3528
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3552
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3529
3553
  */
3530
- value: Array<PChainAsset>;
3554
+ value: Array<AssetAmount>;
3531
3555
  /**
3532
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3556
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3533
3557
  */
3534
- amountBurned: Array<PChainAsset>;
3558
+ amountBurned: Array<AssetAmount>;
3535
3559
  /**
3536
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3560
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3537
3561
  */
3538
- amountStaked: Array<PChainAsset>;
3562
+ amountStaked: Array<AssetAmount>;
3539
3563
  /**
3540
3564
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3541
3565
  */
@@ -3567,6 +3591,10 @@ type PChainTransaction = {
3567
3591
  * Present for RewardValidatorTx
3568
3592
  */
3569
3593
  stakingTxHash?: string;
3594
+ /**
3595
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3596
+ */
3597
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3570
3598
  };
3571
3599
 
3572
3600
  type ListPChainTransactionsResponse = {
@@ -3578,6 +3606,9 @@ type ListPChainTransactionsResponse = {
3578
3606
  chainInfo: PrimaryNetworkChainInfo;
3579
3607
  };
3580
3608
 
3609
+ /**
3610
+ * Type of transaction.
3611
+ */
3581
3612
  declare enum XChainTransactionType {
3582
3613
  BASE_TX = "BaseTx",
3583
3614
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3600,9 +3631,6 @@ type XChainLinearTransaction = {
3600
3631
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3601
3632
  */
3602
3633
  timestamp: number;
3603
- /**
3604
- * Type of transaction.
3605
- */
3606
3634
  txType: XChainTransactionType;
3607
3635
  /**
3608
3636
  * Hex encoded memo bytes for this transaction.
@@ -3613,11 +3641,11 @@ type XChainLinearTransaction = {
3613
3641
  /**
3614
3642
  * Assets unlocked by inputs of this transaction.
3615
3643
  */
3616
- amountUnlocked: Array<Asset>;
3644
+ amountUnlocked: Array<AssetAmount>;
3617
3645
  /**
3618
3646
  * Assets created by outputs of this transaction.
3619
3647
  */
3620
- amountCreated: Array<Asset>;
3648
+ amountCreated: Array<AssetAmount>;
3621
3649
  /**
3622
3650
  * Source chain for an atomic transaction.
3623
3651
  */
@@ -3627,7 +3655,7 @@ type XChainLinearTransaction = {
3627
3655
  */
3628
3656
  destinationChain?: string;
3629
3657
  /**
3630
- * Asset details of the asset created in CreateAssetTx
3658
+ * AssetAmount details of the asset created in CreateAssetTx
3631
3659
  */
3632
3660
  assetCreated?: XChainAssetDetails;
3633
3661
  /**
@@ -3677,9 +3705,6 @@ type XChainNonLinearTransaction = {
3677
3705
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3678
3706
  */
3679
3707
  timestamp: number;
3680
- /**
3681
- * Type of transaction.
3682
- */
3683
3708
  txType: XChainTransactionType;
3684
3709
  /**
3685
3710
  * Hex encoded memo bytes for this transaction.
@@ -3690,11 +3715,11 @@ type XChainNonLinearTransaction = {
3690
3715
  /**
3691
3716
  * Assets unlocked by inputs of this transaction.
3692
3717
  */
3693
- amountUnlocked: Array<Asset>;
3718
+ amountUnlocked: Array<AssetAmount>;
3694
3719
  /**
3695
3720
  * Assets created by outputs of this transaction.
3696
3721
  */
3697
- amountCreated: Array<Asset>;
3722
+ amountCreated: Array<AssetAmount>;
3698
3723
  /**
3699
3724
  * Source chain for an atomic transaction.
3700
3725
  */
@@ -3704,7 +3729,7 @@ type XChainNonLinearTransaction = {
3704
3729
  */
3705
3730
  destinationChain?: string;
3706
3731
  /**
3707
- * Asset details of the asset created in CreateAssetTx
3732
+ * AssetAmount details of the asset created in CreateAssetTx
3708
3733
  */
3709
3734
  assetCreated?: XChainAssetDetails;
3710
3735
  /**
@@ -3738,19 +3763,21 @@ declare enum PChainId {
3738
3763
 
3739
3764
  declare enum PrimaryNetworkTxType {
3740
3765
  ADD_VALIDATOR_TX = "AddValidatorTx",
3741
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3742
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3744
3766
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3745
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3746
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3767
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3747
3768
  CREATE_CHAIN_TX = "CreateChainTx",
3748
3769
  CREATE_SUBNET_TX = "CreateSubnetTx",
3749
3770
  IMPORT_TX = "ImportTx",
3750
3771
  EXPORT_TX = "ExportTx",
3751
3772
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3752
- UNKNOWN = "UNKNOWN",
3773
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3774
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3775
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3776
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3777
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3753
3778
  BASE_TX = "BaseTx",
3779
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3780
+ UNKNOWN = "UNKNOWN",
3754
3781
  CREATE_ASSET_TX = "CreateAssetTx",
3755
3782
  OPERATION_TX = "OperationTx"
3756
3783
  }
@@ -3782,13 +3809,13 @@ declare class PrimaryNetworkTransactionsService {
3782
3809
  * List latest transactions
3783
3810
  * Lists the latest transactions on one of the Primary Network chains.
3784
3811
  *
3785
- * Transactions are filterable by addresses.
3812
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3786
3813
  *
3787
3814
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3788
3815
  * @returns any
3789
3816
  * @throws ApiError
3790
3817
  */
3791
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3818
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3792
3819
  /**
3793
3820
  * A primary network blockchain id or alias.
3794
3821
  */
@@ -3813,14 +3840,14 @@ declare class PrimaryNetworkTransactionsService {
3813
3840
  * Query param for retrieving items before a specific timestamp.
3814
3841
  */
3815
3842
  endTimestamp?: number;
3816
- /**
3817
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3818
- */
3819
- pageSize?: number;
3820
3843
  /**
3821
3844
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3822
3845
  */
3823
3846
  pageToken?: string;
3847
+ /**
3848
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3849
+ */
3850
+ pageSize?: number;
3824
3851
  /**
3825
3852
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3826
3853
  */
@@ -3832,7 +3859,7 @@ declare class PrimaryNetworkTransactionsService {
3832
3859
  * @returns ListPChainTransactionsResponse
3833
3860
  * @throws ApiError
3834
3861
  */
3835
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3862
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3836
3863
  /**
3837
3864
  * A primary network blockchain id or alias.
3838
3865
  */
@@ -3857,14 +3884,14 @@ declare class PrimaryNetworkTransactionsService {
3857
3884
  * Query param for retrieving items before a specific timestamp.
3858
3885
  */
3859
3886
  endTimestamp?: number;
3860
- /**
3861
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3862
- */
3863
- pageSize?: number;
3864
3887
  /**
3865
3888
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3866
3889
  */
3867
3890
  pageToken?: string;
3891
+ /**
3892
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3893
+ */
3894
+ pageSize?: number;
3868
3895
  /**
3869
3896
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3870
3897
  */
@@ -3876,7 +3903,7 @@ declare class PrimaryNetworkTransactionsService {
3876
3903
  * @returns ListXChainTransactionsResponse
3877
3904
  * @throws ApiError
3878
3905
  */
3879
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3906
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3880
3907
  /**
3881
3908
  * A primary network blockchain id or alias.
3882
3909
  */
@@ -3901,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
3901
3928
  * Query param for retrieving items before a specific timestamp.
3902
3929
  */
3903
3930
  endTimestamp?: number;
3904
- /**
3905
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3906
- */
3907
- pageSize?: number;
3908
3931
  /**
3909
3932
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3910
3933
  */
3911
3934
  pageToken?: string;
3935
+ /**
3936
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3937
+ */
3938
+ pageSize?: number;
3912
3939
  }): CancelablePromise<ListXChainTransactionsResponse>;
3913
3940
  }
3914
3941
 
@@ -3939,7 +3966,7 @@ declare class PrimaryNetworkUtxOsService {
3939
3966
  * @returns any
3940
3967
  * @throws ApiError
3941
3968
  */
3942
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3969
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3943
3970
  /**
3944
3971
  * A primary network blockchain id or alias.
3945
3972
  */
@@ -3952,14 +3979,14 @@ declare class PrimaryNetworkUtxOsService {
3952
3979
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3953
3980
  */
3954
3981
  addresses?: string;
3955
- /**
3956
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3957
- */
3958
- pageSize?: number;
3959
3982
  /**
3960
3983
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3961
3984
  */
3962
3985
  pageToken?: string;
3986
+ /**
3987
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3988
+ */
3989
+ pageSize?: number;
3963
3990
  /**
3964
3991
  * Asset ID for any asset (only applicable X-Chain)
3965
3992
  */
@@ -4004,7 +4031,7 @@ declare class PrimaryNetworkVerticesService {
4004
4031
  * @returns ListXChainVerticesResponse
4005
4032
  * @throws ApiError
4006
4033
  */
4007
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4034
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4008
4035
  /**
4009
4036
  * A primary network blockchain id or alias.
4010
4037
  */
@@ -4013,14 +4040,14 @@ declare class PrimaryNetworkVerticesService {
4013
4040
  * Either mainnet or a testnet.
4014
4041
  */
4015
4042
  network: Network;
4016
- /**
4017
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4018
- */
4019
- pageSize?: number;
4020
4043
  /**
4021
4044
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4022
4045
  */
4023
4046
  pageToken?: string;
4047
+ /**
4048
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4049
+ */
4050
+ pageSize?: number;
4024
4051
  }): CancelablePromise<ListXChainVerticesResponse>;
4025
4052
  /**
4026
4053
  * Get vertex
@@ -4048,7 +4075,7 @@ declare class PrimaryNetworkVerticesService {
4048
4075
  * @returns ListXChainVerticesResponse
4049
4076
  * @throws ApiError
4050
4077
  */
4051
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4078
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4052
4079
  /**
4053
4080
  * The height of a vertex.
4054
4081
  */
@@ -4061,19 +4088,444 @@ declare class PrimaryNetworkVerticesService {
4061
4088
  * Either mainnet or a testnet.
4062
4089
  */
4063
4090
  network: Network;
4091
+ /**
4092
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4093
+ */
4094
+ pageToken?: string;
4064
4095
  /**
4065
4096
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4066
4097
  */
4067
4098
  pageSize?: number;
4099
+ /**
4100
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4101
+ */
4102
+ sortOrder?: SortOrder;
4103
+ }): CancelablePromise<ListXChainVerticesResponse>;
4104
+ }
4105
+
4106
+ type RpcErrorDto = {
4107
+ code: number;
4108
+ message: string;
4109
+ data?: Record<string, any>;
4110
+ };
4111
+
4112
+ type RpcErrorResponseDto = {
4113
+ jsonrpc: string;
4114
+ id?: (string | number);
4115
+ error: RpcErrorDto;
4116
+ };
4117
+
4118
+ type RpcRequestBodyDto = {
4119
+ method: string;
4120
+ params?: Record<string, any>;
4121
+ id?: (string | number);
4122
+ jsonrpc?: string;
4123
+ };
4124
+
4125
+ type RpcSuccessResponseDto = {
4126
+ jsonrpc: string;
4127
+ id?: (string | number);
4128
+ result: Record<string, any>;
4129
+ };
4130
+
4131
+ declare class RpcService {
4132
+ readonly httpRequest: BaseHttpRequest;
4133
+ constructor(httpRequest: BaseHttpRequest);
4134
+ /**
4135
+ * Calls JSON-RPC method
4136
+ * Calls JSON-RPC method.
4137
+ * @returns any
4138
+ * @throws ApiError
4139
+ */
4140
+ rpc({ chainId, requestBody, }: {
4141
+ /**
4142
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4143
+ */
4144
+ chainId: string;
4145
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4146
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4147
+ }
4148
+
4149
+ type TeleporterDestinationTransaction = {
4150
+ txHash: string;
4151
+ timestamp: number;
4152
+ gasSpent: string;
4153
+ rewardRedeemer: string;
4154
+ delivererAddress: string;
4155
+ };
4156
+
4157
+ type TeleporterReceipt = {
4158
+ receivedMessageNonce: string;
4159
+ relayerRewardAddress: string;
4160
+ };
4161
+
4162
+ type TeleporterRewardDetails = {
4163
+ /**
4164
+ * A wallet or contract address in mixed-case checksum encoding.
4165
+ */
4166
+ address: string;
4167
+ /**
4168
+ * The contract name.
4169
+ */
4170
+ name: string;
4171
+ /**
4172
+ * The contract symbol.
4173
+ */
4174
+ symbol: string;
4175
+ /**
4176
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4177
+ */
4178
+ decimals: number;
4179
+ /**
4180
+ * The logo uri for the address.
4181
+ */
4182
+ logoUri?: string;
4183
+ ercType: TeleporterRewardDetails.ercType;
4184
+ /**
4185
+ * The token price, if available.
4186
+ */
4187
+ price?: Money;
4188
+ value: string;
4189
+ };
4190
+ declare namespace TeleporterRewardDetails {
4191
+ enum ercType {
4192
+ ERC_20 = "ERC-20"
4193
+ }
4194
+ }
4195
+
4196
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4197
+ messageId: string;
4198
+ teleporterContractAddress: string;
4199
+ sourceBlockchainId: string;
4200
+ destinationBlockchainId: string;
4201
+ sourceEvmChainId: string;
4202
+ destinationEvmChainId: string;
4203
+ messageNonce: string;
4204
+ from: string;
4205
+ to: string;
4206
+ data?: string;
4207
+ messageExecuted: boolean;
4208
+ receipts: Array<TeleporterReceipt>;
4209
+ receiptDelivered: boolean;
4210
+ rewardDetails: TeleporterRewardDetails;
4211
+ destinationTransaction: TeleporterDestinationTransaction;
4212
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4213
+ };
4214
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4215
+ enum status {
4216
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4217
+ }
4218
+ }
4219
+
4220
+ type TeleporterSourceTransaction = {
4221
+ txHash: string;
4222
+ timestamp: number;
4223
+ gasSpent: string;
4224
+ };
4225
+
4226
+ type DeliveredTeleporterMessage = {
4227
+ messageId: string;
4228
+ teleporterContractAddress: string;
4229
+ sourceBlockchainId: string;
4230
+ destinationBlockchainId: string;
4231
+ sourceEvmChainId: string;
4232
+ destinationEvmChainId: string;
4233
+ messageNonce: string;
4234
+ from: string;
4235
+ to: string;
4236
+ data?: string;
4237
+ messageExecuted: boolean;
4238
+ receipts: Array<TeleporterReceipt>;
4239
+ receiptDelivered: boolean;
4240
+ rewardDetails: TeleporterRewardDetails;
4241
+ sourceTransaction: TeleporterSourceTransaction;
4242
+ destinationTransaction: TeleporterDestinationTransaction;
4243
+ status: DeliveredTeleporterMessage.status;
4244
+ };
4245
+ declare namespace DeliveredTeleporterMessage {
4246
+ enum status {
4247
+ DELIVERED = "delivered"
4248
+ }
4249
+ }
4250
+
4251
+ type PendingTeleporterMessage = {
4252
+ messageId: string;
4253
+ teleporterContractAddress: string;
4254
+ sourceBlockchainId: string;
4255
+ destinationBlockchainId: string;
4256
+ sourceEvmChainId: string;
4257
+ destinationEvmChainId: string;
4258
+ messageNonce: string;
4259
+ from: string;
4260
+ to: string;
4261
+ data?: string;
4262
+ messageExecuted: boolean;
4263
+ receipts: Array<TeleporterReceipt>;
4264
+ receiptDelivered: boolean;
4265
+ rewardDetails: TeleporterRewardDetails;
4266
+ sourceTransaction: TeleporterSourceTransaction;
4267
+ status: PendingTeleporterMessage.status;
4268
+ };
4269
+ declare namespace PendingTeleporterMessage {
4270
+ enum status {
4271
+ PENDING = "pending"
4272
+ }
4273
+ }
4274
+
4275
+ type ListTeleporterMessagesResponse = {
4276
+ /**
4277
+ * 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.
4278
+ */
4279
+ nextPageToken?: string;
4280
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4281
+ };
4282
+
4283
+ declare class TeleporterService {
4284
+ readonly httpRequest: BaseHttpRequest;
4285
+ constructor(httpRequest: BaseHttpRequest);
4286
+ /**
4287
+ * Get a teleporter message
4288
+ * Gets a teleporter message by message ID.
4289
+ * @returns any
4290
+ * @throws ApiError
4291
+ */
4292
+ getTeleporterMessage({ messageId, }: {
4293
+ /**
4294
+ * The message ID of the teleporter message.
4295
+ */
4296
+ messageId: string;
4297
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4298
+ /**
4299
+ * List teleporter messages
4300
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4301
+ * @returns ListTeleporterMessagesResponse
4302
+ * @throws ApiError
4303
+ */
4304
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4068
4305
  /**
4069
4306
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4070
4307
  */
4071
4308
  pageToken?: string;
4072
4309
  /**
4073
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4310
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4074
4311
  */
4075
- sortOrder?: SortOrder;
4076
- }): CancelablePromise<ListXChainVerticesResponse>;
4312
+ pageSize?: number;
4313
+ /**
4314
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4315
+ */
4316
+ sourceBlockchainId?: string;
4317
+ /**
4318
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4319
+ */
4320
+ destinationBlockchainId?: string;
4321
+ /**
4322
+ * The address of the recipient of the teleporter message.
4323
+ */
4324
+ to?: string;
4325
+ /**
4326
+ * The address of the sender of the teleporter message.
4327
+ */
4328
+ from?: string;
4329
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4330
+ }
4331
+
4332
+ type AddressesChangeRequest = {
4333
+ /**
4334
+ * Ethereum address(es) for the address_activity event type
4335
+ */
4336
+ addresses: Array<any[]>;
4337
+ };
4338
+
4339
+ type AddressActivityMetadata = {
4340
+ /**
4341
+ * Ethereum address(es) for the address_activity event type
4342
+ */
4343
+ addresses: Array<any[]>;
4344
+ /**
4345
+ * Array of hexadecimal strings of the event signatures.
4346
+ */
4347
+ eventSignatures?: Array<string>;
4348
+ };
4349
+
4350
+ declare enum EventType {
4351
+ ADDRESS_ACTIVITY = "address_activity"
4352
+ }
4353
+
4354
+ declare enum WebhookStatusType {
4355
+ ACTIVE = "active",
4356
+ INACTIVE = "inactive"
4357
+ }
4358
+
4359
+ type WebhookResponse = {
4360
+ id: string;
4361
+ eventType: EventType;
4362
+ metadata: AddressActivityMetadata;
4363
+ /**
4364
+ * Whether to include traces in the webhook payload.
4365
+ */
4366
+ includeInternalTxs?: boolean;
4367
+ /**
4368
+ * Whether to include logs in the webhook payload.
4369
+ */
4370
+ includeLogs?: boolean;
4371
+ url: string;
4372
+ chainId: string;
4373
+ status: WebhookStatusType;
4374
+ createdAt: number;
4375
+ name: string;
4376
+ description: string;
4377
+ };
4378
+
4379
+ type ListWebhooksResponse = {
4380
+ /**
4381
+ * 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.
4382
+ */
4383
+ nextPageToken?: string;
4384
+ webhooks: Array<WebhookResponse>;
4385
+ };
4386
+
4387
+ type RegisterWebhookRequest = {
4388
+ url: string;
4389
+ chainId: string;
4390
+ eventType: EventType;
4391
+ metadata: AddressActivityMetadata;
4392
+ /**
4393
+ * Whether to include traces in the webhook payload.
4394
+ */
4395
+ includeInternalTxs?: boolean;
4396
+ /**
4397
+ * Whether to include logs in the webhook payload.
4398
+ */
4399
+ includeLogs?: boolean;
4400
+ };
4401
+
4402
+ type SharedSecretsResponse = {
4403
+ secret: string;
4404
+ };
4405
+
4406
+ type UpdateWebhookRequest = {
4407
+ name?: string;
4408
+ description?: string;
4409
+ url?: string;
4410
+ status?: WebhookStatusType;
4411
+ includeInternalTxs?: boolean;
4412
+ includeLogs?: boolean;
4413
+ };
4414
+
4415
+ declare enum WebhookStatus {
4416
+ ACTIVE = "active",
4417
+ INACTIVE = "inactive"
4418
+ }
4419
+
4420
+ declare class WebhooksService {
4421
+ readonly httpRequest: BaseHttpRequest;
4422
+ constructor(httpRequest: BaseHttpRequest);
4423
+ /**
4424
+ * Create a webhook
4425
+ * Create a new webhook.
4426
+ * @returns WebhookResponse
4427
+ * @throws ApiError
4428
+ */
4429
+ registerWebhook({ requestBody, }: {
4430
+ requestBody: RegisterWebhookRequest;
4431
+ }): CancelablePromise<WebhookResponse>;
4432
+ /**
4433
+ * List webhooks
4434
+ * Lists webhooks for the user.
4435
+ * @returns ListWebhooksResponse
4436
+ * @throws ApiError
4437
+ */
4438
+ listWebhooks({ pageToken, pageSize, status, }: {
4439
+ /**
4440
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4441
+ */
4442
+ pageToken?: string;
4443
+ /**
4444
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4445
+ */
4446
+ pageSize?: number;
4447
+ /**
4448
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
4449
+ */
4450
+ status?: WebhookStatus;
4451
+ }): CancelablePromise<ListWebhooksResponse>;
4452
+ /**
4453
+ * Get a webhook by ID
4454
+ * Retrieves a webhook by ID.
4455
+ * @returns WebhookResponse
4456
+ * @throws ApiError
4457
+ */
4458
+ getWebhook({ id, }: {
4459
+ /**
4460
+ * The webhook identifier.
4461
+ */
4462
+ id: string;
4463
+ }): CancelablePromise<WebhookResponse>;
4464
+ /**
4465
+ * Deactivate a webhook
4466
+ * Deactivates a webhook by ID.
4467
+ * @returns WebhookResponse
4468
+ * @throws ApiError
4469
+ */
4470
+ deactivateWebhook({ id, }: {
4471
+ /**
4472
+ * The webhook identifier.
4473
+ */
4474
+ id: string;
4475
+ }): CancelablePromise<WebhookResponse>;
4476
+ /**
4477
+ * Update a webhook
4478
+ * Updates an existing webhook.
4479
+ * @returns WebhookResponse
4480
+ * @throws ApiError
4481
+ */
4482
+ updateWebhook({ id, requestBody, }: {
4483
+ /**
4484
+ * The webhook identifier.
4485
+ */
4486
+ id: string;
4487
+ requestBody: UpdateWebhookRequest;
4488
+ }): CancelablePromise<WebhookResponse>;
4489
+ /**
4490
+ * Generate a shared secret
4491
+ * Generates a new shared secret.
4492
+ * @returns SharedSecretsResponse
4493
+ * @throws ApiError
4494
+ */
4495
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4496
+ /**
4497
+ * Get a shared secret
4498
+ * Get a previously generated shared secret.
4499
+ * @returns SharedSecretsResponse
4500
+ * @throws ApiError
4501
+ */
4502
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4503
+ /**
4504
+ * Add address(es) to a webhook
4505
+ * Adding address(es) to a given webhook.
4506
+ * @returns WebhookResponse
4507
+ * @throws ApiError
4508
+ */
4509
+ addAddressesToWebhook({ id, requestBody, }: {
4510
+ /**
4511
+ * The webhook identifier.
4512
+ */
4513
+ id: string;
4514
+ requestBody: AddressesChangeRequest;
4515
+ }): CancelablePromise<WebhookResponse>;
4516
+ /**
4517
+ * Remove address(es) from a webhook
4518
+ * Removing address(es) from a given webhook.
4519
+ * @returns WebhookResponse
4520
+ * @throws ApiError
4521
+ */
4522
+ removeAddressesFromWebhook({ id, requestBody, }: {
4523
+ /**
4524
+ * The webhook identifier.
4525
+ */
4526
+ id: string;
4527
+ requestBody: AddressesChangeRequest;
4528
+ }): CancelablePromise<WebhookResponse>;
4077
4529
  }
4078
4530
 
4079
4531
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4094,6 +4546,9 @@ declare class Glacier {
4094
4546
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4095
4547
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4096
4548
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4549
+ readonly rpc: RpcService;
4550
+ readonly teleporter: TeleporterService;
4551
+ readonly webhooks: WebhooksService;
4097
4552
  readonly request: BaseHttpRequest;
4098
4553
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4099
4554
  }
@@ -4115,4 +4570,11 @@ declare class ApiError extends Error {
4115
4570
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4116
4571
  }
4117
4572
 
4118
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, 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, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4573
+ type NextPageToken = {
4574
+ /**
4575
+ * 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.
4576
+ */
4577
+ nextPageToken?: string;
4578
+ };
4579
+
4580
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };