@avalabs/glacier-sdk 2.8.0-canary.3761e06.0 → 2.8.0-canary.395d605.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 (98) hide show
  1. package/dist/index.d.ts +564 -465
  2. package/dist/index.js +217 -154
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  6. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  7. package/esm/generated/models/AssetWithPriceInfo.d.ts +2 -4
  8. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  9. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  10. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  11. package/esm/generated/models/ChainInfo.d.ts +1 -3
  12. package/esm/generated/models/ChainStatus.d.ts +3 -0
  13. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  14. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  15. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  16. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
  17. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
  18. package/esm/generated/models/EVMInput.d.ts +3 -3
  19. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  20. package/esm/generated/models/EVMOperationType.js +6 -0
  21. package/esm/generated/models/EVMOutput.d.ts +3 -3
  22. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  23. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  24. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  25. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  26. package/esm/generated/models/GlacierApiFeature.js +6 -0
  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/PrimaryNetworkOptions.d.ts +1 -1
  49. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  50. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  51. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  52. package/esm/generated/models/Subnet.d.ts +17 -0
  53. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  54. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  55. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  56. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  57. package/esm/generated/models/Utxo.d.ts +2 -2
  58. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  59. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  60. package/esm/generated/models/XChainBalances.d.ts +3 -3
  61. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  62. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  63. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  64. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  65. package/esm/generated/services/DefaultService.d.ts +0 -53
  66. package/esm/generated/services/DefaultService.js +0 -42
  67. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  68. package/esm/generated/services/EvmBalancesService.js +8 -8
  69. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  70. package/esm/generated/services/EvmBlocksService.js +4 -4
  71. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  72. package/esm/generated/services/EvmChainsService.js +4 -2
  73. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  74. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  75. package/esm/generated/services/EvmTransactionsService.js +32 -32
  76. package/esm/generated/services/NfTsService.d.ts +8 -8
  77. package/esm/generated/services/NfTsService.js +4 -4
  78. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  79. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  80. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +12 -12
  81. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -4
  82. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -32
  83. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  84. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  85. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  86. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  87. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  88. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  89. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  90. package/esm/generated/services/TeleporterService.d.ts +14 -22
  91. package/esm/generated/services/TeleporterService.js +4 -8
  92. package/esm/generated/services/WebhooksService.d.ts +95 -0
  93. package/esm/generated/services/WebhooksService.js +80 -0
  94. package/esm/index.d.ts +11 -2
  95. package/esm/index.js +6 -2
  96. package/package.json +2 -2
  97. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  98. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts CHANGED
@@ -60,63 +60,6 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
- type AddressActivityMetadata = {
64
- /**
65
- * Ethereum address for the address_activity event type
66
- */
67
- address: string;
68
- /**
69
- * Array of hexadecimal strings of the event signatures.
70
- */
71
- eventSignatures?: Array<string>;
72
- };
73
-
74
- declare enum EventType {
75
- ADDRESS_ACTIVITY = "address_activity"
76
- }
77
-
78
- declare enum WebhookStatusType {
79
- ACTIVE = "active",
80
- INACTIVE = "inactive"
81
- }
82
-
83
- type WebhookResponse = {
84
- id: string;
85
- eventType: EventType;
86
- metadata: AddressActivityMetadata;
87
- url: string;
88
- chainId: string;
89
- status: WebhookStatusType;
90
- createdAt: number;
91
- };
92
-
93
- type ListWebhooksResponse = {
94
- /**
95
- * 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.
96
- */
97
- nextPageToken?: string;
98
- webhooks: Array<WebhookResponse>;
99
- };
100
-
101
- type RegisterWebhookRequest = {
102
- url: string;
103
- chainId: string;
104
- /**
105
- * The type of event for the webhook
106
- */
107
- eventType: EventType;
108
- metadata: AddressActivityMetadata;
109
- };
110
-
111
- type SharedSecretsResponse = {
112
- secret: string;
113
- };
114
-
115
- declare enum WebhookStatus {
116
- ACTIVE = "active",
117
- INACTIVE = "inactive"
118
- }
119
-
120
63
  declare class DefaultService {
121
64
  readonly httpRequest: BaseHttpRequest;
122
65
  constructor(httpRequest: BaseHttpRequest);
@@ -125,56 +68,11 @@ declare class DefaultService {
125
68
  * @throws ApiError
126
69
  */
127
70
  mediaControllerUploadImage(): CancelablePromise<any>;
128
- /**
129
- * Register a webhook
130
- * Registers a new webhook.
131
- * @returns WebhookResponse
132
- * @throws ApiError
133
- */
134
- registerWebhook({ requestBody, }: {
135
- requestBody: RegisterWebhookRequest;
136
- }): CancelablePromise<WebhookResponse>;
137
- /**
138
- * List webhooks
139
- * Lists webhooks for the user.
140
- * @returns ListWebhooksResponse
141
- * @throws ApiError
142
- */
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;
148
- /**
149
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
150
- */
151
- pageToken?: string;
152
- /**
153
- * 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
- */
155
- status?: WebhookStatus;
156
- }): CancelablePromise<ListWebhooksResponse>;
157
- /**
158
- * Deactivate a webhook
159
- * Deactivates a webhook by ID.
160
- * @returns WebhookResponse
161
- * @throws ApiError
162
- */
163
- deactivateWebhook({ id, }: {
164
- /**
165
- * The webhook identifier.
166
- */
167
- id: string;
168
- }): CancelablePromise<WebhookResponse>;
169
- /**
170
- * Generate a shared secret
171
- * Generates a new shared secret.
172
- * @returns SharedSecretsResponse
173
- * @throws ApiError
174
- */
175
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
176
71
  }
177
72
 
73
+ /**
74
+ * ISO 4217 currency code.
75
+ */
178
76
  declare enum CurrencyCode {
179
77
  USD = "usd",
180
78
  EUR = "eur",
@@ -193,9 +91,6 @@ declare enum CurrencyCode {
193
91
  }
194
92
 
195
93
  type Money = {
196
- /**
197
- * ISO 4217 currency code.
198
- */
199
94
  currencyCode: CurrencyCode;
200
95
  /**
201
96
  * Monetary value in base 10 decimals.
@@ -245,6 +140,9 @@ type GetNativeBalanceResponse = {
245
140
  nativeTokenBalance: NativeTokenBalance;
246
141
  };
247
142
 
143
+ /**
144
+ * The metadata indexing status of the nft.
145
+ */
248
146
  declare enum NftTokenMetadataStatus {
249
147
  UNKNOWN = "UNKNOWN",
250
148
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -260,9 +158,6 @@ declare enum NftTokenMetadataStatus {
260
158
  }
261
159
 
262
160
  type Erc1155TokenMetadata = {
263
- /**
264
- * The metadata indexing status of the nft.
265
- */
266
161
  indexStatus: NftTokenMetadataStatus;
267
162
  metadataLastUpdatedTimestamp?: number;
268
163
  name?: string;
@@ -301,9 +196,6 @@ declare namespace Erc1155TokenBalance {
301
196
  }
302
197
 
303
198
  type Erc721TokenMetadata = {
304
- /**
305
- * The metadata indexing status of the nft.
306
- */
307
199
  indexStatus: NftTokenMetadataStatus;
308
200
  metadataLastUpdatedTimestamp?: number;
309
201
  name?: string;
@@ -450,7 +342,7 @@ declare class EvmBalancesService {
450
342
  */
451
343
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
452
344
  /**
453
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
345
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
454
346
  */
455
347
  chainId: string;
456
348
  /**
@@ -476,9 +368,9 @@ declare class EvmBalancesService {
476
368
  * @returns ListErc20BalancesResponse
477
369
  * @throws ApiError
478
370
  */
479
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
371
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
480
372
  /**
481
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
373
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
482
374
  */
483
375
  chainId: string;
484
376
  /**
@@ -489,14 +381,14 @@ declare class EvmBalancesService {
489
381
  * The block number, if not defined the block number will be the latest block.
490
382
  */
491
383
  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
384
  /**
497
385
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
498
386
  */
499
387
  pageToken?: string;
388
+ /**
389
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
390
+ */
391
+ pageSize?: number;
500
392
  /**
501
393
  * A comma separated list of contract addresses to filter by.
502
394
  */
@@ -514,23 +406,23 @@ declare class EvmBalancesService {
514
406
  * @returns ListErc721BalancesResponse
515
407
  * @throws ApiError
516
408
  */
517
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
409
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
518
410
  /**
519
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
411
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
520
412
  */
521
413
  chainId: string;
522
414
  /**
523
415
  * A wallet address.
524
416
  */
525
417
  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
418
  /**
531
419
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
532
420
  */
533
421
  pageToken?: string;
422
+ /**
423
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
424
+ */
425
+ pageSize?: number;
534
426
  /**
535
427
  * A contract addresses to filter by.
536
428
  */
@@ -546,9 +438,9 @@ declare class EvmBalancesService {
546
438
  * @returns ListErc1155BalancesResponse
547
439
  * @throws ApiError
548
440
  */
549
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
441
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
550
442
  /**
551
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
443
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
552
444
  */
553
445
  chainId: string;
554
446
  /**
@@ -559,14 +451,14 @@ declare class EvmBalancesService {
559
451
  * The block number, if not defined the block number will be the latest block.
560
452
  */
561
453
  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
454
  /**
567
455
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
568
456
  */
569
457
  pageToken?: string;
458
+ /**
459
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
460
+ */
461
+ pageSize?: number;
570
462
  /**
571
463
  * A contract addresses to filter by.
572
464
  */
@@ -580,23 +472,23 @@ declare class EvmBalancesService {
580
472
  * @returns ListCollectibleBalancesResponse
581
473
  * @throws ApiError
582
474
  */
583
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
475
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
584
476
  /**
585
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
477
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
586
478
  */
587
479
  chainId: string;
588
480
  /**
589
481
  * A wallet address.
590
482
  */
591
483
  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
484
  /**
597
485
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
598
486
  */
599
487
  pageToken?: string;
488
+ /**
489
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
490
+ */
491
+ pageSize?: number;
600
492
  /**
601
493
  * A contract addresses to filter by.
602
494
  */
@@ -709,19 +601,19 @@ declare class EvmBlocksService {
709
601
  * @returns ListEvmBlocksResponse
710
602
  * @throws ApiError
711
603
  */
712
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
604
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
713
605
  /**
714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
606
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
715
607
  */
716
608
  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
609
  /**
722
610
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
723
611
  */
724
612
  pageToken?: string;
613
+ /**
614
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
615
+ */
616
+ pageSize?: number;
725
617
  }): CancelablePromise<ListEvmBlocksResponse>;
726
618
  /**
727
619
  * Get block
@@ -731,7 +623,7 @@ declare class EvmBlocksService {
731
623
  */
732
624
  getBlock({ chainId, blockId, }: {
733
625
  /**
734
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
626
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
735
627
  */
736
628
  chainId: string;
737
629
  /**
@@ -741,6 +633,9 @@ declare class EvmBlocksService {
741
633
  }): CancelablePromise<GetEvmBlockResponse>;
742
634
  }
743
635
 
636
+ /**
637
+ * 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.
638
+ */
744
639
  declare enum ChainStatus {
745
640
  OK = "OK",
746
641
  UNAVAILABLE = "UNAVAILABLE"
@@ -778,9 +673,6 @@ declare enum VmName {
778
673
 
779
674
  type GetChainResponse = {
780
675
  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
676
  status: ChainStatus;
785
677
  chainName: string;
786
678
  description: string;
@@ -796,13 +688,15 @@ type GetChainResponse = {
796
688
  networkToken: NetworkToken;
797
689
  chainLogoUri?: string;
798
690
  private?: boolean;
691
+ enabledFeatures?: Array<'nftIndexing'>;
799
692
  };
800
693
 
694
+ declare enum GlacierApiFeature {
695
+ NFT_INDEXING = "nftIndexing"
696
+ }
697
+
801
698
  type ChainInfo = {
802
699
  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
700
  status: ChainStatus;
807
701
  chainName: string;
808
702
  description: string;
@@ -818,6 +712,7 @@ type ChainInfo = {
818
712
  networkToken: NetworkToken;
819
713
  chainLogoUri?: string;
820
714
  private?: boolean;
715
+ enabledFeatures?: Array<'nftIndexing'>;
821
716
  };
822
717
 
823
718
  type ListChainsResponse = {
@@ -838,11 +733,15 @@ declare class EvmChainsService {
838
733
  * @returns ListChainsResponse
839
734
  * @throws ApiError
840
735
  */
841
- supportedChains({ network, }: {
736
+ supportedChains({ network, feature, }: {
842
737
  /**
843
738
  * mainnet or testnet.
844
739
  */
845
740
  network?: NetworkType;
741
+ /**
742
+ * Filter by feature.
743
+ */
744
+ feature?: GlacierApiFeature;
846
745
  }): CancelablePromise<ListChainsResponse>;
847
746
  /**
848
747
  * Get chain information
@@ -852,7 +751,7 @@ declare class EvmChainsService {
852
751
  */
853
752
  getChainInfo({ chainId, }: {
854
753
  /**
855
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
856
755
  */
857
756
  chainId: string;
858
757
  }): CancelablePromise<GetChainResponse>;
@@ -1147,7 +1046,7 @@ declare class EvmContractsService {
1147
1046
  */
1148
1047
  getContractMetadata({ chainId, address, }: {
1149
1048
  /**
1150
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1151
1050
  */
1152
1051
  chainId: string;
1153
1052
  /**
@@ -1163,7 +1062,7 @@ declare class EvmContractsService {
1163
1062
  */
1164
1063
  updateContractInfo({ chainId, address, requestBody, }: {
1165
1064
  /**
1166
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
1066
  */
1168
1067
  chainId: string;
1169
1068
  /**
@@ -1297,6 +1196,9 @@ type Erc721TransferDetails = {
1297
1196
  erc721Token: Erc721Token;
1298
1197
  };
1299
1198
 
1199
+ /**
1200
+ * 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.
1201
+ */
1300
1202
  declare enum TransactionMethodType {
1301
1203
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1302
1204
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1304,9 +1206,6 @@ declare enum TransactionMethodType {
1304
1206
  }
1305
1207
 
1306
1208
  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
1209
  callType: TransactionMethodType;
1311
1210
  /**
1312
1211
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1667,7 +1566,7 @@ type ListTransfersResponse = {
1667
1566
  * 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
1567
  */
1669
1568
  nextPageToken?: string;
1670
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1569
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1671
1570
  };
1672
1571
 
1673
1572
  declare enum SortOrder {
@@ -1691,7 +1590,7 @@ declare class EvmTransactionsService {
1691
1590
  */
1692
1591
  getDeploymentTransaction({ chainId, address, currency, }: {
1693
1592
  /**
1694
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1695
1594
  */
1696
1595
  chainId: string;
1697
1596
  /**
@@ -1709,23 +1608,23 @@ declare class EvmTransactionsService {
1709
1608
  * @returns ListContractsResponse
1710
1609
  * @throws ApiError
1711
1610
  */
1712
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1611
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1713
1612
  /**
1714
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1715
1614
  */
1716
1615
  chainId: string;
1717
1616
  /**
1718
1617
  * A wallet address.
1719
1618
  */
1720
1619
  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
1620
  /**
1726
1621
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1727
1622
  */
1728
1623
  pageToken?: string;
1624
+ /**
1625
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1626
+ */
1627
+ pageSize?: number;
1729
1628
  }): CancelablePromise<ListContractsResponse>;
1730
1629
  /**
1731
1630
  * List ERC transfers
@@ -1733,9 +1632,9 @@ declare class EvmTransactionsService {
1733
1632
  * @returns ListTransfersResponse
1734
1633
  * @throws ApiError
1735
1634
  */
1736
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1635
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
1636
  /**
1738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
1638
  */
1740
1639
  chainId: string;
1741
1640
  /**
@@ -1750,14 +1649,14 @@ declare class EvmTransactionsService {
1750
1649
  * 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
1650
  */
1752
1651
  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
1652
  /**
1758
1653
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1759
1654
  */
1760
1655
  pageToken?: string;
1656
+ /**
1657
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1658
+ */
1659
+ pageSize?: number;
1761
1660
  }): CancelablePromise<ListTransfersResponse>;
1762
1661
  /**
1763
1662
  * List transactions
@@ -1767,23 +1666,23 @@ declare class EvmTransactionsService {
1767
1666
  * @returns ListTransactionDetailsResponse
1768
1667
  * @throws ApiError
1769
1668
  */
1770
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1669
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1771
1670
  /**
1772
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1773
1672
  */
1774
1673
  chainId: string;
1775
1674
  /**
1776
1675
  * A wallet address.
1777
1676
  */
1778
1677
  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
1678
  /**
1784
1679
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1785
1680
  */
1786
1681
  pageToken?: string;
1682
+ /**
1683
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1684
+ */
1685
+ pageSize?: number;
1787
1686
  /**
1788
1687
  * 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
1688
  */
@@ -1803,9 +1702,9 @@ declare class EvmTransactionsService {
1803
1702
  * @returns ListNativeTransactionsResponse
1804
1703
  * @throws ApiError
1805
1704
  */
1806
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1705
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1807
1706
  /**
1808
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1809
1708
  */
1810
1709
  chainId: string;
1811
1710
  /**
@@ -1820,14 +1719,14 @@ declare class EvmTransactionsService {
1820
1719
  * 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
1720
  */
1822
1721
  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
1722
  /**
1828
1723
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1829
1724
  */
1830
1725
  pageToken?: string;
1726
+ /**
1727
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1728
+ */
1729
+ pageSize?: number;
1831
1730
  }): CancelablePromise<ListNativeTransactionsResponse>;
1832
1731
  /**
1833
1732
  * List ERC-20 transfers
@@ -1835,9 +1734,9 @@ declare class EvmTransactionsService {
1835
1734
  * @returns ListErc20TransactionsResponse
1836
1735
  * @throws ApiError
1837
1736
  */
1838
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1737
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1839
1738
  /**
1840
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1841
1740
  */
1842
1741
  chainId: string;
1843
1742
  /**
@@ -1852,14 +1751,14 @@ declare class EvmTransactionsService {
1852
1751
  * 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
1752
  */
1854
1753
  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
1754
  /**
1860
1755
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1861
1756
  */
1862
1757
  pageToken?: string;
1758
+ /**
1759
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1760
+ */
1761
+ pageSize?: number;
1863
1762
  }): CancelablePromise<ListErc20TransactionsResponse>;
1864
1763
  /**
1865
1764
  * List ERC-721 transfers
@@ -1867,9 +1766,9 @@ declare class EvmTransactionsService {
1867
1766
  * @returns ListErc721TransactionsResponse
1868
1767
  * @throws ApiError
1869
1768
  */
1870
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1769
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1871
1770
  /**
1872
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1873
1772
  */
1874
1773
  chainId: string;
1875
1774
  /**
@@ -1884,14 +1783,14 @@ declare class EvmTransactionsService {
1884
1783
  * 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
1784
  */
1886
1785
  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
1786
  /**
1892
1787
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1893
1788
  */
1894
1789
  pageToken?: string;
1790
+ /**
1791
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1792
+ */
1793
+ pageSize?: number;
1895
1794
  }): CancelablePromise<ListErc721TransactionsResponse>;
1896
1795
  /**
1897
1796
  * List ERC-1155 transfers
@@ -1899,9 +1798,9 @@ declare class EvmTransactionsService {
1899
1798
  * @returns ListErc1155TransactionsResponse
1900
1799
  * @throws ApiError
1901
1800
  */
1902
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1801
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1903
1802
  /**
1904
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
1804
  */
1906
1805
  chainId: string;
1907
1806
  /**
@@ -1916,14 +1815,14 @@ declare class EvmTransactionsService {
1916
1815
  * 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
1816
  */
1918
1817
  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
1818
  /**
1924
1819
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1925
1820
  */
1926
1821
  pageToken?: string;
1822
+ /**
1823
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1824
+ */
1825
+ pageSize?: number;
1927
1826
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1928
1827
  /**
1929
1828
  * List internal transactions
@@ -1933,9 +1832,9 @@ declare class EvmTransactionsService {
1933
1832
  * @returns ListInternalTransactionsResponse
1934
1833
  * @throws ApiError
1935
1834
  */
1936
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1835
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1937
1836
  /**
1938
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1939
1838
  */
1940
1839
  chainId: string;
1941
1840
  /**
@@ -1950,14 +1849,14 @@ declare class EvmTransactionsService {
1950
1849
  * 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
1850
  */
1952
1851
  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
1852
  /**
1958
1853
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1959
1854
  */
1960
1855
  pageToken?: string;
1856
+ /**
1857
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1858
+ */
1859
+ pageSize?: number;
1961
1860
  }): CancelablePromise<ListInternalTransactionsResponse>;
1962
1861
  /**
1963
1862
  * Get transaction
@@ -1967,7 +1866,7 @@ declare class EvmTransactionsService {
1967
1866
  */
1968
1867
  getTransaction({ chainId, txHash, }: {
1969
1868
  /**
1970
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1869
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1971
1870
  */
1972
1871
  chainId: string;
1973
1872
  /**
@@ -1983,7 +1882,7 @@ declare class EvmTransactionsService {
1983
1882
  */
1984
1883
  getTransactionsForBlock({ chainId, blockId, }: {
1985
1884
  /**
1986
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1987
1886
  */
1988
1887
  chainId: string;
1989
1888
  /**
@@ -1997,19 +1896,19 @@ declare class EvmTransactionsService {
1997
1896
  * @returns ListNativeTransactionsResponse
1998
1897
  * @throws ApiError
1999
1898
  */
2000
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1899
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2001
1900
  /**
2002
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2003
1902
  */
2004
1903
  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
1904
  /**
2010
1905
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2011
1906
  */
2012
1907
  pageToken?: string;
1908
+ /**
1909
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1910
+ */
1911
+ pageSize?: number;
2013
1912
  /**
2014
1913
  * A status filter for listed transactions.
2015
1914
  */
@@ -2038,7 +1937,7 @@ type ListNftTokens = {
2038
1937
  * 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
1938
  */
2040
1939
  nextPageToken?: string;
2041
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1940
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2042
1941
  };
2043
1942
 
2044
1943
  declare class NfTsService {
@@ -2052,7 +1951,7 @@ declare class NfTsService {
2052
1951
  */
2053
1952
  reindexNft({ chainId, address, tokenId, }: {
2054
1953
  /**
2055
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1954
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2056
1955
  */
2057
1956
  chainId: string;
2058
1957
  /**
@@ -2070,23 +1969,23 @@ declare class NfTsService {
2070
1969
  * @returns ListNftTokens
2071
1970
  * @throws ApiError
2072
1971
  */
2073
- listTokens({ chainId, address, pageSize, pageToken, }: {
1972
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2074
1973
  /**
2075
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
1975
  */
2077
1976
  chainId: string;
2078
1977
  /**
2079
1978
  * Contract address on the relevant chain.
2080
1979
  */
2081
1980
  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
1981
  /**
2087
1982
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2088
1983
  */
2089
1984
  pageToken?: string;
1985
+ /**
1986
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1987
+ */
1988
+ pageSize?: number;
2090
1989
  }): CancelablePromise<ListNftTokens>;
2091
1990
  /**
2092
1991
  * Get token details
@@ -2096,7 +1995,7 @@ declare class NfTsService {
2096
1995
  */
2097
1996
  getTokenDetails({ chainId, address, tokenId, }: {
2098
1997
  /**
2099
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1998
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2100
1999
  */
2101
2000
  chainId: string;
2102
2001
  /**
@@ -2115,8 +2014,12 @@ type EvmNetworkOptions = {
2115
2014
  includeChains: Array<string>;
2116
2015
  };
2117
2016
 
2017
+ declare enum EVMOperationType {
2018
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2019
+ }
2020
+
2118
2021
  type CreateEvmTransactionExportRequest = {
2119
- type: CreateEvmTransactionExportRequest.type;
2022
+ type: EVMOperationType;
2120
2023
  firstDate: string;
2121
2024
  lastDate: string;
2122
2025
  /**
@@ -2129,20 +2032,21 @@ type CreateEvmTransactionExportRequest = {
2129
2032
  endDate: string;
2130
2033
  options: EvmNetworkOptions;
2131
2034
  };
2132
- declare namespace CreateEvmTransactionExportRequest {
2133
- enum type {
2134
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2135
- }
2035
+
2036
+ declare enum PrimaryNetworkOperationType {
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2039
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2136
2040
  }
2137
2041
 
2138
2042
  type PrimaryNetworkOptions = {
2139
- addresses: Array<string>;
2043
+ addresses?: Array<string>;
2140
2044
  cChainEvmAddresses?: Array<string>;
2141
2045
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2142
2046
  };
2143
2047
 
2144
2048
  type CreatePrimaryNetworkTransactionExportRequest = {
2145
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2049
+ type: PrimaryNetworkOperationType;
2146
2050
  firstDate: string;
2147
2051
  lastDate: string;
2148
2052
  /**
@@ -2155,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2155
2059
  endDate: string;
2156
2060
  options: PrimaryNetworkOptions;
2157
2061
  };
2158
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2159
- enum type {
2160
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2161
- }
2162
- }
2163
2062
 
2164
2063
  declare enum OperationStatus {
2165
2064
  RUNNING = "RUNNING",
@@ -2169,8 +2068,10 @@ declare enum OperationStatus {
2169
2068
  }
2170
2069
 
2171
2070
  declare enum OperationType {
2172
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2173
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2073
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2074
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2174
2075
  }
2175
2076
 
2176
2077
  declare enum OperationStatusCode {
@@ -2362,15 +2263,46 @@ type BlockchainInfo = {
2362
2263
  blockchainId: string;
2363
2264
  };
2364
2265
 
2365
- type Subnet = {
2366
- createBlockTimestamp: number;
2367
- createBlockIndex: string;
2368
- subnetId: string;
2369
- ownerAddresses: Array<string>;
2370
- threshold: number;
2266
+ type SubnetOwnershipInfo = {
2267
+ /**
2268
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2269
+ */
2371
2270
  locktime: number;
2372
- blockchains: Array<BlockchainInfo>;
2373
- };
2271
+ /**
2272
+ * Minimum number of signatures required to sign the Subnet update transactions.
2273
+ */
2274
+ threshold: number;
2275
+ /**
2276
+ * Addresses that are eligible to sign the Subnet update transactions.
2277
+ */
2278
+ addresses: Array<string>;
2279
+ };
2280
+
2281
+ type Subnet = {
2282
+ createBlockTimestamp: number;
2283
+ createBlockIndex: string;
2284
+ subnetId: string;
2285
+ /**
2286
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2287
+ * @deprecated
2288
+ */
2289
+ ownerAddresses: Array<string>;
2290
+ /**
2291
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2292
+ * @deprecated
2293
+ */
2294
+ threshold: number;
2295
+ /**
2296
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2297
+ * @deprecated
2298
+ */
2299
+ locktime: number;
2300
+ /**
2301
+ * Latest subnet owner details for this Subnet.
2302
+ */
2303
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2304
+ blockchains: Array<BlockchainInfo>;
2305
+ };
2374
2306
 
2375
2307
  type ListSubnetsResponse = {
2376
2308
  /**
@@ -2505,6 +2437,22 @@ declare enum ValidationStatusType {
2505
2437
  REMOVED = "removed"
2506
2438
  }
2507
2439
 
2440
+ /**
2441
+ * Cap represents if an asset is a variable or fixed cap asset.
2442
+ */
2443
+ declare enum PrimaryNetworkAssetCap {
2444
+ FIXED = "fixed",
2445
+ VARIABLE = "variable"
2446
+ }
2447
+
2448
+ /**
2449
+ * Type of asset like SECP256K1 or NFT.
2450
+ */
2451
+ declare enum PrimaryNetworkAssetType {
2452
+ SECP256K1 = "secp256k1",
2453
+ NFT = "nft"
2454
+ }
2455
+
2508
2456
  type XChainAssetDetails = {
2509
2457
  /**
2510
2458
  * Unique ID for an asset.
@@ -2522,18 +2470,12 @@ type XChainAssetDetails = {
2522
2470
  * Denomination of this asset to represent fungibility.
2523
2471
  */
2524
2472
  denomination: number;
2525
- /**
2526
- * Type of asset like SECP256K1 or NFT.
2527
- */
2528
- type: string;
2473
+ type: PrimaryNetworkAssetType;
2529
2474
  /**
2530
2475
  * Timestamp in seconds this asset was created on.
2531
2476
  */
2532
2477
  createdAtTimestamp: number;
2533
- /**
2534
- * Cap represents if an asset can be or is fixed cap.
2535
- */
2536
- cap: string;
2478
+ cap: PrimaryNetworkAssetCap;
2537
2479
  };
2538
2480
 
2539
2481
  declare enum XChainId {
@@ -2599,19 +2541,19 @@ declare class PrimaryNetworkService {
2599
2541
  * @returns ListBlockchainsResponse
2600
2542
  * @throws ApiError
2601
2543
  */
2602
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2544
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2603
2545
  /**
2604
2546
  * Either mainnet or a testnet.
2605
2547
  */
2606
2548
  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
2549
  /**
2612
2550
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2613
2551
  */
2614
2552
  pageToken?: string;
2553
+ /**
2554
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2555
+ */
2556
+ pageSize?: number;
2615
2557
  /**
2616
2558
  * 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
2559
  */
@@ -2623,19 +2565,19 @@ declare class PrimaryNetworkService {
2623
2565
  * @returns ListSubnetsResponse
2624
2566
  * @throws ApiError
2625
2567
  */
2626
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2568
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2627
2569
  /**
2628
2570
  * Either mainnet or a testnet.
2629
2571
  */
2630
2572
  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
2573
  /**
2636
2574
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2637
2575
  */
2638
2576
  pageToken?: string;
2577
+ /**
2578
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2579
+ */
2580
+ pageSize?: number;
2639
2581
  /**
2640
2582
  * 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
2583
  */
@@ -2647,19 +2589,19 @@ declare class PrimaryNetworkService {
2647
2589
  * @returns ListValidatorDetailsResponse
2648
2590
  * @throws ApiError
2649
2591
  */
2650
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2592
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2651
2593
  /**
2652
2594
  * Either mainnet or a testnet.
2653
2595
  */
2654
2596
  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
2597
  /**
2660
2598
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2661
2599
  */
2662
2600
  pageToken?: string;
2601
+ /**
2602
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2603
+ */
2604
+ pageSize?: number;
2663
2605
  /**
2664
2606
  * A comma separated list of node ids to filter by.
2665
2607
  */
@@ -2675,31 +2617,31 @@ declare class PrimaryNetworkService {
2675
2617
  /**
2676
2618
  * 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
2619
  */
2678
- minDelegationCapacity?: any;
2620
+ minDelegationCapacity?: string;
2679
2621
  /**
2680
2622
  * 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
2623
  */
2682
- maxDelegationCapacity?: any;
2624
+ maxDelegationCapacity?: string;
2683
2625
  /**
2684
2626
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2685
2627
  */
2686
- minTimeRemaining?: any;
2628
+ minTimeRemaining?: number;
2687
2629
  /**
2688
2630
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2689
2631
  */
2690
- maxTimeRemaining?: any;
2632
+ maxTimeRemaining?: number;
2691
2633
  /**
2692
2634
  * 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
2635
  */
2694
- minFeePercentage?: any;
2636
+ minFeePercentage?: number;
2695
2637
  /**
2696
2638
  * 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
2639
  */
2698
- maxFeePercentage?: any;
2640
+ maxFeePercentage?: number;
2699
2641
  /**
2700
2642
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2701
2643
  */
2702
- subnetId?: string;
2644
+ subnetId?: any;
2703
2645
  }): CancelablePromise<ListValidatorDetailsResponse>;
2704
2646
  /**
2705
2647
  * Get single validator details
@@ -2707,7 +2649,7 @@ declare class PrimaryNetworkService {
2707
2649
  * @returns ListValidatorDetailsResponse
2708
2650
  * @throws ApiError
2709
2651
  */
2710
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2652
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2711
2653
  /**
2712
2654
  * Either mainnet or a testnet.
2713
2655
  */
@@ -2716,14 +2658,14 @@ declare class PrimaryNetworkService {
2716
2658
  * A primary network (P or X chain) nodeId.
2717
2659
  */
2718
2660
  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
2661
  /**
2724
2662
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2725
2663
  */
2726
2664
  pageToken?: string;
2665
+ /**
2666
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2667
+ */
2668
+ pageSize?: number;
2727
2669
  /**
2728
2670
  * 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
2671
  */
@@ -2739,19 +2681,19 @@ declare class PrimaryNetworkService {
2739
2681
  * @returns ListDelegatorDetailsResponse
2740
2682
  * @throws ApiError
2741
2683
  */
2742
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2684
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
2685
  /**
2744
2686
  * Either mainnet or a testnet.
2745
2687
  */
2746
2688
  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
2689
  /**
2752
2690
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2753
2691
  */
2754
2692
  pageToken?: string;
2693
+ /**
2694
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2695
+ */
2696
+ pageSize?: number;
2755
2697
  /**
2756
2698
  * A comma separated list of reward addresses to filter by.
2757
2699
  */
@@ -2799,10 +2741,7 @@ type CChainSharedAssetBalance = {
2799
2741
  * Denomination of this asset to represent fungibility.
2800
2742
  */
2801
2743
  denomination: number;
2802
- /**
2803
- * Type of asset like SECP256K1 or NFT.
2804
- */
2805
- type: string;
2744
+ type: PrimaryNetworkAssetType;
2806
2745
  /**
2807
2746
  * Amount of the asset.
2808
2747
  */
@@ -2837,7 +2776,7 @@ type ListCChainAtomicBalancesResponse = {
2837
2776
  chainInfo: PrimaryNetworkChainInfo;
2838
2777
  };
2839
2778
 
2840
- type Asset = {
2779
+ type AggregatedAssetAmount = {
2841
2780
  /**
2842
2781
  * Unique ID for an asset.
2843
2782
  */
@@ -2854,14 +2793,12 @@ type Asset = {
2854
2793
  * Denomination of this asset to represent fungibility.
2855
2794
  */
2856
2795
  denomination: number;
2857
- /**
2858
- * Type of asset like SECP256K1 or NFT.
2859
- */
2860
- type: string;
2796
+ type: PrimaryNetworkAssetType;
2861
2797
  /**
2862
2798
  * Amount of the asset.
2863
2799
  */
2864
2800
  amount: string;
2801
+ utxoCount: number;
2865
2802
  };
2866
2803
 
2867
2804
  type PChainSharedAsset = {
@@ -2881,49 +2818,47 @@ type PChainSharedAsset = {
2881
2818
  * Denomination of this asset to represent fungibility.
2882
2819
  */
2883
2820
  denomination: number;
2884
- /**
2885
- * Type of asset like SECP256K1 or NFT.
2886
- */
2887
- type: string;
2821
+ type: PrimaryNetworkAssetType;
2888
2822
  /**
2889
2823
  * Amount of the asset.
2890
2824
  */
2891
2825
  amount: string;
2826
+ utxoCount: number;
2892
2827
  sharedWithChainId: string;
2893
2828
  status: string;
2894
2829
  };
2895
2830
 
2896
2831
  type PChainBalance = {
2897
2832
  /**
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.
2833
+ * 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
2834
  */
2900
- unlockedUnstaked: Array<Asset>;
2835
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2901
2836
  /**
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.
2837
+ * 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
2838
  */
2904
- unlockedStaked: Array<Asset>;
2839
+ unlockedStaked: Array<AggregatedAssetAmount>;
2905
2840
  /**
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.
2841
+ * 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
2842
  */
2908
- lockedPlatform: Array<Asset>;
2843
+ lockedPlatform: Array<AggregatedAssetAmount>;
2909
2844
  /**
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.
2845
+ * 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
2846
  */
2912
- lockedStakeable: Array<Asset>;
2847
+ lockedStakeable: Array<AggregatedAssetAmount>;
2913
2848
  /**
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.
2849
+ * 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
2850
  */
2916
- lockedStaked: Array<Asset>;
2851
+ lockedStaked: Array<AggregatedAssetAmount>;
2917
2852
  /**
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.
2853
+ * 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
2854
  */
2920
- pendingStaked: Array<Asset>;
2855
+ pendingStaked: Array<AggregatedAssetAmount>;
2921
2856
  /**
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.
2857
+ * 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
2858
  */
2924
2859
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2925
2860
  /**
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.
2861
+ * 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
2862
  */
2928
2863
  atomicMemoryLocked: Array<PChainSharedAsset>;
2929
2864
  };
@@ -2933,34 +2868,6 @@ type ListPChainBalancesResponse = {
2933
2868
  chainInfo: PrimaryNetworkChainInfo;
2934
2869
  };
2935
2870
 
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
2871
  type XChainSharedAssetBalance = {
2965
2872
  /**
2966
2873
  * Unique ID for an asset.
@@ -2978,10 +2885,7 @@ type XChainSharedAssetBalance = {
2978
2885
  * Denomination of this asset to represent fungibility.
2979
2886
  */
2980
2887
  denomination: number;
2981
- /**
2982
- * Type of asset like SECP256K1 or NFT.
2983
- */
2984
- type: string;
2888
+ type: PrimaryNetworkAssetType;
2985
2889
  /**
2986
2890
  * Amount of the asset.
2987
2891
  */
@@ -2994,11 +2898,11 @@ type XChainBalances = {
2994
2898
  /**
2995
2899
  * A list of objects containing X-chain Asset balance information.
2996
2900
  */
2997
- locked: Array<XChainAssetBalance>;
2901
+ locked: Array<AggregatedAssetAmount>;
2998
2902
  /**
2999
2903
  * A list of objects containing X-chain Asset balance information.
3000
2904
  */
3001
- unlocked: Array<XChainAssetBalance>;
2905
+ unlocked: Array<AggregatedAssetAmount>;
3002
2906
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3003
2907
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3004
2908
  };
@@ -3111,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
3111
3015
  * @returns ListPrimaryNetworkBlocksResponse
3112
3016
  * @throws ApiError
3113
3017
  */
3114
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3018
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3115
3019
  /**
3116
3020
  * A primary network blockchain id or alias.
3117
3021
  */
@@ -3124,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
3124
3028
  * A primary network (P or X chain) nodeId.
3125
3029
  */
3126
3030
  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
3031
  /**
3132
3032
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3133
3033
  */
3134
3034
  pageToken?: string;
3035
+ /**
3036
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3037
+ */
3038
+ pageSize?: number;
3135
3039
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3136
3040
  /**
3137
3041
  * List latest blocks
@@ -3139,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
3139
3043
  * @returns ListPrimaryNetworkBlocksResponse
3140
3044
  * @throws ApiError
3141
3045
  */
3142
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3046
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3143
3047
  /**
3144
3048
  * A primary network blockchain id or alias.
3145
3049
  */
@@ -3148,14 +3052,14 @@ declare class PrimaryNetworkBlocksService {
3148
3052
  * Either mainnet or a testnet.
3149
3053
  */
3150
3054
  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
3055
  /**
3156
3056
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3157
3057
  */
3158
3058
  pageToken?: string;
3059
+ /**
3060
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3061
+ */
3062
+ pageSize?: number;
3159
3063
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3160
3064
  }
3161
3065
 
@@ -3176,10 +3080,7 @@ type AssetWithPriceInfo = {
3176
3080
  * Denomination of this asset to represent fungibility.
3177
3081
  */
3178
3082
  denomination: number;
3179
- /**
3180
- * Type of asset like SECP256K1 or NFT.
3181
- */
3182
- type: string;
3083
+ type: PrimaryNetworkAssetType;
3183
3084
  /**
3184
3085
  * Amount of the asset.
3185
3086
  */
@@ -3221,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
3221
3122
  historicalRewards: Array<HistoricalReward>;
3222
3123
  };
3223
3124
 
3125
+ type AssetAmount = {
3126
+ /**
3127
+ * Unique ID for an asset.
3128
+ */
3129
+ assetId: string;
3130
+ /**
3131
+ * Name of this asset.
3132
+ */
3133
+ name: string;
3134
+ /**
3135
+ * Symbol for this asset (max 4 characters).
3136
+ */
3137
+ symbol: string;
3138
+ /**
3139
+ * Denomination of this asset to represent fungibility.
3140
+ */
3141
+ denomination: number;
3142
+ type: PrimaryNetworkAssetType;
3143
+ /**
3144
+ * Amount of the asset.
3145
+ */
3146
+ amount: string;
3147
+ };
3148
+
3224
3149
  type PendingReward = {
3225
3150
  /**
3226
3151
  * An array of P-Chain wallet addresses.
@@ -3234,9 +3159,9 @@ type PendingReward = {
3234
3159
  rewardType: RewardType;
3235
3160
  progress: number;
3236
3161
  /**
3237
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3162
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3238
3163
  */
3239
- estimatedReward: Asset;
3164
+ estimatedReward: AssetAmount;
3240
3165
  };
3241
3166
 
3242
3167
  type ListPendingRewardsResponse = {
@@ -3256,25 +3181,25 @@ declare class PrimaryNetworkRewardsService {
3256
3181
  * @returns ListPendingRewardsResponse
3257
3182
  * @throws ApiError
3258
3183
  */
3259
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3184
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3260
3185
  /**
3261
3186
  * Either mainnet or a testnet.
3262
3187
  */
3263
3188
  network: Network;
3264
3189
  /**
3265
- * 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.
3190
+ * 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.
3266
3191
  */
3267
3192
  addresses?: string;
3268
- /**
3269
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3270
- */
3271
- pageSize?: number;
3272
3193
  /**
3273
3194
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3274
3195
  */
3275
3196
  pageToken?: string;
3276
3197
  /**
3277
- * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3198
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3199
+ */
3200
+ pageSize?: number;
3201
+ /**
3202
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3278
3203
  */
3279
3204
  nodeIds?: string;
3280
3205
  /**
@@ -3288,7 +3213,7 @@ declare class PrimaryNetworkRewardsService {
3288
3213
  * @returns ListHistoricalRewardsResponse
3289
3214
  * @throws ApiError
3290
3215
  */
3291
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, currency, }: {
3216
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3292
3217
  /**
3293
3218
  * Either mainnet or a testnet.
3294
3219
  */
@@ -3297,14 +3222,14 @@ declare class PrimaryNetworkRewardsService {
3297
3222
  * 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.
3298
3223
  */
3299
3224
  addresses?: string;
3300
- /**
3301
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3302
- */
3303
- pageSize?: number;
3304
3225
  /**
3305
3226
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3306
3227
  */
3307
3228
  pageToken?: string;
3229
+ /**
3230
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3231
+ */
3232
+ pageSize?: number;
3308
3233
  /**
3309
3234
  * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3310
3235
  */
@@ -3337,9 +3262,9 @@ type EVMInput = {
3337
3262
  */
3338
3263
  fromAddress: string;
3339
3264
  /**
3340
- * Asset details for the asset being transferred.
3265
+ * AssetAmount details for the asset being transferred.
3341
3266
  */
3342
- asset: Asset;
3267
+ asset: AssetAmount;
3343
3268
  /**
3344
3269
  * Credentials that signed this transaction.
3345
3270
  */
@@ -3351,7 +3276,7 @@ type Utxo = {
3351
3276
  * Addresses that are eligible to sign the consumption of this output.
3352
3277
  */
3353
3278
  addresses: Array<string>;
3354
- asset: Asset;
3279
+ asset: AssetAmount;
3355
3280
  /**
3356
3281
  * Blockchain ID on which this output is consumed on.
3357
3282
  */
@@ -3434,11 +3359,11 @@ type CChainExportTransaction = {
3434
3359
  /**
3435
3360
  * Assets unlocked by inputs of this transaction.
3436
3361
  */
3437
- amountUnlocked: Array<Asset>;
3362
+ amountUnlocked: Array<AssetAmount>;
3438
3363
  /**
3439
3364
  * Assets created by outputs of this transaction.
3440
3365
  */
3441
- amountCreated: Array<Asset>;
3366
+ amountCreated: Array<AssetAmount>;
3442
3367
  /**
3443
3368
  * Source chain for an atomic transaction.
3444
3369
  */
@@ -3469,9 +3394,9 @@ type EVMOutput = {
3469
3394
  */
3470
3395
  toAddress: string;
3471
3396
  /**
3472
- * Asset details for the asset being transferred.
3397
+ * AssetAmount details for the asset being transferred.
3473
3398
  */
3474
- asset: Asset;
3399
+ asset: AssetAmount;
3475
3400
  };
3476
3401
 
3477
3402
  type CChainImportTransaction = {
@@ -3498,11 +3423,11 @@ type CChainImportTransaction = {
3498
3423
  /**
3499
3424
  * Assets unlocked by inputs of this transaction.
3500
3425
  */
3501
- amountUnlocked: Array<Asset>;
3426
+ amountUnlocked: Array<AssetAmount>;
3502
3427
  /**
3503
3428
  * Assets created by outputs of this transaction.
3504
3429
  */
3505
- amountCreated: Array<Asset>;
3430
+ amountCreated: Array<AssetAmount>;
3506
3431
  /**
3507
3432
  * Source chain for an atomic transaction.
3508
3433
  */
@@ -3550,6 +3475,8 @@ declare enum PChainTransactionType {
3550
3475
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3551
3476
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3552
3477
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3478
+ BASE_TX = "BaseTx",
3479
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3553
3480
  UNKNOWN = "UNKNOWN"
3554
3481
  }
3555
3482
 
@@ -3563,7 +3490,7 @@ type PChainUtxo = {
3563
3490
  * Addresses that are eligible to sign the consumption of this output.
3564
3491
  */
3565
3492
  addresses: Array<string>;
3566
- asset: Asset;
3493
+ asset: AssetAmount;
3567
3494
  /**
3568
3495
  * Blockchain ID on which this output is consumed on.
3569
3496
  */
@@ -3627,17 +3554,17 @@ type PChainTransaction = {
3627
3554
  */
3628
3555
  destinationChain?: string;
3629
3556
  /**
3630
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3557
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3631
3558
  */
3632
- value: Array<Asset>;
3559
+ value: Array<AssetAmount>;
3633
3560
  /**
3634
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3561
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3635
3562
  */
3636
- amountBurned: Array<Asset>;
3563
+ amountBurned: Array<AssetAmount>;
3637
3564
  /**
3638
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3565
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3639
3566
  */
3640
- amountStaked: Array<Asset>;
3567
+ amountStaked: Array<AssetAmount>;
3641
3568
  /**
3642
3569
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3643
3570
  */
@@ -3669,6 +3596,10 @@ type PChainTransaction = {
3669
3596
  * Present for RewardValidatorTx
3670
3597
  */
3671
3598
  stakingTxHash?: string;
3599
+ /**
3600
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3601
+ */
3602
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3672
3603
  };
3673
3604
 
3674
3605
  type ListPChainTransactionsResponse = {
@@ -3680,6 +3611,9 @@ type ListPChainTransactionsResponse = {
3680
3611
  chainInfo: PrimaryNetworkChainInfo;
3681
3612
  };
3682
3613
 
3614
+ /**
3615
+ * Type of transaction.
3616
+ */
3683
3617
  declare enum XChainTransactionType {
3684
3618
  BASE_TX = "BaseTx",
3685
3619
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3702,9 +3636,6 @@ type XChainLinearTransaction = {
3702
3636
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3703
3637
  */
3704
3638
  timestamp: number;
3705
- /**
3706
- * Type of transaction.
3707
- */
3708
3639
  txType: XChainTransactionType;
3709
3640
  /**
3710
3641
  * Hex encoded memo bytes for this transaction.
@@ -3715,11 +3646,11 @@ type XChainLinearTransaction = {
3715
3646
  /**
3716
3647
  * Assets unlocked by inputs of this transaction.
3717
3648
  */
3718
- amountUnlocked: Array<Asset>;
3649
+ amountUnlocked: Array<AssetAmount>;
3719
3650
  /**
3720
3651
  * Assets created by outputs of this transaction.
3721
3652
  */
3722
- amountCreated: Array<Asset>;
3653
+ amountCreated: Array<AssetAmount>;
3723
3654
  /**
3724
3655
  * Source chain for an atomic transaction.
3725
3656
  */
@@ -3729,7 +3660,7 @@ type XChainLinearTransaction = {
3729
3660
  */
3730
3661
  destinationChain?: string;
3731
3662
  /**
3732
- * Asset details of the asset created in CreateAssetTx
3663
+ * AssetAmount details of the asset created in CreateAssetTx
3733
3664
  */
3734
3665
  assetCreated?: XChainAssetDetails;
3735
3666
  /**
@@ -3779,9 +3710,6 @@ type XChainNonLinearTransaction = {
3779
3710
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3780
3711
  */
3781
3712
  timestamp: number;
3782
- /**
3783
- * Type of transaction.
3784
- */
3785
3713
  txType: XChainTransactionType;
3786
3714
  /**
3787
3715
  * Hex encoded memo bytes for this transaction.
@@ -3792,11 +3720,11 @@ type XChainNonLinearTransaction = {
3792
3720
  /**
3793
3721
  * Assets unlocked by inputs of this transaction.
3794
3722
  */
3795
- amountUnlocked: Array<Asset>;
3723
+ amountUnlocked: Array<AssetAmount>;
3796
3724
  /**
3797
3725
  * Assets created by outputs of this transaction.
3798
3726
  */
3799
- amountCreated: Array<Asset>;
3727
+ amountCreated: Array<AssetAmount>;
3800
3728
  /**
3801
3729
  * Source chain for an atomic transaction.
3802
3730
  */
@@ -3806,7 +3734,7 @@ type XChainNonLinearTransaction = {
3806
3734
  */
3807
3735
  destinationChain?: string;
3808
3736
  /**
3809
- * Asset details of the asset created in CreateAssetTx
3737
+ * AssetAmount details of the asset created in CreateAssetTx
3810
3738
  */
3811
3739
  assetCreated?: XChainAssetDetails;
3812
3740
  /**
@@ -3852,8 +3780,9 @@ declare enum PrimaryNetworkTxType {
3852
3780
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3853
3781
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3854
3782
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3855
- UNKNOWN = "UNKNOWN",
3856
3783
  BASE_TX = "BaseTx",
3784
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3785
+ UNKNOWN = "UNKNOWN",
3857
3786
  CREATE_ASSET_TX = "CreateAssetTx",
3858
3787
  OPERATION_TX = "OperationTx"
3859
3788
  }
@@ -3885,13 +3814,13 @@ declare class PrimaryNetworkTransactionsService {
3885
3814
  * List latest transactions
3886
3815
  * Lists the latest transactions on one of the Primary Network chains.
3887
3816
  *
3888
- * Transactions are filterable by addresses.
3817
+ * 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.
3889
3818
  *
3890
3819
  * 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.
3891
3820
  * @returns any
3892
3821
  * @throws ApiError
3893
3822
  */
3894
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3823
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3895
3824
  /**
3896
3825
  * A primary network blockchain id or alias.
3897
3826
  */
@@ -3916,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
3916
3845
  * Query param for retrieving items before a specific timestamp.
3917
3846
  */
3918
3847
  endTimestamp?: number;
3919
- /**
3920
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3921
- */
3922
- pageSize?: number;
3923
3848
  /**
3924
3849
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3925
3850
  */
3926
3851
  pageToken?: string;
3852
+ /**
3853
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3854
+ */
3855
+ pageSize?: number;
3927
3856
  /**
3928
3857
  * 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.
3929
3858
  */
@@ -3935,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
3935
3864
  * @returns ListPChainTransactionsResponse
3936
3865
  * @throws ApiError
3937
3866
  */
3938
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3867
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3939
3868
  /**
3940
3869
  * A primary network blockchain id or alias.
3941
3870
  */
@@ -3960,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
3960
3889
  * Query param for retrieving items before a specific timestamp.
3961
3890
  */
3962
3891
  endTimestamp?: number;
3963
- /**
3964
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3965
- */
3966
- pageSize?: number;
3967
3892
  /**
3968
3893
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3969
3894
  */
3970
3895
  pageToken?: string;
3896
+ /**
3897
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3898
+ */
3899
+ pageSize?: number;
3971
3900
  /**
3972
3901
  * 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.
3973
3902
  */
@@ -3979,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
3979
3908
  * @returns ListXChainTransactionsResponse
3980
3909
  * @throws ApiError
3981
3910
  */
3982
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3911
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3983
3912
  /**
3984
3913
  * A primary network blockchain id or alias.
3985
3914
  */
@@ -4004,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
4004
3933
  * Query param for retrieving items before a specific timestamp.
4005
3934
  */
4006
3935
  endTimestamp?: number;
4007
- /**
4008
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4009
- */
4010
- pageSize?: number;
4011
3936
  /**
4012
3937
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4013
3938
  */
4014
3939
  pageToken?: string;
3940
+ /**
3941
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3942
+ */
3943
+ pageSize?: number;
4015
3944
  }): CancelablePromise<ListXChainTransactionsResponse>;
4016
3945
  }
4017
3946
 
@@ -4042,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
4042
3971
  * @returns any
4043
3972
  * @throws ApiError
4044
3973
  */
4045
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3974
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
4046
3975
  /**
4047
3976
  * A primary network blockchain id or alias.
4048
3977
  */
@@ -4055,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
4055
3984
  * 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".
4056
3985
  */
4057
3986
  addresses?: string;
4058
- /**
4059
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4060
- */
4061
- pageSize?: number;
4062
3987
  /**
4063
3988
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4064
3989
  */
4065
3990
  pageToken?: string;
3991
+ /**
3992
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3993
+ */
3994
+ pageSize?: number;
4066
3995
  /**
4067
3996
  * Asset ID for any asset (only applicable X-Chain)
4068
3997
  */
@@ -4107,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
4107
4036
  * @returns ListXChainVerticesResponse
4108
4037
  * @throws ApiError
4109
4038
  */
4110
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4039
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4111
4040
  /**
4112
4041
  * A primary network blockchain id or alias.
4113
4042
  */
@@ -4116,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
4116
4045
  * Either mainnet or a testnet.
4117
4046
  */
4118
4047
  network: Network;
4119
- /**
4120
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4121
- */
4122
- pageSize?: number;
4123
4048
  /**
4124
4049
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4125
4050
  */
4126
4051
  pageToken?: string;
4052
+ /**
4053
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4054
+ */
4055
+ pageSize?: number;
4127
4056
  }): CancelablePromise<ListXChainVerticesResponse>;
4128
4057
  /**
4129
4058
  * Get vertex
@@ -4151,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
4151
4080
  * @returns ListXChainVerticesResponse
4152
4081
  * @throws ApiError
4153
4082
  */
4154
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4083
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4155
4084
  /**
4156
4085
  * The height of a vertex.
4157
4086
  */
@@ -4164,14 +4093,14 @@ declare class PrimaryNetworkVerticesService {
4164
4093
  * Either mainnet or a testnet.
4165
4094
  */
4166
4095
  network: Network;
4167
- /**
4168
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4169
- */
4170
- pageSize?: number;
4171
4096
  /**
4172
4097
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4173
4098
  */
4174
4099
  pageToken?: string;
4100
+ /**
4101
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4102
+ */
4103
+ pageSize?: number;
4175
4104
  /**
4176
4105
  * 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.
4177
4106
  */
@@ -4187,6 +4116,11 @@ type TeleporterDestinationTransaction = {
4187
4116
  delivererAddress: string;
4188
4117
  };
4189
4118
 
4119
+ type TeleporterReceipt = {
4120
+ receivedMessageNonce: string;
4121
+ relayerRewardAddress: string;
4122
+ };
4123
+
4190
4124
  type TeleporterRewardDetails = {
4191
4125
  /**
4192
4126
  * A wallet or contract address in mixed-case checksum encoding.
@@ -4222,14 +4156,16 @@ declare namespace TeleporterRewardDetails {
4222
4156
  }
4223
4157
 
4224
4158
  type DeliveredSourceNotIndexedTeleporterMessage = {
4159
+ messageId: string;
4160
+ teleporterContractAddress: string;
4225
4161
  sourceBlockchainId: string;
4226
4162
  destinationBlockchainId: string;
4227
- messageId: string;
4163
+ messageNonce: string;
4228
4164
  from: string;
4229
4165
  to: string;
4230
4166
  data?: string;
4231
4167
  messageExecuted: boolean;
4232
- receipts: Array<string>;
4168
+ receipts: Array<TeleporterReceipt>;
4233
4169
  receiptDelivered: boolean;
4234
4170
  rewardDetails: TeleporterRewardDetails;
4235
4171
  destinationTransaction: TeleporterDestinationTransaction;
@@ -4248,14 +4184,16 @@ type TeleporterSourceTransaction = {
4248
4184
  };
4249
4185
 
4250
4186
  type DeliveredTeleporterMessage = {
4187
+ messageId: string;
4188
+ teleporterContractAddress: string;
4251
4189
  sourceBlockchainId: string;
4252
4190
  destinationBlockchainId: string;
4253
- messageId: string;
4191
+ messageNonce: string;
4254
4192
  from: string;
4255
4193
  to: string;
4256
4194
  data?: string;
4257
4195
  messageExecuted: boolean;
4258
- receipts: Array<string>;
4196
+ receipts: Array<TeleporterReceipt>;
4259
4197
  receiptDelivered: boolean;
4260
4198
  rewardDetails: TeleporterRewardDetails;
4261
4199
  sourceTransaction: TeleporterSourceTransaction;
@@ -4276,14 +4214,16 @@ type NextPageToken = {
4276
4214
  };
4277
4215
 
4278
4216
  type PendingTeleporterMessage = {
4217
+ messageId: string;
4218
+ teleporterContractAddress: string;
4279
4219
  sourceBlockchainId: string;
4280
4220
  destinationBlockchainId: string;
4281
- messageId: string;
4221
+ messageNonce: string;
4282
4222
  from: string;
4283
4223
  to: string;
4284
4224
  data?: string;
4285
4225
  messageExecuted: boolean;
4286
- receipts: Array<string>;
4226
+ receipts: Array<TeleporterReceipt>;
4287
4227
  receiptDelivered: boolean;
4288
4228
  rewardDetails: TeleporterRewardDetails;
4289
4229
  sourceTransaction: TeleporterSourceTransaction;
@@ -4300,23 +4240,15 @@ declare class TeleporterService {
4300
4240
  constructor(httpRequest: BaseHttpRequest);
4301
4241
  /**
4302
4242
  * Get a teleporter message
4303
- * Gets a teleporter message by source chain, destination chain, and message ID.
4243
+ * Gets a teleporter message by message ID.
4304
4244
  * @returns any
4305
4245
  * @throws ApiError
4306
4246
  */
4307
- getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4308
- /**
4309
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4310
- */
4311
- sourceBlockchainId: any;
4312
- /**
4313
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4314
- */
4315
- destinationBlockchainId: any;
4247
+ getTeleporterMessage({ messageId, }: {
4316
4248
  /**
4317
4249
  * The message ID of the teleporter message.
4318
4250
  */
4319
- messageId: any;
4251
+ messageId: string;
4320
4252
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4321
4253
  /**
4322
4254
  * List teleporter messages
@@ -4324,32 +4256,198 @@ declare class TeleporterService {
4324
4256
  * @returns any
4325
4257
  * @throws ApiError
4326
4258
  */
4327
- listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4259
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4260
+ /**
4261
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4262
+ */
4263
+ pageToken?: string;
4328
4264
  /**
4329
4265
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4330
4266
  */
4331
4267
  pageSize?: number;
4268
+ /**
4269
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4270
+ */
4271
+ sourceBlockchainId?: string;
4272
+ /**
4273
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4274
+ */
4275
+ destinationBlockchainId?: string;
4276
+ /**
4277
+ * The address of the recipient of the teleporter message.
4278
+ */
4279
+ to?: string;
4280
+ /**
4281
+ * The address of the sender of the teleporter message.
4282
+ */
4283
+ from?: string;
4284
+ }): CancelablePromise<NextPageToken>;
4285
+ }
4286
+
4287
+ type AddressActivityMetadata = {
4288
+ /**
4289
+ * Ethereum address for the address_activity event type
4290
+ */
4291
+ address: string;
4292
+ /**
4293
+ * Array of hexadecimal strings of the event signatures.
4294
+ */
4295
+ eventSignatures?: Array<string>;
4296
+ };
4297
+
4298
+ declare enum EventType {
4299
+ ADDRESS_ACTIVITY = "address_activity"
4300
+ }
4301
+
4302
+ declare enum WebhookStatusType {
4303
+ ACTIVE = "active",
4304
+ INACTIVE = "inactive"
4305
+ }
4306
+
4307
+ type WebhookResponse = {
4308
+ id: string;
4309
+ eventType: EventType;
4310
+ metadata: AddressActivityMetadata;
4311
+ /**
4312
+ * Whether to include traces in the webhook payload.
4313
+ */
4314
+ includeTraces?: boolean;
4315
+ /**
4316
+ * Whether to include logs in the webhook payload.
4317
+ */
4318
+ includeLogs?: boolean;
4319
+ url: string;
4320
+ chainId: string;
4321
+ status: WebhookStatusType;
4322
+ createdAt: number;
4323
+ name: string;
4324
+ description: string;
4325
+ };
4326
+
4327
+ type ListWebhooksResponse = {
4328
+ /**
4329
+ * 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.
4330
+ */
4331
+ nextPageToken?: string;
4332
+ webhooks: Array<WebhookResponse>;
4333
+ };
4334
+
4335
+ type RegisterWebhookRequest = {
4336
+ url: string;
4337
+ chainId: string;
4338
+ eventType: EventType;
4339
+ metadata: AddressActivityMetadata;
4340
+ /**
4341
+ * Whether to include traces in the webhook payload.
4342
+ */
4343
+ includeTraces?: boolean;
4344
+ /**
4345
+ * Whether to include logs in the webhook payload.
4346
+ */
4347
+ includeLogs?: boolean;
4348
+ };
4349
+
4350
+ type SharedSecretsResponse = {
4351
+ secret: string;
4352
+ };
4353
+
4354
+ type UpdateWebhookRequest = {
4355
+ name?: string;
4356
+ description?: string;
4357
+ url?: string;
4358
+ status?: WebhookStatusType;
4359
+ includeTraces?: boolean;
4360
+ includeLogs?: boolean;
4361
+ };
4362
+
4363
+ declare enum WebhookStatus {
4364
+ ACTIVE = "active",
4365
+ INACTIVE = "inactive"
4366
+ }
4367
+
4368
+ declare class WebhooksService {
4369
+ readonly httpRequest: BaseHttpRequest;
4370
+ constructor(httpRequest: BaseHttpRequest);
4371
+ /**
4372
+ * Register a webhook
4373
+ * Registers a new webhook.
4374
+ * @returns WebhookResponse
4375
+ * @throws ApiError
4376
+ */
4377
+ registerWebhook({ requestBody, }: {
4378
+ requestBody: RegisterWebhookRequest;
4379
+ }): CancelablePromise<WebhookResponse>;
4380
+ /**
4381
+ * List webhooks
4382
+ * Lists webhooks for the user.
4383
+ * @returns ListWebhooksResponse
4384
+ * @throws ApiError
4385
+ */
4386
+ listWebhooks({ pageToken, pageSize, status, }: {
4332
4387
  /**
4333
4388
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4334
4389
  */
4335
4390
  pageToken?: string;
4336
4391
  /**
4337
- * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4392
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4338
4393
  */
4339
- sourceBlockchainId?: any;
4394
+ pageSize?: number;
4340
4395
  /**
4341
- * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4396
+ * 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.
4342
4397
  */
4343
- destinationBlockchainId?: any;
4398
+ status?: WebhookStatus;
4399
+ }): CancelablePromise<ListWebhooksResponse>;
4400
+ /**
4401
+ * Get a webhook by ID
4402
+ * Retrieves a webhook by ID.
4403
+ * @returns WebhookResponse
4404
+ * @throws ApiError
4405
+ */
4406
+ getWebhook({ id, }: {
4344
4407
  /**
4345
- * The address of the recipient of the teleporter message.
4408
+ * The webhook identifier.
4346
4409
  */
4347
- to?: any;
4410
+ id: string;
4411
+ }): CancelablePromise<WebhookResponse>;
4412
+ /**
4413
+ * Deactivate a webhook
4414
+ * Deactivates a webhook by ID.
4415
+ * @returns WebhookResponse
4416
+ * @throws ApiError
4417
+ */
4418
+ deactivateWebhook({ id, }: {
4348
4419
  /**
4349
- * The address of the sender of the teleporter message.
4420
+ * The webhook identifier.
4350
4421
  */
4351
- from?: any;
4352
- }): CancelablePromise<NextPageToken>;
4422
+ id: string;
4423
+ }): CancelablePromise<WebhookResponse>;
4424
+ /**
4425
+ * Update a webhook
4426
+ * Updates an existing webhook.
4427
+ * @returns WebhookResponse
4428
+ * @throws ApiError
4429
+ */
4430
+ updateWebhook({ id, requestBody, }: {
4431
+ /**
4432
+ * The webhook identifier.
4433
+ */
4434
+ id: string;
4435
+ requestBody: UpdateWebhookRequest;
4436
+ }): CancelablePromise<WebhookResponse>;
4437
+ /**
4438
+ * Generate a shared secret
4439
+ * Generates a new shared secret.
4440
+ * @returns SharedSecretsResponse
4441
+ * @throws ApiError
4442
+ */
4443
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4444
+ /**
4445
+ * Get a shared secret
4446
+ * Get a previously generated shared secret.
4447
+ * @returns SharedSecretsResponse
4448
+ * @throws ApiError
4449
+ */
4450
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4353
4451
  }
4354
4452
 
4355
4453
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4371,6 +4469,7 @@ declare class Glacier {
4371
4469
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4372
4470
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4373
4471
  readonly teleporter: TeleporterService;
4472
+ readonly webhooks: WebhooksService;
4374
4473
  readonly request: BaseHttpRequest;
4375
4474
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4376
4475
  }
@@ -4392,4 +4491,4 @@ declare class ApiError extends Error {
4392
4491
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4393
4492
  }
4394
4493
 
4395
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, 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 };
4494
+ 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, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };