@avalabs/glacier-sdk 2.8.0-canary.54f53e4.0 → 2.8.0-canary.5601e64.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 (91) hide show
  1. package/dist/index.d.ts +455 -358
  2. package/dist/index.js +164 -116
  3. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  4. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  5. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  6. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  7. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  8. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  9. package/esm/generated/models/ChainInfo.d.ts +0 -3
  10. package/esm/generated/models/ChainStatus.d.ts +3 -0
  11. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  12. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  13. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  14. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
  15. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
  16. package/esm/generated/models/EVMInput.d.ts +3 -3
  17. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  18. package/esm/generated/models/EVMOperationType.js +6 -0
  19. package/esm/generated/models/EVMOutput.d.ts +3 -3
  20. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  21. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  22. package/esm/generated/models/GetChainResponse.d.ts +0 -3
  23. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  24. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  25. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  26. package/esm/generated/models/Method.d.ts +0 -3
  27. package/esm/generated/models/Money.d.ts +0 -3
  28. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  29. package/esm/generated/models/OperationType.d.ts +4 -2
  30. package/esm/generated/models/OperationType.js +3 -1
  31. package/esm/generated/models/PChainBalance.d.ts +15 -15
  32. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  33. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  34. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  35. package/esm/generated/models/PChainTransactionType.js +2 -0
  36. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  37. package/esm/generated/models/PendingReward.d.ts +3 -3
  38. package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
  39. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  40. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  41. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  42. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  43. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  44. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  45. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  46. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  47. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
  48. package/esm/generated/models/Subnet.d.ts +17 -0
  49. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  50. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  51. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  52. package/esm/generated/models/UpdateWebhookRequest.d.ts +10 -0
  53. package/esm/generated/models/Utxo.d.ts +2 -2
  54. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  55. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  56. package/esm/generated/models/XChainBalances.d.ts +3 -3
  57. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  58. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  59. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  60. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  61. package/esm/generated/services/DefaultService.d.ts +38 -5
  62. package/esm/generated/services/DefaultService.js +34 -3
  63. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  64. package/esm/generated/services/EvmBalancesService.js +8 -8
  65. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  66. package/esm/generated/services/EvmBlocksService.js +4 -4
  67. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  68. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  69. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  70. package/esm/generated/services/EvmTransactionsService.js +32 -32
  71. package/esm/generated/services/NfTsService.d.ts +8 -8
  72. package/esm/generated/services/NfTsService.js +4 -4
  73. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  74. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  75. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +17 -12
  76. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  77. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
  78. package/esm/generated/services/PrimaryNetworkService.js +11 -11
  79. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  80. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  81. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  82. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  83. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  84. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  85. package/esm/generated/services/TeleporterService.d.ts +14 -22
  86. package/esm/generated/services/TeleporterService.js +4 -8
  87. package/esm/index.d.ts +10 -2
  88. package/esm/index.js +4 -2
  89. package/package.json +2 -2
  90. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  91. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts CHANGED
@@ -88,6 +88,8 @@ type WebhookResponse = {
88
88
  chainId: string;
89
89
  status: WebhookStatusType;
90
90
  createdAt: number;
91
+ name: string;
92
+ description: string;
91
93
  };
92
94
 
93
95
  type ListWebhooksResponse = {
@@ -101,9 +103,6 @@ type ListWebhooksResponse = {
101
103
  type RegisterWebhookRequest = {
102
104
  url: string;
103
105
  chainId: string;
104
- /**
105
- * The type of event for the webhook
106
- */
107
106
  eventType: EventType;
108
107
  metadata: AddressActivityMetadata;
109
108
  };
@@ -112,6 +111,13 @@ type SharedSecretsResponse = {
112
111
  secret: string;
113
112
  };
114
113
 
114
+ type UpdateWebhookRequest = {
115
+ name?: string;
116
+ description?: string;
117
+ url?: string;
118
+ status?: WebhookStatusType;
119
+ };
120
+
115
121
  declare enum WebhookStatus {
116
122
  ACTIVE = "active",
117
123
  INACTIVE = "inactive"
@@ -140,20 +146,32 @@ declare class DefaultService {
140
146
  * @returns ListWebhooksResponse
141
147
  * @throws ApiError
142
148
  */
143
- listWebhooks({ pageSize, pageToken, status, }: {
144
- /**
145
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
146
- */
147
- pageSize?: number;
149
+ listWebhooks({ pageToken, pageSize, status, }: {
148
150
  /**
149
151
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
150
152
  */
151
153
  pageToken?: string;
154
+ /**
155
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
156
+ */
157
+ pageSize?: number;
152
158
  /**
153
159
  * 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.
154
160
  */
155
161
  status?: WebhookStatus;
156
162
  }): CancelablePromise<ListWebhooksResponse>;
163
+ /**
164
+ * Get a webhook by ID
165
+ * Retrieves a webhook by ID.
166
+ * @returns WebhookResponse
167
+ * @throws ApiError
168
+ */
169
+ getWebhook({ id, }: {
170
+ /**
171
+ * The webhook identifier.
172
+ */
173
+ id: string;
174
+ }): CancelablePromise<WebhookResponse>;
157
175
  /**
158
176
  * Deactivate a webhook
159
177
  * Deactivates a webhook by ID.
@@ -166,6 +184,19 @@ declare class DefaultService {
166
184
  */
167
185
  id: string;
168
186
  }): CancelablePromise<WebhookResponse>;
187
+ /**
188
+ * Update a webhook
189
+ * Updates an existing webhook.
190
+ * @returns WebhookResponse
191
+ * @throws ApiError
192
+ */
193
+ updateWebhook({ id, requestBody, }: {
194
+ /**
195
+ * The webhook identifier.
196
+ */
197
+ id: string;
198
+ requestBody: UpdateWebhookRequest;
199
+ }): CancelablePromise<WebhookResponse>;
169
200
  /**
170
201
  * Generate a shared secret
171
202
  * Generates a new shared secret.
@@ -173,8 +204,18 @@ declare class DefaultService {
173
204
  * @throws ApiError
174
205
  */
175
206
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
207
+ /**
208
+ * Get a shared secret
209
+ * Get a previously generated shared secret.
210
+ * @returns SharedSecretsResponse
211
+ * @throws ApiError
212
+ */
213
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
176
214
  }
177
215
 
216
+ /**
217
+ * ISO 4217 currency code.
218
+ */
178
219
  declare enum CurrencyCode {
179
220
  USD = "usd",
180
221
  EUR = "eur",
@@ -193,9 +234,6 @@ declare enum CurrencyCode {
193
234
  }
194
235
 
195
236
  type Money = {
196
- /**
197
- * ISO 4217 currency code.
198
- */
199
237
  currencyCode: CurrencyCode;
200
238
  /**
201
239
  * Monetary value in base 10 decimals.
@@ -245,6 +283,9 @@ type GetNativeBalanceResponse = {
245
283
  nativeTokenBalance: NativeTokenBalance;
246
284
  };
247
285
 
286
+ /**
287
+ * The metadata indexing status of the nft.
288
+ */
248
289
  declare enum NftTokenMetadataStatus {
249
290
  UNKNOWN = "UNKNOWN",
250
291
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -260,9 +301,6 @@ declare enum NftTokenMetadataStatus {
260
301
  }
261
302
 
262
303
  type Erc1155TokenMetadata = {
263
- /**
264
- * The metadata indexing status of the nft.
265
- */
266
304
  indexStatus: NftTokenMetadataStatus;
267
305
  metadataLastUpdatedTimestamp?: number;
268
306
  name?: string;
@@ -301,9 +339,6 @@ declare namespace Erc1155TokenBalance {
301
339
  }
302
340
 
303
341
  type Erc721TokenMetadata = {
304
- /**
305
- * The metadata indexing status of the nft.
306
- */
307
342
  indexStatus: NftTokenMetadataStatus;
308
343
  metadataLastUpdatedTimestamp?: number;
309
344
  name?: string;
@@ -450,7 +485,7 @@ declare class EvmBalancesService {
450
485
  */
451
486
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
452
487
  /**
453
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
488
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
454
489
  */
455
490
  chainId: string;
456
491
  /**
@@ -476,9 +511,9 @@ declare class EvmBalancesService {
476
511
  * @returns ListErc20BalancesResponse
477
512
  * @throws ApiError
478
513
  */
479
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
514
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
480
515
  /**
481
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
516
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
482
517
  */
483
518
  chainId: string;
484
519
  /**
@@ -489,14 +524,14 @@ declare class EvmBalancesService {
489
524
  * The block number, if not defined the block number will be the latest block.
490
525
  */
491
526
  blockNumber?: string;
492
- /**
493
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
494
- */
495
- pageSize?: number;
496
527
  /**
497
528
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
498
529
  */
499
530
  pageToken?: string;
531
+ /**
532
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
533
+ */
534
+ pageSize?: number;
500
535
  /**
501
536
  * A comma separated list of contract addresses to filter by.
502
537
  */
@@ -514,23 +549,23 @@ declare class EvmBalancesService {
514
549
  * @returns ListErc721BalancesResponse
515
550
  * @throws ApiError
516
551
  */
517
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
552
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
518
553
  /**
519
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
554
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
520
555
  */
521
556
  chainId: string;
522
557
  /**
523
558
  * A wallet address.
524
559
  */
525
560
  address: string;
526
- /**
527
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
528
- */
529
- pageSize?: number;
530
561
  /**
531
562
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
532
563
  */
533
564
  pageToken?: string;
565
+ /**
566
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
567
+ */
568
+ pageSize?: number;
534
569
  /**
535
570
  * A contract addresses to filter by.
536
571
  */
@@ -546,9 +581,9 @@ declare class EvmBalancesService {
546
581
  * @returns ListErc1155BalancesResponse
547
582
  * @throws ApiError
548
583
  */
549
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
584
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
550
585
  /**
551
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
586
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
552
587
  */
553
588
  chainId: string;
554
589
  /**
@@ -559,14 +594,14 @@ declare class EvmBalancesService {
559
594
  * The block number, if not defined the block number will be the latest block.
560
595
  */
561
596
  blockNumber?: string;
562
- /**
563
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
564
- */
565
- pageSize?: number;
566
597
  /**
567
598
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
568
599
  */
569
600
  pageToken?: string;
601
+ /**
602
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
603
+ */
604
+ pageSize?: number;
570
605
  /**
571
606
  * A contract addresses to filter by.
572
607
  */
@@ -580,23 +615,23 @@ declare class EvmBalancesService {
580
615
  * @returns ListCollectibleBalancesResponse
581
616
  * @throws ApiError
582
617
  */
583
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
618
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
584
619
  /**
585
- * 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.
586
621
  */
587
622
  chainId: string;
588
623
  /**
589
624
  * A wallet address.
590
625
  */
591
626
  address: string;
592
- /**
593
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
594
- */
595
- pageSize?: number;
596
627
  /**
597
628
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
598
629
  */
599
630
  pageToken?: string;
631
+ /**
632
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
633
+ */
634
+ pageSize?: number;
600
635
  /**
601
636
  * A contract addresses to filter by.
602
637
  */
@@ -709,19 +744,19 @@ declare class EvmBlocksService {
709
744
  * @returns ListEvmBlocksResponse
710
745
  * @throws ApiError
711
746
  */
712
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
747
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
713
748
  /**
714
- * 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.
715
750
  */
716
751
  chainId: string;
717
- /**
718
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
719
- */
720
- pageSize?: number;
721
752
  /**
722
753
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
723
754
  */
724
755
  pageToken?: string;
756
+ /**
757
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
758
+ */
759
+ pageSize?: number;
725
760
  }): CancelablePromise<ListEvmBlocksResponse>;
726
761
  /**
727
762
  * Get block
@@ -731,7 +766,7 @@ declare class EvmBlocksService {
731
766
  */
732
767
  getBlock({ chainId, blockId, }: {
733
768
  /**
734
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
769
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
735
770
  */
736
771
  chainId: string;
737
772
  /**
@@ -741,6 +776,9 @@ declare class EvmBlocksService {
741
776
  }): CancelablePromise<GetEvmBlockResponse>;
742
777
  }
743
778
 
779
+ /**
780
+ * 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.
781
+ */
744
782
  declare enum ChainStatus {
745
783
  OK = "OK",
746
784
  UNAVAILABLE = "UNAVAILABLE"
@@ -778,9 +816,6 @@ declare enum VmName {
778
816
 
779
817
  type GetChainResponse = {
780
818
  chainId: string;
781
- /**
782
- * 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.
783
- */
784
819
  status: ChainStatus;
785
820
  chainName: string;
786
821
  description: string;
@@ -800,9 +835,6 @@ type GetChainResponse = {
800
835
 
801
836
  type ChainInfo = {
802
837
  chainId: string;
803
- /**
804
- * 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.
805
- */
806
838
  status: ChainStatus;
807
839
  chainName: string;
808
840
  description: string;
@@ -852,7 +884,7 @@ declare class EvmChainsService {
852
884
  */
853
885
  getChainInfo({ chainId, }: {
854
886
  /**
855
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
887
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
856
888
  */
857
889
  chainId: string;
858
890
  }): CancelablePromise<GetChainResponse>;
@@ -1147,7 +1179,7 @@ declare class EvmContractsService {
1147
1179
  */
1148
1180
  getContractMetadata({ chainId, address, }: {
1149
1181
  /**
1150
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1182
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1151
1183
  */
1152
1184
  chainId: string;
1153
1185
  /**
@@ -1163,7 +1195,7 @@ declare class EvmContractsService {
1163
1195
  */
1164
1196
  updateContractInfo({ chainId, address, requestBody, }: {
1165
1197
  /**
1166
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1198
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
1199
  */
1168
1200
  chainId: string;
1169
1201
  /**
@@ -1297,6 +1329,9 @@ type Erc721TransferDetails = {
1297
1329
  erc721Token: Erc721Token;
1298
1330
  };
1299
1331
 
1332
+ /**
1333
+ * 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.
1334
+ */
1300
1335
  declare enum TransactionMethodType {
1301
1336
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1302
1337
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1304,9 +1339,6 @@ declare enum TransactionMethodType {
1304
1339
  }
1305
1340
 
1306
1341
  type Method = {
1307
- /**
1308
- * 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.
1309
- */
1310
1342
  callType: TransactionMethodType;
1311
1343
  /**
1312
1344
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1667,7 +1699,7 @@ type ListTransfersResponse = {
1667
1699
  * 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.
1668
1700
  */
1669
1701
  nextPageToken?: string;
1670
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1702
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1671
1703
  };
1672
1704
 
1673
1705
  declare enum SortOrder {
@@ -1691,7 +1723,7 @@ declare class EvmTransactionsService {
1691
1723
  */
1692
1724
  getDeploymentTransaction({ chainId, address, currency, }: {
1693
1725
  /**
1694
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1726
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1695
1727
  */
1696
1728
  chainId: string;
1697
1729
  /**
@@ -1709,23 +1741,23 @@ declare class EvmTransactionsService {
1709
1741
  * @returns ListContractsResponse
1710
1742
  * @throws ApiError
1711
1743
  */
1712
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1744
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1713
1745
  /**
1714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1746
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1715
1747
  */
1716
1748
  chainId: string;
1717
1749
  /**
1718
1750
  * A wallet address.
1719
1751
  */
1720
1752
  address: 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;
1725
1753
  /**
1726
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1727
1755
  */
1728
1756
  pageToken?: string;
1757
+ /**
1758
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ */
1760
+ pageSize?: number;
1729
1761
  }): CancelablePromise<ListContractsResponse>;
1730
1762
  /**
1731
1763
  * List ERC transfers
@@ -1733,9 +1765,9 @@ declare class EvmTransactionsService {
1733
1765
  * @returns ListTransfersResponse
1734
1766
  * @throws ApiError
1735
1767
  */
1736
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
1769
  /**
1738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
1771
  */
1740
1772
  chainId: string;
1741
1773
  /**
@@ -1750,14 +1782,14 @@ declare class EvmTransactionsService {
1750
1782
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1751
1783
  */
1752
1784
  endBlock?: number;
1753
- /**
1754
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1755
- */
1756
- pageSize?: number;
1757
1785
  /**
1758
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1759
1787
  */
1760
1788
  pageToken?: string;
1789
+ /**
1790
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
+ */
1792
+ pageSize?: number;
1761
1793
  }): CancelablePromise<ListTransfersResponse>;
1762
1794
  /**
1763
1795
  * List transactions
@@ -1767,23 +1799,23 @@ declare class EvmTransactionsService {
1767
1799
  * @returns ListTransactionDetailsResponse
1768
1800
  * @throws ApiError
1769
1801
  */
1770
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1802
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1771
1803
  /**
1772
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1804
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1773
1805
  */
1774
1806
  chainId: string;
1775
1807
  /**
1776
1808
  * A wallet address.
1777
1809
  */
1778
1810
  address: string;
1779
- /**
1780
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1781
- */
1782
- pageSize?: number;
1783
1811
  /**
1784
1812
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1785
1813
  */
1786
1814
  pageToken?: string;
1815
+ /**
1816
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1817
+ */
1818
+ pageSize?: number;
1787
1819
  /**
1788
1820
  * 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.
1789
1821
  */
@@ -1803,9 +1835,9 @@ declare class EvmTransactionsService {
1803
1835
  * @returns ListNativeTransactionsResponse
1804
1836
  * @throws ApiError
1805
1837
  */
1806
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1838
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1807
1839
  /**
1808
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1840
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1809
1841
  */
1810
1842
  chainId: string;
1811
1843
  /**
@@ -1820,14 +1852,14 @@ declare class EvmTransactionsService {
1820
1852
  * 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.
1821
1853
  */
1822
1854
  endBlock?: number;
1823
- /**
1824
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1825
- */
1826
- pageSize?: number;
1827
1855
  /**
1828
1856
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1829
1857
  */
1830
1858
  pageToken?: string;
1859
+ /**
1860
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1861
+ */
1862
+ pageSize?: number;
1831
1863
  }): CancelablePromise<ListNativeTransactionsResponse>;
1832
1864
  /**
1833
1865
  * List ERC-20 transfers
@@ -1835,9 +1867,9 @@ declare class EvmTransactionsService {
1835
1867
  * @returns ListErc20TransactionsResponse
1836
1868
  * @throws ApiError
1837
1869
  */
1838
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1870
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1839
1871
  /**
1840
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1872
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1841
1873
  */
1842
1874
  chainId: string;
1843
1875
  /**
@@ -1852,14 +1884,14 @@ declare class EvmTransactionsService {
1852
1884
  * 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.
1853
1885
  */
1854
1886
  endBlock?: number;
1855
- /**
1856
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
- */
1858
- pageSize?: number;
1859
1887
  /**
1860
1888
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1861
1889
  */
1862
1890
  pageToken?: string;
1891
+ /**
1892
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1893
+ */
1894
+ pageSize?: number;
1863
1895
  }): CancelablePromise<ListErc20TransactionsResponse>;
1864
1896
  /**
1865
1897
  * List ERC-721 transfers
@@ -1867,9 +1899,9 @@ declare class EvmTransactionsService {
1867
1899
  * @returns ListErc721TransactionsResponse
1868
1900
  * @throws ApiError
1869
1901
  */
1870
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1902
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1871
1903
  /**
1872
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1904
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1873
1905
  */
1874
1906
  chainId: string;
1875
1907
  /**
@@ -1884,14 +1916,14 @@ declare class EvmTransactionsService {
1884
1916
  * 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.
1885
1917
  */
1886
1918
  endBlock?: number;
1887
- /**
1888
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1889
- */
1890
- pageSize?: number;
1891
1919
  /**
1892
1920
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1893
1921
  */
1894
1922
  pageToken?: string;
1923
+ /**
1924
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1925
+ */
1926
+ pageSize?: number;
1895
1927
  }): CancelablePromise<ListErc721TransactionsResponse>;
1896
1928
  /**
1897
1929
  * List ERC-1155 transfers
@@ -1899,9 +1931,9 @@ declare class EvmTransactionsService {
1899
1931
  * @returns ListErc1155TransactionsResponse
1900
1932
  * @throws ApiError
1901
1933
  */
1902
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1934
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1903
1935
  /**
1904
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1936
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
1937
  */
1906
1938
  chainId: string;
1907
1939
  /**
@@ -1916,14 +1948,14 @@ declare class EvmTransactionsService {
1916
1948
  * 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.
1917
1949
  */
1918
1950
  endBlock?: number;
1919
- /**
1920
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1921
- */
1922
- pageSize?: number;
1923
1951
  /**
1924
1952
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1925
1953
  */
1926
1954
  pageToken?: string;
1955
+ /**
1956
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1957
+ */
1958
+ pageSize?: number;
1927
1959
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1928
1960
  /**
1929
1961
  * List internal transactions
@@ -1933,9 +1965,9 @@ declare class EvmTransactionsService {
1933
1965
  * @returns ListInternalTransactionsResponse
1934
1966
  * @throws ApiError
1935
1967
  */
1936
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1968
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1937
1969
  /**
1938
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1970
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1939
1971
  */
1940
1972
  chainId: string;
1941
1973
  /**
@@ -1950,14 +1982,14 @@ declare class EvmTransactionsService {
1950
1982
  * 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.
1951
1983
  */
1952
1984
  endBlock?: number;
1953
- /**
1954
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1955
- */
1956
- pageSize?: number;
1957
1985
  /**
1958
1986
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1959
1987
  */
1960
1988
  pageToken?: string;
1989
+ /**
1990
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1991
+ */
1992
+ pageSize?: number;
1961
1993
  }): CancelablePromise<ListInternalTransactionsResponse>;
1962
1994
  /**
1963
1995
  * Get transaction
@@ -1967,7 +1999,7 @@ declare class EvmTransactionsService {
1967
1999
  */
1968
2000
  getTransaction({ chainId, txHash, }: {
1969
2001
  /**
1970
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2002
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1971
2003
  */
1972
2004
  chainId: string;
1973
2005
  /**
@@ -1983,7 +2015,7 @@ declare class EvmTransactionsService {
1983
2015
  */
1984
2016
  getTransactionsForBlock({ chainId, blockId, }: {
1985
2017
  /**
1986
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2018
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1987
2019
  */
1988
2020
  chainId: string;
1989
2021
  /**
@@ -1997,19 +2029,19 @@ declare class EvmTransactionsService {
1997
2029
  * @returns ListNativeTransactionsResponse
1998
2030
  * @throws ApiError
1999
2031
  */
2000
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2032
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2001
2033
  /**
2002
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2034
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2003
2035
  */
2004
2036
  chainId: string;
2005
- /**
2006
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2007
- */
2008
- pageSize?: number;
2009
2037
  /**
2010
2038
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2011
2039
  */
2012
2040
  pageToken?: string;
2041
+ /**
2042
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2043
+ */
2044
+ pageSize?: number;
2013
2045
  /**
2014
2046
  * A status filter for listed transactions.
2015
2047
  */
@@ -2038,7 +2070,7 @@ type ListNftTokens = {
2038
2070
  * 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.
2039
2071
  */
2040
2072
  nextPageToken?: string;
2041
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2073
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2042
2074
  };
2043
2075
 
2044
2076
  declare class NfTsService {
@@ -2052,7 +2084,7 @@ declare class NfTsService {
2052
2084
  */
2053
2085
  reindexNft({ chainId, address, tokenId, }: {
2054
2086
  /**
2055
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2087
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2056
2088
  */
2057
2089
  chainId: string;
2058
2090
  /**
@@ -2070,23 +2102,23 @@ declare class NfTsService {
2070
2102
  * @returns ListNftTokens
2071
2103
  * @throws ApiError
2072
2104
  */
2073
- listTokens({ chainId, address, pageSize, pageToken, }: {
2105
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2074
2106
  /**
2075
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2107
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
2108
  */
2077
2109
  chainId: string;
2078
2110
  /**
2079
2111
  * Contract address on the relevant chain.
2080
2112
  */
2081
2113
  address: string;
2082
- /**
2083
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2084
- */
2085
- pageSize?: number;
2086
2114
  /**
2087
2115
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2088
2116
  */
2089
2117
  pageToken?: string;
2118
+ /**
2119
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2120
+ */
2121
+ pageSize?: number;
2090
2122
  }): CancelablePromise<ListNftTokens>;
2091
2123
  /**
2092
2124
  * Get token details
@@ -2096,7 +2128,7 @@ declare class NfTsService {
2096
2128
  */
2097
2129
  getTokenDetails({ chainId, address, tokenId, }: {
2098
2130
  /**
2099
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2131
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2100
2132
  */
2101
2133
  chainId: string;
2102
2134
  /**
@@ -2115,8 +2147,12 @@ type EvmNetworkOptions = {
2115
2147
  includeChains: Array<string>;
2116
2148
  };
2117
2149
 
2150
+ declare enum EVMOperationType {
2151
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2152
+ }
2153
+
2118
2154
  type CreateEvmTransactionExportRequest = {
2119
- type: CreateEvmTransactionExportRequest.type;
2155
+ type: EVMOperationType;
2120
2156
  firstDate: string;
2121
2157
  lastDate: string;
2122
2158
  /**
@@ -2129,10 +2165,11 @@ type CreateEvmTransactionExportRequest = {
2129
2165
  endDate: string;
2130
2166
  options: EvmNetworkOptions;
2131
2167
  };
2132
- declare namespace CreateEvmTransactionExportRequest {
2133
- enum type {
2134
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2135
- }
2168
+
2169
+ declare enum PrimaryNetworkOperationType {
2170
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2171
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2172
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2136
2173
  }
2137
2174
 
2138
2175
  type PrimaryNetworkOptions = {
@@ -2142,7 +2179,7 @@ type PrimaryNetworkOptions = {
2142
2179
  };
2143
2180
 
2144
2181
  type CreatePrimaryNetworkTransactionExportRequest = {
2145
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2182
+ type: PrimaryNetworkOperationType;
2146
2183
  firstDate: string;
2147
2184
  lastDate: string;
2148
2185
  /**
@@ -2155,11 +2192,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2155
2192
  endDate: string;
2156
2193
  options: PrimaryNetworkOptions;
2157
2194
  };
2158
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2159
- enum type {
2160
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2161
- }
2162
- }
2163
2195
 
2164
2196
  declare enum OperationStatus {
2165
2197
  RUNNING = "RUNNING",
@@ -2169,8 +2201,10 @@ declare enum OperationStatus {
2169
2201
  }
2170
2202
 
2171
2203
  declare enum OperationType {
2172
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2173
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2204
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2205
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2206
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2207
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2174
2208
  }
2175
2209
 
2176
2210
  declare enum OperationStatusCode {
@@ -2362,13 +2396,44 @@ type BlockchainInfo = {
2362
2396
  blockchainId: string;
2363
2397
  };
2364
2398
 
2399
+ type SubnetOwnershipInfo = {
2400
+ /**
2401
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2402
+ */
2403
+ locktime: number;
2404
+ /**
2405
+ * Minimum number of signatures required to sign the Subnet update transactions.
2406
+ */
2407
+ threshold: number;
2408
+ /**
2409
+ * Addresses that are eligible to sign the Subnet update transactions.
2410
+ */
2411
+ addresses: Array<string>;
2412
+ };
2413
+
2365
2414
  type Subnet = {
2366
2415
  createBlockTimestamp: number;
2367
2416
  createBlockIndex: string;
2368
2417
  subnetId: string;
2418
+ /**
2419
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2420
+ * @deprecated
2421
+ */
2369
2422
  ownerAddresses: Array<string>;
2423
+ /**
2424
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2425
+ * @deprecated
2426
+ */
2370
2427
  threshold: number;
2428
+ /**
2429
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2430
+ * @deprecated
2431
+ */
2371
2432
  locktime: number;
2433
+ /**
2434
+ * Latest subnet owner details for this Subnet.
2435
+ */
2436
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2372
2437
  blockchains: Array<BlockchainInfo>;
2373
2438
  };
2374
2439
 
@@ -2505,6 +2570,22 @@ declare enum ValidationStatusType {
2505
2570
  REMOVED = "removed"
2506
2571
  }
2507
2572
 
2573
+ /**
2574
+ * Cap represents if an asset is a variable or fixed cap asset.
2575
+ */
2576
+ declare enum PrimaryNetworkAssetCap {
2577
+ FIXED = "fixed",
2578
+ VARIABLE = "variable"
2579
+ }
2580
+
2581
+ /**
2582
+ * Type of asset like SECP256K1 or NFT.
2583
+ */
2584
+ declare enum PrimaryNetworkAssetType {
2585
+ SECP256K1 = "secp256k1",
2586
+ NFT = "nft"
2587
+ }
2588
+
2508
2589
  type XChainAssetDetails = {
2509
2590
  /**
2510
2591
  * Unique ID for an asset.
@@ -2522,18 +2603,12 @@ type XChainAssetDetails = {
2522
2603
  * Denomination of this asset to represent fungibility.
2523
2604
  */
2524
2605
  denomination: number;
2525
- /**
2526
- * Type of asset like SECP256K1 or NFT.
2527
- */
2528
- type: string;
2606
+ type: PrimaryNetworkAssetType;
2529
2607
  /**
2530
2608
  * Timestamp in seconds this asset was created on.
2531
2609
  */
2532
2610
  createdAtTimestamp: number;
2533
- /**
2534
- * Cap represents if an asset can be or is fixed cap.
2535
- */
2536
- cap: string;
2611
+ cap: PrimaryNetworkAssetCap;
2537
2612
  };
2538
2613
 
2539
2614
  declare enum XChainId {
@@ -2599,19 +2674,19 @@ declare class PrimaryNetworkService {
2599
2674
  * @returns ListBlockchainsResponse
2600
2675
  * @throws ApiError
2601
2676
  */
2602
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2677
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2603
2678
  /**
2604
2679
  * Either mainnet or a testnet.
2605
2680
  */
2606
2681
  network: Network;
2607
- /**
2608
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2609
- */
2610
- pageSize?: number;
2611
2682
  /**
2612
2683
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2613
2684
  */
2614
2685
  pageToken?: 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;
2615
2690
  /**
2616
2691
  * 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.
2617
2692
  */
@@ -2623,19 +2698,19 @@ declare class PrimaryNetworkService {
2623
2698
  * @returns ListSubnetsResponse
2624
2699
  * @throws ApiError
2625
2700
  */
2626
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2701
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2627
2702
  /**
2628
2703
  * Either mainnet or a testnet.
2629
2704
  */
2630
2705
  network: Network;
2631
- /**
2632
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2633
- */
2634
- pageSize?: number;
2635
2706
  /**
2636
2707
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2637
2708
  */
2638
2709
  pageToken?: string;
2710
+ /**
2711
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2712
+ */
2713
+ pageSize?: number;
2639
2714
  /**
2640
2715
  * 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.
2641
2716
  */
@@ -2647,19 +2722,19 @@ declare class PrimaryNetworkService {
2647
2722
  * @returns ListValidatorDetailsResponse
2648
2723
  * @throws ApiError
2649
2724
  */
2650
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2725
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2651
2726
  /**
2652
2727
  * Either mainnet or a testnet.
2653
2728
  */
2654
2729
  network: Network;
2655
- /**
2656
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2657
- */
2658
- pageSize?: number;
2659
2730
  /**
2660
2731
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2661
2732
  */
2662
2733
  pageToken?: string;
2734
+ /**
2735
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2736
+ */
2737
+ pageSize?: number;
2663
2738
  /**
2664
2739
  * A comma separated list of node ids to filter by.
2665
2740
  */
@@ -2675,27 +2750,27 @@ declare class PrimaryNetworkService {
2675
2750
  /**
2676
2751
  * 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
2677
2752
  */
2678
- minDelegationCapacity?: any;
2753
+ minDelegationCapacity?: string;
2679
2754
  /**
2680
2755
  * 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.
2681
2756
  */
2682
- maxDelegationCapacity?: any;
2757
+ maxDelegationCapacity?: string;
2683
2758
  /**
2684
2759
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2685
2760
  */
2686
- minTimeRemaining?: any;
2761
+ minTimeRemaining?: number;
2687
2762
  /**
2688
2763
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2689
2764
  */
2690
- maxTimeRemaining?: any;
2765
+ maxTimeRemaining?: number;
2691
2766
  /**
2692
2767
  * 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.
2693
2768
  */
2694
- minFeePercentage?: any;
2769
+ minFeePercentage?: number;
2695
2770
  /**
2696
2771
  * 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.
2697
2772
  */
2698
- maxFeePercentage?: any;
2773
+ maxFeePercentage?: number;
2699
2774
  /**
2700
2775
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2701
2776
  */
@@ -2707,7 +2782,7 @@ declare class PrimaryNetworkService {
2707
2782
  * @returns ListValidatorDetailsResponse
2708
2783
  * @throws ApiError
2709
2784
  */
2710
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2785
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2711
2786
  /**
2712
2787
  * Either mainnet or a testnet.
2713
2788
  */
@@ -2716,14 +2791,14 @@ declare class PrimaryNetworkService {
2716
2791
  * A primary network (P or X chain) nodeId.
2717
2792
  */
2718
2793
  nodeId: string;
2719
- /**
2720
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2721
- */
2722
- pageSize?: number;
2723
2794
  /**
2724
2795
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2725
2796
  */
2726
2797
  pageToken?: string;
2798
+ /**
2799
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2800
+ */
2801
+ pageSize?: number;
2727
2802
  /**
2728
2803
  * 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.
2729
2804
  */
@@ -2739,19 +2814,19 @@ declare class PrimaryNetworkService {
2739
2814
  * @returns ListDelegatorDetailsResponse
2740
2815
  * @throws ApiError
2741
2816
  */
2742
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2817
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
2818
  /**
2744
2819
  * Either mainnet or a testnet.
2745
2820
  */
2746
2821
  network: Network;
2747
- /**
2748
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2749
- */
2750
- pageSize?: number;
2751
2822
  /**
2752
2823
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2753
2824
  */
2754
2825
  pageToken?: string;
2826
+ /**
2827
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2828
+ */
2829
+ pageSize?: number;
2755
2830
  /**
2756
2831
  * A comma separated list of reward addresses to filter by.
2757
2832
  */
@@ -2799,10 +2874,7 @@ type CChainSharedAssetBalance = {
2799
2874
  * Denomination of this asset to represent fungibility.
2800
2875
  */
2801
2876
  denomination: number;
2802
- /**
2803
- * Type of asset like SECP256K1 or NFT.
2804
- */
2805
- type: string;
2877
+ type: PrimaryNetworkAssetType;
2806
2878
  /**
2807
2879
  * Amount of the asset.
2808
2880
  */
@@ -2837,7 +2909,7 @@ type ListCChainAtomicBalancesResponse = {
2837
2909
  chainInfo: PrimaryNetworkChainInfo;
2838
2910
  };
2839
2911
 
2840
- type Asset = {
2912
+ type AggregatedAssetAmount = {
2841
2913
  /**
2842
2914
  * Unique ID for an asset.
2843
2915
  */
@@ -2854,14 +2926,12 @@ type Asset = {
2854
2926
  * Denomination of this asset to represent fungibility.
2855
2927
  */
2856
2928
  denomination: number;
2857
- /**
2858
- * Type of asset like SECP256K1 or NFT.
2859
- */
2860
- type: string;
2929
+ type: PrimaryNetworkAssetType;
2861
2930
  /**
2862
2931
  * Amount of the asset.
2863
2932
  */
2864
2933
  amount: string;
2934
+ utxoCount: number;
2865
2935
  };
2866
2936
 
2867
2937
  type PChainSharedAsset = {
@@ -2881,49 +2951,47 @@ type PChainSharedAsset = {
2881
2951
  * Denomination of this asset to represent fungibility.
2882
2952
  */
2883
2953
  denomination: number;
2884
- /**
2885
- * Type of asset like SECP256K1 or NFT.
2886
- */
2887
- type: string;
2954
+ type: PrimaryNetworkAssetType;
2888
2955
  /**
2889
2956
  * Amount of the asset.
2890
2957
  */
2891
2958
  amount: string;
2959
+ utxoCount: number;
2892
2960
  sharedWithChainId: string;
2893
2961
  status: string;
2894
2962
  };
2895
2963
 
2896
2964
  type PChainBalance = {
2897
2965
  /**
2898
- * 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.
2966
+ * 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.
2899
2967
  */
2900
- unlockedUnstaked: Array<Asset>;
2968
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2901
2969
  /**
2902
- * 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.
2970
+ * 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.
2903
2971
  */
2904
- unlockedStaked: Array<Asset>;
2972
+ unlockedStaked: Array<AggregatedAssetAmount>;
2905
2973
  /**
2906
- * 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.
2974
+ * 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.
2907
2975
  */
2908
- lockedPlatform: Array<Asset>;
2976
+ lockedPlatform: Array<AggregatedAssetAmount>;
2909
2977
  /**
2910
- * 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.
2978
+ * 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.
2911
2979
  */
2912
- lockedStakeable: Array<Asset>;
2980
+ lockedStakeable: Array<AggregatedAssetAmount>;
2913
2981
  /**
2914
- * 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.
2982
+ * 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.
2915
2983
  */
2916
- lockedStaked: Array<Asset>;
2984
+ lockedStaked: Array<AggregatedAssetAmount>;
2917
2985
  /**
2918
- * 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.
2986
+ * 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.
2919
2987
  */
2920
- pendingStaked: Array<Asset>;
2988
+ pendingStaked: Array<AggregatedAssetAmount>;
2921
2989
  /**
2922
- * 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.
2990
+ * 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.
2923
2991
  */
2924
2992
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2925
2993
  /**
2926
- * 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.
2994
+ * 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.
2927
2995
  */
2928
2996
  atomicMemoryLocked: Array<PChainSharedAsset>;
2929
2997
  };
@@ -2933,34 +3001,6 @@ type ListPChainBalancesResponse = {
2933
3001
  chainInfo: PrimaryNetworkChainInfo;
2934
3002
  };
2935
3003
 
2936
- type XChainAssetBalance = {
2937
- /**
2938
- * Unique ID for an asset.
2939
- */
2940
- assetId: string;
2941
- /**
2942
- * Name of this asset.
2943
- */
2944
- name: string;
2945
- /**
2946
- * Symbol for this asset (max 4 characters).
2947
- */
2948
- symbol: string;
2949
- /**
2950
- * Denomination of this asset to represent fungibility.
2951
- */
2952
- denomination: number;
2953
- /**
2954
- * Type of asset like SECP256K1 or NFT.
2955
- */
2956
- type: string;
2957
- /**
2958
- * Amount of the asset.
2959
- */
2960
- amount: string;
2961
- utxoCount: number;
2962
- };
2963
-
2964
3004
  type XChainSharedAssetBalance = {
2965
3005
  /**
2966
3006
  * Unique ID for an asset.
@@ -2978,10 +3018,7 @@ type XChainSharedAssetBalance = {
2978
3018
  * Denomination of this asset to represent fungibility.
2979
3019
  */
2980
3020
  denomination: number;
2981
- /**
2982
- * Type of asset like SECP256K1 or NFT.
2983
- */
2984
- type: string;
3021
+ type: PrimaryNetworkAssetType;
2985
3022
  /**
2986
3023
  * Amount of the asset.
2987
3024
  */
@@ -2994,11 +3031,11 @@ type XChainBalances = {
2994
3031
  /**
2995
3032
  * A list of objects containing X-chain Asset balance information.
2996
3033
  */
2997
- locked: Array<XChainAssetBalance>;
3034
+ locked: Array<AggregatedAssetAmount>;
2998
3035
  /**
2999
3036
  * A list of objects containing X-chain Asset balance information.
3000
3037
  */
3001
- unlocked: Array<XChainAssetBalance>;
3038
+ unlocked: Array<AggregatedAssetAmount>;
3002
3039
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3003
3040
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3004
3041
  };
@@ -3111,7 +3148,7 @@ declare class PrimaryNetworkBlocksService {
3111
3148
  * @returns ListPrimaryNetworkBlocksResponse
3112
3149
  * @throws ApiError
3113
3150
  */
3114
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3151
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3115
3152
  /**
3116
3153
  * A primary network blockchain id or alias.
3117
3154
  */
@@ -3124,14 +3161,14 @@ declare class PrimaryNetworkBlocksService {
3124
3161
  * A primary network (P or X chain) nodeId.
3125
3162
  */
3126
3163
  nodeId: string;
3127
- /**
3128
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3129
- */
3130
- pageSize?: number;
3131
3164
  /**
3132
3165
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3133
3166
  */
3134
3167
  pageToken?: string;
3168
+ /**
3169
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3170
+ */
3171
+ pageSize?: number;
3135
3172
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3136
3173
  /**
3137
3174
  * List latest blocks
@@ -3139,7 +3176,7 @@ declare class PrimaryNetworkBlocksService {
3139
3176
  * @returns ListPrimaryNetworkBlocksResponse
3140
3177
  * @throws ApiError
3141
3178
  */
3142
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3179
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3143
3180
  /**
3144
3181
  * A primary network blockchain id or alias.
3145
3182
  */
@@ -3148,17 +3185,45 @@ declare class PrimaryNetworkBlocksService {
3148
3185
  * Either mainnet or a testnet.
3149
3186
  */
3150
3187
  network: Network;
3151
- /**
3152
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3153
- */
3154
- pageSize?: number;
3155
3188
  /**
3156
3189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3157
3190
  */
3158
3191
  pageToken?: string;
3192
+ /**
3193
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3194
+ */
3195
+ pageSize?: number;
3159
3196
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3160
3197
  }
3161
3198
 
3199
+ type AssetWithPriceInfo = {
3200
+ /**
3201
+ * Unique ID for an asset.
3202
+ */
3203
+ assetId: string;
3204
+ /**
3205
+ * Name of this asset.
3206
+ */
3207
+ name: string;
3208
+ /**
3209
+ * Symbol for this asset (max 4 characters).
3210
+ */
3211
+ symbol: string;
3212
+ /**
3213
+ * Denomination of this asset to represent fungibility.
3214
+ */
3215
+ denomination: number;
3216
+ type: PrimaryNetworkAssetType;
3217
+ /**
3218
+ * Amount of the asset.
3219
+ */
3220
+ amount: string;
3221
+ /**
3222
+ * 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.
3223
+ */
3224
+ historicalPrice?: Money;
3225
+ };
3226
+
3162
3227
  declare enum RewardType {
3163
3228
  VALIDATOR = "VALIDATOR",
3164
3229
  DELEGATOR = "DELEGATOR",
@@ -3178,10 +3243,7 @@ type HistoricalReward = {
3178
3243
  rewardType: RewardType;
3179
3244
  utxoId: string;
3180
3245
  outputIndex: number;
3181
- /**
3182
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3183
- */
3184
- reward: Asset;
3246
+ reward: AssetWithPriceInfo;
3185
3247
  rewardTxHash: string;
3186
3248
  };
3187
3249
 
@@ -3193,6 +3255,30 @@ type ListHistoricalRewardsResponse = {
3193
3255
  historicalRewards: Array<HistoricalReward>;
3194
3256
  };
3195
3257
 
3258
+ type AssetAmount = {
3259
+ /**
3260
+ * Unique ID for an asset.
3261
+ */
3262
+ assetId: string;
3263
+ /**
3264
+ * Name of this asset.
3265
+ */
3266
+ name: string;
3267
+ /**
3268
+ * Symbol for this asset (max 4 characters).
3269
+ */
3270
+ symbol: string;
3271
+ /**
3272
+ * Denomination of this asset to represent fungibility.
3273
+ */
3274
+ denomination: number;
3275
+ type: PrimaryNetworkAssetType;
3276
+ /**
3277
+ * Amount of the asset.
3278
+ */
3279
+ amount: string;
3280
+ };
3281
+
3196
3282
  type PendingReward = {
3197
3283
  /**
3198
3284
  * An array of P-Chain wallet addresses.
@@ -3206,9 +3292,9 @@ type PendingReward = {
3206
3292
  rewardType: RewardType;
3207
3293
  progress: number;
3208
3294
  /**
3209
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3295
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3210
3296
  */
3211
- estimatedReward: Asset;
3297
+ estimatedReward: AssetAmount;
3212
3298
  };
3213
3299
 
3214
3300
  type ListPendingRewardsResponse = {
@@ -3228,25 +3314,25 @@ declare class PrimaryNetworkRewardsService {
3228
3314
  * @returns ListPendingRewardsResponse
3229
3315
  * @throws ApiError
3230
3316
  */
3231
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3317
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3232
3318
  /**
3233
3319
  * Either mainnet or a testnet.
3234
3320
  */
3235
3321
  network: Network;
3236
3322
  /**
3237
- * 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.
3323
+ * 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.
3238
3324
  */
3239
3325
  addresses?: string;
3240
- /**
3241
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3242
- */
3243
- pageSize?: number;
3244
3326
  /**
3245
3327
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3246
3328
  */
3247
3329
  pageToken?: string;
3248
3330
  /**
3249
- * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3331
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3332
+ */
3333
+ pageSize?: number;
3334
+ /**
3335
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3250
3336
  */
3251
3337
  nodeIds?: string;
3252
3338
  /**
@@ -3260,7 +3346,7 @@ declare class PrimaryNetworkRewardsService {
3260
3346
  * @returns ListHistoricalRewardsResponse
3261
3347
  * @throws ApiError
3262
3348
  */
3263
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3349
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3264
3350
  /**
3265
3351
  * Either mainnet or a testnet.
3266
3352
  */
@@ -3269,14 +3355,14 @@ declare class PrimaryNetworkRewardsService {
3269
3355
  * 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.
3270
3356
  */
3271
3357
  addresses?: string;
3272
- /**
3273
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3274
- */
3275
- pageSize?: number;
3276
3358
  /**
3277
3359
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3278
3360
  */
3279
3361
  pageToken?: string;
3362
+ /**
3363
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3364
+ */
3365
+ pageSize?: number;
3280
3366
  /**
3281
3367
  * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3282
3368
  */
@@ -3285,6 +3371,10 @@ declare class PrimaryNetworkRewardsService {
3285
3371
  * 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.
3286
3372
  */
3287
3373
  sortOrder?: SortOrder;
3374
+ /**
3375
+ * The currency that return values should use. Defaults to USD.
3376
+ */
3377
+ currency?: CurrencyCode;
3288
3378
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3289
3379
  }
3290
3380
 
@@ -3305,9 +3395,9 @@ type EVMInput = {
3305
3395
  */
3306
3396
  fromAddress: string;
3307
3397
  /**
3308
- * Asset details for the asset being transferred.
3398
+ * AssetAmount details for the asset being transferred.
3309
3399
  */
3310
- asset: Asset;
3400
+ asset: AssetAmount;
3311
3401
  /**
3312
3402
  * Credentials that signed this transaction.
3313
3403
  */
@@ -3319,7 +3409,7 @@ type Utxo = {
3319
3409
  * Addresses that are eligible to sign the consumption of this output.
3320
3410
  */
3321
3411
  addresses: Array<string>;
3322
- asset: Asset;
3412
+ asset: AssetAmount;
3323
3413
  /**
3324
3414
  * Blockchain ID on which this output is consumed on.
3325
3415
  */
@@ -3402,11 +3492,11 @@ type CChainExportTransaction = {
3402
3492
  /**
3403
3493
  * Assets unlocked by inputs of this transaction.
3404
3494
  */
3405
- amountUnlocked: Array<Asset>;
3495
+ amountUnlocked: Array<AssetAmount>;
3406
3496
  /**
3407
3497
  * Assets created by outputs of this transaction.
3408
3498
  */
3409
- amountCreated: Array<Asset>;
3499
+ amountCreated: Array<AssetAmount>;
3410
3500
  /**
3411
3501
  * Source chain for an atomic transaction.
3412
3502
  */
@@ -3437,9 +3527,9 @@ type EVMOutput = {
3437
3527
  */
3438
3528
  toAddress: string;
3439
3529
  /**
3440
- * Asset details for the asset being transferred.
3530
+ * AssetAmount details for the asset being transferred.
3441
3531
  */
3442
- asset: Asset;
3532
+ asset: AssetAmount;
3443
3533
  };
3444
3534
 
3445
3535
  type CChainImportTransaction = {
@@ -3466,11 +3556,11 @@ type CChainImportTransaction = {
3466
3556
  /**
3467
3557
  * Assets unlocked by inputs of this transaction.
3468
3558
  */
3469
- amountUnlocked: Array<Asset>;
3559
+ amountUnlocked: Array<AssetAmount>;
3470
3560
  /**
3471
3561
  * Assets created by outputs of this transaction.
3472
3562
  */
3473
- amountCreated: Array<Asset>;
3563
+ amountCreated: Array<AssetAmount>;
3474
3564
  /**
3475
3565
  * Source chain for an atomic transaction.
3476
3566
  */
@@ -3518,6 +3608,8 @@ declare enum PChainTransactionType {
3518
3608
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3519
3609
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3520
3610
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3611
+ BASE_TX = "BaseTx",
3612
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3521
3613
  UNKNOWN = "UNKNOWN"
3522
3614
  }
3523
3615
 
@@ -3531,7 +3623,7 @@ type PChainUtxo = {
3531
3623
  * Addresses that are eligible to sign the consumption of this output.
3532
3624
  */
3533
3625
  addresses: Array<string>;
3534
- asset: Asset;
3626
+ asset: AssetAmount;
3535
3627
  /**
3536
3628
  * Blockchain ID on which this output is consumed on.
3537
3629
  */
@@ -3595,17 +3687,17 @@ type PChainTransaction = {
3595
3687
  */
3596
3688
  destinationChain?: string;
3597
3689
  /**
3598
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3690
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3599
3691
  */
3600
- value: Array<Asset>;
3692
+ value: Array<AssetAmount>;
3601
3693
  /**
3602
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3694
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3603
3695
  */
3604
- amountBurned: Array<Asset>;
3696
+ amountBurned: Array<AssetAmount>;
3605
3697
  /**
3606
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3698
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3607
3699
  */
3608
- amountStaked: Array<Asset>;
3700
+ amountStaked: Array<AssetAmount>;
3609
3701
  /**
3610
3702
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3611
3703
  */
@@ -3637,6 +3729,10 @@ type PChainTransaction = {
3637
3729
  * Present for RewardValidatorTx
3638
3730
  */
3639
3731
  stakingTxHash?: string;
3732
+ /**
3733
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3734
+ */
3735
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3640
3736
  };
3641
3737
 
3642
3738
  type ListPChainTransactionsResponse = {
@@ -3648,6 +3744,9 @@ type ListPChainTransactionsResponse = {
3648
3744
  chainInfo: PrimaryNetworkChainInfo;
3649
3745
  };
3650
3746
 
3747
+ /**
3748
+ * Type of transaction.
3749
+ */
3651
3750
  declare enum XChainTransactionType {
3652
3751
  BASE_TX = "BaseTx",
3653
3752
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3670,9 +3769,6 @@ type XChainLinearTransaction = {
3670
3769
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3671
3770
  */
3672
3771
  timestamp: number;
3673
- /**
3674
- * Type of transaction.
3675
- */
3676
3772
  txType: XChainTransactionType;
3677
3773
  /**
3678
3774
  * Hex encoded memo bytes for this transaction.
@@ -3683,11 +3779,11 @@ type XChainLinearTransaction = {
3683
3779
  /**
3684
3780
  * Assets unlocked by inputs of this transaction.
3685
3781
  */
3686
- amountUnlocked: Array<Asset>;
3782
+ amountUnlocked: Array<AssetAmount>;
3687
3783
  /**
3688
3784
  * Assets created by outputs of this transaction.
3689
3785
  */
3690
- amountCreated: Array<Asset>;
3786
+ amountCreated: Array<AssetAmount>;
3691
3787
  /**
3692
3788
  * Source chain for an atomic transaction.
3693
3789
  */
@@ -3697,7 +3793,7 @@ type XChainLinearTransaction = {
3697
3793
  */
3698
3794
  destinationChain?: string;
3699
3795
  /**
3700
- * Asset details of the asset created in CreateAssetTx
3796
+ * AssetAmount details of the asset created in CreateAssetTx
3701
3797
  */
3702
3798
  assetCreated?: XChainAssetDetails;
3703
3799
  /**
@@ -3747,9 +3843,6 @@ type XChainNonLinearTransaction = {
3747
3843
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3748
3844
  */
3749
3845
  timestamp: number;
3750
- /**
3751
- * Type of transaction.
3752
- */
3753
3846
  txType: XChainTransactionType;
3754
3847
  /**
3755
3848
  * Hex encoded memo bytes for this transaction.
@@ -3760,11 +3853,11 @@ type XChainNonLinearTransaction = {
3760
3853
  /**
3761
3854
  * Assets unlocked by inputs of this transaction.
3762
3855
  */
3763
- amountUnlocked: Array<Asset>;
3856
+ amountUnlocked: Array<AssetAmount>;
3764
3857
  /**
3765
3858
  * Assets created by outputs of this transaction.
3766
3859
  */
3767
- amountCreated: Array<Asset>;
3860
+ amountCreated: Array<AssetAmount>;
3768
3861
  /**
3769
3862
  * Source chain for an atomic transaction.
3770
3863
  */
@@ -3774,7 +3867,7 @@ type XChainNonLinearTransaction = {
3774
3867
  */
3775
3868
  destinationChain?: string;
3776
3869
  /**
3777
- * Asset details of the asset created in CreateAssetTx
3870
+ * AssetAmount details of the asset created in CreateAssetTx
3778
3871
  */
3779
3872
  assetCreated?: XChainAssetDetails;
3780
3873
  /**
@@ -3820,8 +3913,9 @@ declare enum PrimaryNetworkTxType {
3820
3913
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3821
3914
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3822
3915
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3823
- UNKNOWN = "UNKNOWN",
3824
3916
  BASE_TX = "BaseTx",
3917
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3918
+ UNKNOWN = "UNKNOWN",
3825
3919
  CREATE_ASSET_TX = "CreateAssetTx",
3826
3920
  OPERATION_TX = "OperationTx"
3827
3921
  }
@@ -3853,13 +3947,13 @@ declare class PrimaryNetworkTransactionsService {
3853
3947
  * List latest transactions
3854
3948
  * Lists the latest transactions on one of the Primary Network chains.
3855
3949
  *
3856
- * Transactions are filterable by addresses.
3950
+ * 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.
3857
3951
  *
3858
3952
  * 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.
3859
3953
  * @returns any
3860
3954
  * @throws ApiError
3861
3955
  */
3862
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3956
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3863
3957
  /**
3864
3958
  * A primary network blockchain id or alias.
3865
3959
  */
@@ -3884,14 +3978,14 @@ declare class PrimaryNetworkTransactionsService {
3884
3978
  * Query param for retrieving items before a specific timestamp.
3885
3979
  */
3886
3980
  endTimestamp?: number;
3887
- /**
3888
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3889
- */
3890
- pageSize?: number;
3891
3981
  /**
3892
3982
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3893
3983
  */
3894
3984
  pageToken?: string;
3985
+ /**
3986
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3987
+ */
3988
+ pageSize?: number;
3895
3989
  /**
3896
3990
  * 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.
3897
3991
  */
@@ -3903,7 +3997,7 @@ declare class PrimaryNetworkTransactionsService {
3903
3997
  * @returns ListPChainTransactionsResponse
3904
3998
  * @throws ApiError
3905
3999
  */
3906
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
4000
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3907
4001
  /**
3908
4002
  * A primary network blockchain id or alias.
3909
4003
  */
@@ -3928,14 +4022,14 @@ declare class PrimaryNetworkTransactionsService {
3928
4022
  * Query param for retrieving items before a specific timestamp.
3929
4023
  */
3930
4024
  endTimestamp?: number;
3931
- /**
3932
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3933
- */
3934
- pageSize?: number;
3935
4025
  /**
3936
4026
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3937
4027
  */
3938
4028
  pageToken?: string;
4029
+ /**
4030
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4031
+ */
4032
+ pageSize?: number;
3939
4033
  /**
3940
4034
  * 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.
3941
4035
  */
@@ -3947,7 +4041,7 @@ declare class PrimaryNetworkTransactionsService {
3947
4041
  * @returns ListXChainTransactionsResponse
3948
4042
  * @throws ApiError
3949
4043
  */
3950
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
4044
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3951
4045
  /**
3952
4046
  * A primary network blockchain id or alias.
3953
4047
  */
@@ -3972,14 +4066,14 @@ declare class PrimaryNetworkTransactionsService {
3972
4066
  * Query param for retrieving items before a specific timestamp.
3973
4067
  */
3974
4068
  endTimestamp?: number;
3975
- /**
3976
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3977
- */
3978
- pageSize?: number;
3979
4069
  /**
3980
4070
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3981
4071
  */
3982
4072
  pageToken?: string;
4073
+ /**
4074
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4075
+ */
4076
+ pageSize?: number;
3983
4077
  }): CancelablePromise<ListXChainTransactionsResponse>;
3984
4078
  }
3985
4079
 
@@ -4010,7 +4104,7 @@ declare class PrimaryNetworkUtxOsService {
4010
4104
  * @returns any
4011
4105
  * @throws ApiError
4012
4106
  */
4013
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4107
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
4014
4108
  /**
4015
4109
  * A primary network blockchain id or alias.
4016
4110
  */
@@ -4023,14 +4117,14 @@ declare class PrimaryNetworkUtxOsService {
4023
4117
  * 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".
4024
4118
  */
4025
4119
  addresses?: string;
4026
- /**
4027
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4028
- */
4029
- pageSize?: number;
4030
4120
  /**
4031
4121
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4032
4122
  */
4033
4123
  pageToken?: string;
4124
+ /**
4125
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4126
+ */
4127
+ pageSize?: number;
4034
4128
  /**
4035
4129
  * Asset ID for any asset (only applicable X-Chain)
4036
4130
  */
@@ -4075,7 +4169,7 @@ declare class PrimaryNetworkVerticesService {
4075
4169
  * @returns ListXChainVerticesResponse
4076
4170
  * @throws ApiError
4077
4171
  */
4078
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4172
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4079
4173
  /**
4080
4174
  * A primary network blockchain id or alias.
4081
4175
  */
@@ -4084,14 +4178,14 @@ declare class PrimaryNetworkVerticesService {
4084
4178
  * Either mainnet or a testnet.
4085
4179
  */
4086
4180
  network: Network;
4087
- /**
4088
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4089
- */
4090
- pageSize?: number;
4091
4181
  /**
4092
4182
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4093
4183
  */
4094
4184
  pageToken?: string;
4185
+ /**
4186
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4187
+ */
4188
+ pageSize?: number;
4095
4189
  }): CancelablePromise<ListXChainVerticesResponse>;
4096
4190
  /**
4097
4191
  * Get vertex
@@ -4119,7 +4213,7 @@ declare class PrimaryNetworkVerticesService {
4119
4213
  * @returns ListXChainVerticesResponse
4120
4214
  * @throws ApiError
4121
4215
  */
4122
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4216
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4123
4217
  /**
4124
4218
  * The height of a vertex.
4125
4219
  */
@@ -4132,14 +4226,14 @@ declare class PrimaryNetworkVerticesService {
4132
4226
  * Either mainnet or a testnet.
4133
4227
  */
4134
4228
  network: Network;
4135
- /**
4136
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4137
- */
4138
- pageSize?: number;
4139
4229
  /**
4140
4230
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4141
4231
  */
4142
4232
  pageToken?: string;
4233
+ /**
4234
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4235
+ */
4236
+ pageSize?: number;
4143
4237
  /**
4144
4238
  * 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.
4145
4239
  */
@@ -4155,6 +4249,11 @@ type TeleporterDestinationTransaction = {
4155
4249
  delivererAddress: string;
4156
4250
  };
4157
4251
 
4252
+ type TeleporterReceipt = {
4253
+ receivedMessageNonce: string;
4254
+ relayerRewardAddress: string;
4255
+ };
4256
+
4158
4257
  type TeleporterRewardDetails = {
4159
4258
  /**
4160
4259
  * A wallet or contract address in mixed-case checksum encoding.
@@ -4190,14 +4289,16 @@ declare namespace TeleporterRewardDetails {
4190
4289
  }
4191
4290
 
4192
4291
  type DeliveredSourceNotIndexedTeleporterMessage = {
4292
+ messageId: string;
4293
+ teleporterContractAddress: string;
4193
4294
  sourceBlockchainId: string;
4194
4295
  destinationBlockchainId: string;
4195
- messageId: string;
4296
+ messageNonce: string;
4196
4297
  from: string;
4197
4298
  to: string;
4198
4299
  data?: string;
4199
4300
  messageExecuted: boolean;
4200
- receipts: Array<string>;
4301
+ receipts: Array<TeleporterReceipt>;
4201
4302
  receiptDelivered: boolean;
4202
4303
  rewardDetails: TeleporterRewardDetails;
4203
4304
  destinationTransaction: TeleporterDestinationTransaction;
@@ -4216,14 +4317,16 @@ type TeleporterSourceTransaction = {
4216
4317
  };
4217
4318
 
4218
4319
  type DeliveredTeleporterMessage = {
4320
+ messageId: string;
4321
+ teleporterContractAddress: string;
4219
4322
  sourceBlockchainId: string;
4220
4323
  destinationBlockchainId: string;
4221
- messageId: string;
4324
+ messageNonce: string;
4222
4325
  from: string;
4223
4326
  to: string;
4224
4327
  data?: string;
4225
4328
  messageExecuted: boolean;
4226
- receipts: Array<string>;
4329
+ receipts: Array<TeleporterReceipt>;
4227
4330
  receiptDelivered: boolean;
4228
4331
  rewardDetails: TeleporterRewardDetails;
4229
4332
  sourceTransaction: TeleporterSourceTransaction;
@@ -4244,14 +4347,16 @@ type NextPageToken = {
4244
4347
  };
4245
4348
 
4246
4349
  type PendingTeleporterMessage = {
4350
+ messageId: string;
4351
+ teleporterContractAddress: string;
4247
4352
  sourceBlockchainId: string;
4248
4353
  destinationBlockchainId: string;
4249
- messageId: string;
4354
+ messageNonce: string;
4250
4355
  from: string;
4251
4356
  to: string;
4252
4357
  data?: string;
4253
4358
  messageExecuted: boolean;
4254
- receipts: Array<string>;
4359
+ receipts: Array<TeleporterReceipt>;
4255
4360
  receiptDelivered: boolean;
4256
4361
  rewardDetails: TeleporterRewardDetails;
4257
4362
  sourceTransaction: TeleporterSourceTransaction;
@@ -4268,23 +4373,15 @@ declare class TeleporterService {
4268
4373
  constructor(httpRequest: BaseHttpRequest);
4269
4374
  /**
4270
4375
  * Get a teleporter message
4271
- * Gets a teleporter message by source chain, destination chain, and message ID.
4376
+ * Gets a teleporter message by message ID.
4272
4377
  * @returns any
4273
4378
  * @throws ApiError
4274
4379
  */
4275
- getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4276
- /**
4277
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4278
- */
4279
- sourceBlockchainId: any;
4280
- /**
4281
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4282
- */
4283
- destinationBlockchainId: any;
4380
+ getTeleporterMessage({ messageId, }: {
4284
4381
  /**
4285
4382
  * The message ID of the teleporter message.
4286
4383
  */
4287
- messageId: any;
4384
+ messageId: string;
4288
4385
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4289
4386
  /**
4290
4387
  * List teleporter messages
@@ -4292,31 +4389,31 @@ declare class TeleporterService {
4292
4389
  * @returns any
4293
4390
  * @throws ApiError
4294
4391
  */
4295
- listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4296
- /**
4297
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4298
- */
4299
- pageSize?: number;
4392
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4300
4393
  /**
4301
4394
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4302
4395
  */
4303
4396
  pageToken?: string;
4304
4397
  /**
4305
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4398
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4399
+ */
4400
+ pageSize?: number;
4401
+ /**
4402
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4306
4403
  */
4307
- sourceBlockchainId?: any;
4404
+ sourceBlockchainId?: string;
4308
4405
  /**
4309
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4406
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4310
4407
  */
4311
- destinationBlockchainId?: any;
4408
+ destinationBlockchainId?: string;
4312
4409
  /**
4313
4410
  * The address of the recipient of the teleporter message.
4314
4411
  */
4315
- to?: any;
4412
+ to?: string;
4316
4413
  /**
4317
4414
  * The address of the sender of the teleporter message.
4318
4415
  */
4319
- from?: any;
4416
+ from?: string;
4320
4417
  }): CancelablePromise<NextPageToken>;
4321
4418
  }
4322
4419
 
@@ -4360,4 +4457,4 @@ declare class ApiError extends Error {
4360
4457
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4361
4458
  }
4362
4459
 
4363
- 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, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, 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 };
4460
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, 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, 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, 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, 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, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };