@avalabs/glacier-sdk 2.8.0-canary.9497cd7.0 → 2.8.0-canary.97320c7.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 (68) hide show
  1. package/dist/index.d.ts +589 -136
  2. package/dist/index.js +209 -32
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  6. package/esm/generated/models/AssetWithPriceInfo.d.ts +34 -0
  7. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  8. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  9. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  10. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  11. package/esm/generated/models/EventType.d.ts +5 -0
  12. package/esm/generated/models/EventType.js +6 -0
  13. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  14. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  15. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  16. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  17. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  18. package/esm/generated/models/NextPageToken.d.ts +8 -0
  19. package/esm/generated/models/PChainBalance.d.ts +7 -7
  20. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  21. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  22. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  23. package/esm/generated/models/PChainTransactionType.js +6 -5
  24. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  25. package/esm/generated/models/PendingReward.d.ts +2 -2
  26. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  27. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  28. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  29. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  30. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  31. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  32. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  33. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  34. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  35. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  36. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  37. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  38. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  39. package/esm/generated/models/Utxo.d.ts +28 -28
  40. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  41. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  42. package/esm/generated/models/ValidationStatusType.js +1 -0
  43. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  44. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  45. package/esm/generated/models/WebhookStatus.js +7 -0
  46. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  47. package/esm/generated/models/WebhookStatusType.js +7 -0
  48. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  49. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  50. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  51. package/esm/generated/models/XChainTransactionType.js +11 -0
  52. package/esm/generated/services/DefaultService.d.ts +53 -0
  53. package/esm/generated/services/DefaultService.js +42 -0
  54. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  55. package/esm/generated/services/NfTsService.d.ts +25 -0
  56. package/esm/generated/services/NfTsService.js +19 -0
  57. package/esm/generated/services/OperationsService.d.ts +11 -11
  58. package/esm/generated/services/OperationsService.js +10 -10
  59. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -5
  60. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -2
  61. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  62. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  63. package/esm/generated/services/TeleporterService.d.ts +65 -0
  64. package/esm/generated/services/TeleporterService.js +43 -0
  65. package/esm/index.d.ts +20 -1
  66. package/esm/index.js +10 -0
  67. package/package.json +2 -2
  68. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,63 @@ 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
+
63
120
  declare class DefaultService {
64
121
  readonly httpRequest: BaseHttpRequest;
65
122
  constructor(httpRequest: BaseHttpRequest);
@@ -68,6 +125,54 @@ declare class DefaultService {
68
125
  * @throws ApiError
69
126
  */
70
127
  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>;
71
176
  }
72
177
 
73
178
  declare enum CurrencyCode {
@@ -1637,7 +1742,13 @@ declare class EvmTransactionsService {
1637
1742
  * A wallet address.
1638
1743
  */
1639
1744
  address: string;
1745
+ /**
1746
+ * 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.
1747
+ */
1640
1748
  startBlock?: number;
1749
+ /**
1750
+ * 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
+ */
1641
1752
  endBlock?: number;
1642
1753
  /**
1643
1754
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1673,7 +1784,13 @@ declare class EvmTransactionsService {
1673
1784
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1674
1785
  */
1675
1786
  pageToken?: string;
1787
+ /**
1788
+ * 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
+ */
1676
1790
  startBlock?: number;
1791
+ /**
1792
+ * 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.
1793
+ */
1677
1794
  endBlock?: number;
1678
1795
  /**
1679
1796
  * 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.
@@ -1695,7 +1812,13 @@ declare class EvmTransactionsService {
1695
1812
  * A wallet address.
1696
1813
  */
1697
1814
  address: string;
1815
+ /**
1816
+ * 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.
1817
+ */
1698
1818
  startBlock?: number;
1819
+ /**
1820
+ * 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
+ */
1699
1822
  endBlock?: number;
1700
1823
  /**
1701
1824
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1721,7 +1844,13 @@ declare class EvmTransactionsService {
1721
1844
  * A wallet address.
1722
1845
  */
1723
1846
  address: string;
1847
+ /**
1848
+ * 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.
1849
+ */
1724
1850
  startBlock?: number;
1851
+ /**
1852
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1853
+ */
1725
1854
  endBlock?: number;
1726
1855
  /**
1727
1856
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1747,7 +1876,13 @@ declare class EvmTransactionsService {
1747
1876
  * A wallet address.
1748
1877
  */
1749
1878
  address: string;
1879
+ /**
1880
+ * 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.
1881
+ */
1750
1882
  startBlock?: number;
1883
+ /**
1884
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1885
+ */
1751
1886
  endBlock?: number;
1752
1887
  /**
1753
1888
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1773,7 +1908,13 @@ declare class EvmTransactionsService {
1773
1908
  * A wallet address.
1774
1909
  */
1775
1910
  address: string;
1911
+ /**
1912
+ * 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.
1913
+ */
1776
1914
  startBlock?: number;
1915
+ /**
1916
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1917
+ */
1777
1918
  endBlock?: number;
1778
1919
  /**
1779
1920
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1801,7 +1942,13 @@ declare class EvmTransactionsService {
1801
1942
  * A wallet address.
1802
1943
  */
1803
1944
  address: string;
1945
+ /**
1946
+ * 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.
1947
+ */
1804
1948
  startBlock?: number;
1949
+ /**
1950
+ * 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
+ */
1805
1952
  endBlock?: number;
1806
1953
  /**
1807
1954
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1886,6 +2033,14 @@ declare class HealthCheckService {
1886
2033
  }>;
1887
2034
  }
1888
2035
 
2036
+ type ListNftTokens = {
2037
+ /**
2038
+ * 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
+ */
2040
+ nextPageToken?: string;
2041
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2042
+ };
2043
+
1889
2044
  declare class NfTsService {
1890
2045
  readonly httpRequest: BaseHttpRequest;
1891
2046
  constructor(httpRequest: BaseHttpRequest);
@@ -1909,6 +2064,30 @@ declare class NfTsService {
1909
2064
  */
1910
2065
  tokenId: string;
1911
2066
  }): CancelablePromise<any>;
2067
+ /**
2068
+ * List tokens
2069
+ * Lists tokens for an NFT contract.
2070
+ * @returns ListNftTokens
2071
+ * @throws ApiError
2072
+ */
2073
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2074
+ /**
2075
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
+ */
2077
+ chainId: string;
2078
+ /**
2079
+ * Contract address on the relevant chain.
2080
+ */
2081
+ 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
+ /**
2087
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2088
+ */
2089
+ pageToken?: string;
2090
+ }): CancelablePromise<ListNftTokens>;
1912
2091
  /**
1913
2092
  * Get token details
1914
2093
  * Gets token details for a specific token of an NFT contract.
@@ -2025,17 +2204,6 @@ type OperationStatusResponse = {
2025
2204
  declare class OperationsService {
2026
2205
  readonly httpRequest: BaseHttpRequest;
2027
2206
  constructor(httpRequest: BaseHttpRequest);
2028
- /**
2029
- * Create transaction export operation
2030
- * Trigger a transaction export operation with given parameters.
2031
- *
2032
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2033
- * @returns OperationStatusResponse
2034
- * @throws ApiError
2035
- */
2036
- postTransactionExportJob({ requestBody, }: {
2037
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2038
- }): CancelablePromise<OperationStatusResponse>;
2039
2207
  /**
2040
2208
  * Get operation
2041
2209
  * Gets operation details for the given operation id.
@@ -2048,6 +2216,17 @@ declare class OperationsService {
2048
2216
  */
2049
2217
  operationId: string;
2050
2218
  }): CancelablePromise<OperationStatusResponse>;
2219
+ /**
2220
+ * Create transaction export operation
2221
+ * Trigger a transaction export operation with given parameters.
2222
+ *
2223
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2224
+ * @returns OperationStatusResponse
2225
+ * @throws ApiError
2226
+ */
2227
+ postTransactionExportJob({ requestBody, }: {
2228
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2229
+ }): CancelablePromise<OperationStatusResponse>;
2051
2230
  }
2052
2231
 
2053
2232
  declare enum BlockchainIds {
@@ -2285,6 +2464,24 @@ declare namespace PendingValidatorDetails {
2285
2464
  }
2286
2465
  }
2287
2466
 
2467
+ type RemovedValidatorDetails = {
2468
+ txHash: string;
2469
+ nodeId: string;
2470
+ subnetId: string;
2471
+ amountStaked: string;
2472
+ delegationFee?: string;
2473
+ startTimestamp: number;
2474
+ endTimestamp: number;
2475
+ removeTxHash: string;
2476
+ removeTimestamp: number;
2477
+ validationStatus: RemovedValidatorDetails.validationStatus;
2478
+ };
2479
+ declare namespace RemovedValidatorDetails {
2480
+ enum validationStatus {
2481
+ REMOVED = "removed"
2482
+ }
2483
+ }
2484
+
2288
2485
  type ListValidatorDetailsResponse = {
2289
2486
  /**
2290
2487
  * 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.
@@ -2293,7 +2490,7 @@ type ListValidatorDetailsResponse = {
2293
2490
  /**
2294
2491
  * The list of validator Details.
2295
2492
  */
2296
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2493
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2297
2494
  };
2298
2495
 
2299
2496
  declare enum Network {
@@ -2304,7 +2501,8 @@ declare enum Network {
2304
2501
  declare enum ValidationStatusType {
2305
2502
  COMPLETED = "completed",
2306
2503
  ACTIVE = "active",
2307
- PENDING = "pending"
2504
+ PENDING = "pending",
2505
+ REMOVED = "removed"
2308
2506
  }
2309
2507
 
2310
2508
  type XChainAssetDetails = {
@@ -2449,7 +2647,7 @@ declare class PrimaryNetworkService {
2449
2647
  * @returns ListValidatorDetailsResponse
2450
2648
  * @throws ApiError
2451
2649
  */
2452
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2650
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2453
2651
  /**
2454
2652
  * Either mainnet or a testnet.
2455
2653
  */
@@ -2463,41 +2661,41 @@ declare class PrimaryNetworkService {
2463
2661
  */
2464
2662
  pageToken?: string;
2465
2663
  /**
2466
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2664
+ * A comma separated list of node ids to filter by.
2467
2665
  */
2468
- minTimeRemaining?: any;
2666
+ nodeIds?: string;
2469
2667
  /**
2470
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2668
+ * 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.
2471
2669
  */
2472
- maxTimeRemaining?: any;
2670
+ sortOrder?: SortOrder;
2473
2671
  /**
2474
- * 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
2672
+ * Validation status of the node.
2475
2673
  */
2476
- minDelegationCapacity?: number;
2674
+ validationStatus?: ValidationStatusType;
2477
2675
  /**
2478
- * 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.
2676
+ * 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
2479
2677
  */
2480
- maxDelegationCapacity?: number;
2678
+ minDelegationCapacity?: any;
2481
2679
  /**
2482
- * 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.
2680
+ * 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.
2483
2681
  */
2484
- minFeePercentage?: any;
2682
+ maxDelegationCapacity?: any;
2485
2683
  /**
2486
- * 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.
2684
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2487
2685
  */
2488
- maxFeePercentage?: any;
2686
+ minTimeRemaining?: any;
2489
2687
  /**
2490
- * A comma separated list of node ids to filter by.
2688
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2491
2689
  */
2492
- nodeIds?: string;
2690
+ maxTimeRemaining?: any;
2493
2691
  /**
2494
- * 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.
2692
+ * 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.
2495
2693
  */
2496
- sortOrder?: SortOrder;
2694
+ minFeePercentage?: any;
2497
2695
  /**
2498
- * Validation status of the node.
2696
+ * 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.
2499
2697
  */
2500
- validationStatus?: ValidationStatusType;
2698
+ maxFeePercentage?: any;
2501
2699
  /**
2502
2700
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2503
2701
  */
@@ -2639,13 +2837,57 @@ type ListCChainAtomicBalancesResponse = {
2639
2837
  chainInfo: PrimaryNetworkChainInfo;
2640
2838
  };
2641
2839
 
2642
- type PChainAsset = {
2840
+ type Asset = {
2841
+ /**
2842
+ * Unique ID for an asset.
2843
+ */
2643
2844
  assetId: string;
2845
+ /**
2846
+ * Name of this asset.
2847
+ */
2848
+ name: string;
2849
+ /**
2850
+ * Symbol for this asset (max 4 characters).
2851
+ */
2852
+ symbol: string;
2853
+ /**
2854
+ * Denomination of this asset to represent fungibility.
2855
+ */
2856
+ denomination: number;
2857
+ /**
2858
+ * Type of asset like SECP256K1 or NFT.
2859
+ */
2860
+ type: string;
2861
+ /**
2862
+ * Amount of the asset.
2863
+ */
2644
2864
  amount: string;
2645
2865
  };
2646
2866
 
2647
2867
  type PChainSharedAsset = {
2868
+ /**
2869
+ * Unique ID for an asset.
2870
+ */
2648
2871
  assetId: string;
2872
+ /**
2873
+ * Name of this asset.
2874
+ */
2875
+ name: string;
2876
+ /**
2877
+ * Symbol for this asset (max 4 characters).
2878
+ */
2879
+ symbol: string;
2880
+ /**
2881
+ * Denomination of this asset to represent fungibility.
2882
+ */
2883
+ denomination: number;
2884
+ /**
2885
+ * Type of asset like SECP256K1 or NFT.
2886
+ */
2887
+ type: string;
2888
+ /**
2889
+ * Amount of the asset.
2890
+ */
2649
2891
  amount: string;
2650
2892
  sharedWithChainId: string;
2651
2893
  status: string;
@@ -2655,27 +2897,27 @@ type PChainBalance = {
2655
2897
  /**
2656
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.
2657
2899
  */
2658
- unlockedUnstaked: Array<PChainAsset>;
2900
+ unlockedUnstaked: Array<Asset>;
2659
2901
  /**
2660
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.
2661
2903
  */
2662
- unlockedStaked: Array<PChainAsset>;
2904
+ unlockedStaked: Array<Asset>;
2663
2905
  /**
2664
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.
2665
2907
  */
2666
- lockedPlatform: Array<PChainAsset>;
2908
+ lockedPlatform: Array<Asset>;
2667
2909
  /**
2668
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.
2669
2911
  */
2670
- lockedStakeable: Array<PChainAsset>;
2912
+ lockedStakeable: Array<Asset>;
2671
2913
  /**
2672
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.
2673
2915
  */
2674
- lockedStaked: Array<PChainAsset>;
2916
+ lockedStaked: Array<Asset>;
2675
2917
  /**
2676
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.
2677
2919
  */
2678
- pendingStaked: Array<PChainAsset>;
2920
+ pendingStaked: Array<Asset>;
2679
2921
  /**
2680
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.
2681
2923
  */
@@ -2814,6 +3056,7 @@ type GetPrimaryNetworkBlockResponse = {
2814
3056
  txCount: number;
2815
3057
  transactions: Array<string>;
2816
3058
  blockSizeBytes: number;
3059
+ currentSupply?: string;
2817
3060
  proposerDetails?: ProposerDetails;
2818
3061
  };
2819
3062
 
@@ -2826,6 +3069,7 @@ type PrimaryNetworkBlock = {
2826
3069
  txCount: number;
2827
3070
  transactions: Array<string>;
2828
3071
  blockSizeBytes: number;
3072
+ currentSupply?: string;
2829
3073
  proposerDetails?: ProposerDetails;
2830
3074
  };
2831
3075
 
@@ -2915,6 +3159,37 @@ declare class PrimaryNetworkBlocksService {
2915
3159
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2916
3160
  }
2917
3161
 
3162
+ type AssetWithPriceInfo = {
3163
+ /**
3164
+ * Unique ID for an asset.
3165
+ */
3166
+ assetId: string;
3167
+ /**
3168
+ * Name of this asset.
3169
+ */
3170
+ name: string;
3171
+ /**
3172
+ * Symbol for this asset (max 4 characters).
3173
+ */
3174
+ symbol: string;
3175
+ /**
3176
+ * Denomination of this asset to represent fungibility.
3177
+ */
3178
+ denomination: number;
3179
+ /**
3180
+ * Type of asset like SECP256K1 or NFT.
3181
+ */
3182
+ type: string;
3183
+ /**
3184
+ * Amount of the asset.
3185
+ */
3186
+ amount: string;
3187
+ /**
3188
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3189
+ */
3190
+ historicalPrice?: Money;
3191
+ };
3192
+
2918
3193
  declare enum RewardType {
2919
3194
  VALIDATOR = "VALIDATOR",
2920
3195
  DELEGATOR = "DELEGATOR",
@@ -2934,10 +3209,7 @@ type HistoricalReward = {
2934
3209
  rewardType: RewardType;
2935
3210
  utxoId: string;
2936
3211
  outputIndex: number;
2937
- /**
2938
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2939
- */
2940
- reward: PChainAsset;
3212
+ reward: AssetWithPriceInfo;
2941
3213
  rewardTxHash: string;
2942
3214
  };
2943
3215
 
@@ -2964,7 +3236,7 @@ type PendingReward = {
2964
3236
  /**
2965
3237
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2966
3238
  */
2967
- estimatedReward: PChainAsset;
3239
+ estimatedReward: Asset;
2968
3240
  };
2969
3241
 
2970
3242
  type ListPendingRewardsResponse = {
@@ -2990,7 +3262,7 @@ declare class PrimaryNetworkRewardsService {
2990
3262
  */
2991
3263
  network: Network;
2992
3264
  /**
2993
- * 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".
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.
2994
3266
  */
2995
3267
  addresses?: string;
2996
3268
  /**
@@ -3002,7 +3274,7 @@ declare class PrimaryNetworkRewardsService {
3002
3274
  */
3003
3275
  pageToken?: string;
3004
3276
  /**
3005
- * A comma separated list of node ids to filter by.
3277
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3006
3278
  */
3007
3279
  nodeIds?: string;
3008
3280
  /**
@@ -3016,13 +3288,13 @@ declare class PrimaryNetworkRewardsService {
3016
3288
  * @returns ListHistoricalRewardsResponse
3017
3289
  * @throws ApiError
3018
3290
  */
3019
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3291
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, currency, }: {
3020
3292
  /**
3021
3293
  * Either mainnet or a testnet.
3022
3294
  */
3023
3295
  network: Network;
3024
3296
  /**
3025
- * 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".
3297
+ * 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.
3026
3298
  */
3027
3299
  addresses?: string;
3028
3300
  /**
@@ -3034,50 +3306,27 @@ declare class PrimaryNetworkRewardsService {
3034
3306
  */
3035
3307
  pageToken?: string;
3036
3308
  /**
3037
- * A comma separated list of node ids to filter by.
3309
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3038
3310
  */
3039
3311
  nodeIds?: string;
3040
3312
  /**
3041
3313
  * 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.
3042
3314
  */
3043
3315
  sortOrder?: SortOrder;
3316
+ /**
3317
+ * The currency that return values should use. Defaults to USD.
3318
+ */
3319
+ currency?: CurrencyCode;
3044
3320
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3045
3321
  }
3046
3322
 
3047
- type Asset = {
3048
- /**
3049
- * Unique ID for an asset.
3050
- */
3051
- assetId: string;
3052
- /**
3053
- * Name of this asset.
3054
- */
3055
- name: string;
3056
- /**
3057
- * Symbol for this asset (max 4 characters).
3058
- */
3059
- symbol: string;
3060
- /**
3061
- * Denomination of this asset to represent fungibility.
3062
- */
3063
- denomination: number;
3064
- /**
3065
- * Type of asset like SECP256K1 or NFT.
3066
- */
3067
- type: string;
3068
- /**
3069
- * Amount of the asset.
3070
- */
3071
- amount: string;
3072
- };
3073
-
3074
3323
  type UtxoCredential = {
3075
3324
  /**
3076
- * Signature provided to consume the output
3325
+ * Signature provided to consume the output.
3077
3326
  */
3078
3327
  signature?: string;
3079
3328
  /**
3080
- * Public key associated with the signature
3329
+ * Public key associated with the signature.
3081
3330
  */
3082
3331
  publicKey?: string;
3083
3332
  };
@@ -3099,66 +3348,66 @@ type EVMInput = {
3099
3348
 
3100
3349
  type Utxo = {
3101
3350
  /**
3102
- * UTXO ID for this output.
3351
+ * Addresses that are eligible to sign the consumption of this output.
3103
3352
  */
3104
- utxoId: string;
3353
+ addresses: Array<string>;
3105
3354
  asset: Asset;
3106
3355
  /**
3107
- * Type of output.
3356
+ * Blockchain ID on which this output is consumed on.
3108
3357
  */
3109
- utxoType: string;
3358
+ consumedOnChainId: string;
3110
3359
  /**
3111
- * Blockchain ID on which this output is created on.
3360
+ * Transaction ID that consumed this output.
3112
3361
  */
3113
- createdOnChainId: string;
3362
+ consumingTxHash?: string;
3114
3363
  /**
3115
- * Blockchain ID on which this output is consumed on.
3364
+ * Blockchain ID on which this output is created on.
3116
3365
  */
3117
- consumedOnChainId: string;
3366
+ createdOnChainId: string;
3118
3367
  /**
3119
- * Transaction ID that created this output.
3368
+ * UTXO ID for this output.
3120
3369
  */
3121
- creationTxHash: string;
3370
+ utxoId: string;
3122
3371
  /**
3123
- * Transaction ID that consumed this output.
3372
+ * Unix timestamp in seconds at which this output was consumed.
3124
3373
  */
3125
- consumingTxHash?: string;
3374
+ consumingTxTimestamp?: number;
3126
3375
  /**
3127
- * Timestamp in seconds this output is consumed.
3376
+ * Transaction ID that created this output.
3128
3377
  */
3129
- consumingTxTimestamp?: number;
3378
+ creationTxHash: string;
3130
3379
  /**
3131
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3380
+ * Credentials that signed the transaction to consume this utxo
3132
3381
  */
3133
- outputIndex: string;
3382
+ credentials?: Array<UtxoCredential>;
3134
3383
  /**
3135
- * Timestamp in seconds this outptut is created on.
3384
+ * Index representing the minting set for the NFT mint output.
3136
3385
  */
3137
- timestamp: number;
3386
+ groupId?: number;
3138
3387
  /**
3139
3388
  * Locktime in seconds after which this output can be consumed.
3140
3389
  */
3141
3390
  locktime: number;
3142
3391
  /**
3143
- * Minimum number of signatures required to consume this output.
3392
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3144
3393
  */
3145
- threshold: number;
3394
+ outputIndex: string;
3146
3395
  /**
3147
- * Addresses that are eligible to sign the consumption of this output.
3396
+ * Hex encoded data for NFT assets.
3148
3397
  */
3149
- addresses: Array<string>;
3398
+ payload?: string;
3150
3399
  /**
3151
- * Hex encoded data for NFT assets
3400
+ * Minimum number of signatures required to consume this output.
3152
3401
  */
3153
- payload?: string;
3402
+ threshold: number;
3154
3403
  /**
3155
- * Index representing the minting set for the NFT mint output
3404
+ * Unix timestamp in seconds at which this outptut was created.
3156
3405
  */
3157
- groupId?: number;
3406
+ timestamp: number;
3158
3407
  /**
3159
- * Credentials that signed the transaction to consume this utxo
3408
+ * Type of output.
3160
3409
  */
3161
- credentials?: Array<UtxoCredential>;
3410
+ utxoType: string;
3162
3411
  };
3163
3412
 
3164
3413
  type CChainExportTransaction = {
@@ -3289,17 +3538,18 @@ type ListCChainAtomicTransactionsResponse = {
3289
3538
 
3290
3539
  declare enum PChainTransactionType {
3291
3540
  ADD_VALIDATOR_TX = "AddValidatorTx",
3292
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3293
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3294
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3295
3541
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3296
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3297
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3542
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3298
3543
  CREATE_CHAIN_TX = "CreateChainTx",
3299
3544
  CREATE_SUBNET_TX = "CreateSubnetTx",
3300
3545
  IMPORT_TX = "ImportTx",
3301
3546
  EXPORT_TX = "ExportTx",
3302
3547
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3548
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3549
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3550
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3551
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3552
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3303
3553
  UNKNOWN = "UNKNOWN"
3304
3554
  }
3305
3555
 
@@ -3310,29 +3560,48 @@ declare enum UtxoType {
3310
3560
 
3311
3561
  type PChainUtxo = {
3312
3562
  /**
3313
- * An array of P-Chain wallet addresses.
3563
+ * Addresses that are eligible to sign the consumption of this output.
3314
3564
  */
3315
3565
  addresses: Array<string>;
3566
+ asset: Asset;
3567
+ /**
3568
+ * Blockchain ID on which this output is consumed on.
3569
+ */
3570
+ consumedOnChainId: string;
3571
+ /**
3572
+ * Transaction ID that consumed this output.
3573
+ */
3574
+ consumingTxHash?: string;
3575
+ /**
3576
+ * Blockchain ID on which this output is created on.
3577
+ */
3578
+ createdOnChainId: string;
3579
+ /**
3580
+ * UTXO ID for this output.
3581
+ */
3316
3582
  utxoId: string;
3317
- txHash: string;
3318
- outputIndex: number;
3583
+ /**
3584
+ * @deprecated
3585
+ */
3586
+ amount: string;
3587
+ /**
3588
+ * @deprecated
3589
+ */
3590
+ assetId: string;
3319
3591
  blockNumber: string;
3320
3592
  blockTimestamp: number;
3321
- consumingTxHash?: string;
3322
- consumingBlockTimestamp?: number;
3323
3593
  consumingBlockNumber?: string;
3324
- assetId: string;
3325
- utxoType: UtxoType;
3326
- amount: string;
3327
- stakeableLocktime?: number;
3594
+ consumingBlockTimestamp?: number;
3328
3595
  platformLocktime?: number;
3329
- threshold?: number;
3330
- createdOnChainId: string;
3331
- consumedOnChainId: string;
3596
+ outputIndex: number;
3597
+ rewardType?: RewardType;
3598
+ stakeableLocktime?: number;
3332
3599
  staked?: boolean;
3333
- utxoStartTimestamp?: number;
3600
+ threshold?: number;
3601
+ txHash: string;
3334
3602
  utxoEndTimestamp?: number;
3335
- rewardType?: RewardType;
3603
+ utxoStartTimestamp?: number;
3604
+ utxoType: UtxoType;
3336
3605
  };
3337
3606
 
3338
3607
  type PChainTransaction = {
@@ -3360,15 +3629,15 @@ type PChainTransaction = {
3360
3629
  /**
3361
3630
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3362
3631
  */
3363
- value: Array<PChainAsset>;
3632
+ value: Array<Asset>;
3364
3633
  /**
3365
3634
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3366
3635
  */
3367
- amountBurned: Array<PChainAsset>;
3636
+ amountBurned: Array<Asset>;
3368
3637
  /**
3369
3638
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3370
3639
  */
3371
- amountStaked: Array<PChainAsset>;
3640
+ amountStaked: Array<Asset>;
3372
3641
  /**
3373
3642
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3374
3643
  */
@@ -3411,6 +3680,15 @@ type ListPChainTransactionsResponse = {
3411
3680
  chainInfo: PrimaryNetworkChainInfo;
3412
3681
  };
3413
3682
 
3683
+ declare enum XChainTransactionType {
3684
+ BASE_TX = "BaseTx",
3685
+ CREATE_ASSET_TX = "CreateAssetTx",
3686
+ OPERATION_TX = "OperationTx",
3687
+ IMPORT_TX = "ImportTx",
3688
+ EXPORT_TX = "ExportTx",
3689
+ UNKNOWN = "UNKNOWN"
3690
+ }
3691
+
3414
3692
  type XChainLinearTransaction = {
3415
3693
  /**
3416
3694
  * Unique ID for this transaction.
@@ -3427,7 +3705,7 @@ type XChainLinearTransaction = {
3427
3705
  /**
3428
3706
  * Type of transaction.
3429
3707
  */
3430
- txType: string;
3708
+ txType: XChainTransactionType;
3431
3709
  /**
3432
3710
  * Hex encoded memo bytes for this transaction.
3433
3711
  */
@@ -3504,7 +3782,7 @@ type XChainNonLinearTransaction = {
3504
3782
  /**
3505
3783
  * Type of transaction.
3506
3784
  */
3507
- txType: string;
3785
+ txType: XChainTransactionType;
3508
3786
  /**
3509
3787
  * Hex encoded memo bytes for this transaction.
3510
3788
  */
@@ -3562,17 +3840,18 @@ declare enum PChainId {
3562
3840
 
3563
3841
  declare enum PrimaryNetworkTxType {
3564
3842
  ADD_VALIDATOR_TX = "AddValidatorTx",
3565
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3566
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3567
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3568
3843
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3569
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3570
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3844
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3571
3845
  CREATE_CHAIN_TX = "CreateChainTx",
3572
3846
  CREATE_SUBNET_TX = "CreateSubnetTx",
3573
3847
  IMPORT_TX = "ImportTx",
3574
3848
  EXPORT_TX = "ExportTx",
3575
3849
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3850
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3851
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3852
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3853
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3854
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3576
3855
  UNKNOWN = "UNKNOWN",
3577
3856
  BASE_TX = "BaseTx",
3578
3857
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3900,6 +4179,179 @@ declare class PrimaryNetworkVerticesService {
3900
4179
  }): CancelablePromise<ListXChainVerticesResponse>;
3901
4180
  }
3902
4181
 
4182
+ type TeleporterDestinationTransaction = {
4183
+ txHash: string;
4184
+ timestamp: number;
4185
+ gasSpent: string;
4186
+ rewardRedeemer: string;
4187
+ delivererAddress: string;
4188
+ };
4189
+
4190
+ type TeleporterRewardDetails = {
4191
+ /**
4192
+ * A wallet or contract address in mixed-case checksum encoding.
4193
+ */
4194
+ address: string;
4195
+ /**
4196
+ * The contract name.
4197
+ */
4198
+ name: string;
4199
+ /**
4200
+ * The contract symbol.
4201
+ */
4202
+ symbol: string;
4203
+ /**
4204
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4205
+ */
4206
+ decimals: number;
4207
+ /**
4208
+ * The logo uri for the address.
4209
+ */
4210
+ logoUri?: string;
4211
+ ercType: TeleporterRewardDetails.ercType;
4212
+ /**
4213
+ * The token price, if available.
4214
+ */
4215
+ price?: Money;
4216
+ value: string;
4217
+ };
4218
+ declare namespace TeleporterRewardDetails {
4219
+ enum ercType {
4220
+ ERC_20 = "ERC-20"
4221
+ }
4222
+ }
4223
+
4224
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4225
+ sourceBlockchainId: string;
4226
+ destinationBlockchainId: string;
4227
+ messageId: string;
4228
+ from: string;
4229
+ to: string;
4230
+ data?: string;
4231
+ messageExecuted: boolean;
4232
+ receipts: Array<string>;
4233
+ receiptDelivered: boolean;
4234
+ rewardDetails: TeleporterRewardDetails;
4235
+ destinationTransaction: TeleporterDestinationTransaction;
4236
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4237
+ };
4238
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4239
+ enum status {
4240
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4241
+ }
4242
+ }
4243
+
4244
+ type TeleporterSourceTransaction = {
4245
+ txHash: string;
4246
+ timestamp: number;
4247
+ gasSpent: string;
4248
+ };
4249
+
4250
+ type DeliveredTeleporterMessage = {
4251
+ sourceBlockchainId: string;
4252
+ destinationBlockchainId: string;
4253
+ messageId: string;
4254
+ from: string;
4255
+ to: string;
4256
+ data?: string;
4257
+ messageExecuted: boolean;
4258
+ receipts: Array<string>;
4259
+ receiptDelivered: boolean;
4260
+ rewardDetails: TeleporterRewardDetails;
4261
+ sourceTransaction: TeleporterSourceTransaction;
4262
+ destinationTransaction: TeleporterDestinationTransaction;
4263
+ status: DeliveredTeleporterMessage.status;
4264
+ };
4265
+ declare namespace DeliveredTeleporterMessage {
4266
+ enum status {
4267
+ DELIVERED = "delivered"
4268
+ }
4269
+ }
4270
+
4271
+ type NextPageToken = {
4272
+ /**
4273
+ * 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.
4274
+ */
4275
+ nextPageToken?: string;
4276
+ };
4277
+
4278
+ type PendingTeleporterMessage = {
4279
+ sourceBlockchainId: string;
4280
+ destinationBlockchainId: string;
4281
+ messageId: string;
4282
+ from: string;
4283
+ to: string;
4284
+ data?: string;
4285
+ messageExecuted: boolean;
4286
+ receipts: Array<string>;
4287
+ receiptDelivered: boolean;
4288
+ rewardDetails: TeleporterRewardDetails;
4289
+ sourceTransaction: TeleporterSourceTransaction;
4290
+ status: PendingTeleporterMessage.status;
4291
+ };
4292
+ declare namespace PendingTeleporterMessage {
4293
+ enum status {
4294
+ PENDING = "pending"
4295
+ }
4296
+ }
4297
+
4298
+ declare class TeleporterService {
4299
+ readonly httpRequest: BaseHttpRequest;
4300
+ constructor(httpRequest: BaseHttpRequest);
4301
+ /**
4302
+ * Get a teleporter message
4303
+ * Gets a teleporter message by source chain, destination chain, and message ID.
4304
+ * @returns any
4305
+ * @throws ApiError
4306
+ */
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;
4316
+ /**
4317
+ * The message ID of the teleporter message.
4318
+ */
4319
+ messageId: any;
4320
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4321
+ /**
4322
+ * List teleporter messages
4323
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4324
+ * @returns any
4325
+ * @throws ApiError
4326
+ */
4327
+ listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4328
+ /**
4329
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4330
+ */
4331
+ pageSize?: number;
4332
+ /**
4333
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4334
+ */
4335
+ pageToken?: string;
4336
+ /**
4337
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4338
+ */
4339
+ sourceBlockchainId?: any;
4340
+ /**
4341
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4342
+ */
4343
+ destinationBlockchainId?: any;
4344
+ /**
4345
+ * The address of the recipient of the teleporter message.
4346
+ */
4347
+ to?: any;
4348
+ /**
4349
+ * The address of the sender of the teleporter message.
4350
+ */
4351
+ from?: any;
4352
+ }): CancelablePromise<NextPageToken>;
4353
+ }
4354
+
3903
4355
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3904
4356
  declare class Glacier {
3905
4357
  readonly default: DefaultService;
@@ -3918,6 +4370,7 @@ declare class Glacier {
3918
4370
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3919
4371
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3920
4372
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4373
+ readonly teleporter: TeleporterService;
3921
4374
  readonly request: BaseHttpRequest;
3922
4375
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3923
4376
  }
@@ -3939,4 +4392,4 @@ declare class ApiError extends Error {
3939
4392
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3940
4393
  }
3941
4394
 
3942
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, 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, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
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 };