@avalabs/glacier-sdk 2.8.0-canary.fc6195f.0 → 2.8.0-canary.ff11880.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 (45) hide show
  1. package/dist/index.d.ts +351 -126
  2. package/dist/index.js +124 -30
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  4. package/esm/generated/models/EventType.d.ts +5 -0
  5. package/esm/generated/models/EventType.js +6 -0
  6. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  7. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  8. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  9. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  10. package/esm/generated/models/PChainBalance.d.ts +7 -7
  11. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  12. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  13. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  14. package/esm/generated/models/PChainTransactionType.js +6 -5
  15. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  16. package/esm/generated/models/PendingReward.d.ts +2 -2
  17. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  18. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  19. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  20. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  21. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  22. package/esm/generated/models/Utxo.d.ts +28 -28
  23. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  24. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  25. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  26. package/esm/generated/models/WebhookStatus.js +7 -0
  27. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  28. package/esm/generated/models/WebhookStatusType.js +7 -0
  29. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  30. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  31. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  32. package/esm/generated/models/XChainTransactionType.js +11 -0
  33. package/esm/generated/services/DefaultService.d.ts +53 -0
  34. package/esm/generated/services/DefaultService.js +42 -0
  35. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  36. package/esm/generated/services/NfTsService.d.ts +25 -0
  37. package/esm/generated/services/NfTsService.js +19 -0
  38. package/esm/generated/services/OperationsService.d.ts +11 -11
  39. package/esm/generated/services/OperationsService.js +10 -10
  40. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  41. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  42. package/esm/index.d.ts +10 -1
  43. package/esm/index.js +4 -0
  44. package/package.json +2 -2
  45. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,60 @@ 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
+ topic0?: string;
69
+ };
70
+
71
+ declare enum EventType {
72
+ ADDRESS_ACTIVITY = "address_activity"
73
+ }
74
+
75
+ declare enum WebhookStatusType {
76
+ ACTIVE = "active",
77
+ INACTIVE = "inactive"
78
+ }
79
+
80
+ type WebhookResponse = {
81
+ id: string;
82
+ eventType: EventType;
83
+ metadata: AddressActivityMetadata;
84
+ url: string;
85
+ chainId: string;
86
+ status: WebhookStatusType;
87
+ createdAt: number;
88
+ };
89
+
90
+ type ListWebhooksResponse = {
91
+ /**
92
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
93
+ */
94
+ nextPageToken?: string;
95
+ webhooks: Array<WebhookResponse>;
96
+ };
97
+
98
+ type RegisterWebhookRequest = {
99
+ url: string;
100
+ chainId: string;
101
+ /**
102
+ * The type of event for the webhook
103
+ */
104
+ eventType: EventType;
105
+ metadata: AddressActivityMetadata;
106
+ };
107
+
108
+ type SharedSecretsResponse = {
109
+ secret: string;
110
+ };
111
+
112
+ declare enum WebhookStatus {
113
+ ACTIVE = "active",
114
+ INACTIVE = "inactive"
115
+ }
116
+
63
117
  declare class DefaultService {
64
118
  readonly httpRequest: BaseHttpRequest;
65
119
  constructor(httpRequest: BaseHttpRequest);
@@ -68,6 +122,54 @@ declare class DefaultService {
68
122
  * @throws ApiError
69
123
  */
70
124
  mediaControllerUploadImage(): CancelablePromise<any>;
125
+ /**
126
+ * Register a webhook
127
+ * Registers a new webhook.
128
+ * @returns WebhookResponse
129
+ * @throws ApiError
130
+ */
131
+ registerWebhook({ requestBody, }: {
132
+ requestBody: RegisterWebhookRequest;
133
+ }): CancelablePromise<WebhookResponse>;
134
+ /**
135
+ * List webhooks
136
+ * Lists webhooks for the user.
137
+ * @returns ListWebhooksResponse
138
+ * @throws ApiError
139
+ */
140
+ listWebhooks({ pageSize, pageToken, status, }: {
141
+ /**
142
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
+ */
144
+ pageSize?: number;
145
+ /**
146
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
+ */
148
+ pageToken?: string;
149
+ /**
150
+ * 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.
151
+ */
152
+ status?: WebhookStatus;
153
+ }): CancelablePromise<ListWebhooksResponse>;
154
+ /**
155
+ * Deactivate a webhook
156
+ * Deactivates a webhook by ID.
157
+ * @returns WebhookResponse
158
+ * @throws ApiError
159
+ */
160
+ deactivateWebhook({ id, }: {
161
+ /**
162
+ * The webhook identifier.
163
+ */
164
+ id: string;
165
+ }): CancelablePromise<WebhookResponse>;
166
+ /**
167
+ * Generate a shared secret
168
+ * Generates a new shared secret.
169
+ * @returns SharedSecretsResponse
170
+ * @throws ApiError
171
+ */
172
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
71
173
  }
72
174
 
73
175
  declare enum CurrencyCode {
@@ -1637,7 +1739,13 @@ declare class EvmTransactionsService {
1637
1739
  * A wallet address.
1638
1740
  */
1639
1741
  address: string;
1742
+ /**
1743
+ * 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.
1744
+ */
1640
1745
  startBlock?: number;
1746
+ /**
1747
+ * 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.
1748
+ */
1641
1749
  endBlock?: number;
1642
1750
  /**
1643
1751
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1673,7 +1781,13 @@ declare class EvmTransactionsService {
1673
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1674
1782
  */
1675
1783
  pageToken?: string;
1784
+ /**
1785
+ * 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.
1786
+ */
1676
1787
  startBlock?: number;
1788
+ /**
1789
+ * 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.
1790
+ */
1677
1791
  endBlock?: number;
1678
1792
  /**
1679
1793
  * 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 +1809,13 @@ declare class EvmTransactionsService {
1695
1809
  * A wallet address.
1696
1810
  */
1697
1811
  address: string;
1812
+ /**
1813
+ * 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.
1814
+ */
1698
1815
  startBlock?: number;
1816
+ /**
1817
+ * 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.
1818
+ */
1699
1819
  endBlock?: number;
1700
1820
  /**
1701
1821
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1721,7 +1841,13 @@ declare class EvmTransactionsService {
1721
1841
  * A wallet address.
1722
1842
  */
1723
1843
  address: string;
1844
+ /**
1845
+ * 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.
1846
+ */
1724
1847
  startBlock?: number;
1848
+ /**
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.
1850
+ */
1725
1851
  endBlock?: number;
1726
1852
  /**
1727
1853
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1747,7 +1873,13 @@ declare class EvmTransactionsService {
1747
1873
  * A wallet address.
1748
1874
  */
1749
1875
  address: string;
1876
+ /**
1877
+ * 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.
1878
+ */
1750
1879
  startBlock?: number;
1880
+ /**
1881
+ * 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.
1882
+ */
1751
1883
  endBlock?: number;
1752
1884
  /**
1753
1885
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1773,7 +1905,13 @@ declare class EvmTransactionsService {
1773
1905
  * A wallet address.
1774
1906
  */
1775
1907
  address: string;
1908
+ /**
1909
+ * 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.
1910
+ */
1776
1911
  startBlock?: number;
1912
+ /**
1913
+ * 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.
1914
+ */
1777
1915
  endBlock?: number;
1778
1916
  /**
1779
1917
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1801,7 +1939,13 @@ declare class EvmTransactionsService {
1801
1939
  * A wallet address.
1802
1940
  */
1803
1941
  address: string;
1942
+ /**
1943
+ * 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.
1944
+ */
1804
1945
  startBlock?: number;
1946
+ /**
1947
+ * 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.
1948
+ */
1805
1949
  endBlock?: number;
1806
1950
  /**
1807
1951
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1886,6 +2030,14 @@ declare class HealthCheckService {
1886
2030
  }>;
1887
2031
  }
1888
2032
 
2033
+ type ListNftTokens = {
2034
+ /**
2035
+ * 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.
2036
+ */
2037
+ nextPageToken?: string;
2038
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2039
+ };
2040
+
1889
2041
  declare class NfTsService {
1890
2042
  readonly httpRequest: BaseHttpRequest;
1891
2043
  constructor(httpRequest: BaseHttpRequest);
@@ -1909,6 +2061,30 @@ declare class NfTsService {
1909
2061
  */
1910
2062
  tokenId: string;
1911
2063
  }): CancelablePromise<any>;
2064
+ /**
2065
+ * List tokens
2066
+ * Lists tokens for an NFT contract.
2067
+ * @returns ListNftTokens
2068
+ * @throws ApiError
2069
+ */
2070
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2071
+ /**
2072
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
+ */
2074
+ chainId: string;
2075
+ /**
2076
+ * Contract address on the relevant chain.
2077
+ */
2078
+ address: string;
2079
+ /**
2080
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
+ */
2082
+ pageSize?: number;
2083
+ /**
2084
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
+ */
2086
+ pageToken?: string;
2087
+ }): CancelablePromise<ListNftTokens>;
1912
2088
  /**
1913
2089
  * Get token details
1914
2090
  * Gets token details for a specific token of an NFT contract.
@@ -2025,17 +2201,6 @@ type OperationStatusResponse = {
2025
2201
  declare class OperationsService {
2026
2202
  readonly httpRequest: BaseHttpRequest;
2027
2203
  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
2204
  /**
2040
2205
  * Get operation
2041
2206
  * Gets operation details for the given operation id.
@@ -2048,6 +2213,17 @@ declare class OperationsService {
2048
2213
  */
2049
2214
  operationId: string;
2050
2215
  }): CancelablePromise<OperationStatusResponse>;
2216
+ /**
2217
+ * Create transaction export operation
2218
+ * Trigger a transaction export operation with given parameters.
2219
+ *
2220
+ * 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.
2221
+ * @returns OperationStatusResponse
2222
+ * @throws ApiError
2223
+ */
2224
+ postTransactionExportJob({ requestBody, }: {
2225
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2226
+ }): CancelablePromise<OperationStatusResponse>;
2051
2227
  }
2052
2228
 
2053
2229
  declare enum BlockchainIds {
@@ -2449,7 +2625,7 @@ declare class PrimaryNetworkService {
2449
2625
  * @returns ListValidatorDetailsResponse
2450
2626
  * @throws ApiError
2451
2627
  */
2452
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2628
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2453
2629
  /**
2454
2630
  * Either mainnet or a testnet.
2455
2631
  */
@@ -2463,41 +2639,41 @@ declare class PrimaryNetworkService {
2463
2639
  */
2464
2640
  pageToken?: string;
2465
2641
  /**
2466
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2642
+ * A comma separated list of node ids to filter by.
2467
2643
  */
2468
- minTimeRemaining?: any;
2644
+ nodeIds?: string;
2469
2645
  /**
2470
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2646
+ * 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
2647
  */
2472
- maxTimeRemaining?: any;
2648
+ sortOrder?: SortOrder;
2473
2649
  /**
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
2650
+ * Validation status of the node.
2475
2651
  */
2476
- minDelegationCapacity?: number;
2652
+ validationStatus?: ValidationStatusType;
2477
2653
  /**
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.
2654
+ * 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
2655
  */
2480
- maxDelegationCapacity?: number;
2656
+ minDelegationCapacity?: any;
2481
2657
  /**
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.
2658
+ * 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
2659
  */
2484
- minFeePercentage?: any;
2660
+ maxDelegationCapacity?: any;
2485
2661
  /**
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.
2662
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2487
2663
  */
2488
- maxFeePercentage?: any;
2664
+ minTimeRemaining?: any;
2489
2665
  /**
2490
- * A comma separated list of node ids to filter by.
2666
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2491
2667
  */
2492
- nodeIds?: string;
2668
+ maxTimeRemaining?: any;
2493
2669
  /**
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.
2670
+ * 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
2671
  */
2496
- sortOrder?: SortOrder;
2672
+ minFeePercentage?: any;
2497
2673
  /**
2498
- * Validation status of the node.
2674
+ * 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
2675
  */
2500
- validationStatus?: ValidationStatusType;
2676
+ maxFeePercentage?: any;
2501
2677
  /**
2502
2678
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2503
2679
  */
@@ -2639,13 +2815,57 @@ type ListCChainAtomicBalancesResponse = {
2639
2815
  chainInfo: PrimaryNetworkChainInfo;
2640
2816
  };
2641
2817
 
2642
- type PChainAsset = {
2818
+ type Asset = {
2819
+ /**
2820
+ * Unique ID for an asset.
2821
+ */
2643
2822
  assetId: string;
2823
+ /**
2824
+ * Name of this asset.
2825
+ */
2826
+ name: string;
2827
+ /**
2828
+ * Symbol for this asset (max 4 characters).
2829
+ */
2830
+ symbol: string;
2831
+ /**
2832
+ * Denomination of this asset to represent fungibility.
2833
+ */
2834
+ denomination: number;
2835
+ /**
2836
+ * Type of asset like SECP256K1 or NFT.
2837
+ */
2838
+ type: string;
2839
+ /**
2840
+ * Amount of the asset.
2841
+ */
2644
2842
  amount: string;
2645
2843
  };
2646
2844
 
2647
2845
  type PChainSharedAsset = {
2846
+ /**
2847
+ * Unique ID for an asset.
2848
+ */
2648
2849
  assetId: string;
2850
+ /**
2851
+ * Name of this asset.
2852
+ */
2853
+ name: string;
2854
+ /**
2855
+ * Symbol for this asset (max 4 characters).
2856
+ */
2857
+ symbol: string;
2858
+ /**
2859
+ * Denomination of this asset to represent fungibility.
2860
+ */
2861
+ denomination: number;
2862
+ /**
2863
+ * Type of asset like SECP256K1 or NFT.
2864
+ */
2865
+ type: string;
2866
+ /**
2867
+ * Amount of the asset.
2868
+ */
2649
2869
  amount: string;
2650
2870
  sharedWithChainId: string;
2651
2871
  status: string;
@@ -2655,27 +2875,27 @@ type PChainBalance = {
2655
2875
  /**
2656
2876
  * 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
2877
  */
2658
- unlockedUnstaked: Array<PChainAsset>;
2878
+ unlockedUnstaked: Array<Asset>;
2659
2879
  /**
2660
2880
  * 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
2881
  */
2662
- unlockedStaked: Array<PChainAsset>;
2882
+ unlockedStaked: Array<Asset>;
2663
2883
  /**
2664
2884
  * 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
2885
  */
2666
- lockedPlatform: Array<PChainAsset>;
2886
+ lockedPlatform: Array<Asset>;
2667
2887
  /**
2668
2888
  * 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
2889
  */
2670
- lockedStakeable: Array<PChainAsset>;
2890
+ lockedStakeable: Array<Asset>;
2671
2891
  /**
2672
2892
  * 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
2893
  */
2674
- lockedStaked: Array<PChainAsset>;
2894
+ lockedStaked: Array<Asset>;
2675
2895
  /**
2676
2896
  * 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
2897
  */
2678
- pendingStaked: Array<PChainAsset>;
2898
+ pendingStaked: Array<Asset>;
2679
2899
  /**
2680
2900
  * 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
2901
  */
@@ -2814,6 +3034,7 @@ type GetPrimaryNetworkBlockResponse = {
2814
3034
  txCount: number;
2815
3035
  transactions: Array<string>;
2816
3036
  blockSizeBytes: number;
3037
+ currentSupply?: string;
2817
3038
  proposerDetails?: ProposerDetails;
2818
3039
  };
2819
3040
 
@@ -2826,6 +3047,7 @@ type PrimaryNetworkBlock = {
2826
3047
  txCount: number;
2827
3048
  transactions: Array<string>;
2828
3049
  blockSizeBytes: number;
3050
+ currentSupply?: string;
2829
3051
  proposerDetails?: ProposerDetails;
2830
3052
  };
2831
3053
 
@@ -2937,7 +3159,7 @@ type HistoricalReward = {
2937
3159
  /**
2938
3160
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2939
3161
  */
2940
- reward: PChainAsset;
3162
+ reward: Asset;
2941
3163
  rewardTxHash: string;
2942
3164
  };
2943
3165
 
@@ -2964,7 +3186,7 @@ type PendingReward = {
2964
3186
  /**
2965
3187
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2966
3188
  */
2967
- estimatedReward: PChainAsset;
3189
+ estimatedReward: Asset;
2968
3190
  };
2969
3191
 
2970
3192
  type ListPendingRewardsResponse = {
@@ -3044,40 +3266,13 @@ declare class PrimaryNetworkRewardsService {
3044
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3045
3267
  }
3046
3268
 
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
3269
  type UtxoCredential = {
3075
3270
  /**
3076
- * Signature provided to consume the output
3271
+ * Signature provided to consume the output.
3077
3272
  */
3078
3273
  signature?: string;
3079
3274
  /**
3080
- * Public key associated with the signature
3275
+ * Public key associated with the signature.
3081
3276
  */
3082
3277
  publicKey?: string;
3083
3278
  };
@@ -3099,66 +3294,66 @@ type EVMInput = {
3099
3294
 
3100
3295
  type Utxo = {
3101
3296
  /**
3102
- * UTXO ID for this output.
3297
+ * Addresses that are eligible to sign the consumption of this output.
3103
3298
  */
3104
- utxoId: string;
3299
+ addresses: Array<string>;
3105
3300
  asset: Asset;
3106
3301
  /**
3107
- * Type of output.
3302
+ * Blockchain ID on which this output is consumed on.
3108
3303
  */
3109
- utxoType: string;
3304
+ consumedOnChainId: string;
3110
3305
  /**
3111
- * Blockchain ID on which this output is created on.
3306
+ * Transaction ID that consumed this output.
3112
3307
  */
3113
- createdOnChainId: string;
3308
+ consumingTxHash?: string;
3114
3309
  /**
3115
- * Blockchain ID on which this output is consumed on.
3310
+ * Blockchain ID on which this output is created on.
3116
3311
  */
3117
- consumedOnChainId: string;
3312
+ createdOnChainId: string;
3118
3313
  /**
3119
- * Transaction ID that created this output.
3314
+ * UTXO ID for this output.
3120
3315
  */
3121
- creationTxHash: string;
3316
+ utxoId: string;
3122
3317
  /**
3123
- * Transaction ID that consumed this output.
3318
+ * Unix timestamp in seconds at which this output was consumed.
3124
3319
  */
3125
- consumingTxHash?: string;
3320
+ consumingTxTimestamp?: number;
3126
3321
  /**
3127
- * Timestamp in seconds this output is consumed.
3322
+ * Transaction ID that created this output.
3128
3323
  */
3129
- consumingTxTimestamp?: number;
3324
+ creationTxHash: string;
3130
3325
  /**
3131
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3326
+ * Credentials that signed the transaction to consume this utxo
3132
3327
  */
3133
- outputIndex: string;
3328
+ credentials?: Array<UtxoCredential>;
3134
3329
  /**
3135
- * Timestamp in seconds this outptut is created on.
3330
+ * Index representing the minting set for the NFT mint output.
3136
3331
  */
3137
- timestamp: number;
3332
+ groupId?: number;
3138
3333
  /**
3139
3334
  * Locktime in seconds after which this output can be consumed.
3140
3335
  */
3141
3336
  locktime: number;
3142
3337
  /**
3143
- * Minimum number of signatures required to consume this output.
3338
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3144
3339
  */
3145
- threshold: number;
3340
+ outputIndex: string;
3146
3341
  /**
3147
- * Addresses that are eligible to sign the consumption of this output.
3342
+ * Hex encoded data for NFT assets.
3148
3343
  */
3149
- addresses: Array<string>;
3344
+ payload?: string;
3150
3345
  /**
3151
- * Hex encoded data for NFT assets
3346
+ * Minimum number of signatures required to consume this output.
3152
3347
  */
3153
- payload?: string;
3348
+ threshold: number;
3154
3349
  /**
3155
- * Index representing the minting set for the NFT mint output
3350
+ * Unix timestamp in seconds at which this outptut was created.
3156
3351
  */
3157
- groupId?: number;
3352
+ timestamp: number;
3158
3353
  /**
3159
- * Credentials that signed the transaction to consume this utxo
3354
+ * Type of output.
3160
3355
  */
3161
- credentials?: Array<UtxoCredential>;
3356
+ utxoType: string;
3162
3357
  };
3163
3358
 
3164
3359
  type CChainExportTransaction = {
@@ -3289,17 +3484,18 @@ type ListCChainAtomicTransactionsResponse = {
3289
3484
 
3290
3485
  declare enum PChainTransactionType {
3291
3486
  ADD_VALIDATOR_TX = "AddValidatorTx",
3292
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3293
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3294
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3295
3487
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3296
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3297
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3488
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3298
3489
  CREATE_CHAIN_TX = "CreateChainTx",
3299
3490
  CREATE_SUBNET_TX = "CreateSubnetTx",
3300
3491
  IMPORT_TX = "ImportTx",
3301
3492
  EXPORT_TX = "ExportTx",
3302
3493
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3494
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3495
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3496
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3497
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3498
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3303
3499
  UNKNOWN = "UNKNOWN"
3304
3500
  }
3305
3501
 
@@ -3310,29 +3506,48 @@ declare enum UtxoType {
3310
3506
 
3311
3507
  type PChainUtxo = {
3312
3508
  /**
3313
- * An array of P-Chain wallet addresses.
3509
+ * Addresses that are eligible to sign the consumption of this output.
3314
3510
  */
3315
3511
  addresses: Array<string>;
3512
+ asset: Asset;
3513
+ /**
3514
+ * Blockchain ID on which this output is consumed on.
3515
+ */
3516
+ consumedOnChainId: string;
3517
+ /**
3518
+ * Transaction ID that consumed this output.
3519
+ */
3520
+ consumingTxHash?: string;
3521
+ /**
3522
+ * Blockchain ID on which this output is created on.
3523
+ */
3524
+ createdOnChainId: string;
3525
+ /**
3526
+ * UTXO ID for this output.
3527
+ */
3316
3528
  utxoId: string;
3317
- txHash: string;
3318
- outputIndex: number;
3529
+ /**
3530
+ * @deprecated
3531
+ */
3532
+ amount: string;
3533
+ /**
3534
+ * @deprecated
3535
+ */
3536
+ assetId: string;
3319
3537
  blockNumber: string;
3320
3538
  blockTimestamp: number;
3321
- consumingTxHash?: string;
3322
- consumingBlockTimestamp?: number;
3323
3539
  consumingBlockNumber?: string;
3324
- assetId: string;
3325
- utxoType: UtxoType;
3326
- amount: string;
3327
- stakeableLocktime?: number;
3540
+ consumingBlockTimestamp?: number;
3328
3541
  platformLocktime?: number;
3329
- threshold?: number;
3330
- createdOnChainId: string;
3331
- consumedOnChainId: string;
3542
+ outputIndex: number;
3543
+ rewardType?: RewardType;
3544
+ stakeableLocktime?: number;
3332
3545
  staked?: boolean;
3333
- utxoStartTimestamp?: number;
3546
+ threshold?: number;
3547
+ txHash: string;
3334
3548
  utxoEndTimestamp?: number;
3335
- rewardType?: RewardType;
3549
+ utxoStartTimestamp?: number;
3550
+ utxoType: UtxoType;
3336
3551
  };
3337
3552
 
3338
3553
  type PChainTransaction = {
@@ -3360,15 +3575,15 @@ type PChainTransaction = {
3360
3575
  /**
3361
3576
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3362
3577
  */
3363
- value: Array<PChainAsset>;
3578
+ value: Array<Asset>;
3364
3579
  /**
3365
3580
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3366
3581
  */
3367
- amountBurned: Array<PChainAsset>;
3582
+ amountBurned: Array<Asset>;
3368
3583
  /**
3369
3584
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3370
3585
  */
3371
- amountStaked: Array<PChainAsset>;
3586
+ amountStaked: Array<Asset>;
3372
3587
  /**
3373
3588
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3374
3589
  */
@@ -3411,6 +3626,15 @@ type ListPChainTransactionsResponse = {
3411
3626
  chainInfo: PrimaryNetworkChainInfo;
3412
3627
  };
3413
3628
 
3629
+ declare enum XChainTransactionType {
3630
+ BASE_TX = "BaseTx",
3631
+ CREATE_ASSET_TX = "CreateAssetTx",
3632
+ OPERATION_TX = "OperationTx",
3633
+ IMPORT_TX = "ImportTx",
3634
+ EXPORT_TX = "ExportTx",
3635
+ UNKNOWN = "UNKNOWN"
3636
+ }
3637
+
3414
3638
  type XChainLinearTransaction = {
3415
3639
  /**
3416
3640
  * Unique ID for this transaction.
@@ -3427,7 +3651,7 @@ type XChainLinearTransaction = {
3427
3651
  /**
3428
3652
  * Type of transaction.
3429
3653
  */
3430
- txType: string;
3654
+ txType: XChainTransactionType;
3431
3655
  /**
3432
3656
  * Hex encoded memo bytes for this transaction.
3433
3657
  */
@@ -3504,7 +3728,7 @@ type XChainNonLinearTransaction = {
3504
3728
  /**
3505
3729
  * Type of transaction.
3506
3730
  */
3507
- txType: string;
3731
+ txType: XChainTransactionType;
3508
3732
  /**
3509
3733
  * Hex encoded memo bytes for this transaction.
3510
3734
  */
@@ -3562,17 +3786,18 @@ declare enum PChainId {
3562
3786
 
3563
3787
  declare enum PrimaryNetworkTxType {
3564
3788
  ADD_VALIDATOR_TX = "AddValidatorTx",
3565
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3566
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3567
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3568
3789
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3569
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3570
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3790
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3571
3791
  CREATE_CHAIN_TX = "CreateChainTx",
3572
3792
  CREATE_SUBNET_TX = "CreateSubnetTx",
3573
3793
  IMPORT_TX = "ImportTx",
3574
3794
  EXPORT_TX = "ExportTx",
3575
3795
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3796
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3797
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3798
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3799
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3800
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3576
3801
  UNKNOWN = "UNKNOWN",
3577
3802
  BASE_TX = "BaseTx",
3578
3803
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3939,4 +4164,4 @@ declare class ApiError extends Error {
3939
4164
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3940
4165
  }
3941
4166
 
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 };
4167
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };