@avalabs/glacier-sdk 2.8.0-canary.4b05dbf.0 → 2.8.0-canary.5083b17.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 (95) hide show
  1. package/dist/index.d.ts +476 -359
  2. package/dist/index.js +173 -117
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +8 -0
  4. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  5. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  6. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  7. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  8. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  9. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  10. package/esm/generated/models/ChainInfo.d.ts +1 -3
  11. package/esm/generated/models/ChainStatus.d.ts +3 -0
  12. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  13. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  14. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  15. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
  16. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
  17. package/esm/generated/models/EVMInput.d.ts +3 -3
  18. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  19. package/esm/generated/models/EVMOperationType.js +6 -0
  20. package/esm/generated/models/EVMOutput.d.ts +3 -3
  21. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  22. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  23. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  24. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  25. package/esm/generated/models/GlacierApiFeature.js +6 -0
  26. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  27. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  28. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  29. package/esm/generated/models/Method.d.ts +0 -3
  30. package/esm/generated/models/Money.d.ts +0 -3
  31. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  32. package/esm/generated/models/OperationType.d.ts +4 -2
  33. package/esm/generated/models/OperationType.js +3 -1
  34. package/esm/generated/models/PChainBalance.d.ts +15 -15
  35. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  36. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  37. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  38. package/esm/generated/models/PChainTransactionType.js +2 -0
  39. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  40. package/esm/generated/models/PendingReward.d.ts +3 -3
  41. package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
  42. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  43. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  44. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  45. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  46. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  47. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  48. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  49. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  50. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
  51. package/esm/generated/models/Subnet.d.ts +17 -0
  52. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  53. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  54. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  55. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  56. package/esm/generated/models/Utxo.d.ts +2 -2
  57. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  58. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  59. package/esm/generated/models/XChainBalances.d.ts +3 -3
  60. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  61. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  62. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  63. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  64. package/esm/generated/services/DefaultService.d.ts +38 -5
  65. package/esm/generated/services/DefaultService.js +34 -3
  66. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  67. package/esm/generated/services/EvmBalancesService.js +8 -8
  68. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  69. package/esm/generated/services/EvmBlocksService.js +4 -4
  70. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  71. package/esm/generated/services/EvmChainsService.js +4 -2
  72. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  73. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  74. package/esm/generated/services/EvmTransactionsService.js +32 -32
  75. package/esm/generated/services/NfTsService.d.ts +8 -8
  76. package/esm/generated/services/NfTsService.js +4 -4
  77. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  78. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  79. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +17 -12
  80. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  81. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
  82. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  83. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  84. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  85. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  86. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  87. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  88. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  89. package/esm/generated/services/TeleporterService.d.ts +14 -22
  90. package/esm/generated/services/TeleporterService.js +4 -8
  91. package/esm/index.d.ts +11 -2
  92. package/esm/index.js +5 -2
  93. package/package.json +2 -2
  94. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  95. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts CHANGED
@@ -69,6 +69,14 @@ type AddressActivityMetadata = {
69
69
  * Array of hexadecimal strings of the event signatures.
70
70
  */
71
71
  eventSignatures?: Array<string>;
72
+ /**
73
+ * Whether to include traces in the webhook payload.
74
+ */
75
+ includeTraces?: boolean;
76
+ /**
77
+ * Whether to include logs in the webhook payload.
78
+ */
79
+ includeLogs?: boolean;
72
80
  };
73
81
 
74
82
  declare enum EventType {
@@ -88,6 +96,8 @@ type WebhookResponse = {
88
96
  chainId: string;
89
97
  status: WebhookStatusType;
90
98
  createdAt: number;
99
+ name: string;
100
+ description: string;
91
101
  };
92
102
 
93
103
  type ListWebhooksResponse = {
@@ -101,9 +111,6 @@ type ListWebhooksResponse = {
101
111
  type RegisterWebhookRequest = {
102
112
  url: string;
103
113
  chainId: string;
104
- /**
105
- * The type of event for the webhook
106
- */
107
114
  eventType: EventType;
108
115
  metadata: AddressActivityMetadata;
109
116
  };
@@ -112,6 +119,15 @@ type SharedSecretsResponse = {
112
119
  secret: string;
113
120
  };
114
121
 
122
+ type UpdateWebhookRequest = {
123
+ name?: string;
124
+ description?: string;
125
+ url?: string;
126
+ status?: WebhookStatusType;
127
+ includeTraces?: boolean;
128
+ includeLogs?: boolean;
129
+ };
130
+
115
131
  declare enum WebhookStatus {
116
132
  ACTIVE = "active",
117
133
  INACTIVE = "inactive"
@@ -140,20 +156,32 @@ declare class DefaultService {
140
156
  * @returns ListWebhooksResponse
141
157
  * @throws ApiError
142
158
  */
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;
159
+ listWebhooks({ pageToken, pageSize, status, }: {
148
160
  /**
149
161
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
150
162
  */
151
163
  pageToken?: string;
164
+ /**
165
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
166
+ */
167
+ pageSize?: number;
152
168
  /**
153
169
  * 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
170
  */
155
171
  status?: WebhookStatus;
156
172
  }): CancelablePromise<ListWebhooksResponse>;
173
+ /**
174
+ * Get a webhook by ID
175
+ * Retrieves a webhook by ID.
176
+ * @returns WebhookResponse
177
+ * @throws ApiError
178
+ */
179
+ getWebhook({ id, }: {
180
+ /**
181
+ * The webhook identifier.
182
+ */
183
+ id: string;
184
+ }): CancelablePromise<WebhookResponse>;
157
185
  /**
158
186
  * Deactivate a webhook
159
187
  * Deactivates a webhook by ID.
@@ -166,6 +194,19 @@ declare class DefaultService {
166
194
  */
167
195
  id: string;
168
196
  }): CancelablePromise<WebhookResponse>;
197
+ /**
198
+ * Update a webhook
199
+ * Updates an existing webhook.
200
+ * @returns WebhookResponse
201
+ * @throws ApiError
202
+ */
203
+ updateWebhook({ id, requestBody, }: {
204
+ /**
205
+ * The webhook identifier.
206
+ */
207
+ id: string;
208
+ requestBody: UpdateWebhookRequest;
209
+ }): CancelablePromise<WebhookResponse>;
169
210
  /**
170
211
  * Generate a shared secret
171
212
  * Generates a new shared secret.
@@ -173,8 +214,18 @@ declare class DefaultService {
173
214
  * @throws ApiError
174
215
  */
175
216
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
217
+ /**
218
+ * Get a shared secret
219
+ * Get a previously generated shared secret.
220
+ * @returns SharedSecretsResponse
221
+ * @throws ApiError
222
+ */
223
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
176
224
  }
177
225
 
226
+ /**
227
+ * ISO 4217 currency code.
228
+ */
178
229
  declare enum CurrencyCode {
179
230
  USD = "usd",
180
231
  EUR = "eur",
@@ -193,9 +244,6 @@ declare enum CurrencyCode {
193
244
  }
194
245
 
195
246
  type Money = {
196
- /**
197
- * ISO 4217 currency code.
198
- */
199
247
  currencyCode: CurrencyCode;
200
248
  /**
201
249
  * Monetary value in base 10 decimals.
@@ -245,6 +293,9 @@ type GetNativeBalanceResponse = {
245
293
  nativeTokenBalance: NativeTokenBalance;
246
294
  };
247
295
 
296
+ /**
297
+ * The metadata indexing status of the nft.
298
+ */
248
299
  declare enum NftTokenMetadataStatus {
249
300
  UNKNOWN = "UNKNOWN",
250
301
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -260,9 +311,6 @@ declare enum NftTokenMetadataStatus {
260
311
  }
261
312
 
262
313
  type Erc1155TokenMetadata = {
263
- /**
264
- * The metadata indexing status of the nft.
265
- */
266
314
  indexStatus: NftTokenMetadataStatus;
267
315
  metadataLastUpdatedTimestamp?: number;
268
316
  name?: string;
@@ -301,9 +349,6 @@ declare namespace Erc1155TokenBalance {
301
349
  }
302
350
 
303
351
  type Erc721TokenMetadata = {
304
- /**
305
- * The metadata indexing status of the nft.
306
- */
307
352
  indexStatus: NftTokenMetadataStatus;
308
353
  metadataLastUpdatedTimestamp?: number;
309
354
  name?: string;
@@ -450,7 +495,7 @@ declare class EvmBalancesService {
450
495
  */
451
496
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
452
497
  /**
453
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
498
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
454
499
  */
455
500
  chainId: string;
456
501
  /**
@@ -476,9 +521,9 @@ declare class EvmBalancesService {
476
521
  * @returns ListErc20BalancesResponse
477
522
  * @throws ApiError
478
523
  */
479
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
524
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
480
525
  /**
481
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
526
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
482
527
  */
483
528
  chainId: string;
484
529
  /**
@@ -489,14 +534,14 @@ declare class EvmBalancesService {
489
534
  * The block number, if not defined the block number will be the latest block.
490
535
  */
491
536
  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
537
  /**
497
538
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
498
539
  */
499
540
  pageToken?: string;
541
+ /**
542
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
543
+ */
544
+ pageSize?: number;
500
545
  /**
501
546
  * A comma separated list of contract addresses to filter by.
502
547
  */
@@ -514,23 +559,23 @@ declare class EvmBalancesService {
514
559
  * @returns ListErc721BalancesResponse
515
560
  * @throws ApiError
516
561
  */
517
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
562
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
518
563
  /**
519
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
564
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
520
565
  */
521
566
  chainId: string;
522
567
  /**
523
568
  * A wallet address.
524
569
  */
525
570
  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
571
  /**
531
572
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
532
573
  */
533
574
  pageToken?: string;
575
+ /**
576
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
577
+ */
578
+ pageSize?: number;
534
579
  /**
535
580
  * A contract addresses to filter by.
536
581
  */
@@ -546,9 +591,9 @@ declare class EvmBalancesService {
546
591
  * @returns ListErc1155BalancesResponse
547
592
  * @throws ApiError
548
593
  */
549
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
594
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
550
595
  /**
551
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
596
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
552
597
  */
553
598
  chainId: string;
554
599
  /**
@@ -559,14 +604,14 @@ declare class EvmBalancesService {
559
604
  * The block number, if not defined the block number will be the latest block.
560
605
  */
561
606
  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
607
  /**
567
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
568
609
  */
569
610
  pageToken?: string;
611
+ /**
612
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
613
+ */
614
+ pageSize?: number;
570
615
  /**
571
616
  * A contract addresses to filter by.
572
617
  */
@@ -580,23 +625,23 @@ declare class EvmBalancesService {
580
625
  * @returns ListCollectibleBalancesResponse
581
626
  * @throws ApiError
582
627
  */
583
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
628
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
584
629
  /**
585
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
630
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
586
631
  */
587
632
  chainId: string;
588
633
  /**
589
634
  * A wallet address.
590
635
  */
591
636
  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
637
  /**
597
638
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
598
639
  */
599
640
  pageToken?: string;
641
+ /**
642
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
643
+ */
644
+ pageSize?: number;
600
645
  /**
601
646
  * A contract addresses to filter by.
602
647
  */
@@ -709,19 +754,19 @@ declare class EvmBlocksService {
709
754
  * @returns ListEvmBlocksResponse
710
755
  * @throws ApiError
711
756
  */
712
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
757
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
713
758
  /**
714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
759
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
715
760
  */
716
761
  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
762
  /**
722
763
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
723
764
  */
724
765
  pageToken?: string;
766
+ /**
767
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
768
+ */
769
+ pageSize?: number;
725
770
  }): CancelablePromise<ListEvmBlocksResponse>;
726
771
  /**
727
772
  * Get block
@@ -731,7 +776,7 @@ declare class EvmBlocksService {
731
776
  */
732
777
  getBlock({ chainId, blockId, }: {
733
778
  /**
734
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
779
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
735
780
  */
736
781
  chainId: string;
737
782
  /**
@@ -741,6 +786,9 @@ declare class EvmBlocksService {
741
786
  }): CancelablePromise<GetEvmBlockResponse>;
742
787
  }
743
788
 
789
+ /**
790
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
791
+ */
744
792
  declare enum ChainStatus {
745
793
  OK = "OK",
746
794
  UNAVAILABLE = "UNAVAILABLE"
@@ -778,9 +826,6 @@ declare enum VmName {
778
826
 
779
827
  type GetChainResponse = {
780
828
  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
829
  status: ChainStatus;
785
830
  chainName: string;
786
831
  description: string;
@@ -796,13 +841,15 @@ type GetChainResponse = {
796
841
  networkToken: NetworkToken;
797
842
  chainLogoUri?: string;
798
843
  private?: boolean;
844
+ enabledFeatures?: Array<'nftIndexing'>;
799
845
  };
800
846
 
847
+ declare enum GlacierApiFeature {
848
+ NFT_INDEXING = "nftIndexing"
849
+ }
850
+
801
851
  type ChainInfo = {
802
852
  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
853
  status: ChainStatus;
807
854
  chainName: string;
808
855
  description: string;
@@ -818,6 +865,7 @@ type ChainInfo = {
818
865
  networkToken: NetworkToken;
819
866
  chainLogoUri?: string;
820
867
  private?: boolean;
868
+ enabledFeatures?: Array<'nftIndexing'>;
821
869
  };
822
870
 
823
871
  type ListChainsResponse = {
@@ -838,11 +886,15 @@ declare class EvmChainsService {
838
886
  * @returns ListChainsResponse
839
887
  * @throws ApiError
840
888
  */
841
- supportedChains({ network, }: {
889
+ supportedChains({ network, feature, }: {
842
890
  /**
843
891
  * mainnet or testnet.
844
892
  */
845
893
  network?: NetworkType;
894
+ /**
895
+ * Filter by feature.
896
+ */
897
+ feature?: GlacierApiFeature;
846
898
  }): CancelablePromise<ListChainsResponse>;
847
899
  /**
848
900
  * Get chain information
@@ -852,7 +904,7 @@ declare class EvmChainsService {
852
904
  */
853
905
  getChainInfo({ chainId, }: {
854
906
  /**
855
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
907
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
856
908
  */
857
909
  chainId: string;
858
910
  }): CancelablePromise<GetChainResponse>;
@@ -1147,7 +1199,7 @@ declare class EvmContractsService {
1147
1199
  */
1148
1200
  getContractMetadata({ chainId, address, }: {
1149
1201
  /**
1150
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1202
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1151
1203
  */
1152
1204
  chainId: string;
1153
1205
  /**
@@ -1163,7 +1215,7 @@ declare class EvmContractsService {
1163
1215
  */
1164
1216
  updateContractInfo({ chainId, address, requestBody, }: {
1165
1217
  /**
1166
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1218
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
1219
  */
1168
1220
  chainId: string;
1169
1221
  /**
@@ -1297,6 +1349,9 @@ type Erc721TransferDetails = {
1297
1349
  erc721Token: Erc721Token;
1298
1350
  };
1299
1351
 
1352
+ /**
1353
+ * 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.
1354
+ */
1300
1355
  declare enum TransactionMethodType {
1301
1356
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1302
1357
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1304,9 +1359,6 @@ declare enum TransactionMethodType {
1304
1359
  }
1305
1360
 
1306
1361
  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
1362
  callType: TransactionMethodType;
1311
1363
  /**
1312
1364
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1667,7 +1719,7 @@ type ListTransfersResponse = {
1667
1719
  * 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
1720
  */
1669
1721
  nextPageToken?: string;
1670
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1722
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1671
1723
  };
1672
1724
 
1673
1725
  declare enum SortOrder {
@@ -1691,7 +1743,7 @@ declare class EvmTransactionsService {
1691
1743
  */
1692
1744
  getDeploymentTransaction({ chainId, address, currency, }: {
1693
1745
  /**
1694
- * 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.
1695
1747
  */
1696
1748
  chainId: string;
1697
1749
  /**
@@ -1709,23 +1761,23 @@ declare class EvmTransactionsService {
1709
1761
  * @returns ListContractsResponse
1710
1762
  * @throws ApiError
1711
1763
  */
1712
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1764
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1713
1765
  /**
1714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1766
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1715
1767
  */
1716
1768
  chainId: string;
1717
1769
  /**
1718
1770
  * A wallet address.
1719
1771
  */
1720
1772
  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
1773
  /**
1726
1774
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1727
1775
  */
1728
1776
  pageToken?: string;
1777
+ /**
1778
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1779
+ */
1780
+ pageSize?: number;
1729
1781
  }): CancelablePromise<ListContractsResponse>;
1730
1782
  /**
1731
1783
  * List ERC transfers
@@ -1733,9 +1785,9 @@ declare class EvmTransactionsService {
1733
1785
  * @returns ListTransfersResponse
1734
1786
  * @throws ApiError
1735
1787
  */
1736
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1788
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
1789
  /**
1738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1790
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
1791
  */
1740
1792
  chainId: string;
1741
1793
  /**
@@ -1750,14 +1802,14 @@ declare class EvmTransactionsService {
1750
1802
  * 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
1803
  */
1752
1804
  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
1805
  /**
1758
1806
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1759
1807
  */
1760
1808
  pageToken?: string;
1809
+ /**
1810
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1811
+ */
1812
+ pageSize?: number;
1761
1813
  }): CancelablePromise<ListTransfersResponse>;
1762
1814
  /**
1763
1815
  * List transactions
@@ -1767,23 +1819,23 @@ declare class EvmTransactionsService {
1767
1819
  * @returns ListTransactionDetailsResponse
1768
1820
  * @throws ApiError
1769
1821
  */
1770
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1822
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1771
1823
  /**
1772
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1824
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1773
1825
  */
1774
1826
  chainId: string;
1775
1827
  /**
1776
1828
  * A wallet address.
1777
1829
  */
1778
1830
  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
1831
  /**
1784
1832
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1785
1833
  */
1786
1834
  pageToken?: string;
1835
+ /**
1836
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1837
+ */
1838
+ pageSize?: number;
1787
1839
  /**
1788
1840
  * 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
1841
  */
@@ -1803,9 +1855,9 @@ declare class EvmTransactionsService {
1803
1855
  * @returns ListNativeTransactionsResponse
1804
1856
  * @throws ApiError
1805
1857
  */
1806
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1858
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1807
1859
  /**
1808
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1860
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1809
1861
  */
1810
1862
  chainId: string;
1811
1863
  /**
@@ -1820,14 +1872,14 @@ declare class EvmTransactionsService {
1820
1872
  * 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
1873
  */
1822
1874
  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
1875
  /**
1828
1876
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1829
1877
  */
1830
1878
  pageToken?: string;
1879
+ /**
1880
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1881
+ */
1882
+ pageSize?: number;
1831
1883
  }): CancelablePromise<ListNativeTransactionsResponse>;
1832
1884
  /**
1833
1885
  * List ERC-20 transfers
@@ -1835,9 +1887,9 @@ declare class EvmTransactionsService {
1835
1887
  * @returns ListErc20TransactionsResponse
1836
1888
  * @throws ApiError
1837
1889
  */
1838
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1890
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1839
1891
  /**
1840
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1892
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1841
1893
  */
1842
1894
  chainId: string;
1843
1895
  /**
@@ -1852,14 +1904,14 @@ declare class EvmTransactionsService {
1852
1904
  * 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
1905
  */
1854
1906
  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
1907
  /**
1860
1908
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1861
1909
  */
1862
1910
  pageToken?: string;
1911
+ /**
1912
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1913
+ */
1914
+ pageSize?: number;
1863
1915
  }): CancelablePromise<ListErc20TransactionsResponse>;
1864
1916
  /**
1865
1917
  * List ERC-721 transfers
@@ -1867,9 +1919,9 @@ declare class EvmTransactionsService {
1867
1919
  * @returns ListErc721TransactionsResponse
1868
1920
  * @throws ApiError
1869
1921
  */
1870
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1922
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1871
1923
  /**
1872
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1924
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1873
1925
  */
1874
1926
  chainId: string;
1875
1927
  /**
@@ -1884,14 +1936,14 @@ declare class EvmTransactionsService {
1884
1936
  * 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
1937
  */
1886
1938
  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
1939
  /**
1892
1940
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1893
1941
  */
1894
1942
  pageToken?: string;
1943
+ /**
1944
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1945
+ */
1946
+ pageSize?: number;
1895
1947
  }): CancelablePromise<ListErc721TransactionsResponse>;
1896
1948
  /**
1897
1949
  * List ERC-1155 transfers
@@ -1899,9 +1951,9 @@ declare class EvmTransactionsService {
1899
1951
  * @returns ListErc1155TransactionsResponse
1900
1952
  * @throws ApiError
1901
1953
  */
1902
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1954
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1903
1955
  /**
1904
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1956
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
1957
  */
1906
1958
  chainId: string;
1907
1959
  /**
@@ -1916,14 +1968,14 @@ declare class EvmTransactionsService {
1916
1968
  * 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
1969
  */
1918
1970
  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
1971
  /**
1924
1972
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1925
1973
  */
1926
1974
  pageToken?: string;
1975
+ /**
1976
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1977
+ */
1978
+ pageSize?: number;
1927
1979
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1928
1980
  /**
1929
1981
  * List internal transactions
@@ -1933,9 +1985,9 @@ declare class EvmTransactionsService {
1933
1985
  * @returns ListInternalTransactionsResponse
1934
1986
  * @throws ApiError
1935
1987
  */
1936
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1988
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1937
1989
  /**
1938
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1990
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1939
1991
  */
1940
1992
  chainId: string;
1941
1993
  /**
@@ -1950,14 +2002,14 @@ declare class EvmTransactionsService {
1950
2002
  * 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
2003
  */
1952
2004
  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
2005
  /**
1958
2006
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1959
2007
  */
1960
2008
  pageToken?: string;
2009
+ /**
2010
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2011
+ */
2012
+ pageSize?: number;
1961
2013
  }): CancelablePromise<ListInternalTransactionsResponse>;
1962
2014
  /**
1963
2015
  * Get transaction
@@ -1967,7 +2019,7 @@ declare class EvmTransactionsService {
1967
2019
  */
1968
2020
  getTransaction({ chainId, txHash, }: {
1969
2021
  /**
1970
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2022
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1971
2023
  */
1972
2024
  chainId: string;
1973
2025
  /**
@@ -1983,7 +2035,7 @@ declare class EvmTransactionsService {
1983
2035
  */
1984
2036
  getTransactionsForBlock({ chainId, blockId, }: {
1985
2037
  /**
1986
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2038
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1987
2039
  */
1988
2040
  chainId: string;
1989
2041
  /**
@@ -1997,19 +2049,19 @@ declare class EvmTransactionsService {
1997
2049
  * @returns ListNativeTransactionsResponse
1998
2050
  * @throws ApiError
1999
2051
  */
2000
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2052
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2001
2053
  /**
2002
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2054
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2003
2055
  */
2004
2056
  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
2057
  /**
2010
2058
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2011
2059
  */
2012
2060
  pageToken?: string;
2061
+ /**
2062
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2063
+ */
2064
+ pageSize?: number;
2013
2065
  /**
2014
2066
  * A status filter for listed transactions.
2015
2067
  */
@@ -2038,7 +2090,7 @@ type ListNftTokens = {
2038
2090
  * 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
2091
  */
2040
2092
  nextPageToken?: string;
2041
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2093
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2042
2094
  };
2043
2095
 
2044
2096
  declare class NfTsService {
@@ -2052,7 +2104,7 @@ declare class NfTsService {
2052
2104
  */
2053
2105
  reindexNft({ chainId, address, tokenId, }: {
2054
2106
  /**
2055
- * 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.
2056
2108
  */
2057
2109
  chainId: string;
2058
2110
  /**
@@ -2070,23 +2122,23 @@ declare class NfTsService {
2070
2122
  * @returns ListNftTokens
2071
2123
  * @throws ApiError
2072
2124
  */
2073
- listTokens({ chainId, address, pageSize, pageToken, }: {
2125
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2074
2126
  /**
2075
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2127
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
2128
  */
2077
2129
  chainId: string;
2078
2130
  /**
2079
2131
  * Contract address on the relevant chain.
2080
2132
  */
2081
2133
  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
2134
  /**
2087
2135
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2088
2136
  */
2089
2137
  pageToken?: string;
2138
+ /**
2139
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2140
+ */
2141
+ pageSize?: number;
2090
2142
  }): CancelablePromise<ListNftTokens>;
2091
2143
  /**
2092
2144
  * Get token details
@@ -2096,7 +2148,7 @@ declare class NfTsService {
2096
2148
  */
2097
2149
  getTokenDetails({ chainId, address, tokenId, }: {
2098
2150
  /**
2099
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2151
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2100
2152
  */
2101
2153
  chainId: string;
2102
2154
  /**
@@ -2115,8 +2167,12 @@ type EvmNetworkOptions = {
2115
2167
  includeChains: Array<string>;
2116
2168
  };
2117
2169
 
2170
+ declare enum EVMOperationType {
2171
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2172
+ }
2173
+
2118
2174
  type CreateEvmTransactionExportRequest = {
2119
- type: CreateEvmTransactionExportRequest.type;
2175
+ type: EVMOperationType;
2120
2176
  firstDate: string;
2121
2177
  lastDate: string;
2122
2178
  /**
@@ -2129,10 +2185,11 @@ type CreateEvmTransactionExportRequest = {
2129
2185
  endDate: string;
2130
2186
  options: EvmNetworkOptions;
2131
2187
  };
2132
- declare namespace CreateEvmTransactionExportRequest {
2133
- enum type {
2134
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2135
- }
2188
+
2189
+ declare enum PrimaryNetworkOperationType {
2190
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2191
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2192
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2136
2193
  }
2137
2194
 
2138
2195
  type PrimaryNetworkOptions = {
@@ -2142,7 +2199,7 @@ type PrimaryNetworkOptions = {
2142
2199
  };
2143
2200
 
2144
2201
  type CreatePrimaryNetworkTransactionExportRequest = {
2145
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2202
+ type: PrimaryNetworkOperationType;
2146
2203
  firstDate: string;
2147
2204
  lastDate: string;
2148
2205
  /**
@@ -2155,11 +2212,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2155
2212
  endDate: string;
2156
2213
  options: PrimaryNetworkOptions;
2157
2214
  };
2158
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2159
- enum type {
2160
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2161
- }
2162
- }
2163
2215
 
2164
2216
  declare enum OperationStatus {
2165
2217
  RUNNING = "RUNNING",
@@ -2169,8 +2221,10 @@ declare enum OperationStatus {
2169
2221
  }
2170
2222
 
2171
2223
  declare enum OperationType {
2172
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2173
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2224
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2225
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2226
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2227
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2174
2228
  }
2175
2229
 
2176
2230
  declare enum OperationStatusCode {
@@ -2362,13 +2416,44 @@ type BlockchainInfo = {
2362
2416
  blockchainId: string;
2363
2417
  };
2364
2418
 
2419
+ type SubnetOwnershipInfo = {
2420
+ /**
2421
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2422
+ */
2423
+ locktime: number;
2424
+ /**
2425
+ * Minimum number of signatures required to sign the Subnet update transactions.
2426
+ */
2427
+ threshold: number;
2428
+ /**
2429
+ * Addresses that are eligible to sign the Subnet update transactions.
2430
+ */
2431
+ addresses: Array<string>;
2432
+ };
2433
+
2365
2434
  type Subnet = {
2366
2435
  createBlockTimestamp: number;
2367
2436
  createBlockIndex: string;
2368
2437
  subnetId: string;
2438
+ /**
2439
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2440
+ * @deprecated
2441
+ */
2369
2442
  ownerAddresses: Array<string>;
2443
+ /**
2444
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2445
+ * @deprecated
2446
+ */
2370
2447
  threshold: number;
2448
+ /**
2449
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2450
+ * @deprecated
2451
+ */
2371
2452
  locktime: number;
2453
+ /**
2454
+ * Latest subnet owner details for this Subnet.
2455
+ */
2456
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2372
2457
  blockchains: Array<BlockchainInfo>;
2373
2458
  };
2374
2459
 
@@ -2505,6 +2590,22 @@ declare enum ValidationStatusType {
2505
2590
  REMOVED = "removed"
2506
2591
  }
2507
2592
 
2593
+ /**
2594
+ * Cap represents if an asset is a variable or fixed cap asset.
2595
+ */
2596
+ declare enum PrimaryNetworkAssetCap {
2597
+ FIXED = "fixed",
2598
+ VARIABLE = "variable"
2599
+ }
2600
+
2601
+ /**
2602
+ * Type of asset like SECP256K1 or NFT.
2603
+ */
2604
+ declare enum PrimaryNetworkAssetType {
2605
+ SECP256K1 = "secp256k1",
2606
+ NFT = "nft"
2607
+ }
2608
+
2508
2609
  type XChainAssetDetails = {
2509
2610
  /**
2510
2611
  * Unique ID for an asset.
@@ -2522,18 +2623,12 @@ type XChainAssetDetails = {
2522
2623
  * Denomination of this asset to represent fungibility.
2523
2624
  */
2524
2625
  denomination: number;
2525
- /**
2526
- * Type of asset like SECP256K1 or NFT.
2527
- */
2528
- type: string;
2626
+ type: PrimaryNetworkAssetType;
2529
2627
  /**
2530
2628
  * Timestamp in seconds this asset was created on.
2531
2629
  */
2532
2630
  createdAtTimestamp: number;
2533
- /**
2534
- * Cap represents if an asset can be or is fixed cap.
2535
- */
2536
- cap: string;
2631
+ cap: PrimaryNetworkAssetCap;
2537
2632
  };
2538
2633
 
2539
2634
  declare enum XChainId {
@@ -2599,19 +2694,19 @@ declare class PrimaryNetworkService {
2599
2694
  * @returns ListBlockchainsResponse
2600
2695
  * @throws ApiError
2601
2696
  */
2602
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2697
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2603
2698
  /**
2604
2699
  * Either mainnet or a testnet.
2605
2700
  */
2606
2701
  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
2702
  /**
2612
2703
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2613
2704
  */
2614
2705
  pageToken?: string;
2706
+ /**
2707
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2708
+ */
2709
+ pageSize?: number;
2615
2710
  /**
2616
2711
  * 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
2712
  */
@@ -2623,19 +2718,19 @@ declare class PrimaryNetworkService {
2623
2718
  * @returns ListSubnetsResponse
2624
2719
  * @throws ApiError
2625
2720
  */
2626
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2721
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2627
2722
  /**
2628
2723
  * Either mainnet or a testnet.
2629
2724
  */
2630
2725
  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
2726
  /**
2636
2727
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2637
2728
  */
2638
2729
  pageToken?: string;
2730
+ /**
2731
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2732
+ */
2733
+ pageSize?: number;
2639
2734
  /**
2640
2735
  * 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
2736
  */
@@ -2647,19 +2742,19 @@ declare class PrimaryNetworkService {
2647
2742
  * @returns ListValidatorDetailsResponse
2648
2743
  * @throws ApiError
2649
2744
  */
2650
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2745
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2651
2746
  /**
2652
2747
  * Either mainnet or a testnet.
2653
2748
  */
2654
2749
  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
2750
  /**
2660
2751
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2661
2752
  */
2662
2753
  pageToken?: string;
2754
+ /**
2755
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2756
+ */
2757
+ pageSize?: number;
2663
2758
  /**
2664
2759
  * A comma separated list of node ids to filter by.
2665
2760
  */
@@ -2675,27 +2770,27 @@ declare class PrimaryNetworkService {
2675
2770
  /**
2676
2771
  * 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
2772
  */
2678
- minDelegationCapacity?: any;
2773
+ minDelegationCapacity?: string;
2679
2774
  /**
2680
2775
  * 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
2776
  */
2682
- maxDelegationCapacity?: any;
2777
+ maxDelegationCapacity?: string;
2683
2778
  /**
2684
2779
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2685
2780
  */
2686
- minTimeRemaining?: any;
2781
+ minTimeRemaining?: number;
2687
2782
  /**
2688
2783
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2689
2784
  */
2690
- maxTimeRemaining?: any;
2785
+ maxTimeRemaining?: number;
2691
2786
  /**
2692
2787
  * 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
2788
  */
2694
- minFeePercentage?: any;
2789
+ minFeePercentage?: number;
2695
2790
  /**
2696
2791
  * 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
2792
  */
2698
- maxFeePercentage?: any;
2793
+ maxFeePercentage?: number;
2699
2794
  /**
2700
2795
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2701
2796
  */
@@ -2707,7 +2802,7 @@ declare class PrimaryNetworkService {
2707
2802
  * @returns ListValidatorDetailsResponse
2708
2803
  * @throws ApiError
2709
2804
  */
2710
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2805
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2711
2806
  /**
2712
2807
  * Either mainnet or a testnet.
2713
2808
  */
@@ -2716,14 +2811,14 @@ declare class PrimaryNetworkService {
2716
2811
  * A primary network (P or X chain) nodeId.
2717
2812
  */
2718
2813
  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
2814
  /**
2724
2815
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2725
2816
  */
2726
2817
  pageToken?: string;
2818
+ /**
2819
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2820
+ */
2821
+ pageSize?: number;
2727
2822
  /**
2728
2823
  * 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
2824
  */
@@ -2739,19 +2834,19 @@ declare class PrimaryNetworkService {
2739
2834
  * @returns ListDelegatorDetailsResponse
2740
2835
  * @throws ApiError
2741
2836
  */
2742
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2837
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
2838
  /**
2744
2839
  * Either mainnet or a testnet.
2745
2840
  */
2746
2841
  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
2842
  /**
2752
2843
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2753
2844
  */
2754
2845
  pageToken?: string;
2846
+ /**
2847
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2848
+ */
2849
+ pageSize?: number;
2755
2850
  /**
2756
2851
  * A comma separated list of reward addresses to filter by.
2757
2852
  */
@@ -2799,10 +2894,7 @@ type CChainSharedAssetBalance = {
2799
2894
  * Denomination of this asset to represent fungibility.
2800
2895
  */
2801
2896
  denomination: number;
2802
- /**
2803
- * Type of asset like SECP256K1 or NFT.
2804
- */
2805
- type: string;
2897
+ type: PrimaryNetworkAssetType;
2806
2898
  /**
2807
2899
  * Amount of the asset.
2808
2900
  */
@@ -2837,7 +2929,7 @@ type ListCChainAtomicBalancesResponse = {
2837
2929
  chainInfo: PrimaryNetworkChainInfo;
2838
2930
  };
2839
2931
 
2840
- type Asset = {
2932
+ type AggregatedAssetAmount = {
2841
2933
  /**
2842
2934
  * Unique ID for an asset.
2843
2935
  */
@@ -2854,14 +2946,12 @@ type Asset = {
2854
2946
  * Denomination of this asset to represent fungibility.
2855
2947
  */
2856
2948
  denomination: number;
2857
- /**
2858
- * Type of asset like SECP256K1 or NFT.
2859
- */
2860
- type: string;
2949
+ type: PrimaryNetworkAssetType;
2861
2950
  /**
2862
2951
  * Amount of the asset.
2863
2952
  */
2864
2953
  amount: string;
2954
+ utxoCount: number;
2865
2955
  };
2866
2956
 
2867
2957
  type PChainSharedAsset = {
@@ -2881,49 +2971,47 @@ type PChainSharedAsset = {
2881
2971
  * Denomination of this asset to represent fungibility.
2882
2972
  */
2883
2973
  denomination: number;
2884
- /**
2885
- * Type of asset like SECP256K1 or NFT.
2886
- */
2887
- type: string;
2974
+ type: PrimaryNetworkAssetType;
2888
2975
  /**
2889
2976
  * Amount of the asset.
2890
2977
  */
2891
2978
  amount: string;
2979
+ utxoCount: number;
2892
2980
  sharedWithChainId: string;
2893
2981
  status: string;
2894
2982
  };
2895
2983
 
2896
2984
  type PChainBalance = {
2897
2985
  /**
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.
2986
+ * 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
2987
  */
2900
- unlockedUnstaked: Array<Asset>;
2988
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2901
2989
  /**
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.
2990
+ * 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
2991
  */
2904
- unlockedStaked: Array<Asset>;
2992
+ unlockedStaked: Array<AggregatedAssetAmount>;
2905
2993
  /**
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.
2994
+ * 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
2995
  */
2908
- lockedPlatform: Array<Asset>;
2996
+ lockedPlatform: Array<AggregatedAssetAmount>;
2909
2997
  /**
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.
2998
+ * 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
2999
  */
2912
- lockedStakeable: Array<Asset>;
3000
+ lockedStakeable: Array<AggregatedAssetAmount>;
2913
3001
  /**
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.
3002
+ * 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
3003
  */
2916
- lockedStaked: Array<Asset>;
3004
+ lockedStaked: Array<AggregatedAssetAmount>;
2917
3005
  /**
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.
3006
+ * 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
3007
  */
2920
- pendingStaked: Array<Asset>;
3008
+ pendingStaked: Array<AggregatedAssetAmount>;
2921
3009
  /**
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.
3010
+ * 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
3011
  */
2924
3012
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2925
3013
  /**
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.
3014
+ * 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
3015
  */
2928
3016
  atomicMemoryLocked: Array<PChainSharedAsset>;
2929
3017
  };
@@ -2933,34 +3021,6 @@ type ListPChainBalancesResponse = {
2933
3021
  chainInfo: PrimaryNetworkChainInfo;
2934
3022
  };
2935
3023
 
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
3024
  type XChainSharedAssetBalance = {
2965
3025
  /**
2966
3026
  * Unique ID for an asset.
@@ -2978,10 +3038,7 @@ type XChainSharedAssetBalance = {
2978
3038
  * Denomination of this asset to represent fungibility.
2979
3039
  */
2980
3040
  denomination: number;
2981
- /**
2982
- * Type of asset like SECP256K1 or NFT.
2983
- */
2984
- type: string;
3041
+ type: PrimaryNetworkAssetType;
2985
3042
  /**
2986
3043
  * Amount of the asset.
2987
3044
  */
@@ -2994,11 +3051,11 @@ type XChainBalances = {
2994
3051
  /**
2995
3052
  * A list of objects containing X-chain Asset balance information.
2996
3053
  */
2997
- locked: Array<XChainAssetBalance>;
3054
+ locked: Array<AggregatedAssetAmount>;
2998
3055
  /**
2999
3056
  * A list of objects containing X-chain Asset balance information.
3000
3057
  */
3001
- unlocked: Array<XChainAssetBalance>;
3058
+ unlocked: Array<AggregatedAssetAmount>;
3002
3059
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3003
3060
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3004
3061
  };
@@ -3111,7 +3168,7 @@ declare class PrimaryNetworkBlocksService {
3111
3168
  * @returns ListPrimaryNetworkBlocksResponse
3112
3169
  * @throws ApiError
3113
3170
  */
3114
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3171
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3115
3172
  /**
3116
3173
  * A primary network blockchain id or alias.
3117
3174
  */
@@ -3124,14 +3181,14 @@ declare class PrimaryNetworkBlocksService {
3124
3181
  * A primary network (P or X chain) nodeId.
3125
3182
  */
3126
3183
  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
3184
  /**
3132
3185
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3133
3186
  */
3134
3187
  pageToken?: string;
3188
+ /**
3189
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3190
+ */
3191
+ pageSize?: number;
3135
3192
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3136
3193
  /**
3137
3194
  * List latest blocks
@@ -3139,7 +3196,7 @@ declare class PrimaryNetworkBlocksService {
3139
3196
  * @returns ListPrimaryNetworkBlocksResponse
3140
3197
  * @throws ApiError
3141
3198
  */
3142
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3199
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3143
3200
  /**
3144
3201
  * A primary network blockchain id or alias.
3145
3202
  */
@@ -3148,17 +3205,45 @@ declare class PrimaryNetworkBlocksService {
3148
3205
  * Either mainnet or a testnet.
3149
3206
  */
3150
3207
  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
3208
  /**
3156
3209
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3157
3210
  */
3158
3211
  pageToken?: string;
3212
+ /**
3213
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3214
+ */
3215
+ pageSize?: number;
3159
3216
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3160
3217
  }
3161
3218
 
3219
+ type AssetWithPriceInfo = {
3220
+ /**
3221
+ * Unique ID for an asset.
3222
+ */
3223
+ assetId: string;
3224
+ /**
3225
+ * Name of this asset.
3226
+ */
3227
+ name: string;
3228
+ /**
3229
+ * Symbol for this asset (max 4 characters).
3230
+ */
3231
+ symbol: string;
3232
+ /**
3233
+ * Denomination of this asset to represent fungibility.
3234
+ */
3235
+ denomination: number;
3236
+ type: PrimaryNetworkAssetType;
3237
+ /**
3238
+ * Amount of the asset.
3239
+ */
3240
+ amount: string;
3241
+ /**
3242
+ * 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.
3243
+ */
3244
+ historicalPrice?: Money;
3245
+ };
3246
+
3162
3247
  declare enum RewardType {
3163
3248
  VALIDATOR = "VALIDATOR",
3164
3249
  DELEGATOR = "DELEGATOR",
@@ -3178,10 +3263,7 @@ type HistoricalReward = {
3178
3263
  rewardType: RewardType;
3179
3264
  utxoId: string;
3180
3265
  outputIndex: number;
3181
- /**
3182
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3183
- */
3184
- reward: Asset;
3266
+ reward: AssetWithPriceInfo;
3185
3267
  rewardTxHash: string;
3186
3268
  };
3187
3269
 
@@ -3193,6 +3275,30 @@ type ListHistoricalRewardsResponse = {
3193
3275
  historicalRewards: Array<HistoricalReward>;
3194
3276
  };
3195
3277
 
3278
+ type AssetAmount = {
3279
+ /**
3280
+ * Unique ID for an asset.
3281
+ */
3282
+ assetId: string;
3283
+ /**
3284
+ * Name of this asset.
3285
+ */
3286
+ name: string;
3287
+ /**
3288
+ * Symbol for this asset (max 4 characters).
3289
+ */
3290
+ symbol: string;
3291
+ /**
3292
+ * Denomination of this asset to represent fungibility.
3293
+ */
3294
+ denomination: number;
3295
+ type: PrimaryNetworkAssetType;
3296
+ /**
3297
+ * Amount of the asset.
3298
+ */
3299
+ amount: string;
3300
+ };
3301
+
3196
3302
  type PendingReward = {
3197
3303
  /**
3198
3304
  * An array of P-Chain wallet addresses.
@@ -3206,9 +3312,9 @@ type PendingReward = {
3206
3312
  rewardType: RewardType;
3207
3313
  progress: number;
3208
3314
  /**
3209
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3315
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3210
3316
  */
3211
- estimatedReward: Asset;
3317
+ estimatedReward: AssetAmount;
3212
3318
  };
3213
3319
 
3214
3320
  type ListPendingRewardsResponse = {
@@ -3228,25 +3334,25 @@ declare class PrimaryNetworkRewardsService {
3228
3334
  * @returns ListPendingRewardsResponse
3229
3335
  * @throws ApiError
3230
3336
  */
3231
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3337
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3232
3338
  /**
3233
3339
  * Either mainnet or a testnet.
3234
3340
  */
3235
3341
  network: Network;
3236
3342
  /**
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.
3343
+ * 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
3344
  */
3239
3345
  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
3346
  /**
3245
3347
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3246
3348
  */
3247
3349
  pageToken?: string;
3248
3350
  /**
3249
- * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3351
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3352
+ */
3353
+ pageSize?: number;
3354
+ /**
3355
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3250
3356
  */
3251
3357
  nodeIds?: string;
3252
3358
  /**
@@ -3260,7 +3366,7 @@ declare class PrimaryNetworkRewardsService {
3260
3366
  * @returns ListHistoricalRewardsResponse
3261
3367
  * @throws ApiError
3262
3368
  */
3263
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3369
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3264
3370
  /**
3265
3371
  * Either mainnet or a testnet.
3266
3372
  */
@@ -3269,14 +3375,14 @@ declare class PrimaryNetworkRewardsService {
3269
3375
  * 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
3376
  */
3271
3377
  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
3378
  /**
3277
3379
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3278
3380
  */
3279
3381
  pageToken?: string;
3382
+ /**
3383
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3384
+ */
3385
+ pageSize?: number;
3280
3386
  /**
3281
3387
  * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3282
3388
  */
@@ -3285,6 +3391,10 @@ declare class PrimaryNetworkRewardsService {
3285
3391
  * 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
3392
  */
3287
3393
  sortOrder?: SortOrder;
3394
+ /**
3395
+ * The currency that return values should use. Defaults to USD.
3396
+ */
3397
+ currency?: CurrencyCode;
3288
3398
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3289
3399
  }
3290
3400
 
@@ -3305,9 +3415,9 @@ type EVMInput = {
3305
3415
  */
3306
3416
  fromAddress: string;
3307
3417
  /**
3308
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
3309
3419
  */
3310
- asset: Asset;
3420
+ asset: AssetAmount;
3311
3421
  /**
3312
3422
  * Credentials that signed this transaction.
3313
3423
  */
@@ -3319,7 +3429,7 @@ type Utxo = {
3319
3429
  * Addresses that are eligible to sign the consumption of this output.
3320
3430
  */
3321
3431
  addresses: Array<string>;
3322
- asset: Asset;
3432
+ asset: AssetAmount;
3323
3433
  /**
3324
3434
  * Blockchain ID on which this output is consumed on.
3325
3435
  */
@@ -3402,11 +3512,11 @@ type CChainExportTransaction = {
3402
3512
  /**
3403
3513
  * Assets unlocked by inputs of this transaction.
3404
3514
  */
3405
- amountUnlocked: Array<Asset>;
3515
+ amountUnlocked: Array<AssetAmount>;
3406
3516
  /**
3407
3517
  * Assets created by outputs of this transaction.
3408
3518
  */
3409
- amountCreated: Array<Asset>;
3519
+ amountCreated: Array<AssetAmount>;
3410
3520
  /**
3411
3521
  * Source chain for an atomic transaction.
3412
3522
  */
@@ -3437,9 +3547,9 @@ type EVMOutput = {
3437
3547
  */
3438
3548
  toAddress: string;
3439
3549
  /**
3440
- * Asset details for the asset being transferred.
3550
+ * AssetAmount details for the asset being transferred.
3441
3551
  */
3442
- asset: Asset;
3552
+ asset: AssetAmount;
3443
3553
  };
3444
3554
 
3445
3555
  type CChainImportTransaction = {
@@ -3466,11 +3576,11 @@ type CChainImportTransaction = {
3466
3576
  /**
3467
3577
  * Assets unlocked by inputs of this transaction.
3468
3578
  */
3469
- amountUnlocked: Array<Asset>;
3579
+ amountUnlocked: Array<AssetAmount>;
3470
3580
  /**
3471
3581
  * Assets created by outputs of this transaction.
3472
3582
  */
3473
- amountCreated: Array<Asset>;
3583
+ amountCreated: Array<AssetAmount>;
3474
3584
  /**
3475
3585
  * Source chain for an atomic transaction.
3476
3586
  */
@@ -3518,6 +3628,8 @@ declare enum PChainTransactionType {
3518
3628
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3519
3629
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3520
3630
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3631
+ BASE_TX = "BaseTx",
3632
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3521
3633
  UNKNOWN = "UNKNOWN"
3522
3634
  }
3523
3635
 
@@ -3531,7 +3643,7 @@ type PChainUtxo = {
3531
3643
  * Addresses that are eligible to sign the consumption of this output.
3532
3644
  */
3533
3645
  addresses: Array<string>;
3534
- asset: Asset;
3646
+ asset: AssetAmount;
3535
3647
  /**
3536
3648
  * Blockchain ID on which this output is consumed on.
3537
3649
  */
@@ -3595,17 +3707,17 @@ type PChainTransaction = {
3595
3707
  */
3596
3708
  destinationChain?: string;
3597
3709
  /**
3598
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3710
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3599
3711
  */
3600
- value: Array<Asset>;
3712
+ value: Array<AssetAmount>;
3601
3713
  /**
3602
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3714
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3603
3715
  */
3604
- amountBurned: Array<Asset>;
3716
+ amountBurned: Array<AssetAmount>;
3605
3717
  /**
3606
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3718
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3607
3719
  */
3608
- amountStaked: Array<Asset>;
3720
+ amountStaked: Array<AssetAmount>;
3609
3721
  /**
3610
3722
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3611
3723
  */
@@ -3637,6 +3749,10 @@ type PChainTransaction = {
3637
3749
  * Present for RewardValidatorTx
3638
3750
  */
3639
3751
  stakingTxHash?: string;
3752
+ /**
3753
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3754
+ */
3755
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3640
3756
  };
3641
3757
 
3642
3758
  type ListPChainTransactionsResponse = {
@@ -3648,6 +3764,9 @@ type ListPChainTransactionsResponse = {
3648
3764
  chainInfo: PrimaryNetworkChainInfo;
3649
3765
  };
3650
3766
 
3767
+ /**
3768
+ * Type of transaction.
3769
+ */
3651
3770
  declare enum XChainTransactionType {
3652
3771
  BASE_TX = "BaseTx",
3653
3772
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3670,9 +3789,6 @@ type XChainLinearTransaction = {
3670
3789
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3671
3790
  */
3672
3791
  timestamp: number;
3673
- /**
3674
- * Type of transaction.
3675
- */
3676
3792
  txType: XChainTransactionType;
3677
3793
  /**
3678
3794
  * Hex encoded memo bytes for this transaction.
@@ -3683,11 +3799,11 @@ type XChainLinearTransaction = {
3683
3799
  /**
3684
3800
  * Assets unlocked by inputs of this transaction.
3685
3801
  */
3686
- amountUnlocked: Array<Asset>;
3802
+ amountUnlocked: Array<AssetAmount>;
3687
3803
  /**
3688
3804
  * Assets created by outputs of this transaction.
3689
3805
  */
3690
- amountCreated: Array<Asset>;
3806
+ amountCreated: Array<AssetAmount>;
3691
3807
  /**
3692
3808
  * Source chain for an atomic transaction.
3693
3809
  */
@@ -3697,7 +3813,7 @@ type XChainLinearTransaction = {
3697
3813
  */
3698
3814
  destinationChain?: string;
3699
3815
  /**
3700
- * Asset details of the asset created in CreateAssetTx
3816
+ * AssetAmount details of the asset created in CreateAssetTx
3701
3817
  */
3702
3818
  assetCreated?: XChainAssetDetails;
3703
3819
  /**
@@ -3747,9 +3863,6 @@ type XChainNonLinearTransaction = {
3747
3863
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3748
3864
  */
3749
3865
  timestamp: number;
3750
- /**
3751
- * Type of transaction.
3752
- */
3753
3866
  txType: XChainTransactionType;
3754
3867
  /**
3755
3868
  * Hex encoded memo bytes for this transaction.
@@ -3760,11 +3873,11 @@ type XChainNonLinearTransaction = {
3760
3873
  /**
3761
3874
  * Assets unlocked by inputs of this transaction.
3762
3875
  */
3763
- amountUnlocked: Array<Asset>;
3876
+ amountUnlocked: Array<AssetAmount>;
3764
3877
  /**
3765
3878
  * Assets created by outputs of this transaction.
3766
3879
  */
3767
- amountCreated: Array<Asset>;
3880
+ amountCreated: Array<AssetAmount>;
3768
3881
  /**
3769
3882
  * Source chain for an atomic transaction.
3770
3883
  */
@@ -3774,7 +3887,7 @@ type XChainNonLinearTransaction = {
3774
3887
  */
3775
3888
  destinationChain?: string;
3776
3889
  /**
3777
- * Asset details of the asset created in CreateAssetTx
3890
+ * AssetAmount details of the asset created in CreateAssetTx
3778
3891
  */
3779
3892
  assetCreated?: XChainAssetDetails;
3780
3893
  /**
@@ -3820,8 +3933,9 @@ declare enum PrimaryNetworkTxType {
3820
3933
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3821
3934
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3822
3935
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3823
- UNKNOWN = "UNKNOWN",
3824
3936
  BASE_TX = "BaseTx",
3937
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3938
+ UNKNOWN = "UNKNOWN",
3825
3939
  CREATE_ASSET_TX = "CreateAssetTx",
3826
3940
  OPERATION_TX = "OperationTx"
3827
3941
  }
@@ -3853,13 +3967,13 @@ declare class PrimaryNetworkTransactionsService {
3853
3967
  * List latest transactions
3854
3968
  * Lists the latest transactions on one of the Primary Network chains.
3855
3969
  *
3856
- * Transactions are filterable by addresses.
3970
+ * 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
3971
  *
3858
3972
  * 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
3973
  * @returns any
3860
3974
  * @throws ApiError
3861
3975
  */
3862
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3976
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3863
3977
  /**
3864
3978
  * A primary network blockchain id or alias.
3865
3979
  */
@@ -3884,14 +3998,14 @@ declare class PrimaryNetworkTransactionsService {
3884
3998
  * Query param for retrieving items before a specific timestamp.
3885
3999
  */
3886
4000
  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
4001
  /**
3892
4002
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3893
4003
  */
3894
4004
  pageToken?: string;
4005
+ /**
4006
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4007
+ */
4008
+ pageSize?: number;
3895
4009
  /**
3896
4010
  * 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
4011
  */
@@ -3903,7 +4017,7 @@ declare class PrimaryNetworkTransactionsService {
3903
4017
  * @returns ListPChainTransactionsResponse
3904
4018
  * @throws ApiError
3905
4019
  */
3906
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
4020
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3907
4021
  /**
3908
4022
  * A primary network blockchain id or alias.
3909
4023
  */
@@ -3928,14 +4042,14 @@ declare class PrimaryNetworkTransactionsService {
3928
4042
  * Query param for retrieving items before a specific timestamp.
3929
4043
  */
3930
4044
  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
4045
  /**
3936
4046
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3937
4047
  */
3938
4048
  pageToken?: string;
4049
+ /**
4050
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4051
+ */
4052
+ pageSize?: number;
3939
4053
  /**
3940
4054
  * 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
4055
  */
@@ -3947,7 +4061,7 @@ declare class PrimaryNetworkTransactionsService {
3947
4061
  * @returns ListXChainTransactionsResponse
3948
4062
  * @throws ApiError
3949
4063
  */
3950
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
4064
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3951
4065
  /**
3952
4066
  * A primary network blockchain id or alias.
3953
4067
  */
@@ -3972,14 +4086,14 @@ declare class PrimaryNetworkTransactionsService {
3972
4086
  * Query param for retrieving items before a specific timestamp.
3973
4087
  */
3974
4088
  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
4089
  /**
3980
4090
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3981
4091
  */
3982
4092
  pageToken?: string;
4093
+ /**
4094
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4095
+ */
4096
+ pageSize?: number;
3983
4097
  }): CancelablePromise<ListXChainTransactionsResponse>;
3984
4098
  }
3985
4099
 
@@ -4010,7 +4124,7 @@ declare class PrimaryNetworkUtxOsService {
4010
4124
  * @returns any
4011
4125
  * @throws ApiError
4012
4126
  */
4013
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4127
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
4014
4128
  /**
4015
4129
  * A primary network blockchain id or alias.
4016
4130
  */
@@ -4023,14 +4137,14 @@ declare class PrimaryNetworkUtxOsService {
4023
4137
  * 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
4138
  */
4025
4139
  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
4140
  /**
4031
4141
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4032
4142
  */
4033
4143
  pageToken?: string;
4144
+ /**
4145
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4146
+ */
4147
+ pageSize?: number;
4034
4148
  /**
4035
4149
  * Asset ID for any asset (only applicable X-Chain)
4036
4150
  */
@@ -4075,7 +4189,7 @@ declare class PrimaryNetworkVerticesService {
4075
4189
  * @returns ListXChainVerticesResponse
4076
4190
  * @throws ApiError
4077
4191
  */
4078
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4192
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4079
4193
  /**
4080
4194
  * A primary network blockchain id or alias.
4081
4195
  */
@@ -4084,14 +4198,14 @@ declare class PrimaryNetworkVerticesService {
4084
4198
  * Either mainnet or a testnet.
4085
4199
  */
4086
4200
  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
4201
  /**
4092
4202
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4093
4203
  */
4094
4204
  pageToken?: string;
4205
+ /**
4206
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4207
+ */
4208
+ pageSize?: number;
4095
4209
  }): CancelablePromise<ListXChainVerticesResponse>;
4096
4210
  /**
4097
4211
  * Get vertex
@@ -4119,7 +4233,7 @@ declare class PrimaryNetworkVerticesService {
4119
4233
  * @returns ListXChainVerticesResponse
4120
4234
  * @throws ApiError
4121
4235
  */
4122
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4236
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4123
4237
  /**
4124
4238
  * The height of a vertex.
4125
4239
  */
@@ -4132,14 +4246,14 @@ declare class PrimaryNetworkVerticesService {
4132
4246
  * Either mainnet or a testnet.
4133
4247
  */
4134
4248
  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
4249
  /**
4140
4250
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4141
4251
  */
4142
4252
  pageToken?: string;
4253
+ /**
4254
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4255
+ */
4256
+ pageSize?: number;
4143
4257
  /**
4144
4258
  * 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
4259
  */
@@ -4155,6 +4269,11 @@ type TeleporterDestinationTransaction = {
4155
4269
  delivererAddress: string;
4156
4270
  };
4157
4271
 
4272
+ type TeleporterReceipt = {
4273
+ receivedMessageNonce: string;
4274
+ relayerRewardAddress: string;
4275
+ };
4276
+
4158
4277
  type TeleporterRewardDetails = {
4159
4278
  /**
4160
4279
  * A wallet or contract address in mixed-case checksum encoding.
@@ -4190,14 +4309,16 @@ declare namespace TeleporterRewardDetails {
4190
4309
  }
4191
4310
 
4192
4311
  type DeliveredSourceNotIndexedTeleporterMessage = {
4312
+ messageId: string;
4313
+ teleporterContractAddress: string;
4193
4314
  sourceBlockchainId: string;
4194
4315
  destinationBlockchainId: string;
4195
- messageId: string;
4316
+ messageNonce: string;
4196
4317
  from: string;
4197
4318
  to: string;
4198
4319
  data?: string;
4199
4320
  messageExecuted: boolean;
4200
- receipts: Array<string>;
4321
+ receipts: Array<TeleporterReceipt>;
4201
4322
  receiptDelivered: boolean;
4202
4323
  rewardDetails: TeleporterRewardDetails;
4203
4324
  destinationTransaction: TeleporterDestinationTransaction;
@@ -4216,14 +4337,16 @@ type TeleporterSourceTransaction = {
4216
4337
  };
4217
4338
 
4218
4339
  type DeliveredTeleporterMessage = {
4340
+ messageId: string;
4341
+ teleporterContractAddress: string;
4219
4342
  sourceBlockchainId: string;
4220
4343
  destinationBlockchainId: string;
4221
- messageId: string;
4344
+ messageNonce: string;
4222
4345
  from: string;
4223
4346
  to: string;
4224
4347
  data?: string;
4225
4348
  messageExecuted: boolean;
4226
- receipts: Array<string>;
4349
+ receipts: Array<TeleporterReceipt>;
4227
4350
  receiptDelivered: boolean;
4228
4351
  rewardDetails: TeleporterRewardDetails;
4229
4352
  sourceTransaction: TeleporterSourceTransaction;
@@ -4244,14 +4367,16 @@ type NextPageToken = {
4244
4367
  };
4245
4368
 
4246
4369
  type PendingTeleporterMessage = {
4370
+ messageId: string;
4371
+ teleporterContractAddress: string;
4247
4372
  sourceBlockchainId: string;
4248
4373
  destinationBlockchainId: string;
4249
- messageId: string;
4374
+ messageNonce: string;
4250
4375
  from: string;
4251
4376
  to: string;
4252
4377
  data?: string;
4253
4378
  messageExecuted: boolean;
4254
- receipts: Array<string>;
4379
+ receipts: Array<TeleporterReceipt>;
4255
4380
  receiptDelivered: boolean;
4256
4381
  rewardDetails: TeleporterRewardDetails;
4257
4382
  sourceTransaction: TeleporterSourceTransaction;
@@ -4268,23 +4393,15 @@ declare class TeleporterService {
4268
4393
  constructor(httpRequest: BaseHttpRequest);
4269
4394
  /**
4270
4395
  * Get a teleporter message
4271
- * Gets a teleporter message by source chain, destination chain, and message ID.
4396
+ * Gets a teleporter message by message ID.
4272
4397
  * @returns any
4273
4398
  * @throws ApiError
4274
4399
  */
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;
4400
+ getTeleporterMessage({ messageId, }: {
4284
4401
  /**
4285
4402
  * The message ID of the teleporter message.
4286
4403
  */
4287
- messageId: any;
4404
+ messageId: string;
4288
4405
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4289
4406
  /**
4290
4407
  * List teleporter messages
@@ -4292,31 +4409,31 @@ declare class TeleporterService {
4292
4409
  * @returns any
4293
4410
  * @throws ApiError
4294
4411
  */
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;
4412
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4300
4413
  /**
4301
4414
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4302
4415
  */
4303
4416
  pageToken?: string;
4304
4417
  /**
4305
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4418
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4419
+ */
4420
+ pageSize?: number;
4421
+ /**
4422
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4306
4423
  */
4307
- sourceBlockchainId?: any;
4424
+ sourceBlockchainId?: string;
4308
4425
  /**
4309
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4426
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4310
4427
  */
4311
- destinationBlockchainId?: any;
4428
+ destinationBlockchainId?: string;
4312
4429
  /**
4313
4430
  * The address of the recipient of the teleporter message.
4314
4431
  */
4315
- to?: any;
4432
+ to?: string;
4316
4433
  /**
4317
4434
  * The address of the sender of the teleporter message.
4318
4435
  */
4319
- from?: any;
4436
+ from?: string;
4320
4437
  }): CancelablePromise<NextPageToken>;
4321
4438
  }
4322
4439
 
@@ -4360,4 +4477,4 @@ declare class ApiError extends Error {
4360
4477
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4361
4478
  }
4362
4479
 
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 };
4480
+ 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, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, 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 };