@avalabs/glacier-sdk 2.8.0-canary.d5ec74d.0 → 2.8.0-canary.d6173b4.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 (179) hide show
  1. package/LICENSE.md +9 -0
  2. package/dist/index.d.ts +696 -263
  3. package/dist/index.js +1 -2064
  4. package/esm/generated/Glacier.d.ts +6 -0
  5. package/esm/generated/Glacier.js +1 -68
  6. package/esm/generated/core/ApiError.js +1 -18
  7. package/esm/generated/core/BaseHttpRequest.js +1 -7
  8. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  9. package/esm/generated/core/CancelablePromise.js +1 -91
  10. package/esm/generated/core/FetchHttpRequest.js +1 -13
  11. package/esm/generated/core/OpenAPI.js +1 -13
  12. package/esm/generated/core/request.js +1 -227
  13. package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
  14. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  15. package/esm/generated/models/ActiveValidatorDetails.js +1 -8
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  18. package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
  19. package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
  21. package/esm/generated/models/BlockchainId.js +1 -13
  22. package/esm/generated/models/BlockchainIds.js +1 -10
  23. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  24. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  25. package/esm/generated/models/CChainExportTransaction.js +1 -8
  26. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  27. package/esm/generated/models/CChainImportTransaction.js +1 -8
  28. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
  29. package/esm/generated/models/ChainInfo.d.ts +1 -3
  30. package/esm/generated/models/ChainStatus.d.ts +3 -0
  31. package/esm/generated/models/ChainStatus.js +1 -7
  32. package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
  33. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  34. package/esm/generated/models/CompletedValidatorDetails.js +1 -8
  35. package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
  36. package/esm/generated/models/ContractSubmissionErc20.js +1 -8
  37. package/esm/generated/models/ContractSubmissionErc721.js +1 -8
  38. package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
  39. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  40. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  41. package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
  42. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  43. package/esm/generated/models/CurrencyCode.js +1 -19
  44. package/esm/generated/models/DelegationStatusType.js +1 -8
  45. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  46. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
  47. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  48. package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
  49. package/esm/generated/models/EVMInput.d.ts +3 -3
  50. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  51. package/esm/generated/models/EVMOperationType.js +1 -0
  52. package/esm/generated/models/EVMOutput.d.ts +3 -3
  53. package/esm/generated/models/Erc1155Contract.js +1 -8
  54. package/esm/generated/models/Erc1155Token.js +1 -8
  55. package/esm/generated/models/Erc1155TokenBalance.js +1 -8
  56. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  57. package/esm/generated/models/Erc20Contract.js +1 -8
  58. package/esm/generated/models/Erc20Token.js +1 -8
  59. package/esm/generated/models/Erc20TokenBalance.js +1 -8
  60. package/esm/generated/models/Erc721Contract.js +1 -8
  61. package/esm/generated/models/Erc721Token.js +1 -8
  62. package/esm/generated/models/Erc721TokenBalance.js +1 -8
  63. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  64. package/esm/generated/models/EventType.js +1 -6
  65. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  66. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  67. package/esm/generated/models/GlacierApiFeature.js +1 -0
  68. package/esm/generated/models/InternalTransactionOpCall.js +1 -12
  69. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  70. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  71. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  72. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  73. package/esm/generated/models/Method.d.ts +0 -3
  74. package/esm/generated/models/Money.d.ts +0 -3
  75. package/esm/generated/models/Network.js +1 -7
  76. package/esm/generated/models/NetworkType.js +1 -7
  77. package/esm/generated/models/NextPageToken.d.ts +8 -0
  78. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  79. package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
  80. package/esm/generated/models/OperationStatus.js +1 -9
  81. package/esm/generated/models/OperationStatusCode.js +1 -8
  82. package/esm/generated/models/OperationType.d.ts +4 -2
  83. package/esm/generated/models/OperationType.js +1 -7
  84. package/esm/generated/models/PChainBalance.d.ts +15 -15
  85. package/esm/generated/models/PChainId.js +1 -7
  86. package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
  87. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  88. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  89. package/esm/generated/models/PChainTransactionType.js +1 -19
  90. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  91. package/esm/generated/models/PendingDelegatorDetails.js +1 -8
  92. package/esm/generated/models/PendingReward.d.ts +3 -3
  93. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  94. package/esm/generated/models/PendingTeleporterMessage.js +1 -0
  95. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  96. package/esm/generated/models/PendingValidatorDetails.js +1 -8
  97. package/esm/generated/models/PrimaryNetwork.js +1 -7
  98. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
  99. package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -7
  100. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
  101. package/esm/generated/models/PrimaryNetworkAssetType.js +1 -7
  102. package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
  103. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  104. package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
  105. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  106. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  107. package/esm/generated/models/PrimaryNetworkTxType.js +1 -22
  108. package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
  109. package/esm/generated/models/RemovedValidatorDetails.js +1 -8
  110. package/esm/generated/models/ResourceLinkType.js +1 -23
  111. package/esm/generated/models/RewardType.js +1 -8
  112. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  113. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  114. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  115. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  116. package/esm/generated/models/SortByOption.d.ts +9 -0
  117. package/esm/generated/models/SortByOption.js +1 -0
  118. package/esm/generated/models/SortOrder.js +1 -7
  119. package/esm/generated/models/Subnet.d.ts +17 -0
  120. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  121. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  122. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  123. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  124. package/esm/generated/models/TeleporterRewardDetails.js +1 -0
  125. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  126. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  127. package/esm/generated/models/TransactionMethodType.js +1 -8
  128. package/esm/generated/models/TransactionStatus.js +1 -7
  129. package/esm/generated/models/UnknownContract.js +1 -8
  130. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  131. package/esm/generated/models/Utxo.d.ts +2 -2
  132. package/esm/generated/models/UtxoType.js +1 -7
  133. package/esm/generated/models/ValidationStatusType.js +1 -9
  134. package/esm/generated/models/VmName.js +1 -8
  135. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  136. package/esm/generated/models/WebhookStatus.js +1 -7
  137. package/esm/generated/models/WebhookStatusType.js +1 -7
  138. package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
  139. package/esm/generated/models/XChainBalances.d.ts +3 -3
  140. package/esm/generated/models/XChainId.js +1 -8
  141. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  142. package/esm/generated/models/XChainLinearTransaction.js +1 -9
  143. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  144. package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
  145. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
  146. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  147. package/esm/generated/models/XChainTransactionType.js +1 -11
  148. package/esm/generated/services/DefaultService.d.ts +0 -53
  149. package/esm/generated/services/DefaultService.js +1 -55
  150. package/esm/generated/services/EvmBalancesService.d.ts +5 -1
  151. package/esm/generated/services/EvmBalancesService.js +1 -116
  152. package/esm/generated/services/EvmBlocksService.js +1 -37
  153. package/esm/generated/services/EvmChainsService.d.ts +6 -1
  154. package/esm/generated/services/EvmChainsService.js +1 -29
  155. package/esm/generated/services/EvmContractsService.js +1 -36
  156. package/esm/generated/services/EvmTransactionsService.js +1 -251
  157. package/esm/generated/services/HealthCheckService.js +1 -16
  158. package/esm/generated/services/NfTsService.js +1 -56
  159. package/esm/generated/services/OperationsService.js +1 -28
  160. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
  161. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
  162. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -55
  163. package/esm/generated/services/PrimaryNetworkService.d.ts +24 -9
  164. package/esm/generated/services/PrimaryNetworkService.js +1 -171
  165. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
  166. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
  167. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
  168. package/esm/generated/services/RpcService.d.ts +25 -0
  169. package/esm/generated/services/RpcService.js +1 -0
  170. package/esm/generated/services/TeleporterService.d.ts +62 -0
  171. package/esm/generated/services/TeleporterService.js +1 -0
  172. package/esm/generated/services/WebhooksService.d.ts +143 -0
  173. package/esm/generated/services/WebhooksService.js +1 -0
  174. package/esm/index.d.ts +28 -3
  175. package/esm/index.js +1 -80
  176. package/package.json +3 -3
  177. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  178. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  179. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -14
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -60,65 +54,6 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
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
- name: string;
92
- description: string;
93
- };
94
-
95
- type ListWebhooksResponse = {
96
- /**
97
- * 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.
98
- */
99
- nextPageToken?: string;
100
- webhooks: Array<WebhookResponse>;
101
- };
102
-
103
- type RegisterWebhookRequest = {
104
- url: string;
105
- chainId: string;
106
- /**
107
- * The type of event for the webhook
108
- */
109
- eventType: EventType;
110
- metadata: AddressActivityMetadata;
111
- };
112
-
113
- type SharedSecretsResponse = {
114
- secret: string;
115
- };
116
-
117
- declare enum WebhookStatus {
118
- ACTIVE = "active",
119
- INACTIVE = "inactive"
120
- }
121
-
122
57
  declare class DefaultService {
123
58
  readonly httpRequest: BaseHttpRequest;
124
59
  constructor(httpRequest: BaseHttpRequest);
@@ -127,56 +62,11 @@ declare class DefaultService {
127
62
  * @throws ApiError
128
63
  */
129
64
  mediaControllerUploadImage(): CancelablePromise<any>;
130
- /**
131
- * Register a webhook
132
- * Registers a new webhook.
133
- * @returns WebhookResponse
134
- * @throws ApiError
135
- */
136
- registerWebhook({ requestBody, }: {
137
- requestBody: RegisterWebhookRequest;
138
- }): CancelablePromise<WebhookResponse>;
139
- /**
140
- * List webhooks
141
- * Lists webhooks for the user.
142
- * @returns ListWebhooksResponse
143
- * @throws ApiError
144
- */
145
- listWebhooks({ pageToken, pageSize, status, }: {
146
- /**
147
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
148
- */
149
- pageToken?: string;
150
- /**
151
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
152
- */
153
- pageSize?: number;
154
- /**
155
- * 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.
156
- */
157
- status?: WebhookStatus;
158
- }): CancelablePromise<ListWebhooksResponse>;
159
- /**
160
- * Deactivate a webhook
161
- * Deactivates a webhook by ID.
162
- * @returns WebhookResponse
163
- * @throws ApiError
164
- */
165
- deactivateWebhook({ id, }: {
166
- /**
167
- * The webhook identifier.
168
- */
169
- id: string;
170
- }): CancelablePromise<WebhookResponse>;
171
- /**
172
- * Generate a shared secret
173
- * Generates a new shared secret.
174
- * @returns SharedSecretsResponse
175
- * @throws ApiError
176
- */
177
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
65
  }
179
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
180
70
  declare enum CurrencyCode {
181
71
  USD = "usd",
182
72
  EUR = "eur",
@@ -195,9 +85,6 @@ declare enum CurrencyCode {
195
85
  }
196
86
 
197
87
  type Money = {
198
- /**
199
- * ISO 4217 currency code.
200
- */
201
88
  currencyCode: CurrencyCode;
202
89
  /**
203
90
  * Monetary value in base 10 decimals.
@@ -247,6 +134,9 @@ type GetNativeBalanceResponse = {
247
134
  nativeTokenBalance: NativeTokenBalance;
248
135
  };
249
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
250
140
  declare enum NftTokenMetadataStatus {
251
141
  UNKNOWN = "UNKNOWN",
252
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -262,9 +152,6 @@ declare enum NftTokenMetadataStatus {
262
152
  }
263
153
 
264
154
  type Erc1155TokenMetadata = {
265
- /**
266
- * The metadata indexing status of the nft.
267
- */
268
155
  indexStatus: NftTokenMetadataStatus;
269
156
  metadataLastUpdatedTimestamp?: number;
270
157
  name?: string;
@@ -303,9 +190,6 @@ declare namespace Erc1155TokenBalance {
303
190
  }
304
191
 
305
192
  type Erc721TokenMetadata = {
306
- /**
307
- * The metadata indexing status of the nft.
308
- */
309
193
  indexStatus: NftTokenMetadataStatus;
310
194
  metadataLastUpdatedTimestamp?: number;
311
195
  name?: string;
@@ -478,7 +362,7 @@ declare class EvmBalancesService {
478
362
  * @returns ListErc20BalancesResponse
479
363
  * @throws ApiError
480
364
  */
481
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
482
366
  /**
483
367
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
484
368
  */
@@ -499,6 +383,10 @@ declare class EvmBalancesService {
499
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
500
384
  */
501
385
  pageSize?: number;
386
+ /**
387
+ * whether to filter out spam tokens from the response. Default is true.
388
+ */
389
+ filterSpamTokens?: boolean;
502
390
  /**
503
391
  * A comma separated list of contract addresses to filter by.
504
392
  */
@@ -743,6 +631,9 @@ declare class EvmBlocksService {
743
631
  }): CancelablePromise<GetEvmBlockResponse>;
744
632
  }
745
633
 
634
+ /**
635
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
+ */
746
637
  declare enum ChainStatus {
747
638
  OK = "OK",
748
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -780,9 +671,6 @@ declare enum VmName {
780
671
 
781
672
  type GetChainResponse = {
782
673
  chainId: string;
783
- /**
784
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
785
- */
786
674
  status: ChainStatus;
787
675
  chainName: string;
788
676
  description: string;
@@ -798,13 +686,16 @@ type GetChainResponse = {
798
686
  networkToken: NetworkToken;
799
687
  chainLogoUri?: string;
800
688
  private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
801
690
  };
802
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
803
697
  type ChainInfo = {
804
698
  chainId: string;
805
- /**
806
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
807
- */
808
699
  status: ChainStatus;
809
700
  chainName: string;
810
701
  description: string;
@@ -820,6 +711,7 @@ type ChainInfo = {
820
711
  networkToken: NetworkToken;
821
712
  chainLogoUri?: string;
822
713
  private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
823
715
  };
824
716
 
825
717
  type ListChainsResponse = {
@@ -840,11 +732,15 @@ declare class EvmChainsService {
840
732
  * @returns ListChainsResponse
841
733
  * @throws ApiError
842
734
  */
843
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
844
736
  /**
845
737
  * mainnet or testnet.
846
738
  */
847
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
848
744
  }): CancelablePromise<ListChainsResponse>;
849
745
  /**
850
746
  * Get chain information
@@ -1299,6 +1195,9 @@ type Erc721TransferDetails = {
1299
1195
  erc721Token: Erc721Token;
1300
1196
  };
1301
1197
 
1198
+ /**
1199
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
+ */
1302
1201
  declare enum TransactionMethodType {
1303
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1304
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1306,9 +1205,6 @@ declare enum TransactionMethodType {
1306
1205
  }
1307
1206
 
1308
1207
  type Method = {
1309
- /**
1310
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1311
- */
1312
1208
  callType: TransactionMethodType;
1313
1209
  /**
1314
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1669,7 +1565,7 @@ type ListTransfersResponse = {
1669
1565
  * 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.
1670
1566
  */
1671
1567
  nextPageToken?: string;
1672
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1673
1569
  };
1674
1570
 
1675
1571
  declare enum SortOrder {
@@ -2040,7 +1936,7 @@ type ListNftTokens = {
2040
1936
  * 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.
2041
1937
  */
2042
1938
  nextPageToken?: string;
2043
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2044
1940
  };
2045
1941
 
2046
1942
  declare class NfTsService {
@@ -2117,8 +2013,12 @@ type EvmNetworkOptions = {
2117
2013
  includeChains: Array<string>;
2118
2014
  };
2119
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
2120
2020
  type CreateEvmTransactionExportRequest = {
2121
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
2122
2022
  firstDate: string;
2123
2023
  lastDate: string;
2124
2024
  /**
@@ -2131,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
2131
2031
  endDate: string;
2132
2032
  options: EvmNetworkOptions;
2133
2033
  };
2134
- declare namespace CreateEvmTransactionExportRequest {
2135
- enum type {
2136
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2137
- }
2034
+
2035
+ declare enum PrimaryNetworkOperationType {
2036
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2037
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2038
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
2138
2039
  }
2139
2040
 
2140
2041
  type PrimaryNetworkOptions = {
2141
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2142
2043
  cChainEvmAddresses?: Array<string>;
2143
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2144
2045
  };
2145
2046
 
2146
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
2147
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
2148
2049
  firstDate: string;
2149
2050
  lastDate: string;
2150
2051
  /**
@@ -2157,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2157
2058
  endDate: string;
2158
2059
  options: PrimaryNetworkOptions;
2159
2060
  };
2160
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2161
- enum type {
2162
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2163
- }
2164
- }
2165
2061
 
2166
2062
  declare enum OperationStatus {
2167
2063
  RUNNING = "RUNNING",
@@ -2171,8 +2067,10 @@ declare enum OperationStatus {
2171
2067
  }
2172
2068
 
2173
2069
  declare enum OperationType {
2174
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2175
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2070
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2071
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2072
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2073
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2176
2074
  }
2177
2075
 
2178
2076
  declare enum OperationStatusCode {
@@ -2364,13 +2262,44 @@ type BlockchainInfo = {
2364
2262
  blockchainId: string;
2365
2263
  };
2366
2264
 
2265
+ type SubnetOwnershipInfo = {
2266
+ /**
2267
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2268
+ */
2269
+ locktime: number;
2270
+ /**
2271
+ * Minimum number of signatures required to sign the Subnet update transactions.
2272
+ */
2273
+ threshold: number;
2274
+ /**
2275
+ * Addresses that are eligible to sign the Subnet update transactions.
2276
+ */
2277
+ addresses: Array<string>;
2278
+ };
2279
+
2367
2280
  type Subnet = {
2368
2281
  createBlockTimestamp: number;
2369
2282
  createBlockIndex: string;
2370
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2371
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2372
2293
  threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2373
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2374
2303
  blockchains: Array<BlockchainInfo>;
2375
2304
  };
2376
2305
 
@@ -2382,6 +2311,11 @@ type ListSubnetsResponse = {
2382
2311
  subnets: Array<Subnet>;
2383
2312
  };
2384
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2385
2319
  type Rewards = {
2386
2320
  validationRewardAmount: string;
2387
2321
  delegationRewardAmount: string;
@@ -2416,6 +2350,10 @@ type ActiveValidatorDetails = {
2416
2350
  delegationFee?: string;
2417
2351
  startTimestamp: number;
2418
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2419
2357
  stakePercentage: number;
2420
2358
  delegatorCount: number;
2421
2359
  amountDelegated?: string;
@@ -2440,6 +2378,10 @@ type CompletedValidatorDetails = {
2440
2378
  delegationFee?: string;
2441
2379
  startTimestamp: number;
2442
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2443
2385
  delegatorCount: number;
2444
2386
  rewards: Rewards;
2445
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2458,6 +2400,10 @@ type PendingValidatorDetails = {
2458
2400
  delegationFee?: string;
2459
2401
  startTimestamp: number;
2460
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2461
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2462
2408
  };
2463
2409
  declare namespace PendingValidatorDetails {
@@ -2474,6 +2420,10 @@ type RemovedValidatorDetails = {
2474
2420
  delegationFee?: string;
2475
2421
  startTimestamp: number;
2476
2422
  endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2477
2427
  removeTxHash: string;
2478
2428
  removeTimestamp: number;
2479
2429
  validationStatus: RemovedValidatorDetails.validationStatus;
@@ -2500,6 +2450,14 @@ declare enum Network {
2500
2450
  FUJI = "fuji"
2501
2451
  }
2502
2452
 
2453
+ declare enum SortByOption {
2454
+ BLOCK_INDEX = "blockIndex",
2455
+ DELEGATION_CAPACITY = "delegationCapacity",
2456
+ TIME_REMAINING = "timeRemaining",
2457
+ DELEGATION_FEE = "delegationFee",
2458
+ UPTIME_PERFORMANCE = "uptimePerformance"
2459
+ }
2460
+
2503
2461
  declare enum ValidationStatusType {
2504
2462
  COMPLETED = "completed",
2505
2463
  ACTIVE = "active",
@@ -2507,11 +2465,17 @@ declare enum ValidationStatusType {
2507
2465
  REMOVED = "removed"
2508
2466
  }
2509
2467
 
2468
+ /**
2469
+ * Cap represents if an asset is a variable or fixed cap asset.
2470
+ */
2510
2471
  declare enum PrimaryNetworkAssetCap {
2511
2472
  FIXED = "fixed",
2512
2473
  VARIABLE = "variable"
2513
2474
  }
2514
2475
 
2476
+ /**
2477
+ * Type of asset like SECP256K1 or NFT.
2478
+ */
2515
2479
  declare enum PrimaryNetworkAssetType {
2516
2480
  SECP256K1 = "secp256k1",
2517
2481
  NFT = "nft"
@@ -2534,17 +2498,11 @@ type XChainAssetDetails = {
2534
2498
  * Denomination of this asset to represent fungibility.
2535
2499
  */
2536
2500
  denomination: number;
2537
- /**
2538
- * Type of asset like SECP256K1 or NFT.
2539
- */
2540
2501
  type: PrimaryNetworkAssetType;
2541
2502
  /**
2542
2503
  * Timestamp in seconds this asset was created on.
2543
2504
  */
2544
2505
  createdAtTimestamp: number;
2545
- /**
2546
- * Cap represents if an asset is a variable or fixed cap asset.
2547
- */
2548
2506
  cap: PrimaryNetworkAssetCap;
2549
2507
  };
2550
2508
 
@@ -2659,7 +2617,7 @@ declare class PrimaryNetworkService {
2659
2617
  * @returns ListValidatorDetailsResponse
2660
2618
  * @throws ApiError
2661
2619
  */
2662
- listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2620
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2663
2621
  /**
2664
2622
  * Either mainnet or a testnet.
2665
2623
  */
@@ -2676,6 +2634,12 @@ declare class PrimaryNetworkService {
2676
2634
  * A comma separated list of node ids to filter by.
2677
2635
  */
2678
2636
  nodeIds?: string;
2637
+ /**
2638
+ * Which property to sort by, in conjunction with sortOrder.
2639
+ *
2640
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2641
+ */
2642
+ sortBy?: SortByOption;
2679
2643
  /**
2680
2644
  * 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.
2681
2645
  */
@@ -2701,17 +2665,25 @@ declare class PrimaryNetworkService {
2701
2665
  */
2702
2666
  maxTimeRemaining?: number;
2703
2667
  /**
2704
- * 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.
2668
+ * 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.0, as per the Avalanche spec.
2705
2669
  */
2706
2670
  minFeePercentage?: number;
2707
2671
  /**
2708
- * 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.
2672
+ * 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.0.
2709
2673
  */
2710
2674
  maxFeePercentage?: number;
2675
+ /**
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2677
+ */
2678
+ minUptimePerformance?: number;
2679
+ /**
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2681
+ */
2682
+ maxUptimePerformance?: number;
2711
2683
  /**
2712
2684
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2713
2685
  */
2714
- subnetId?: string;
2686
+ subnetId?: any;
2715
2687
  }): CancelablePromise<ListValidatorDetailsResponse>;
2716
2688
  /**
2717
2689
  * Get single validator details
@@ -2719,7 +2691,7 @@ declare class PrimaryNetworkService {
2719
2691
  * @returns ListValidatorDetailsResponse
2720
2692
  * @throws ApiError
2721
2693
  */
2722
- getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2723
2695
  /**
2724
2696
  * Either mainnet or a testnet.
2725
2697
  */
@@ -2736,14 +2708,14 @@ declare class PrimaryNetworkService {
2736
2708
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2737
2709
  */
2738
2710
  pageSize?: number;
2739
- /**
2740
- * 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.
2741
- */
2742
- sortOrder?: SortOrder;
2743
2711
  /**
2744
2712
  * Validation status of the node.
2745
2713
  */
2746
2714
  validationStatus?: ValidationStatusType;
2715
+ /**
2716
+ * 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.
2717
+ */
2718
+ sortOrder?: SortOrder;
2747
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2748
2720
  /**
2749
2721
  * List delegators
@@ -2811,9 +2783,6 @@ type CChainSharedAssetBalance = {
2811
2783
  * Denomination of this asset to represent fungibility.
2812
2784
  */
2813
2785
  denomination: number;
2814
- /**
2815
- * Type of asset like SECP256K1 or NFT.
2816
- */
2817
2786
  type: PrimaryNetworkAssetType;
2818
2787
  /**
2819
2788
  * Amount of the asset.
@@ -2849,7 +2818,7 @@ type ListCChainAtomicBalancesResponse = {
2849
2818
  chainInfo: PrimaryNetworkChainInfo;
2850
2819
  };
2851
2820
 
2852
- type Asset = {
2821
+ type AggregatedAssetAmount = {
2853
2822
  /**
2854
2823
  * Unique ID for an asset.
2855
2824
  */
@@ -2866,14 +2835,12 @@ type Asset = {
2866
2835
  * Denomination of this asset to represent fungibility.
2867
2836
  */
2868
2837
  denomination: number;
2869
- /**
2870
- * Type of asset like SECP256K1 or NFT.
2871
- */
2872
2838
  type: PrimaryNetworkAssetType;
2873
2839
  /**
2874
2840
  * Amount of the asset.
2875
2841
  */
2876
2842
  amount: string;
2843
+ utxoCount: number;
2877
2844
  };
2878
2845
 
2879
2846
  type PChainSharedAsset = {
@@ -2893,49 +2860,47 @@ type PChainSharedAsset = {
2893
2860
  * Denomination of this asset to represent fungibility.
2894
2861
  */
2895
2862
  denomination: number;
2896
- /**
2897
- * Type of asset like SECP256K1 or NFT.
2898
- */
2899
2863
  type: PrimaryNetworkAssetType;
2900
2864
  /**
2901
2865
  * Amount of the asset.
2902
2866
  */
2903
2867
  amount: string;
2868
+ utxoCount: number;
2904
2869
  sharedWithChainId: string;
2905
2870
  status: string;
2906
2871
  };
2907
2872
 
2908
2873
  type PChainBalance = {
2909
2874
  /**
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 consumable by any transaction.
2875
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2911
2876
  */
2912
- unlockedUnstaked: Array<Asset>;
2877
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2913
2878
  /**
2914
- * 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.
2879
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2915
2880
  */
2916
- unlockedStaked: Array<Asset>;
2881
+ unlockedStaked: Array<AggregatedAssetAmount>;
2917
2882
  /**
2918
- * 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.
2883
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2919
2884
  */
2920
- lockedPlatform: Array<Asset>;
2885
+ lockedPlatform: Array<AggregatedAssetAmount>;
2921
2886
  /**
2922
- * 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.
2887
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2923
2888
  */
2924
- lockedStakeable: Array<Asset>;
2889
+ lockedStakeable: Array<AggregatedAssetAmount>;
2925
2890
  /**
2926
- * 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.
2891
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2927
2892
  */
2928
- lockedStaked: Array<Asset>;
2893
+ lockedStaked: Array<AggregatedAssetAmount>;
2929
2894
  /**
2930
- * 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.
2895
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2931
2896
  */
2932
- pendingStaked: Array<Asset>;
2897
+ pendingStaked: Array<AggregatedAssetAmount>;
2933
2898
  /**
2934
- * 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.
2899
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2935
2900
  */
2936
2901
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2937
2902
  /**
2938
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2903
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2939
2904
  */
2940
2905
  atomicMemoryLocked: Array<PChainSharedAsset>;
2941
2906
  };
@@ -2945,34 +2910,6 @@ type ListPChainBalancesResponse = {
2945
2910
  chainInfo: PrimaryNetworkChainInfo;
2946
2911
  };
2947
2912
 
2948
- type XChainAssetBalance = {
2949
- /**
2950
- * Unique ID for an asset.
2951
- */
2952
- assetId: string;
2953
- /**
2954
- * Name of this asset.
2955
- */
2956
- name: string;
2957
- /**
2958
- * Symbol for this asset (max 4 characters).
2959
- */
2960
- symbol: string;
2961
- /**
2962
- * Denomination of this asset to represent fungibility.
2963
- */
2964
- denomination: number;
2965
- /**
2966
- * Type of asset like SECP256K1 or NFT.
2967
- */
2968
- type: PrimaryNetworkAssetType;
2969
- /**
2970
- * Amount of the asset.
2971
- */
2972
- amount: string;
2973
- utxoCount: number;
2974
- };
2975
-
2976
2913
  type XChainSharedAssetBalance = {
2977
2914
  /**
2978
2915
  * Unique ID for an asset.
@@ -2990,9 +2927,6 @@ type XChainSharedAssetBalance = {
2990
2927
  * Denomination of this asset to represent fungibility.
2991
2928
  */
2992
2929
  denomination: number;
2993
- /**
2994
- * Type of asset like SECP256K1 or NFT.
2995
- */
2996
2930
  type: PrimaryNetworkAssetType;
2997
2931
  /**
2998
2932
  * Amount of the asset.
@@ -3006,11 +2940,11 @@ type XChainBalances = {
3006
2940
  /**
3007
2941
  * A list of objects containing X-chain Asset balance information.
3008
2942
  */
3009
- locked: Array<XChainAssetBalance>;
2943
+ locked: Array<AggregatedAssetAmount>;
3010
2944
  /**
3011
2945
  * A list of objects containing X-chain Asset balance information.
3012
2946
  */
3013
- unlocked: Array<XChainAssetBalance>;
2947
+ unlocked: Array<AggregatedAssetAmount>;
3014
2948
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
3015
2949
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
3016
2950
  };
@@ -3188,9 +3122,6 @@ type AssetWithPriceInfo = {
3188
3122
  * Denomination of this asset to represent fungibility.
3189
3123
  */
3190
3124
  denomination: number;
3191
- /**
3192
- * Type of asset like SECP256K1 or NFT.
3193
- */
3194
3125
  type: PrimaryNetworkAssetType;
3195
3126
  /**
3196
3127
  * Amount of the asset.
@@ -3233,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
3233
3164
  historicalRewards: Array<HistoricalReward>;
3234
3165
  };
3235
3166
 
3167
+ type AssetAmount = {
3168
+ /**
3169
+ * Unique ID for an asset.
3170
+ */
3171
+ assetId: string;
3172
+ /**
3173
+ * Name of this asset.
3174
+ */
3175
+ name: string;
3176
+ /**
3177
+ * Symbol for this asset (max 4 characters).
3178
+ */
3179
+ symbol: string;
3180
+ /**
3181
+ * Denomination of this asset to represent fungibility.
3182
+ */
3183
+ denomination: number;
3184
+ type: PrimaryNetworkAssetType;
3185
+ /**
3186
+ * Amount of the asset.
3187
+ */
3188
+ amount: string;
3189
+ };
3190
+
3236
3191
  type PendingReward = {
3237
3192
  /**
3238
3193
  * An array of P-Chain wallet addresses.
@@ -3246,9 +3201,9 @@ type PendingReward = {
3246
3201
  rewardType: RewardType;
3247
3202
  progress: number;
3248
3203
  /**
3249
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3204
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
3250
3205
  */
3251
- estimatedReward: Asset;
3206
+ estimatedReward: AssetAmount;
3252
3207
  };
3253
3208
 
3254
3209
  type ListPendingRewardsResponse = {
@@ -3349,9 +3304,9 @@ type EVMInput = {
3349
3304
  */
3350
3305
  fromAddress: string;
3351
3306
  /**
3352
- * Asset details for the asset being transferred.
3307
+ * AssetAmount details for the asset being transferred.
3353
3308
  */
3354
- asset: Asset;
3309
+ asset: AssetAmount;
3355
3310
  /**
3356
3311
  * Credentials that signed this transaction.
3357
3312
  */
@@ -3363,7 +3318,7 @@ type Utxo = {
3363
3318
  * Addresses that are eligible to sign the consumption of this output.
3364
3319
  */
3365
3320
  addresses: Array<string>;
3366
- asset: Asset;
3321
+ asset: AssetAmount;
3367
3322
  /**
3368
3323
  * Blockchain ID on which this output is consumed on.
3369
3324
  */
@@ -3446,11 +3401,11 @@ type CChainExportTransaction = {
3446
3401
  /**
3447
3402
  * Assets unlocked by inputs of this transaction.
3448
3403
  */
3449
- amountUnlocked: Array<Asset>;
3404
+ amountUnlocked: Array<AssetAmount>;
3450
3405
  /**
3451
3406
  * Assets created by outputs of this transaction.
3452
3407
  */
3453
- amountCreated: Array<Asset>;
3408
+ amountCreated: Array<AssetAmount>;
3454
3409
  /**
3455
3410
  * Source chain for an atomic transaction.
3456
3411
  */
@@ -3481,9 +3436,9 @@ type EVMOutput = {
3481
3436
  */
3482
3437
  toAddress: string;
3483
3438
  /**
3484
- * Asset details for the asset being transferred.
3439
+ * AssetAmount details for the asset being transferred.
3485
3440
  */
3486
- asset: Asset;
3441
+ asset: AssetAmount;
3487
3442
  };
3488
3443
 
3489
3444
  type CChainImportTransaction = {
@@ -3510,11 +3465,11 @@ type CChainImportTransaction = {
3510
3465
  /**
3511
3466
  * Assets unlocked by inputs of this transaction.
3512
3467
  */
3513
- amountUnlocked: Array<Asset>;
3468
+ amountUnlocked: Array<AssetAmount>;
3514
3469
  /**
3515
3470
  * Assets created by outputs of this transaction.
3516
3471
  */
3517
- amountCreated: Array<Asset>;
3472
+ amountCreated: Array<AssetAmount>;
3518
3473
  /**
3519
3474
  * Source chain for an atomic transaction.
3520
3475
  */
@@ -3562,6 +3517,8 @@ declare enum PChainTransactionType {
3562
3517
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3563
3518
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3564
3519
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3520
+ BASE_TX = "BaseTx",
3521
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3565
3522
  UNKNOWN = "UNKNOWN"
3566
3523
  }
3567
3524
 
@@ -3575,7 +3532,7 @@ type PChainUtxo = {
3575
3532
  * Addresses that are eligible to sign the consumption of this output.
3576
3533
  */
3577
3534
  addresses: Array<string>;
3578
- asset: Asset;
3535
+ asset: AssetAmount;
3579
3536
  /**
3580
3537
  * Blockchain ID on which this output is consumed on.
3581
3538
  */
@@ -3639,17 +3596,17 @@ type PChainTransaction = {
3639
3596
  */
3640
3597
  destinationChain?: string;
3641
3598
  /**
3642
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3599
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3643
3600
  */
3644
- value: Array<Asset>;
3601
+ value: Array<AssetAmount>;
3645
3602
  /**
3646
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3603
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3647
3604
  */
3648
- amountBurned: Array<Asset>;
3605
+ amountBurned: Array<AssetAmount>;
3649
3606
  /**
3650
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3607
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3651
3608
  */
3652
- amountStaked: Array<Asset>;
3609
+ amountStaked: Array<AssetAmount>;
3653
3610
  /**
3654
3611
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3655
3612
  */
@@ -3681,6 +3638,14 @@ type PChainTransaction = {
3681
3638
  * Present for RewardValidatorTx
3682
3639
  */
3683
3640
  stakingTxHash?: string;
3641
+ /**
3642
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3643
+ */
3644
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3645
+ /**
3646
+ * Present for AddPermissionlessValidatorTx
3647
+ */
3648
+ blsCredentials?: BlsCredentials;
3684
3649
  };
3685
3650
 
3686
3651
  type ListPChainTransactionsResponse = {
@@ -3692,6 +3657,9 @@ type ListPChainTransactionsResponse = {
3692
3657
  chainInfo: PrimaryNetworkChainInfo;
3693
3658
  };
3694
3659
 
3660
+ /**
3661
+ * Type of transaction.
3662
+ */
3695
3663
  declare enum XChainTransactionType {
3696
3664
  BASE_TX = "BaseTx",
3697
3665
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3714,9 +3682,6 @@ type XChainLinearTransaction = {
3714
3682
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3715
3683
  */
3716
3684
  timestamp: number;
3717
- /**
3718
- * Type of transaction.
3719
- */
3720
3685
  txType: XChainTransactionType;
3721
3686
  /**
3722
3687
  * Hex encoded memo bytes for this transaction.
@@ -3727,11 +3692,11 @@ type XChainLinearTransaction = {
3727
3692
  /**
3728
3693
  * Assets unlocked by inputs of this transaction.
3729
3694
  */
3730
- amountUnlocked: Array<Asset>;
3695
+ amountUnlocked: Array<AssetAmount>;
3731
3696
  /**
3732
3697
  * Assets created by outputs of this transaction.
3733
3698
  */
3734
- amountCreated: Array<Asset>;
3699
+ amountCreated: Array<AssetAmount>;
3735
3700
  /**
3736
3701
  * Source chain for an atomic transaction.
3737
3702
  */
@@ -3741,7 +3706,7 @@ type XChainLinearTransaction = {
3741
3706
  */
3742
3707
  destinationChain?: string;
3743
3708
  /**
3744
- * Asset details of the asset created in CreateAssetTx
3709
+ * AssetAmount details of the asset created in CreateAssetTx
3745
3710
  */
3746
3711
  assetCreated?: XChainAssetDetails;
3747
3712
  /**
@@ -3791,9 +3756,6 @@ type XChainNonLinearTransaction = {
3791
3756
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3792
3757
  */
3793
3758
  timestamp: number;
3794
- /**
3795
- * Type of transaction.
3796
- */
3797
3759
  txType: XChainTransactionType;
3798
3760
  /**
3799
3761
  * Hex encoded memo bytes for this transaction.
@@ -3804,11 +3766,11 @@ type XChainNonLinearTransaction = {
3804
3766
  /**
3805
3767
  * Assets unlocked by inputs of this transaction.
3806
3768
  */
3807
- amountUnlocked: Array<Asset>;
3769
+ amountUnlocked: Array<AssetAmount>;
3808
3770
  /**
3809
3771
  * Assets created by outputs of this transaction.
3810
3772
  */
3811
- amountCreated: Array<Asset>;
3773
+ amountCreated: Array<AssetAmount>;
3812
3774
  /**
3813
3775
  * Source chain for an atomic transaction.
3814
3776
  */
@@ -3818,7 +3780,7 @@ type XChainNonLinearTransaction = {
3818
3780
  */
3819
3781
  destinationChain?: string;
3820
3782
  /**
3821
- * Asset details of the asset created in CreateAssetTx
3783
+ * AssetAmount details of the asset created in CreateAssetTx
3822
3784
  */
3823
3785
  assetCreated?: XChainAssetDetails;
3824
3786
  /**
@@ -3864,8 +3826,9 @@ declare enum PrimaryNetworkTxType {
3864
3826
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3865
3827
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3866
3828
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3867
- UNKNOWN = "UNKNOWN",
3868
3829
  BASE_TX = "BaseTx",
3830
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3831
+ UNKNOWN = "UNKNOWN",
3869
3832
  CREATE_ASSET_TX = "CreateAssetTx",
3870
3833
  OPERATION_TX = "OperationTx"
3871
3834
  }
@@ -4191,11 +4154,471 @@ declare class PrimaryNetworkVerticesService {
4191
4154
  }): CancelablePromise<ListXChainVerticesResponse>;
4192
4155
  }
4193
4156
 
4194
- type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4195
- declare class Glacier {
4196
- readonly default: DefaultService;
4197
- readonly evmBalances: EvmBalancesService;
4198
- readonly evmBlocks: EvmBlocksService;
4157
+ type RpcErrorDto = {
4158
+ code: number;
4159
+ message: string;
4160
+ data?: Record<string, any>;
4161
+ };
4162
+
4163
+ type RpcErrorResponseDto = {
4164
+ jsonrpc: string;
4165
+ id?: (string | number);
4166
+ error: RpcErrorDto;
4167
+ };
4168
+
4169
+ type RpcRequestBodyDto = {
4170
+ method: string;
4171
+ params?: Record<string, any>;
4172
+ id?: (string | number);
4173
+ jsonrpc?: string;
4174
+ };
4175
+
4176
+ type RpcSuccessResponseDto = {
4177
+ jsonrpc: string;
4178
+ id?: (string | number);
4179
+ result: Record<string, any>;
4180
+ };
4181
+
4182
+ declare class RpcService {
4183
+ readonly httpRequest: BaseHttpRequest;
4184
+ constructor(httpRequest: BaseHttpRequest);
4185
+ /**
4186
+ * Calls JSON-RPC method
4187
+ * Calls JSON-RPC method.
4188
+ * @returns any
4189
+ * @throws ApiError
4190
+ */
4191
+ rpc({ chainId, requestBody, }: {
4192
+ /**
4193
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4194
+ */
4195
+ chainId: string;
4196
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4197
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4198
+ }
4199
+
4200
+ type TeleporterDestinationTransaction = {
4201
+ txHash: string;
4202
+ timestamp: number;
4203
+ gasSpent: string;
4204
+ rewardRedeemer: string;
4205
+ delivererAddress: string;
4206
+ };
4207
+
4208
+ type TeleporterReceipt = {
4209
+ receivedMessageNonce: string;
4210
+ relayerRewardAddress: string;
4211
+ };
4212
+
4213
+ type TeleporterRewardDetails = {
4214
+ /**
4215
+ * A wallet or contract address in mixed-case checksum encoding.
4216
+ */
4217
+ address: string;
4218
+ /**
4219
+ * The contract name.
4220
+ */
4221
+ name: string;
4222
+ /**
4223
+ * The contract symbol.
4224
+ */
4225
+ symbol: string;
4226
+ /**
4227
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4228
+ */
4229
+ decimals: number;
4230
+ /**
4231
+ * The logo uri for the address.
4232
+ */
4233
+ logoUri?: string;
4234
+ ercType: TeleporterRewardDetails.ercType;
4235
+ /**
4236
+ * The token price, if available.
4237
+ */
4238
+ price?: Money;
4239
+ value: string;
4240
+ };
4241
+ declare namespace TeleporterRewardDetails {
4242
+ enum ercType {
4243
+ ERC_20 = "ERC-20"
4244
+ }
4245
+ }
4246
+
4247
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4248
+ messageId: string;
4249
+ teleporterContractAddress: string;
4250
+ sourceBlockchainId: string;
4251
+ destinationBlockchainId: string;
4252
+ sourceEvmChainId: string;
4253
+ destinationEvmChainId: string;
4254
+ messageNonce: string;
4255
+ from: string;
4256
+ to: string;
4257
+ data?: string;
4258
+ messageExecuted: boolean;
4259
+ receipts: Array<TeleporterReceipt>;
4260
+ receiptDelivered: boolean;
4261
+ rewardDetails: TeleporterRewardDetails;
4262
+ destinationTransaction: TeleporterDestinationTransaction;
4263
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4264
+ };
4265
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4266
+ enum status {
4267
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4268
+ }
4269
+ }
4270
+
4271
+ type TeleporterSourceTransaction = {
4272
+ txHash: string;
4273
+ timestamp: number;
4274
+ gasSpent: string;
4275
+ };
4276
+
4277
+ type DeliveredTeleporterMessage = {
4278
+ messageId: string;
4279
+ teleporterContractAddress: string;
4280
+ sourceBlockchainId: string;
4281
+ destinationBlockchainId: string;
4282
+ sourceEvmChainId: string;
4283
+ destinationEvmChainId: string;
4284
+ messageNonce: string;
4285
+ from: string;
4286
+ to: string;
4287
+ data?: string;
4288
+ messageExecuted: boolean;
4289
+ receipts: Array<TeleporterReceipt>;
4290
+ receiptDelivered: boolean;
4291
+ rewardDetails: TeleporterRewardDetails;
4292
+ sourceTransaction: TeleporterSourceTransaction;
4293
+ destinationTransaction: TeleporterDestinationTransaction;
4294
+ status: DeliveredTeleporterMessage.status;
4295
+ };
4296
+ declare namespace DeliveredTeleporterMessage {
4297
+ enum status {
4298
+ DELIVERED = "delivered"
4299
+ }
4300
+ }
4301
+
4302
+ type PendingTeleporterMessage = {
4303
+ messageId: string;
4304
+ teleporterContractAddress: string;
4305
+ sourceBlockchainId: string;
4306
+ destinationBlockchainId: string;
4307
+ sourceEvmChainId: string;
4308
+ destinationEvmChainId: string;
4309
+ messageNonce: string;
4310
+ from: string;
4311
+ to: string;
4312
+ data?: string;
4313
+ messageExecuted: boolean;
4314
+ receipts: Array<TeleporterReceipt>;
4315
+ receiptDelivered: boolean;
4316
+ rewardDetails: TeleporterRewardDetails;
4317
+ sourceTransaction: TeleporterSourceTransaction;
4318
+ status: PendingTeleporterMessage.status;
4319
+ };
4320
+ declare namespace PendingTeleporterMessage {
4321
+ enum status {
4322
+ PENDING = "pending"
4323
+ }
4324
+ }
4325
+
4326
+ type ListTeleporterMessagesResponse = {
4327
+ /**
4328
+ * 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.
4329
+ */
4330
+ nextPageToken?: string;
4331
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
4332
+ };
4333
+
4334
+ declare class TeleporterService {
4335
+ readonly httpRequest: BaseHttpRequest;
4336
+ constructor(httpRequest: BaseHttpRequest);
4337
+ /**
4338
+ * Get a teleporter message
4339
+ * Gets a teleporter message by message ID.
4340
+ * @returns any
4341
+ * @throws ApiError
4342
+ */
4343
+ getTeleporterMessage({ messageId, }: {
4344
+ /**
4345
+ * The message ID of the teleporter message.
4346
+ */
4347
+ messageId: string;
4348
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4349
+ /**
4350
+ * List teleporter messages
4351
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4352
+ * @returns ListTeleporterMessagesResponse
4353
+ * @throws ApiError
4354
+ */
4355
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4356
+ /**
4357
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4358
+ */
4359
+ pageToken?: string;
4360
+ /**
4361
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4362
+ */
4363
+ pageSize?: number;
4364
+ /**
4365
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4366
+ */
4367
+ sourceBlockchainId?: string;
4368
+ /**
4369
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4370
+ */
4371
+ destinationBlockchainId?: string;
4372
+ /**
4373
+ * The address of the recipient of the teleporter message.
4374
+ */
4375
+ to?: string;
4376
+ /**
4377
+ * The address of the sender of the teleporter message.
4378
+ */
4379
+ from?: string;
4380
+ /**
4381
+ * mainnet or testnet.
4382
+ */
4383
+ network?: NetworkType;
4384
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
4385
+ }
4386
+
4387
+ type AddressesChangeRequest = {
4388
+ /**
4389
+ * Ethereum address(es) for the address_activity event type
4390
+ */
4391
+ addresses: Array<any[]>;
4392
+ };
4393
+
4394
+ type AddressActivityMetadata = {
4395
+ /**
4396
+ * Ethereum address(es) for the address_activity event type
4397
+ */
4398
+ addresses: Array<string>;
4399
+ /**
4400
+ * Array of hexadecimal strings of the event signatures.
4401
+ */
4402
+ eventSignatures?: Array<string>;
4403
+ };
4404
+
4405
+ declare enum EventType {
4406
+ ADDRESS_ACTIVITY = "address_activity"
4407
+ }
4408
+
4409
+ type CreateWebhookRequest = {
4410
+ url: string;
4411
+ chainId: string;
4412
+ eventType: EventType;
4413
+ metadata: AddressActivityMetadata;
4414
+ name?: string;
4415
+ description?: string;
4416
+ /**
4417
+ * Whether to include traces in the webhook payload.
4418
+ */
4419
+ includeInternalTxs?: boolean;
4420
+ /**
4421
+ * Whether to include logs in the webhook payload.
4422
+ */
4423
+ includeLogs?: boolean;
4424
+ };
4425
+
4426
+ type ListWebhookAddressesResponse = {
4427
+ /**
4428
+ * 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.
4429
+ */
4430
+ nextPageToken?: string;
4431
+ addresses: Array<string>;
4432
+ totalAddresses: number;
4433
+ };
4434
+
4435
+ declare enum WebhookStatusType {
4436
+ ACTIVE = "active",
4437
+ INACTIVE = "inactive"
4438
+ }
4439
+
4440
+ type WebhookResponse = {
4441
+ id: string;
4442
+ eventType: EventType;
4443
+ metadata: AddressActivityMetadata;
4444
+ /**
4445
+ * Whether to include traces in the webhook payload.
4446
+ */
4447
+ includeInternalTxs?: boolean;
4448
+ /**
4449
+ * Whether to include logs in the webhook payload.
4450
+ */
4451
+ includeLogs?: boolean;
4452
+ url: string;
4453
+ chainId: string;
4454
+ status: WebhookStatusType;
4455
+ createdAt: number;
4456
+ name: string;
4457
+ description: string;
4458
+ };
4459
+
4460
+ type ListWebhooksResponse = {
4461
+ /**
4462
+ * 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.
4463
+ */
4464
+ nextPageToken?: string;
4465
+ webhooks: Array<WebhookResponse>;
4466
+ };
4467
+
4468
+ type SharedSecretsResponse = {
4469
+ secret: string;
4470
+ };
4471
+
4472
+ type UpdateWebhookRequest = {
4473
+ name?: string;
4474
+ description?: string;
4475
+ url?: string;
4476
+ status?: WebhookStatusType;
4477
+ includeInternalTxs?: boolean;
4478
+ includeLogs?: boolean;
4479
+ };
4480
+
4481
+ declare enum WebhookStatus {
4482
+ ACTIVE = "active",
4483
+ INACTIVE = "inactive"
4484
+ }
4485
+
4486
+ declare class WebhooksService {
4487
+ readonly httpRequest: BaseHttpRequest;
4488
+ constructor(httpRequest: BaseHttpRequest);
4489
+ /**
4490
+ * Create a webhook
4491
+ * Create a new webhook.
4492
+ * @returns WebhookResponse
4493
+ * @throws ApiError
4494
+ */
4495
+ createWebhook({ requestBody, }: {
4496
+ requestBody: CreateWebhookRequest;
4497
+ }): CancelablePromise<WebhookResponse>;
4498
+ /**
4499
+ * List webhooks
4500
+ * Lists webhooks for the user.
4501
+ * @returns ListWebhooksResponse
4502
+ * @throws ApiError
4503
+ */
4504
+ listWebhooks({ pageToken, pageSize, status, }: {
4505
+ /**
4506
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4507
+ */
4508
+ pageToken?: string;
4509
+ /**
4510
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4511
+ */
4512
+ pageSize?: number;
4513
+ /**
4514
+ * 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.
4515
+ */
4516
+ status?: WebhookStatus;
4517
+ }): CancelablePromise<ListWebhooksResponse>;
4518
+ /**
4519
+ * Get a webhook by ID
4520
+ * Retrieves a webhook by ID.
4521
+ * @returns WebhookResponse
4522
+ * @throws ApiError
4523
+ */
4524
+ getWebhook({ id, }: {
4525
+ /**
4526
+ * The webhook identifier.
4527
+ */
4528
+ id: string;
4529
+ }): CancelablePromise<WebhookResponse>;
4530
+ /**
4531
+ * Deactivate a webhook
4532
+ * Deactivates a webhook by ID.
4533
+ * @returns WebhookResponse
4534
+ * @throws ApiError
4535
+ */
4536
+ deactivateWebhook({ id, }: {
4537
+ /**
4538
+ * The webhook identifier.
4539
+ */
4540
+ id: string;
4541
+ }): CancelablePromise<WebhookResponse>;
4542
+ /**
4543
+ * Update a webhook
4544
+ * Updates an existing webhook.
4545
+ * @returns WebhookResponse
4546
+ * @throws ApiError
4547
+ */
4548
+ updateWebhook({ id, requestBody, }: {
4549
+ /**
4550
+ * The webhook identifier.
4551
+ */
4552
+ id: string;
4553
+ requestBody: UpdateWebhookRequest;
4554
+ }): CancelablePromise<WebhookResponse>;
4555
+ /**
4556
+ * Generate a shared secret
4557
+ * Generates a new shared secret.
4558
+ * @returns SharedSecretsResponse
4559
+ * @throws ApiError
4560
+ */
4561
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4562
+ /**
4563
+ * Get a shared secret
4564
+ * Get a previously generated shared secret.
4565
+ * @returns SharedSecretsResponse
4566
+ * @throws ApiError
4567
+ */
4568
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4569
+ /**
4570
+ * Add addresses to webhook
4571
+ * Add addresses to webhook.
4572
+ * @returns WebhookResponse
4573
+ * @throws ApiError
4574
+ */
4575
+ addAddressesToWebhook({ id, requestBody, }: {
4576
+ /**
4577
+ * The webhook identifier.
4578
+ */
4579
+ id: string;
4580
+ requestBody: AddressesChangeRequest;
4581
+ }): CancelablePromise<WebhookResponse>;
4582
+ /**
4583
+ * Remove addresses from webhook
4584
+ * Remove addresses from webhook.
4585
+ * @returns WebhookResponse
4586
+ * @throws ApiError
4587
+ */
4588
+ removeAddressesFromWebhook({ id, requestBody, }: {
4589
+ /**
4590
+ * The webhook identifier.
4591
+ */
4592
+ id: string;
4593
+ requestBody: AddressesChangeRequest;
4594
+ }): CancelablePromise<WebhookResponse>;
4595
+ /**
4596
+ * List adresses by webhook
4597
+ * List adresses by webhook.
4598
+ * @returns ListWebhookAddressesResponse
4599
+ * @throws ApiError
4600
+ */
4601
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4602
+ /**
4603
+ * The webhook identifier.
4604
+ */
4605
+ id: string;
4606
+ /**
4607
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4608
+ */
4609
+ pageToken?: string;
4610
+ /**
4611
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4612
+ */
4613
+ pageSize?: number;
4614
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4615
+ }
4616
+
4617
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4618
+ declare class Glacier {
4619
+ readonly default: DefaultService;
4620
+ readonly evmBalances: EvmBalancesService;
4621
+ readonly evmBlocks: EvmBlocksService;
4199
4622
  readonly evmChains: EvmChainsService;
4200
4623
  readonly evmContracts: EvmContractsService;
4201
4624
  readonly evmTransactions: EvmTransactionsService;
@@ -4209,6 +4632,9 @@ declare class Glacier {
4209
4632
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4210
4633
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4211
4634
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4635
+ readonly rpc: RpcService;
4636
+ readonly teleporter: TeleporterService;
4637
+ readonly webhooks: WebhooksService;
4212
4638
  readonly request: BaseHttpRequest;
4213
4639
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4214
4640
  }
@@ -4230,4 +4656,11 @@ declare class ApiError extends Error {
4230
4656
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4231
4657
  }
4232
4658
 
4233
- 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, 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, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, 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 };
4659
+ type NextPageToken = {
4660
+ /**
4661
+ * 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.
4662
+ */
4663
+ nextPageToken?: string;
4664
+ };
4665
+
4666
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };