@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.d1d734a.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 (191) hide show
  1. package/LICENSE.md +9 -0
  2. package/dist/index.d.ts +939 -440
  3. package/dist/index.js +1 -2040
  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 +6 -3
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  18. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  19. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  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 +3 -4
  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/HistoricalReward.d.ts +2 -5
  69. package/esm/generated/models/InternalTransactionOpCall.js +1 -12
  70. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  71. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  72. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  73. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  74. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  75. package/esm/generated/models/Method.d.ts +0 -3
  76. package/esm/generated/models/Money.d.ts +0 -3
  77. package/esm/generated/models/Network.js +1 -7
  78. package/esm/generated/models/NetworkType.js +1 -7
  79. package/esm/generated/models/NextPageToken.d.ts +8 -0
  80. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  81. package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
  82. package/esm/generated/models/OperationStatus.js +1 -9
  83. package/esm/generated/models/OperationStatusCode.js +1 -8
  84. package/esm/generated/models/OperationType.d.ts +4 -2
  85. package/esm/generated/models/OperationType.js +1 -7
  86. package/esm/generated/models/PChainBalance.d.ts +15 -15
  87. package/esm/generated/models/PChainId.js +1 -7
  88. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  89. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  90. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  91. package/esm/generated/models/PChainTransactionType.js +1 -19
  92. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  93. package/esm/generated/models/PendingDelegatorDetails.js +1 -8
  94. package/esm/generated/models/PendingReward.d.ts +3 -3
  95. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  96. package/esm/generated/models/PendingTeleporterMessage.js +1 -0
  97. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  98. package/esm/generated/models/PendingValidatorDetails.js +1 -8
  99. package/esm/generated/models/PrimaryNetwork.js +1 -7
  100. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  101. package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
  102. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  103. package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
  104. package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
  105. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  106. package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
  107. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  108. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  109. package/esm/generated/models/PrimaryNetworkTxType.js +1 -22
  110. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  111. package/esm/generated/models/RemovedValidatorDetails.js +1 -0
  112. package/esm/generated/models/ResourceLinkType.js +1 -23
  113. package/esm/generated/models/RewardType.js +1 -8
  114. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  115. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  116. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  117. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  118. package/esm/generated/models/SortByOption.d.ts +9 -0
  119. package/esm/generated/models/SortByOption.js +1 -0
  120. package/esm/generated/models/SortOrder.js +1 -7
  121. package/esm/generated/models/Subnet.d.ts +17 -0
  122. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  123. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  124. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  125. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  126. package/esm/generated/models/TeleporterRewardDetails.js +1 -0
  127. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  128. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  129. package/esm/generated/models/TransactionMethodType.js +1 -8
  130. package/esm/generated/models/TransactionStatus.js +1 -7
  131. package/esm/generated/models/UnknownContract.js +1 -8
  132. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  133. package/esm/generated/models/Utxo.d.ts +2 -2
  134. package/esm/generated/models/UtxoType.js +1 -7
  135. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  136. package/esm/generated/models/ValidationStatusType.js +1 -8
  137. package/esm/generated/models/VmName.js +1 -8
  138. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  139. package/esm/generated/models/WebhookStatus.js +1 -7
  140. package/esm/generated/models/WebhookStatusType.js +1 -7
  141. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  142. package/esm/generated/models/XChainBalances.d.ts +3 -3
  143. package/esm/generated/models/XChainId.js +1 -8
  144. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  145. package/esm/generated/models/XChainLinearTransaction.js +1 -9
  146. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  147. package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
  148. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  149. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  150. package/esm/generated/models/XChainTransactionType.js +1 -11
  151. package/esm/generated/services/DefaultService.d.ts +0 -53
  152. package/esm/generated/services/DefaultService.js +1 -55
  153. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  154. package/esm/generated/services/EvmBalancesService.js +1 -116
  155. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  156. package/esm/generated/services/EvmBlocksService.js +1 -37
  157. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  158. package/esm/generated/services/EvmChainsService.js +1 -29
  159. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  160. package/esm/generated/services/EvmContractsService.js +1 -36
  161. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  162. package/esm/generated/services/EvmTransactionsService.js +1 -251
  163. package/esm/generated/services/HealthCheckService.js +1 -16
  164. package/esm/generated/services/NfTsService.d.ts +8 -8
  165. package/esm/generated/services/NfTsService.js +1 -56
  166. package/esm/generated/services/OperationsService.js +1 -28
  167. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
  168. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  169. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
  170. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  171. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -53
  172. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
  173. package/esm/generated/services/PrimaryNetworkService.js +1 -171
  174. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  175. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
  176. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  177. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
  178. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  179. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
  180. package/esm/generated/services/RpcService.d.ts +25 -0
  181. package/esm/generated/services/RpcService.js +1 -0
  182. package/esm/generated/services/TeleporterService.d.ts +62 -0
  183. package/esm/generated/services/TeleporterService.js +1 -0
  184. package/esm/generated/services/WebhooksService.d.ts +143 -0
  185. package/esm/generated/services/WebhooksService.js +1 -0
  186. package/esm/index.d.ts +32 -3
  187. package/esm/index.js +1 -77
  188. package/package.json +3 -3
  189. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  190. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  191. 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,60 +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
- 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
-
117
57
  declare class DefaultService {
118
58
  readonly httpRequest: BaseHttpRequest;
119
59
  constructor(httpRequest: BaseHttpRequest);
@@ -122,56 +62,11 @@ declare class DefaultService {
122
62
  * @throws ApiError
123
63
  */
124
64
  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>;
173
65
  }
174
66
 
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
175
70
  declare enum CurrencyCode {
176
71
  USD = "usd",
177
72
  EUR = "eur",
@@ -190,9 +85,6 @@ declare enum CurrencyCode {
190
85
  }
191
86
 
192
87
  type Money = {
193
- /**
194
- * ISO 4217 currency code.
195
- */
196
88
  currencyCode: CurrencyCode;
197
89
  /**
198
90
  * Monetary value in base 10 decimals.
@@ -242,6 +134,9 @@ type GetNativeBalanceResponse = {
242
134
  nativeTokenBalance: NativeTokenBalance;
243
135
  };
244
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
245
140
  declare enum NftTokenMetadataStatus {
246
141
  UNKNOWN = "UNKNOWN",
247
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -257,9 +152,6 @@ declare enum NftTokenMetadataStatus {
257
152
  }
258
153
 
259
154
  type Erc1155TokenMetadata = {
260
- /**
261
- * The metadata indexing status of the nft.
262
- */
263
155
  indexStatus: NftTokenMetadataStatus;
264
156
  metadataLastUpdatedTimestamp?: number;
265
157
  name?: string;
@@ -298,9 +190,6 @@ declare namespace Erc1155TokenBalance {
298
190
  }
299
191
 
300
192
  type Erc721TokenMetadata = {
301
- /**
302
- * The metadata indexing status of the nft.
303
- */
304
193
  indexStatus: NftTokenMetadataStatus;
305
194
  metadataLastUpdatedTimestamp?: number;
306
195
  name?: string;
@@ -447,7 +336,7 @@ declare class EvmBalancesService {
447
336
  */
448
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
449
338
  /**
450
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
451
340
  */
452
341
  chainId: string;
453
342
  /**
@@ -473,9 +362,9 @@ declare class EvmBalancesService {
473
362
  * @returns ListErc20BalancesResponse
474
363
  * @throws ApiError
475
364
  */
476
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
477
366
  /**
478
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
479
368
  */
480
369
  chainId: string;
481
370
  /**
@@ -486,14 +375,18 @@ declare class EvmBalancesService {
486
375
  * The block number, if not defined the block number will be the latest block.
487
376
  */
488
377
  blockNumber?: string;
378
+ /**
379
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
380
+ */
381
+ pageToken?: string;
489
382
  /**
490
383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
491
384
  */
492
385
  pageSize?: number;
493
386
  /**
494
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
387
+ * whether to filter out spam tokens from the response. Default is true.
495
388
  */
496
- pageToken?: string;
389
+ filterSpamTokens?: boolean;
497
390
  /**
498
391
  * A comma separated list of contract addresses to filter by.
499
392
  */
@@ -511,23 +404,23 @@ declare class EvmBalancesService {
511
404
  * @returns ListErc721BalancesResponse
512
405
  * @throws ApiError
513
406
  */
514
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
407
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
515
408
  /**
516
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
409
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
517
410
  */
518
411
  chainId: string;
519
412
  /**
520
413
  * A wallet address.
521
414
  */
522
415
  address: string;
523
- /**
524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
525
- */
526
- pageSize?: number;
527
416
  /**
528
417
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
529
418
  */
530
419
  pageToken?: string;
420
+ /**
421
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
422
+ */
423
+ pageSize?: number;
531
424
  /**
532
425
  * A contract addresses to filter by.
533
426
  */
@@ -543,9 +436,9 @@ declare class EvmBalancesService {
543
436
  * @returns ListErc1155BalancesResponse
544
437
  * @throws ApiError
545
438
  */
546
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
439
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
547
440
  /**
548
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
441
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
549
442
  */
550
443
  chainId: string;
551
444
  /**
@@ -556,14 +449,14 @@ declare class EvmBalancesService {
556
449
  * The block number, if not defined the block number will be the latest block.
557
450
  */
558
451
  blockNumber?: string;
559
- /**
560
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
561
- */
562
- pageSize?: number;
563
452
  /**
564
453
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
565
454
  */
566
455
  pageToken?: string;
456
+ /**
457
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
458
+ */
459
+ pageSize?: number;
567
460
  /**
568
461
  * A contract addresses to filter by.
569
462
  */
@@ -577,23 +470,23 @@ declare class EvmBalancesService {
577
470
  * @returns ListCollectibleBalancesResponse
578
471
  * @throws ApiError
579
472
  */
580
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
473
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
581
474
  /**
582
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
475
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
583
476
  */
584
477
  chainId: string;
585
478
  /**
586
479
  * A wallet address.
587
480
  */
588
481
  address: string;
589
- /**
590
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
591
- */
592
- pageSize?: number;
593
482
  /**
594
483
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
595
484
  */
596
485
  pageToken?: string;
486
+ /**
487
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
488
+ */
489
+ pageSize?: number;
597
490
  /**
598
491
  * A contract addresses to filter by.
599
492
  */
@@ -706,19 +599,19 @@ declare class EvmBlocksService {
706
599
  * @returns ListEvmBlocksResponse
707
600
  * @throws ApiError
708
601
  */
709
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
602
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
710
603
  /**
711
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
604
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
712
605
  */
713
606
  chainId: string;
714
- /**
715
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
716
- */
717
- pageSize?: number;
718
607
  /**
719
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
720
609
  */
721
610
  pageToken?: string;
611
+ /**
612
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
613
+ */
614
+ pageSize?: number;
722
615
  }): CancelablePromise<ListEvmBlocksResponse>;
723
616
  /**
724
617
  * Get block
@@ -728,7 +621,7 @@ declare class EvmBlocksService {
728
621
  */
729
622
  getBlock({ chainId, blockId, }: {
730
623
  /**
731
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
624
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
732
625
  */
733
626
  chainId: string;
734
627
  /**
@@ -738,6 +631,9 @@ declare class EvmBlocksService {
738
631
  }): CancelablePromise<GetEvmBlockResponse>;
739
632
  }
740
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
+ */
741
637
  declare enum ChainStatus {
742
638
  OK = "OK",
743
639
  UNAVAILABLE = "UNAVAILABLE"
@@ -775,9 +671,6 @@ declare enum VmName {
775
671
 
776
672
  type GetChainResponse = {
777
673
  chainId: string;
778
- /**
779
- * 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.
780
- */
781
674
  status: ChainStatus;
782
675
  chainName: string;
783
676
  description: string;
@@ -793,13 +686,16 @@ type GetChainResponse = {
793
686
  networkToken: NetworkToken;
794
687
  chainLogoUri?: string;
795
688
  private?: boolean;
689
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
796
690
  };
797
691
 
692
+ declare enum GlacierApiFeature {
693
+ NFT_INDEXING = "nftIndexing",
694
+ WEBHOOKS = "webhooks"
695
+ }
696
+
798
697
  type ChainInfo = {
799
698
  chainId: string;
800
- /**
801
- * 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.
802
- */
803
699
  status: ChainStatus;
804
700
  chainName: string;
805
701
  description: string;
@@ -815,6 +711,7 @@ type ChainInfo = {
815
711
  networkToken: NetworkToken;
816
712
  chainLogoUri?: string;
817
713
  private?: boolean;
714
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
818
715
  };
819
716
 
820
717
  type ListChainsResponse = {
@@ -835,11 +732,15 @@ declare class EvmChainsService {
835
732
  * @returns ListChainsResponse
836
733
  * @throws ApiError
837
734
  */
838
- supportedChains({ network, }: {
735
+ supportedChains({ network, feature, }: {
839
736
  /**
840
737
  * mainnet or testnet.
841
738
  */
842
739
  network?: NetworkType;
740
+ /**
741
+ * Filter by feature.
742
+ */
743
+ feature?: GlacierApiFeature;
843
744
  }): CancelablePromise<ListChainsResponse>;
844
745
  /**
845
746
  * Get chain information
@@ -849,7 +750,7 @@ declare class EvmChainsService {
849
750
  */
850
751
  getChainInfo({ chainId, }: {
851
752
  /**
852
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
753
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
853
754
  */
854
755
  chainId: string;
855
756
  }): CancelablePromise<GetChainResponse>;
@@ -1144,7 +1045,7 @@ declare class EvmContractsService {
1144
1045
  */
1145
1046
  getContractMetadata({ chainId, address, }: {
1146
1047
  /**
1147
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1048
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1148
1049
  */
1149
1050
  chainId: string;
1150
1051
  /**
@@ -1160,7 +1061,7 @@ declare class EvmContractsService {
1160
1061
  */
1161
1062
  updateContractInfo({ chainId, address, requestBody, }: {
1162
1063
  /**
1163
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
1065
  */
1165
1066
  chainId: string;
1166
1067
  /**
@@ -1294,6 +1195,9 @@ type Erc721TransferDetails = {
1294
1195
  erc721Token: Erc721Token;
1295
1196
  };
1296
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
+ */
1297
1201
  declare enum TransactionMethodType {
1298
1202
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
1299
1203
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -1301,9 +1205,6 @@ declare enum TransactionMethodType {
1301
1205
  }
1302
1206
 
1303
1207
  type Method = {
1304
- /**
1305
- * 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.
1306
- */
1307
1208
  callType: TransactionMethodType;
1308
1209
  /**
1309
1210
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1664,7 +1565,7 @@ type ListTransfersResponse = {
1664
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.
1665
1566
  */
1666
1567
  nextPageToken?: string;
1667
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1568
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1668
1569
  };
1669
1570
 
1670
1571
  declare enum SortOrder {
@@ -1688,7 +1589,7 @@ declare class EvmTransactionsService {
1688
1589
  */
1689
1590
  getDeploymentTransaction({ chainId, address, currency, }: {
1690
1591
  /**
1691
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1592
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1692
1593
  */
1693
1594
  chainId: string;
1694
1595
  /**
@@ -1706,23 +1607,23 @@ declare class EvmTransactionsService {
1706
1607
  * @returns ListContractsResponse
1707
1608
  * @throws ApiError
1708
1609
  */
1709
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1610
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1710
1611
  /**
1711
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1712
1613
  */
1713
1614
  chainId: string;
1714
1615
  /**
1715
1616
  * A wallet address.
1716
1617
  */
1717
1618
  address: string;
1718
- /**
1719
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1720
- */
1721
- pageSize?: number;
1722
1619
  /**
1723
1620
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1724
1621
  */
1725
1622
  pageToken?: string;
1623
+ /**
1624
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1625
+ */
1626
+ pageSize?: number;
1726
1627
  }): CancelablePromise<ListContractsResponse>;
1727
1628
  /**
1728
1629
  * List ERC transfers
@@ -1730,9 +1631,9 @@ declare class EvmTransactionsService {
1730
1631
  * @returns ListTransfersResponse
1731
1632
  * @throws ApiError
1732
1633
  */
1733
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1734
1635
  /**
1735
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1636
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1736
1637
  */
1737
1638
  chainId: string;
1738
1639
  /**
@@ -1747,14 +1648,14 @@ declare class EvmTransactionsService {
1747
1648
  * 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
1649
  */
1749
1650
  endBlock?: number;
1750
- /**
1751
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1752
- */
1753
- pageSize?: number;
1754
1651
  /**
1755
1652
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1756
1653
  */
1757
1654
  pageToken?: string;
1655
+ /**
1656
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
+ */
1658
+ pageSize?: number;
1758
1659
  }): CancelablePromise<ListTransfersResponse>;
1759
1660
  /**
1760
1661
  * List transactions
@@ -1764,23 +1665,23 @@ declare class EvmTransactionsService {
1764
1665
  * @returns ListTransactionDetailsResponse
1765
1666
  * @throws ApiError
1766
1667
  */
1767
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1668
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1768
1669
  /**
1769
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1670
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
1671
  */
1771
1672
  chainId: string;
1772
1673
  /**
1773
1674
  * A wallet address.
1774
1675
  */
1775
1676
  address: string;
1776
- /**
1777
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1778
- */
1779
- pageSize?: number;
1780
1677
  /**
1781
1678
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1782
1679
  */
1783
1680
  pageToken?: string;
1681
+ /**
1682
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1683
+ */
1684
+ pageSize?: number;
1784
1685
  /**
1785
1686
  * 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
1687
  */
@@ -1800,9 +1701,9 @@ declare class EvmTransactionsService {
1800
1701
  * @returns ListNativeTransactionsResponse
1801
1702
  * @throws ApiError
1802
1703
  */
1803
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1704
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1804
1705
  /**
1805
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1706
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1806
1707
  */
1807
1708
  chainId: string;
1808
1709
  /**
@@ -1817,14 +1718,14 @@ declare class EvmTransactionsService {
1817
1718
  * 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
1719
  */
1819
1720
  endBlock?: number;
1820
- /**
1821
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1822
- */
1823
- pageSize?: number;
1824
1721
  /**
1825
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1826
1723
  */
1827
1724
  pageToken?: string;
1725
+ /**
1726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
+ */
1728
+ pageSize?: number;
1828
1729
  }): CancelablePromise<ListNativeTransactionsResponse>;
1829
1730
  /**
1830
1731
  * List ERC-20 transfers
@@ -1832,9 +1733,9 @@ declare class EvmTransactionsService {
1832
1733
  * @returns ListErc20TransactionsResponse
1833
1734
  * @throws ApiError
1834
1735
  */
1835
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1836
1737
  /**
1837
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1738
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1838
1739
  */
1839
1740
  chainId: string;
1840
1741
  /**
@@ -1849,14 +1750,14 @@ declare class EvmTransactionsService {
1849
1750
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1850
1751
  */
1851
1752
  endBlock?: number;
1852
- /**
1853
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1854
- */
1855
- pageSize?: number;
1856
1753
  /**
1857
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1858
1755
  */
1859
1756
  pageToken?: string;
1757
+ /**
1758
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ */
1760
+ pageSize?: number;
1860
1761
  }): CancelablePromise<ListErc20TransactionsResponse>;
1861
1762
  /**
1862
1763
  * List ERC-721 transfers
@@ -1864,9 +1765,9 @@ declare class EvmTransactionsService {
1864
1765
  * @returns ListErc721TransactionsResponse
1865
1766
  * @throws ApiError
1866
1767
  */
1867
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1768
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1868
1769
  /**
1869
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1770
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1870
1771
  */
1871
1772
  chainId: string;
1872
1773
  /**
@@ -1881,14 +1782,14 @@ declare class EvmTransactionsService {
1881
1782
  * 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
1783
  */
1883
1784
  endBlock?: number;
1884
- /**
1885
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1886
- */
1887
- pageSize?: number;
1888
1785
  /**
1889
1786
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1890
1787
  */
1891
1788
  pageToken?: string;
1789
+ /**
1790
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1791
+ */
1792
+ pageSize?: number;
1892
1793
  }): CancelablePromise<ListErc721TransactionsResponse>;
1893
1794
  /**
1894
1795
  * List ERC-1155 transfers
@@ -1896,9 +1797,9 @@ declare class EvmTransactionsService {
1896
1797
  * @returns ListErc1155TransactionsResponse
1897
1798
  * @throws ApiError
1898
1799
  */
1899
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1800
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1900
1801
  /**
1901
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1802
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1902
1803
  */
1903
1804
  chainId: string;
1904
1805
  /**
@@ -1913,14 +1814,14 @@ declare class EvmTransactionsService {
1913
1814
  * 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
1815
  */
1915
1816
  endBlock?: number;
1916
- /**
1917
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1918
- */
1919
- pageSize?: number;
1920
1817
  /**
1921
1818
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1922
1819
  */
1923
1820
  pageToken?: string;
1821
+ /**
1822
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
+ */
1824
+ pageSize?: number;
1924
1825
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1925
1826
  /**
1926
1827
  * List internal transactions
@@ -1930,9 +1831,9 @@ declare class EvmTransactionsService {
1930
1831
  * @returns ListInternalTransactionsResponse
1931
1832
  * @throws ApiError
1932
1833
  */
1933
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1834
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1934
1835
  /**
1935
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1836
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1936
1837
  */
1937
1838
  chainId: string;
1938
1839
  /**
@@ -1947,14 +1848,14 @@ declare class EvmTransactionsService {
1947
1848
  * 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
1849
  */
1949
1850
  endBlock?: number;
1950
- /**
1951
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1952
- */
1953
- pageSize?: number;
1954
1851
  /**
1955
1852
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1956
1853
  */
1957
1854
  pageToken?: string;
1855
+ /**
1856
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1857
+ */
1858
+ pageSize?: number;
1958
1859
  }): CancelablePromise<ListInternalTransactionsResponse>;
1959
1860
  /**
1960
1861
  * Get transaction
@@ -1964,7 +1865,7 @@ declare class EvmTransactionsService {
1964
1865
  */
1965
1866
  getTransaction({ chainId, txHash, }: {
1966
1867
  /**
1967
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1868
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1968
1869
  */
1969
1870
  chainId: string;
1970
1871
  /**
@@ -1980,7 +1881,7 @@ declare class EvmTransactionsService {
1980
1881
  */
1981
1882
  getTransactionsForBlock({ chainId, blockId, }: {
1982
1883
  /**
1983
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1884
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1984
1885
  */
1985
1886
  chainId: string;
1986
1887
  /**
@@ -1994,19 +1895,19 @@ declare class EvmTransactionsService {
1994
1895
  * @returns ListNativeTransactionsResponse
1995
1896
  * @throws ApiError
1996
1897
  */
1997
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1898
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1998
1899
  /**
1999
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1900
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2000
1901
  */
2001
1902
  chainId: string;
2002
- /**
2003
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2004
- */
2005
- pageSize?: number;
2006
1903
  /**
2007
1904
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2008
1905
  */
2009
1906
  pageToken?: string;
1907
+ /**
1908
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1909
+ */
1910
+ pageSize?: number;
2010
1911
  /**
2011
1912
  * A status filter for listed transactions.
2012
1913
  */
@@ -2035,7 +1936,7 @@ type ListNftTokens = {
2035
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.
2036
1937
  */
2037
1938
  nextPageToken?: string;
2038
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
1939
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2039
1940
  };
2040
1941
 
2041
1942
  declare class NfTsService {
@@ -2049,7 +1950,7 @@ declare class NfTsService {
2049
1950
  */
2050
1951
  reindexNft({ chainId, address, tokenId, }: {
2051
1952
  /**
2052
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1953
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2053
1954
  */
2054
1955
  chainId: string;
2055
1956
  /**
@@ -2067,23 +1968,23 @@ declare class NfTsService {
2067
1968
  * @returns ListNftTokens
2068
1969
  * @throws ApiError
2069
1970
  */
2070
- listTokens({ chainId, address, pageSize, pageToken, }: {
1971
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2071
1972
  /**
2072
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1973
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
1974
  */
2074
1975
  chainId: string;
2075
1976
  /**
2076
1977
  * Contract address on the relevant chain.
2077
1978
  */
2078
1979
  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
1980
  /**
2084
1981
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
1982
  */
2086
1983
  pageToken?: string;
1984
+ /**
1985
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1986
+ */
1987
+ pageSize?: number;
2087
1988
  }): CancelablePromise<ListNftTokens>;
2088
1989
  /**
2089
1990
  * Get token details
@@ -2093,7 +1994,7 @@ declare class NfTsService {
2093
1994
  */
2094
1995
  getTokenDetails({ chainId, address, tokenId, }: {
2095
1996
  /**
2096
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1997
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2097
1998
  */
2098
1999
  chainId: string;
2099
2000
  /**
@@ -2112,8 +2013,12 @@ type EvmNetworkOptions = {
2112
2013
  includeChains: Array<string>;
2113
2014
  };
2114
2015
 
2016
+ declare enum EVMOperationType {
2017
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2018
+ }
2019
+
2115
2020
  type CreateEvmTransactionExportRequest = {
2116
- type: CreateEvmTransactionExportRequest.type;
2021
+ type: EVMOperationType;
2117
2022
  firstDate: string;
2118
2023
  lastDate: string;
2119
2024
  /**
@@ -2126,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
2126
2031
  endDate: string;
2127
2032
  options: EvmNetworkOptions;
2128
2033
  };
2129
- declare namespace CreateEvmTransactionExportRequest {
2130
- enum type {
2131
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2132
- }
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"
2133
2039
  }
2134
2040
 
2135
2041
  type PrimaryNetworkOptions = {
2136
- addresses: Array<string>;
2042
+ addresses?: Array<string>;
2137
2043
  cChainEvmAddresses?: Array<string>;
2138
2044
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2139
2045
  };
2140
2046
 
2141
2047
  type CreatePrimaryNetworkTransactionExportRequest = {
2142
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2048
+ type: PrimaryNetworkOperationType;
2143
2049
  firstDate: string;
2144
2050
  lastDate: string;
2145
2051
  /**
@@ -2152,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
2152
2058
  endDate: string;
2153
2059
  options: PrimaryNetworkOptions;
2154
2060
  };
2155
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
2156
- enum type {
2157
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2158
- }
2159
- }
2160
2061
 
2161
2062
  declare enum OperationStatus {
2162
2063
  RUNNING = "RUNNING",
@@ -2166,8 +2067,10 @@ declare enum OperationStatus {
2166
2067
  }
2167
2068
 
2168
2069
  declare enum OperationType {
2169
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2170
- 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"
2171
2074
  }
2172
2075
 
2173
2076
  declare enum OperationStatusCode {
@@ -2359,13 +2262,44 @@ type BlockchainInfo = {
2359
2262
  blockchainId: string;
2360
2263
  };
2361
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
+
2362
2280
  type Subnet = {
2363
2281
  createBlockTimestamp: number;
2364
2282
  createBlockIndex: string;
2365
2283
  subnetId: string;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
2366
2288
  ownerAddresses: Array<string>;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
2367
2293
  threshold: number;
2294
+ /**
2295
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2296
+ * @deprecated
2297
+ */
2368
2298
  locktime: number;
2299
+ /**
2300
+ * Latest subnet owner details for this Subnet.
2301
+ */
2302
+ subnetOwnershipInfo: SubnetOwnershipInfo;
2369
2303
  blockchains: Array<BlockchainInfo>;
2370
2304
  };
2371
2305
 
@@ -2377,6 +2311,11 @@ type ListSubnetsResponse = {
2377
2311
  subnets: Array<Subnet>;
2378
2312
  };
2379
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2380
2319
  type Rewards = {
2381
2320
  validationRewardAmount: string;
2382
2321
  delegationRewardAmount: string;
@@ -2411,6 +2350,10 @@ type ActiveValidatorDetails = {
2411
2350
  delegationFee?: string;
2412
2351
  startTimestamp: number;
2413
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2414
2357
  stakePercentage: number;
2415
2358
  delegatorCount: number;
2416
2359
  amountDelegated?: string;
@@ -2435,6 +2378,10 @@ type CompletedValidatorDetails = {
2435
2378
  delegationFee?: string;
2436
2379
  startTimestamp: number;
2437
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2438
2385
  delegatorCount: number;
2439
2386
  rewards: Rewards;
2440
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2453,6 +2400,10 @@ type PendingValidatorDetails = {
2453
2400
  delegationFee?: string;
2454
2401
  startTimestamp: number;
2455
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2456
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2457
2408
  };
2458
2409
  declare namespace PendingValidatorDetails {
@@ -2461,6 +2412,28 @@ declare namespace PendingValidatorDetails {
2461
2412
  }
2462
2413
  }
2463
2414
 
2415
+ type RemovedValidatorDetails = {
2416
+ txHash: string;
2417
+ nodeId: string;
2418
+ subnetId: string;
2419
+ amountStaked: string;
2420
+ delegationFee?: string;
2421
+ startTimestamp: number;
2422
+ endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2427
+ removeTxHash: string;
2428
+ removeTimestamp: number;
2429
+ validationStatus: RemovedValidatorDetails.validationStatus;
2430
+ };
2431
+ declare namespace RemovedValidatorDetails {
2432
+ enum validationStatus {
2433
+ REMOVED = "removed"
2434
+ }
2435
+ }
2436
+
2464
2437
  type ListValidatorDetailsResponse = {
2465
2438
  /**
2466
2439
  * 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.
@@ -2469,7 +2442,7 @@ type ListValidatorDetailsResponse = {
2469
2442
  /**
2470
2443
  * The list of validator Details.
2471
2444
  */
2472
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2445
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2473
2446
  };
2474
2447
 
2475
2448
  declare enum Network {
@@ -2477,10 +2450,35 @@ declare enum Network {
2477
2450
  FUJI = "fuji"
2478
2451
  }
2479
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
+
2480
2461
  declare enum ValidationStatusType {
2481
2462
  COMPLETED = "completed",
2482
2463
  ACTIVE = "active",
2483
- PENDING = "pending"
2464
+ PENDING = "pending",
2465
+ REMOVED = "removed"
2466
+ }
2467
+
2468
+ /**
2469
+ * Cap represents if an asset is a variable or fixed cap asset.
2470
+ */
2471
+ declare enum PrimaryNetworkAssetCap {
2472
+ FIXED = "fixed",
2473
+ VARIABLE = "variable"
2474
+ }
2475
+
2476
+ /**
2477
+ * Type of asset like SECP256K1 or NFT.
2478
+ */
2479
+ declare enum PrimaryNetworkAssetType {
2480
+ SECP256K1 = "secp256k1",
2481
+ NFT = "nft"
2484
2482
  }
2485
2483
 
2486
2484
  type XChainAssetDetails = {
@@ -2500,18 +2498,12 @@ type XChainAssetDetails = {
2500
2498
  * Denomination of this asset to represent fungibility.
2501
2499
  */
2502
2500
  denomination: number;
2503
- /**
2504
- * Type of asset like SECP256K1 or NFT.
2505
- */
2506
- type: string;
2501
+ type: PrimaryNetworkAssetType;
2507
2502
  /**
2508
2503
  * Timestamp in seconds this asset was created on.
2509
2504
  */
2510
2505
  createdAtTimestamp: number;
2511
- /**
2512
- * Cap represents if an asset can be or is fixed cap.
2513
- */
2514
- cap: string;
2506
+ cap: PrimaryNetworkAssetCap;
2515
2507
  };
2516
2508
 
2517
2509
  declare enum XChainId {
@@ -2577,19 +2569,19 @@ declare class PrimaryNetworkService {
2577
2569
  * @returns ListBlockchainsResponse
2578
2570
  * @throws ApiError
2579
2571
  */
2580
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2572
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2581
2573
  /**
2582
2574
  * Either mainnet or a testnet.
2583
2575
  */
2584
2576
  network: Network;
2585
- /**
2586
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2587
- */
2588
- pageSize?: number;
2589
2577
  /**
2590
2578
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2591
2579
  */
2592
2580
  pageToken?: string;
2581
+ /**
2582
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2583
+ */
2584
+ pageSize?: number;
2593
2585
  /**
2594
2586
  * 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.
2595
2587
  */
@@ -2601,19 +2593,19 @@ declare class PrimaryNetworkService {
2601
2593
  * @returns ListSubnetsResponse
2602
2594
  * @throws ApiError
2603
2595
  */
2604
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2596
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2605
2597
  /**
2606
2598
  * Either mainnet or a testnet.
2607
2599
  */
2608
2600
  network: Network;
2609
- /**
2610
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2611
- */
2612
- pageSize?: number;
2613
2601
  /**
2614
2602
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2615
2603
  */
2616
2604
  pageToken?: string;
2605
+ /**
2606
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2607
+ */
2608
+ pageSize?: number;
2617
2609
  /**
2618
2610
  * 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.
2619
2611
  */
@@ -2625,23 +2617,29 @@ declare class PrimaryNetworkService {
2625
2617
  * @returns ListValidatorDetailsResponse
2626
2618
  * @throws ApiError
2627
2619
  */
2628
- listValidators({ network, pageSize, pageToken, 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, }: {
2629
2621
  /**
2630
2622
  * Either mainnet or a testnet.
2631
2623
  */
2632
2624
  network: Network;
2633
- /**
2634
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2635
- */
2636
- pageSize?: number;
2637
2625
  /**
2638
2626
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2639
2627
  */
2640
2628
  pageToken?: string;
2629
+ /**
2630
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2631
+ */
2632
+ pageSize?: number;
2641
2633
  /**
2642
2634
  * A comma separated list of node ids to filter by.
2643
2635
  */
2644
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;
2645
2643
  /**
2646
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.
2647
2645
  */
@@ -2653,31 +2651,39 @@ declare class PrimaryNetworkService {
2653
2651
  /**
2654
2652
  * 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
2655
2653
  */
2656
- minDelegationCapacity?: any;
2654
+ minDelegationCapacity?: string;
2657
2655
  /**
2658
2656
  * 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.
2659
2657
  */
2660
- maxDelegationCapacity?: any;
2658
+ maxDelegationCapacity?: string;
2661
2659
  /**
2662
2660
  * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2661
  */
2664
- minTimeRemaining?: any;
2662
+ minTimeRemaining?: number;
2665
2663
  /**
2666
2664
  * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2665
  */
2668
- maxTimeRemaining?: any;
2666
+ maxTimeRemaining?: number;
2667
+ /**
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.
2669
+ */
2670
+ minFeePercentage?: number;
2671
+ /**
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.
2673
+ */
2674
+ maxFeePercentage?: number;
2669
2675
  /**
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.
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2671
2677
  */
2672
- minFeePercentage?: any;
2678
+ minUptimePerformance?: number;
2673
2679
  /**
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.
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2675
2681
  */
2676
- maxFeePercentage?: any;
2682
+ maxUptimePerformance?: number;
2677
2683
  /**
2678
2684
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2685
  */
2680
- subnetId?: string;
2686
+ subnetId?: any;
2681
2687
  }): CancelablePromise<ListValidatorDetailsResponse>;
2682
2688
  /**
2683
2689
  * Get single validator details
@@ -2685,7 +2691,7 @@ declare class PrimaryNetworkService {
2685
2691
  * @returns ListValidatorDetailsResponse
2686
2692
  * @throws ApiError
2687
2693
  */
2688
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2689
2695
  /**
2690
2696
  * Either mainnet or a testnet.
2691
2697
  */
@@ -2694,22 +2700,22 @@ declare class PrimaryNetworkService {
2694
2700
  * A primary network (P or X chain) nodeId.
2695
2701
  */
2696
2702
  nodeId: string;
2697
- /**
2698
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2699
- */
2700
- pageSize?: number;
2701
2703
  /**
2702
2704
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2703
2705
  */
2704
2706
  pageToken?: string;
2705
2707
  /**
2706
- * 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.
2708
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2707
2709
  */
2708
- sortOrder?: SortOrder;
2710
+ pageSize?: number;
2709
2711
  /**
2710
2712
  * Validation status of the node.
2711
2713
  */
2712
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;
2713
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2714
2720
  /**
2715
2721
  * List delegators
@@ -2717,19 +2723,19 @@ declare class PrimaryNetworkService {
2717
2723
  * @returns ListDelegatorDetailsResponse
2718
2724
  * @throws ApiError
2719
2725
  */
2720
- listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2726
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2721
2727
  /**
2722
2728
  * Either mainnet or a testnet.
2723
2729
  */
2724
2730
  network: Network;
2725
- /**
2726
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2727
- */
2728
- pageSize?: number;
2729
2731
  /**
2730
2732
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2731
2733
  */
2732
2734
  pageToken?: string;
2735
+ /**
2736
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2737
+ */
2738
+ pageSize?: number;
2733
2739
  /**
2734
2740
  * A comma separated list of reward addresses to filter by.
2735
2741
  */
@@ -2777,10 +2783,7 @@ type CChainSharedAssetBalance = {
2777
2783
  * Denomination of this asset to represent fungibility.
2778
2784
  */
2779
2785
  denomination: number;
2780
- /**
2781
- * Type of asset like SECP256K1 or NFT.
2782
- */
2783
- type: string;
2786
+ type: PrimaryNetworkAssetType;
2784
2787
  /**
2785
2788
  * Amount of the asset.
2786
2789
  */
@@ -2815,7 +2818,7 @@ type ListCChainAtomicBalancesResponse = {
2815
2818
  chainInfo: PrimaryNetworkChainInfo;
2816
2819
  };
2817
2820
 
2818
- type Asset = {
2821
+ type AggregatedAssetAmount = {
2819
2822
  /**
2820
2823
  * Unique ID for an asset.
2821
2824
  */
@@ -2832,14 +2835,12 @@ type Asset = {
2832
2835
  * Denomination of this asset to represent fungibility.
2833
2836
  */
2834
2837
  denomination: number;
2835
- /**
2836
- * Type of asset like SECP256K1 or NFT.
2837
- */
2838
- type: string;
2838
+ type: PrimaryNetworkAssetType;
2839
2839
  /**
2840
2840
  * Amount of the asset.
2841
2841
  */
2842
2842
  amount: string;
2843
+ utxoCount: number;
2843
2844
  };
2844
2845
 
2845
2846
  type PChainSharedAsset = {
@@ -2859,49 +2860,47 @@ type PChainSharedAsset = {
2859
2860
  * Denomination of this asset to represent fungibility.
2860
2861
  */
2861
2862
  denomination: number;
2862
- /**
2863
- * Type of asset like SECP256K1 or NFT.
2864
- */
2865
- type: string;
2863
+ type: PrimaryNetworkAssetType;
2866
2864
  /**
2867
2865
  * Amount of the asset.
2868
2866
  */
2869
2867
  amount: string;
2868
+ utxoCount: number;
2870
2869
  sharedWithChainId: string;
2871
2870
  status: string;
2872
2871
  };
2873
2872
 
2874
2873
  type PChainBalance = {
2875
2874
  /**
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.
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.
2877
2876
  */
2878
- unlockedUnstaked: Array<Asset>;
2877
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2879
2878
  /**
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.
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.
2881
2880
  */
2882
- unlockedStaked: Array<Asset>;
2881
+ unlockedStaked: Array<AggregatedAssetAmount>;
2883
2882
  /**
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.
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.
2885
2884
  */
2886
- lockedPlatform: Array<Asset>;
2885
+ lockedPlatform: Array<AggregatedAssetAmount>;
2887
2886
  /**
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.
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.
2889
2888
  */
2890
- lockedStakeable: Array<Asset>;
2889
+ lockedStakeable: Array<AggregatedAssetAmount>;
2891
2890
  /**
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.
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.
2893
2892
  */
2894
- lockedStaked: Array<Asset>;
2893
+ lockedStaked: Array<AggregatedAssetAmount>;
2895
2894
  /**
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.
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.
2897
2896
  */
2898
- pendingStaked: Array<Asset>;
2897
+ pendingStaked: Array<AggregatedAssetAmount>;
2899
2898
  /**
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.
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.
2901
2900
  */
2902
2901
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2903
2902
  /**
2904
- * 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.
2905
2904
  */
2906
2905
  atomicMemoryLocked: Array<PChainSharedAsset>;
2907
2906
  };
@@ -2911,34 +2910,6 @@ type ListPChainBalancesResponse = {
2911
2910
  chainInfo: PrimaryNetworkChainInfo;
2912
2911
  };
2913
2912
 
2914
- type XChainAssetBalance = {
2915
- /**
2916
- * Unique ID for an asset.
2917
- */
2918
- assetId: string;
2919
- /**
2920
- * Name of this asset.
2921
- */
2922
- name: string;
2923
- /**
2924
- * Symbol for this asset (max 4 characters).
2925
- */
2926
- symbol: string;
2927
- /**
2928
- * Denomination of this asset to represent fungibility.
2929
- */
2930
- denomination: number;
2931
- /**
2932
- * Type of asset like SECP256K1 or NFT.
2933
- */
2934
- type: string;
2935
- /**
2936
- * Amount of the asset.
2937
- */
2938
- amount: string;
2939
- utxoCount: number;
2940
- };
2941
-
2942
2913
  type XChainSharedAssetBalance = {
2943
2914
  /**
2944
2915
  * Unique ID for an asset.
@@ -2956,10 +2927,7 @@ type XChainSharedAssetBalance = {
2956
2927
  * Denomination of this asset to represent fungibility.
2957
2928
  */
2958
2929
  denomination: number;
2959
- /**
2960
- * Type of asset like SECP256K1 or NFT.
2961
- */
2962
- type: string;
2930
+ type: PrimaryNetworkAssetType;
2963
2931
  /**
2964
2932
  * Amount of the asset.
2965
2933
  */
@@ -2972,11 +2940,11 @@ type XChainBalances = {
2972
2940
  /**
2973
2941
  * A list of objects containing X-chain Asset balance information.
2974
2942
  */
2975
- locked: Array<XChainAssetBalance>;
2943
+ locked: Array<AggregatedAssetAmount>;
2976
2944
  /**
2977
2945
  * A list of objects containing X-chain Asset balance information.
2978
2946
  */
2979
- unlocked: Array<XChainAssetBalance>;
2947
+ unlocked: Array<AggregatedAssetAmount>;
2980
2948
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2981
2949
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2982
2950
  };
@@ -3089,7 +3057,7 @@ declare class PrimaryNetworkBlocksService {
3089
3057
  * @returns ListPrimaryNetworkBlocksResponse
3090
3058
  * @throws ApiError
3091
3059
  */
3092
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3060
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
3093
3061
  /**
3094
3062
  * A primary network blockchain id or alias.
3095
3063
  */
@@ -3102,14 +3070,14 @@ declare class PrimaryNetworkBlocksService {
3102
3070
  * A primary network (P or X chain) nodeId.
3103
3071
  */
3104
3072
  nodeId: string;
3105
- /**
3106
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3107
- */
3108
- pageSize?: number;
3109
3073
  /**
3110
3074
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3111
3075
  */
3112
3076
  pageToken?: string;
3077
+ /**
3078
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3079
+ */
3080
+ pageSize?: number;
3113
3081
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3114
3082
  /**
3115
3083
  * List latest blocks
@@ -3117,7 +3085,7 @@ declare class PrimaryNetworkBlocksService {
3117
3085
  * @returns ListPrimaryNetworkBlocksResponse
3118
3086
  * @throws ApiError
3119
3087
  */
3120
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3088
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
3121
3089
  /**
3122
3090
  * A primary network blockchain id or alias.
3123
3091
  */
@@ -3126,17 +3094,45 @@ declare class PrimaryNetworkBlocksService {
3126
3094
  * Either mainnet or a testnet.
3127
3095
  */
3128
3096
  network: Network;
3129
- /**
3130
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3131
- */
3132
- pageSize?: number;
3133
3097
  /**
3134
3098
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3135
3099
  */
3136
3100
  pageToken?: string;
3101
+ /**
3102
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3103
+ */
3104
+ pageSize?: number;
3137
3105
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3138
3106
  }
3139
3107
 
3108
+ type AssetWithPriceInfo = {
3109
+ /**
3110
+ * Unique ID for an asset.
3111
+ */
3112
+ assetId: string;
3113
+ /**
3114
+ * Name of this asset.
3115
+ */
3116
+ name: string;
3117
+ /**
3118
+ * Symbol for this asset (max 4 characters).
3119
+ */
3120
+ symbol: string;
3121
+ /**
3122
+ * Denomination of this asset to represent fungibility.
3123
+ */
3124
+ denomination: number;
3125
+ type: PrimaryNetworkAssetType;
3126
+ /**
3127
+ * Amount of the asset.
3128
+ */
3129
+ amount: string;
3130
+ /**
3131
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3132
+ */
3133
+ historicalPrice?: Money;
3134
+ };
3135
+
3140
3136
  declare enum RewardType {
3141
3137
  VALIDATOR = "VALIDATOR",
3142
3138
  DELEGATOR = "DELEGATOR",
@@ -3156,10 +3152,7 @@ type HistoricalReward = {
3156
3152
  rewardType: RewardType;
3157
3153
  utxoId: string;
3158
3154
  outputIndex: number;
3159
- /**
3160
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3161
- */
3162
- reward: Asset;
3155
+ reward: AssetWithPriceInfo;
3163
3156
  rewardTxHash: string;
3164
3157
  };
3165
3158
 
@@ -3171,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
3171
3164
  historicalRewards: Array<HistoricalReward>;
3172
3165
  };
3173
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
+
3174
3191
  type PendingReward = {
3175
3192
  /**
3176
3193
  * An array of P-Chain wallet addresses.
@@ -3184,9 +3201,9 @@ type PendingReward = {
3184
3201
  rewardType: RewardType;
3185
3202
  progress: number;
3186
3203
  /**
3187
- * 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.
3188
3205
  */
3189
- estimatedReward: Asset;
3206
+ estimatedReward: AssetAmount;
3190
3207
  };
3191
3208
 
3192
3209
  type ListPendingRewardsResponse = {
@@ -3206,25 +3223,25 @@ declare class PrimaryNetworkRewardsService {
3206
3223
  * @returns ListPendingRewardsResponse
3207
3224
  * @throws ApiError
3208
3225
  */
3209
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3226
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3210
3227
  /**
3211
3228
  * Either mainnet or a testnet.
3212
3229
  */
3213
3230
  network: Network;
3214
3231
  /**
3215
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3232
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
3216
3233
  */
3217
3234
  addresses?: string;
3218
- /**
3219
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3220
- */
3221
- pageSize?: number;
3222
3235
  /**
3223
3236
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3224
3237
  */
3225
3238
  pageToken?: string;
3226
3239
  /**
3227
- * A comma separated list of node ids to filter by.
3240
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3241
+ */
3242
+ pageSize?: number;
3243
+ /**
3244
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
3228
3245
  */
3229
3246
  nodeIds?: string;
3230
3247
  /**
@@ -3238,31 +3255,35 @@ declare class PrimaryNetworkRewardsService {
3238
3255
  * @returns ListHistoricalRewardsResponse
3239
3256
  * @throws ApiError
3240
3257
  */
3241
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3258
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3242
3259
  /**
3243
3260
  * Either mainnet or a testnet.
3244
3261
  */
3245
3262
  network: Network;
3246
3263
  /**
3247
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3264
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3248
3265
  */
3249
3266
  addresses?: string;
3250
- /**
3251
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3252
- */
3253
- pageSize?: number;
3254
3267
  /**
3255
3268
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3256
3269
  */
3257
3270
  pageToken?: string;
3258
3271
  /**
3259
- * A comma separated list of node ids to filter by.
3272
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3273
+ */
3274
+ pageSize?: number;
3275
+ /**
3276
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3260
3277
  */
3261
3278
  nodeIds?: string;
3262
3279
  /**
3263
3280
  * 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.
3264
3281
  */
3265
3282
  sortOrder?: SortOrder;
3283
+ /**
3284
+ * The currency that return values should use. Defaults to USD.
3285
+ */
3286
+ currency?: CurrencyCode;
3266
3287
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3267
3288
  }
3268
3289
 
@@ -3283,9 +3304,9 @@ type EVMInput = {
3283
3304
  */
3284
3305
  fromAddress: string;
3285
3306
  /**
3286
- * Asset details for the asset being transferred.
3307
+ * AssetAmount details for the asset being transferred.
3287
3308
  */
3288
- asset: Asset;
3309
+ asset: AssetAmount;
3289
3310
  /**
3290
3311
  * Credentials that signed this transaction.
3291
3312
  */
@@ -3297,7 +3318,7 @@ type Utxo = {
3297
3318
  * Addresses that are eligible to sign the consumption of this output.
3298
3319
  */
3299
3320
  addresses: Array<string>;
3300
- asset: Asset;
3321
+ asset: AssetAmount;
3301
3322
  /**
3302
3323
  * Blockchain ID on which this output is consumed on.
3303
3324
  */
@@ -3380,11 +3401,11 @@ type CChainExportTransaction = {
3380
3401
  /**
3381
3402
  * Assets unlocked by inputs of this transaction.
3382
3403
  */
3383
- amountUnlocked: Array<Asset>;
3404
+ amountUnlocked: Array<AssetAmount>;
3384
3405
  /**
3385
3406
  * Assets created by outputs of this transaction.
3386
3407
  */
3387
- amountCreated: Array<Asset>;
3408
+ amountCreated: Array<AssetAmount>;
3388
3409
  /**
3389
3410
  * Source chain for an atomic transaction.
3390
3411
  */
@@ -3415,9 +3436,9 @@ type EVMOutput = {
3415
3436
  */
3416
3437
  toAddress: string;
3417
3438
  /**
3418
- * Asset details for the asset being transferred.
3439
+ * AssetAmount details for the asset being transferred.
3419
3440
  */
3420
- asset: Asset;
3441
+ asset: AssetAmount;
3421
3442
  };
3422
3443
 
3423
3444
  type CChainImportTransaction = {
@@ -3444,11 +3465,11 @@ type CChainImportTransaction = {
3444
3465
  /**
3445
3466
  * Assets unlocked by inputs of this transaction.
3446
3467
  */
3447
- amountUnlocked: Array<Asset>;
3468
+ amountUnlocked: Array<AssetAmount>;
3448
3469
  /**
3449
3470
  * Assets created by outputs of this transaction.
3450
3471
  */
3451
- amountCreated: Array<Asset>;
3472
+ amountCreated: Array<AssetAmount>;
3452
3473
  /**
3453
3474
  * Source chain for an atomic transaction.
3454
3475
  */
@@ -3496,6 +3517,8 @@ declare enum PChainTransactionType {
3496
3517
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3497
3518
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3498
3519
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3520
+ BASE_TX = "BaseTx",
3521
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3499
3522
  UNKNOWN = "UNKNOWN"
3500
3523
  }
3501
3524
 
@@ -3509,7 +3532,7 @@ type PChainUtxo = {
3509
3532
  * Addresses that are eligible to sign the consumption of this output.
3510
3533
  */
3511
3534
  addresses: Array<string>;
3512
- asset: Asset;
3535
+ asset: AssetAmount;
3513
3536
  /**
3514
3537
  * Blockchain ID on which this output is consumed on.
3515
3538
  */
@@ -3573,17 +3596,17 @@ type PChainTransaction = {
3573
3596
  */
3574
3597
  destinationChain?: string;
3575
3598
  /**
3576
- * 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.
3577
3600
  */
3578
- value: Array<Asset>;
3601
+ value: Array<AssetAmount>;
3579
3602
  /**
3580
- * 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.
3581
3604
  */
3582
- amountBurned: Array<Asset>;
3605
+ amountBurned: Array<AssetAmount>;
3583
3606
  /**
3584
- * 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
3585
3608
  */
3586
- amountStaked: Array<Asset>;
3609
+ amountStaked: Array<AssetAmount>;
3587
3610
  /**
3588
3611
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3589
3612
  */
@@ -3615,6 +3638,14 @@ type PChainTransaction = {
3615
3638
  * Present for RewardValidatorTx
3616
3639
  */
3617
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;
3618
3649
  };
3619
3650
 
3620
3651
  type ListPChainTransactionsResponse = {
@@ -3626,6 +3657,9 @@ type ListPChainTransactionsResponse = {
3626
3657
  chainInfo: PrimaryNetworkChainInfo;
3627
3658
  };
3628
3659
 
3660
+ /**
3661
+ * Type of transaction.
3662
+ */
3629
3663
  declare enum XChainTransactionType {
3630
3664
  BASE_TX = "BaseTx",
3631
3665
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3648,9 +3682,6 @@ type XChainLinearTransaction = {
3648
3682
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3649
3683
  */
3650
3684
  timestamp: number;
3651
- /**
3652
- * Type of transaction.
3653
- */
3654
3685
  txType: XChainTransactionType;
3655
3686
  /**
3656
3687
  * Hex encoded memo bytes for this transaction.
@@ -3661,11 +3692,11 @@ type XChainLinearTransaction = {
3661
3692
  /**
3662
3693
  * Assets unlocked by inputs of this transaction.
3663
3694
  */
3664
- amountUnlocked: Array<Asset>;
3695
+ amountUnlocked: Array<AssetAmount>;
3665
3696
  /**
3666
3697
  * Assets created by outputs of this transaction.
3667
3698
  */
3668
- amountCreated: Array<Asset>;
3699
+ amountCreated: Array<AssetAmount>;
3669
3700
  /**
3670
3701
  * Source chain for an atomic transaction.
3671
3702
  */
@@ -3675,7 +3706,7 @@ type XChainLinearTransaction = {
3675
3706
  */
3676
3707
  destinationChain?: string;
3677
3708
  /**
3678
- * Asset details of the asset created in CreateAssetTx
3709
+ * AssetAmount details of the asset created in CreateAssetTx
3679
3710
  */
3680
3711
  assetCreated?: XChainAssetDetails;
3681
3712
  /**
@@ -3725,9 +3756,6 @@ type XChainNonLinearTransaction = {
3725
3756
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3726
3757
  */
3727
3758
  timestamp: number;
3728
- /**
3729
- * Type of transaction.
3730
- */
3731
3759
  txType: XChainTransactionType;
3732
3760
  /**
3733
3761
  * Hex encoded memo bytes for this transaction.
@@ -3738,11 +3766,11 @@ type XChainNonLinearTransaction = {
3738
3766
  /**
3739
3767
  * Assets unlocked by inputs of this transaction.
3740
3768
  */
3741
- amountUnlocked: Array<Asset>;
3769
+ amountUnlocked: Array<AssetAmount>;
3742
3770
  /**
3743
3771
  * Assets created by outputs of this transaction.
3744
3772
  */
3745
- amountCreated: Array<Asset>;
3773
+ amountCreated: Array<AssetAmount>;
3746
3774
  /**
3747
3775
  * Source chain for an atomic transaction.
3748
3776
  */
@@ -3752,7 +3780,7 @@ type XChainNonLinearTransaction = {
3752
3780
  */
3753
3781
  destinationChain?: string;
3754
3782
  /**
3755
- * Asset details of the asset created in CreateAssetTx
3783
+ * AssetAmount details of the asset created in CreateAssetTx
3756
3784
  */
3757
3785
  assetCreated?: XChainAssetDetails;
3758
3786
  /**
@@ -3798,8 +3826,9 @@ declare enum PrimaryNetworkTxType {
3798
3826
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3799
3827
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3800
3828
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3801
- UNKNOWN = "UNKNOWN",
3802
3829
  BASE_TX = "BaseTx",
3830
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3831
+ UNKNOWN = "UNKNOWN",
3803
3832
  CREATE_ASSET_TX = "CreateAssetTx",
3804
3833
  OPERATION_TX = "OperationTx"
3805
3834
  }
@@ -3831,13 +3860,13 @@ declare class PrimaryNetworkTransactionsService {
3831
3860
  * List latest transactions
3832
3861
  * Lists the latest transactions on one of the Primary Network chains.
3833
3862
  *
3834
- * Transactions are filterable by addresses.
3863
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3835
3864
  *
3836
3865
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3837
3866
  * @returns any
3838
3867
  * @throws ApiError
3839
3868
  */
3840
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3869
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3841
3870
  /**
3842
3871
  * A primary network blockchain id or alias.
3843
3872
  */
@@ -3862,14 +3891,14 @@ declare class PrimaryNetworkTransactionsService {
3862
3891
  * Query param for retrieving items before a specific timestamp.
3863
3892
  */
3864
3893
  endTimestamp?: number;
3865
- /**
3866
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3867
- */
3868
- pageSize?: number;
3869
3894
  /**
3870
3895
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3871
3896
  */
3872
3897
  pageToken?: string;
3898
+ /**
3899
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3900
+ */
3901
+ pageSize?: number;
3873
3902
  /**
3874
3903
  * 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.
3875
3904
  */
@@ -3881,7 +3910,7 @@ declare class PrimaryNetworkTransactionsService {
3881
3910
  * @returns ListPChainTransactionsResponse
3882
3911
  * @throws ApiError
3883
3912
  */
3884
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3913
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3885
3914
  /**
3886
3915
  * A primary network blockchain id or alias.
3887
3916
  */
@@ -3906,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
3906
3935
  * Query param for retrieving items before a specific timestamp.
3907
3936
  */
3908
3937
  endTimestamp?: number;
3909
- /**
3910
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3911
- */
3912
- pageSize?: number;
3913
3938
  /**
3914
3939
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3915
3940
  */
3916
3941
  pageToken?: string;
3942
+ /**
3943
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3944
+ */
3945
+ pageSize?: number;
3917
3946
  /**
3918
3947
  * 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.
3919
3948
  */
@@ -3925,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
3925
3954
  * @returns ListXChainTransactionsResponse
3926
3955
  * @throws ApiError
3927
3956
  */
3928
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3957
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3929
3958
  /**
3930
3959
  * A primary network blockchain id or alias.
3931
3960
  */
@@ -3950,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
3950
3979
  * Query param for retrieving items before a specific timestamp.
3951
3980
  */
3952
3981
  endTimestamp?: number;
3953
- /**
3954
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3955
- */
3956
- pageSize?: number;
3957
3982
  /**
3958
3983
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3959
3984
  */
3960
3985
  pageToken?: string;
3986
+ /**
3987
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3988
+ */
3989
+ pageSize?: number;
3961
3990
  }): CancelablePromise<ListXChainTransactionsResponse>;
3962
3991
  }
3963
3992
 
@@ -3988,7 +4017,7 @@ declare class PrimaryNetworkUtxOsService {
3988
4017
  * @returns any
3989
4018
  * @throws ApiError
3990
4019
  */
3991
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4020
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3992
4021
  /**
3993
4022
  * A primary network blockchain id or alias.
3994
4023
  */
@@ -4001,14 +4030,14 @@ declare class PrimaryNetworkUtxOsService {
4001
4030
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
4002
4031
  */
4003
4032
  addresses?: string;
4004
- /**
4005
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4006
- */
4007
- pageSize?: number;
4008
4033
  /**
4009
4034
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4010
4035
  */
4011
4036
  pageToken?: string;
4037
+ /**
4038
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4039
+ */
4040
+ pageSize?: number;
4012
4041
  /**
4013
4042
  * Asset ID for any asset (only applicable X-Chain)
4014
4043
  */
@@ -4053,7 +4082,7 @@ declare class PrimaryNetworkVerticesService {
4053
4082
  * @returns ListXChainVerticesResponse
4054
4083
  * @throws ApiError
4055
4084
  */
4056
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4085
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
4057
4086
  /**
4058
4087
  * A primary network blockchain id or alias.
4059
4088
  */
@@ -4062,14 +4091,14 @@ declare class PrimaryNetworkVerticesService {
4062
4091
  * Either mainnet or a testnet.
4063
4092
  */
4064
4093
  network: Network;
4065
- /**
4066
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4067
- */
4068
- pageSize?: number;
4069
4094
  /**
4070
4095
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4071
4096
  */
4072
4097
  pageToken?: string;
4098
+ /**
4099
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4100
+ */
4101
+ pageSize?: number;
4073
4102
  }): CancelablePromise<ListXChainVerticesResponse>;
4074
4103
  /**
4075
4104
  * Get vertex
@@ -4097,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
4097
4126
  * @returns ListXChainVerticesResponse
4098
4127
  * @throws ApiError
4099
4128
  */
4100
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4129
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
4101
4130
  /**
4102
4131
  * The height of a vertex.
4103
4132
  */
@@ -4110,19 +4139,479 @@ declare class PrimaryNetworkVerticesService {
4110
4139
  * Either mainnet or a testnet.
4111
4140
  */
4112
4141
  network: Network;
4142
+ /**
4143
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4144
+ */
4145
+ pageToken?: string;
4113
4146
  /**
4114
4147
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4115
4148
  */
4116
4149
  pageSize?: number;
4150
+ /**
4151
+ * 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.
4152
+ */
4153
+ sortOrder?: SortOrder;
4154
+ }): CancelablePromise<ListXChainVerticesResponse>;
4155
+ }
4156
+
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, }: {
4117
4356
  /**
4118
4357
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4119
4358
  */
4120
4359
  pageToken?: string;
4121
4360
  /**
4122
- * 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.
4361
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4123
4362
  */
4124
- sortOrder?: SortOrder;
4125
- }): CancelablePromise<ListXChainVerticesResponse>;
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>;
4126
4615
  }
4127
4616
 
4128
4617
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4143,6 +4632,9 @@ declare class Glacier {
4143
4632
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4144
4633
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4145
4634
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4635
+ readonly rpc: RpcService;
4636
+ readonly teleporter: TeleporterService;
4637
+ readonly webhooks: WebhooksService;
4146
4638
  readonly request: BaseHttpRequest;
4147
4639
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4148
4640
  }
@@ -4164,4 +4656,11 @@ declare class ApiError extends Error {
4164
4656
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4165
4657
  }
4166
4658
 
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 };
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 };