@avalabs/glacier-sdk 2.8.0-canary.f19144b.0 → 2.8.0-canary.f2340be.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 (158) hide show
  1. package/dist/index.d.ts +1488 -643
  2. package/dist/index.js +531 -119
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  6. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +20 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +2 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  19. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  21. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  22. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  23. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  24. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  25. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  26. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  27. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  28. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  29. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  30. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  31. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  32. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  33. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  34. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  35. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  36. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  37. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  38. package/esm/generated/models/EVMInput.d.ts +3 -3
  39. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  40. package/esm/generated/models/EVMOperationType.js +6 -0
  41. package/esm/generated/models/EVMOutput.d.ts +3 -3
  42. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  43. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  44. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  45. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  46. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  47. package/esm/generated/models/EventType.d.ts +5 -0
  48. package/esm/generated/models/EventType.js +6 -0
  49. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  50. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  51. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  52. package/esm/generated/models/GlacierApiFeature.js +6 -0
  53. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  54. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  55. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  56. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  57. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  58. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  59. package/esm/generated/models/Method.d.ts +0 -3
  60. package/esm/generated/models/Money.d.ts +0 -3
  61. package/esm/generated/models/NextPageToken.d.ts +8 -0
  62. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  63. package/esm/generated/models/OperationType.d.ts +4 -2
  64. package/esm/generated/models/OperationType.js +3 -1
  65. package/esm/generated/models/PChainBalance.d.ts +15 -15
  66. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  67. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  68. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  69. package/esm/generated/models/PChainTransactionType.js +8 -4
  70. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  71. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  72. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  73. package/esm/generated/models/PendingReward.d.ts +3 -3
  74. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  75. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  76. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  77. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  78. package/esm/generated/models/PricingProviders.d.ts +5 -0
  79. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  80. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  81. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  82. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  83. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  84. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  85. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  86. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  87. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  88. package/esm/generated/models/RegisterWebhookRequest.d.ts +11 -0
  89. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  90. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  91. package/esm/generated/models/RewardType.d.ts +2 -1
  92. package/esm/generated/models/RewardType.js +1 -0
  93. package/esm/generated/models/Rewards.d.ts +2 -0
  94. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  95. package/esm/generated/models/Subnet.d.ts +17 -0
  96. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  97. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  98. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  99. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  100. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  101. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  102. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  103. package/esm/generated/models/UnknownContract.d.ts +0 -1
  104. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  105. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  106. package/esm/generated/models/Utxo.d.ts +30 -30
  107. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  108. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  109. package/esm/generated/models/ValidationStatusType.js +1 -0
  110. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  111. package/esm/generated/models/WebhookResponse.d.ts +17 -0
  112. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  113. package/esm/generated/models/WebhookStatus.js +7 -0
  114. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  115. package/esm/generated/models/WebhookStatusType.js +7 -0
  116. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  117. package/esm/generated/models/XChainBalances.d.ts +3 -3
  118. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  119. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  120. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  121. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  122. package/esm/generated/models/XChainTransactionType.js +11 -0
  123. package/esm/generated/services/DefaultService.d.ts +100 -0
  124. package/esm/generated/services/DefaultService.js +86 -0
  125. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  126. package/esm/generated/services/EvmBalancesService.js +8 -8
  127. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  128. package/esm/generated/services/EvmBlocksService.js +4 -4
  129. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  130. package/esm/generated/services/EvmChainsService.js +4 -2
  131. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  132. package/esm/generated/services/EvmContractsService.js +36 -0
  133. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  134. package/esm/generated/services/EvmTransactionsService.js +33 -33
  135. package/esm/generated/services/NfTsService.d.ts +76 -0
  136. package/esm/generated/services/NfTsService.js +56 -0
  137. package/esm/generated/services/OperationsService.d.ts +11 -11
  138. package/esm/generated/services/OperationsService.js +10 -10
  139. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  140. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  141. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  142. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  143. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  144. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  145. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
  146. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  147. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  148. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  149. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  150. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  151. package/esm/generated/services/TeleporterService.d.ts +57 -0
  152. package/esm/generated/services/TeleporterService.js +39 -0
  153. package/esm/index.d.ts +41 -3
  154. package/esm/index.js +28 -2
  155. package/package.json +2 -2
  156. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  157. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  158. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,172 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
+ type AddressActivityMetadata = {
64
+ /**
65
+ * Ethereum address for the address_activity event type
66
+ */
67
+ address: string;
68
+ /**
69
+ * Array of hexadecimal strings of the event signatures.
70
+ */
71
+ eventSignatures?: Array<string>;
72
+ /**
73
+ * Whether to include traces in the webhook payload.
74
+ */
75
+ includeTraces?: boolean;
76
+ /**
77
+ * Whether to include logs in the webhook payload.
78
+ */
79
+ includeLogs?: boolean;
80
+ };
81
+
82
+ declare enum EventType {
83
+ ADDRESS_ACTIVITY = "address_activity"
84
+ }
85
+
86
+ declare enum WebhookStatusType {
87
+ ACTIVE = "active",
88
+ INACTIVE = "inactive"
89
+ }
90
+
91
+ type WebhookResponse = {
92
+ id: string;
93
+ eventType: EventType;
94
+ metadata: AddressActivityMetadata;
95
+ url: string;
96
+ chainId: string;
97
+ status: WebhookStatusType;
98
+ createdAt: number;
99
+ name: string;
100
+ description: string;
101
+ };
102
+
103
+ type ListWebhooksResponse = {
104
+ /**
105
+ * 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.
106
+ */
107
+ nextPageToken?: string;
108
+ webhooks: Array<WebhookResponse>;
109
+ };
110
+
111
+ type RegisterWebhookRequest = {
112
+ url: string;
113
+ chainId: string;
114
+ eventType: EventType;
115
+ metadata: AddressActivityMetadata;
116
+ };
117
+
118
+ type SharedSecretsResponse = {
119
+ secret: string;
120
+ };
121
+
122
+ type UpdateWebhookRequest = {
123
+ name?: string;
124
+ description?: string;
125
+ url?: string;
126
+ status?: WebhookStatusType;
127
+ includeTraces?: boolean;
128
+ includeLogs?: boolean;
129
+ };
130
+
131
+ declare enum WebhookStatus {
132
+ ACTIVE = "active",
133
+ INACTIVE = "inactive"
134
+ }
135
+
136
+ declare class DefaultService {
137
+ readonly httpRequest: BaseHttpRequest;
138
+ constructor(httpRequest: BaseHttpRequest);
139
+ /**
140
+ * @returns any
141
+ * @throws ApiError
142
+ */
143
+ mediaControllerUploadImage(): CancelablePromise<any>;
144
+ /**
145
+ * Register a webhook
146
+ * Registers a new webhook.
147
+ * @returns WebhookResponse
148
+ * @throws ApiError
149
+ */
150
+ registerWebhook({ requestBody, }: {
151
+ requestBody: RegisterWebhookRequest;
152
+ }): CancelablePromise<WebhookResponse>;
153
+ /**
154
+ * List webhooks
155
+ * Lists webhooks for the user.
156
+ * @returns ListWebhooksResponse
157
+ * @throws ApiError
158
+ */
159
+ listWebhooks({ pageToken, pageSize, status, }: {
160
+ /**
161
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
162
+ */
163
+ pageToken?: string;
164
+ /**
165
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
166
+ */
167
+ pageSize?: number;
168
+ /**
169
+ * 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.
170
+ */
171
+ status?: WebhookStatus;
172
+ }): CancelablePromise<ListWebhooksResponse>;
173
+ /**
174
+ * Get a webhook by ID
175
+ * Retrieves a webhook by ID.
176
+ * @returns WebhookResponse
177
+ * @throws ApiError
178
+ */
179
+ getWebhook({ id, }: {
180
+ /**
181
+ * The webhook identifier.
182
+ */
183
+ id: string;
184
+ }): CancelablePromise<WebhookResponse>;
185
+ /**
186
+ * Deactivate a webhook
187
+ * Deactivates a webhook by ID.
188
+ * @returns WebhookResponse
189
+ * @throws ApiError
190
+ */
191
+ deactivateWebhook({ id, }: {
192
+ /**
193
+ * The webhook identifier.
194
+ */
195
+ id: string;
196
+ }): CancelablePromise<WebhookResponse>;
197
+ /**
198
+ * Update a webhook
199
+ * Updates an existing webhook.
200
+ * @returns WebhookResponse
201
+ * @throws ApiError
202
+ */
203
+ updateWebhook({ id, requestBody, }: {
204
+ /**
205
+ * The webhook identifier.
206
+ */
207
+ id: string;
208
+ requestBody: UpdateWebhookRequest;
209
+ }): CancelablePromise<WebhookResponse>;
210
+ /**
211
+ * Generate a shared secret
212
+ * Generates a new shared secret.
213
+ * @returns SharedSecretsResponse
214
+ * @throws ApiError
215
+ */
216
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
217
+ /**
218
+ * Get a shared secret
219
+ * Get a previously generated shared secret.
220
+ * @returns SharedSecretsResponse
221
+ * @throws ApiError
222
+ */
223
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
224
+ }
225
+
226
+ /**
227
+ * ISO 4217 currency code.
228
+ */
63
229
  declare enum CurrencyCode {
64
230
  USD = "usd",
65
231
  EUR = "eur",
@@ -78,9 +244,6 @@ declare enum CurrencyCode {
78
244
  }
79
245
 
80
246
  type Money = {
81
- /**
82
- * ISO 4217 currency code.
83
- */
84
247
  currencyCode: CurrencyCode;
85
248
  /**
86
249
  * Monetary value in base 10 decimals.
@@ -130,6 +293,9 @@ type GetNativeBalanceResponse = {
130
293
  nativeTokenBalance: NativeTokenBalance;
131
294
  };
132
295
 
296
+ /**
297
+ * The metadata indexing status of the nft.
298
+ */
133
299
  declare enum NftTokenMetadataStatus {
134
300
  UNKNOWN = "UNKNOWN",
135
301
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -145,9 +311,6 @@ declare enum NftTokenMetadataStatus {
145
311
  }
146
312
 
147
313
  type Erc1155TokenMetadata = {
148
- /**
149
- * The metadata indexing status of the nft.
150
- */
151
314
  indexStatus: NftTokenMetadataStatus;
152
315
  metadataLastUpdatedTimestamp?: number;
153
316
  name?: string;
@@ -186,9 +349,6 @@ declare namespace Erc1155TokenBalance {
186
349
  }
187
350
 
188
351
  type Erc721TokenMetadata = {
189
- /**
190
- * The metadata indexing status of the nft.
191
- */
192
352
  indexStatus: NftTokenMetadataStatus;
193
353
  metadataLastUpdatedTimestamp?: number;
194
354
  name?: string;
@@ -335,7 +495,7 @@ declare class EvmBalancesService {
335
495
  */
336
496
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
337
497
  /**
338
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
498
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
499
  */
340
500
  chainId: string;
341
501
  /**
@@ -361,9 +521,9 @@ declare class EvmBalancesService {
361
521
  * @returns ListErc20BalancesResponse
362
522
  * @throws ApiError
363
523
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
524
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
525
  /**
366
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
526
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
527
  */
368
528
  chainId: string;
369
529
  /**
@@ -374,14 +534,14 @@ declare class EvmBalancesService {
374
534
  * The block number, if not defined the block number will be the latest block.
375
535
  */
376
536
  blockNumber?: string;
377
- /**
378
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
379
- */
380
- pageSize?: number;
381
537
  /**
382
538
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
383
539
  */
384
540
  pageToken?: string;
541
+ /**
542
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
543
+ */
544
+ pageSize?: number;
385
545
  /**
386
546
  * A comma separated list of contract addresses to filter by.
387
547
  */
@@ -399,23 +559,23 @@ declare class EvmBalancesService {
399
559
  * @returns ListErc721BalancesResponse
400
560
  * @throws ApiError
401
561
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
562
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
563
  /**
404
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
564
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
565
  */
406
566
  chainId: string;
407
567
  /**
408
568
  * A wallet address.
409
569
  */
410
570
  address: string;
411
- /**
412
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
413
- */
414
- pageSize?: number;
415
571
  /**
416
572
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
573
  */
418
574
  pageToken?: string;
575
+ /**
576
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
577
+ */
578
+ pageSize?: number;
419
579
  /**
420
580
  * A contract addresses to filter by.
421
581
  */
@@ -431,9 +591,9 @@ declare class EvmBalancesService {
431
591
  * @returns ListErc1155BalancesResponse
432
592
  * @throws ApiError
433
593
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
594
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
595
  /**
436
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
596
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
597
  */
438
598
  chainId: string;
439
599
  /**
@@ -444,14 +604,14 @@ declare class EvmBalancesService {
444
604
  * The block number, if not defined the block number will be the latest block.
445
605
  */
446
606
  blockNumber?: string;
447
- /**
448
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
449
- */
450
- pageSize?: number;
451
607
  /**
452
608
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
609
  */
454
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;
455
615
  /**
456
616
  * A contract addresses to filter by.
457
617
  */
@@ -465,23 +625,23 @@ declare class EvmBalancesService {
465
625
  * @returns ListCollectibleBalancesResponse
466
626
  * @throws ApiError
467
627
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
628
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
629
  /**
470
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
630
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
631
  */
472
632
  chainId: string;
473
633
  /**
474
634
  * A wallet address.
475
635
  */
476
636
  address: string;
477
- /**
478
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
479
- */
480
- pageSize?: number;
481
637
  /**
482
638
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
639
  */
484
640
  pageToken?: string;
641
+ /**
642
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
643
+ */
644
+ pageSize?: number;
485
645
  /**
486
646
  * A contract addresses to filter by.
487
647
  */
@@ -594,19 +754,19 @@ declare class EvmBlocksService {
594
754
  * @returns ListEvmBlocksResponse
595
755
  * @throws ApiError
596
756
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
757
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
758
  /**
599
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
759
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
760
  */
601
761
  chainId: string;
602
- /**
603
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
604
- */
605
- pageSize?: number;
606
762
  /**
607
763
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
764
  */
609
765
  pageToken?: string;
766
+ /**
767
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
768
+ */
769
+ pageSize?: number;
610
770
  }): CancelablePromise<ListEvmBlocksResponse>;
611
771
  /**
612
772
  * Get block
@@ -616,7 +776,7 @@ declare class EvmBlocksService {
616
776
  */
617
777
  getBlock({ chainId, blockId, }: {
618
778
  /**
619
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
779
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
780
  */
621
781
  chainId: string;
622
782
  /**
@@ -626,6 +786,9 @@ declare class EvmBlocksService {
626
786
  }): CancelablePromise<GetEvmBlockResponse>;
627
787
  }
628
788
 
789
+ /**
790
+ * 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.
791
+ */
629
792
  declare enum ChainStatus {
630
793
  OK = "OK",
631
794
  UNAVAILABLE = "UNAVAILABLE"
@@ -663,9 +826,6 @@ declare enum VmName {
663
826
 
664
827
  type GetChainResponse = {
665
828
  chainId: string;
666
- /**
667
- * 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.
668
- */
669
829
  status: ChainStatus;
670
830
  chainName: string;
671
831
  description: string;
@@ -680,13 +840,16 @@ type GetChainResponse = {
680
840
  utilityAddresses?: UtilityAddresses;
681
841
  networkToken: NetworkToken;
682
842
  chainLogoUri?: string;
843
+ private?: boolean;
844
+ enabledFeatures?: Array<'nftIndexing'>;
683
845
  };
684
846
 
847
+ declare enum GlacierApiFeature {
848
+ NFT_INDEXING = "nftIndexing"
849
+ }
850
+
685
851
  type ChainInfo = {
686
852
  chainId: string;
687
- /**
688
- * 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.
689
- */
690
853
  status: ChainStatus;
691
854
  chainName: string;
692
855
  description: string;
@@ -701,6 +864,8 @@ type ChainInfo = {
701
864
  utilityAddresses?: UtilityAddresses;
702
865
  networkToken: NetworkToken;
703
866
  chainLogoUri?: string;
867
+ private?: boolean;
868
+ enabledFeatures?: Array<'nftIndexing'>;
704
869
  };
705
870
 
706
871
  type ListChainsResponse = {
@@ -721,11 +886,15 @@ declare class EvmChainsService {
721
886
  * @returns ListChainsResponse
722
887
  * @throws ApiError
723
888
  */
724
- supportedChains({ network, }: {
889
+ supportedChains({ network, feature, }: {
725
890
  /**
726
891
  * mainnet or testnet.
727
892
  */
728
893
  network?: NetworkType;
894
+ /**
895
+ * Filter by feature.
896
+ */
897
+ feature?: GlacierApiFeature;
729
898
  }): CancelablePromise<ListChainsResponse>;
730
899
  /**
731
900
  * Get chain information
@@ -735,101 +904,417 @@ declare class EvmChainsService {
735
904
  */
736
905
  getChainInfo({ chainId, }: {
737
906
  /**
738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
907
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
739
908
  */
740
909
  chainId: string;
741
910
  }): CancelablePromise<GetChainResponse>;
742
911
  }
743
912
 
744
- type Erc1155Token = {
913
+ type ImageAsset = {
914
+ assetId?: string;
745
915
  /**
746
- * A wallet or contract address in mixed-case checksum encoding.
916
+ * OUTPUT ONLY
747
917
  */
748
- address: string;
749
- ercType: Erc1155Token.ercType;
750
- tokenId: string;
751
- tokenUri: string;
752
- metadata: Erc1155TokenMetadata;
918
+ imageUri?: string;
753
919
  };
754
- declare namespace Erc1155Token {
755
- enum ercType {
756
- ERC_1155 = "ERC-1155"
757
- }
920
+
921
+ type PricingProviders = {
922
+ coingeckoCoinId?: string;
923
+ };
924
+
925
+ declare enum ResourceLinkType {
926
+ BLOG = "Blog",
927
+ COIN_GECKO = "CoinGecko",
928
+ COIN_MARKET_CAP = "CoinMarketCap",
929
+ DISCORD = "Discord",
930
+ DOCUMENTATION = "Documentation",
931
+ FACEBOOK = "Facebook",
932
+ GITHUB = "Github",
933
+ INSTAGRAM = "Instagram",
934
+ LINKED_IN = "LinkedIn",
935
+ MEDIUM = "Medium",
936
+ REDDIT = "Reddit",
937
+ SUPPORT = "Support",
938
+ TELEGRAM = "Telegram",
939
+ TIK_TOK = "TikTok",
940
+ TWITTER = "Twitter",
941
+ WEBSITE = "Website",
942
+ WHITEPAPER = "Whitepaper",
943
+ YOUTUBE = "Youtube"
758
944
  }
759
945
 
760
- type RichAddress = {
946
+ type ResourceLink = {
947
+ type: ResourceLinkType;
948
+ url: string;
949
+ };
950
+
951
+ type ContractSubmissionErc1155 = {
952
+ description?: string;
953
+ officialSite?: string;
954
+ email?: string;
955
+ logoAsset?: ImageAsset;
956
+ bannerAsset?: ImageAsset;
957
+ color?: string;
958
+ resourceLinks?: Array<ResourceLink>;
959
+ tags?: Array<string>;
761
960
  /**
762
961
  * The contract name.
763
962
  */
764
- name?: string;
963
+ name: string;
964
+ ercType: ContractSubmissionErc1155.ercType;
765
965
  /**
766
966
  * The contract symbol.
767
967
  */
768
- symbol?: string;
769
- /**
770
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
771
- */
772
- decimals?: number;
773
- /**
774
- * The logo uri for the address.
775
- */
776
- logoUri?: string;
777
- /**
778
- * A wallet or contract address in mixed-case checksum encoding.
779
- */
780
- address: string;
781
- };
782
-
783
- type Erc1155TransferDetails = {
784
- from: RichAddress;
785
- to: RichAddress;
786
- logIndex: number;
787
- value: string;
788
- erc1155Token: Erc1155Token;
968
+ symbol: string;
969
+ pricingProviders?: PricingProviders;
789
970
  };
971
+ declare namespace ContractSubmissionErc1155 {
972
+ enum ercType {
973
+ ERC_1155 = "ERC-1155"
974
+ }
975
+ }
790
976
 
791
- type Erc20Token = {
792
- /**
793
- * A wallet or contract address in mixed-case checksum encoding.
794
- */
795
- address: string;
977
+ type ContractSubmissionErc20 = {
978
+ description?: string;
979
+ officialSite?: string;
980
+ email?: string;
981
+ logoAsset?: ImageAsset;
982
+ bannerAsset?: ImageAsset;
983
+ color?: string;
984
+ resourceLinks?: Array<ResourceLink>;
985
+ tags?: Array<string>;
796
986
  /**
797
987
  * The contract name.
798
988
  */
799
989
  name: string;
990
+ ercType: ContractSubmissionErc20.ercType;
800
991
  /**
801
992
  * The contract symbol.
802
993
  */
803
994
  symbol: string;
804
- /**
805
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
806
- */
807
- decimals: number;
808
- /**
809
- * The logo uri for the address.
810
- */
811
- logoUri?: string;
812
- ercType: Erc20Token.ercType;
813
- /**
814
- * The token price, if available.
815
- */
816
- price?: Money;
995
+ pricingProviders?: PricingProviders;
817
996
  };
818
- declare namespace Erc20Token {
997
+ declare namespace ContractSubmissionErc20 {
819
998
  enum ercType {
820
999
  ERC_20 = "ERC-20"
821
1000
  }
822
1001
  }
823
1002
 
824
- type Erc20TransferDetails = {
825
- from: RichAddress;
826
- to: RichAddress;
827
- logIndex: number;
828
- value: string;
829
- erc20Token: Erc20Token;
830
- };
831
-
832
- type Erc721Token = {
1003
+ type ContractSubmissionErc721 = {
1004
+ description?: string;
1005
+ officialSite?: string;
1006
+ email?: string;
1007
+ logoAsset?: ImageAsset;
1008
+ bannerAsset?: ImageAsset;
1009
+ color?: string;
1010
+ resourceLinks?: Array<ResourceLink>;
1011
+ tags?: Array<string>;
1012
+ /**
1013
+ * The contract name.
1014
+ */
1015
+ name: string;
1016
+ ercType: ContractSubmissionErc721.ercType;
1017
+ /**
1018
+ * The contract symbol.
1019
+ */
1020
+ symbol: string;
1021
+ };
1022
+ declare namespace ContractSubmissionErc721 {
1023
+ enum ercType {
1024
+ ERC_721 = "ERC-721"
1025
+ }
1026
+ }
1027
+
1028
+ type ContractSubmissionUnknown = {
1029
+ description?: string;
1030
+ officialSite?: string;
1031
+ email?: string;
1032
+ logoAsset?: ImageAsset;
1033
+ bannerAsset?: ImageAsset;
1034
+ color?: string;
1035
+ resourceLinks?: Array<ResourceLink>;
1036
+ tags?: Array<string>;
1037
+ /**
1038
+ * The contract name.
1039
+ */
1040
+ name: string;
1041
+ ercType: ContractSubmissionUnknown.ercType;
1042
+ };
1043
+ declare namespace ContractSubmissionUnknown {
1044
+ enum ercType {
1045
+ UNKNOWN = "UNKNOWN"
1046
+ }
1047
+ }
1048
+
1049
+ type ContractSubmissionBody = {
1050
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
1051
+ };
1052
+
1053
+ type ContractDeploymentDetails = {
1054
+ txHash: string;
1055
+ /**
1056
+ * The address that initiated the transaction which deployed this contract.
1057
+ */
1058
+ deployerAddress: string;
1059
+ /**
1060
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1061
+ */
1062
+ deployerContractAddress?: string;
1063
+ };
1064
+
1065
+ type Erc1155Contract = {
1066
+ /**
1067
+ * The contract name.
1068
+ */
1069
+ name?: string;
1070
+ description?: string;
1071
+ officialSite?: string;
1072
+ email?: string;
1073
+ logoAsset?: ImageAsset;
1074
+ bannerAsset?: ImageAsset;
1075
+ color?: string;
1076
+ resourceLinks?: Array<ResourceLink>;
1077
+ tags?: Array<string>;
1078
+ /**
1079
+ * A wallet or contract address in mixed-case checksum encoding.
1080
+ */
1081
+ address: string;
1082
+ deploymentDetails: ContractDeploymentDetails;
1083
+ ercType: Erc1155Contract.ercType;
1084
+ /**
1085
+ * The contract symbol.
1086
+ */
1087
+ symbol?: string;
1088
+ pricingProviders?: PricingProviders;
1089
+ };
1090
+ declare namespace Erc1155Contract {
1091
+ enum ercType {
1092
+ ERC_1155 = "ERC-1155"
1093
+ }
1094
+ }
1095
+
1096
+ type Erc20Contract = {
1097
+ /**
1098
+ * The contract name.
1099
+ */
1100
+ name?: string;
1101
+ description?: string;
1102
+ officialSite?: string;
1103
+ email?: string;
1104
+ logoAsset?: ImageAsset;
1105
+ bannerAsset?: ImageAsset;
1106
+ color?: string;
1107
+ resourceLinks?: Array<ResourceLink>;
1108
+ tags?: Array<string>;
1109
+ /**
1110
+ * A wallet or contract address in mixed-case checksum encoding.
1111
+ */
1112
+ address: string;
1113
+ deploymentDetails: ContractDeploymentDetails;
1114
+ ercType: Erc20Contract.ercType;
1115
+ /**
1116
+ * The contract symbol.
1117
+ */
1118
+ symbol?: string;
1119
+ /**
1120
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1121
+ */
1122
+ decimals: number;
1123
+ pricingProviders?: PricingProviders;
1124
+ };
1125
+ declare namespace Erc20Contract {
1126
+ enum ercType {
1127
+ ERC_20 = "ERC-20"
1128
+ }
1129
+ }
1130
+
1131
+ type Erc721Contract = {
1132
+ /**
1133
+ * The contract name.
1134
+ */
1135
+ name?: string;
1136
+ description?: string;
1137
+ officialSite?: string;
1138
+ email?: string;
1139
+ logoAsset?: ImageAsset;
1140
+ bannerAsset?: ImageAsset;
1141
+ color?: string;
1142
+ resourceLinks?: Array<ResourceLink>;
1143
+ tags?: Array<string>;
1144
+ /**
1145
+ * A wallet or contract address in mixed-case checksum encoding.
1146
+ */
1147
+ address: string;
1148
+ deploymentDetails: ContractDeploymentDetails;
1149
+ ercType: Erc721Contract.ercType;
1150
+ /**
1151
+ * The contract symbol.
1152
+ */
1153
+ symbol?: string;
1154
+ };
1155
+ declare namespace Erc721Contract {
1156
+ enum ercType {
1157
+ ERC_721 = "ERC-721"
1158
+ }
1159
+ }
1160
+
1161
+ type UnknownContract = {
1162
+ /**
1163
+ * The contract name.
1164
+ */
1165
+ name?: string;
1166
+ description?: string;
1167
+ officialSite?: string;
1168
+ email?: string;
1169
+ logoAsset?: ImageAsset;
1170
+ bannerAsset?: ImageAsset;
1171
+ color?: string;
1172
+ resourceLinks?: Array<ResourceLink>;
1173
+ tags?: Array<string>;
1174
+ /**
1175
+ * A wallet or contract address in mixed-case checksum encoding.
1176
+ */
1177
+ address: string;
1178
+ deploymentDetails: ContractDeploymentDetails;
1179
+ ercType: UnknownContract.ercType;
1180
+ };
1181
+ declare namespace UnknownContract {
1182
+ enum ercType {
1183
+ UNKNOWN = "UNKNOWN"
1184
+ }
1185
+ }
1186
+
1187
+ type UpdateContractResponse = {
1188
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1189
+ };
1190
+
1191
+ declare class EvmContractsService {
1192
+ readonly httpRequest: BaseHttpRequest;
1193
+ constructor(httpRequest: BaseHttpRequest);
1194
+ /**
1195
+ * Get contract metadata
1196
+ * Gets metadata about the contract at the given address.
1197
+ * @returns any
1198
+ * @throws ApiError
1199
+ */
1200
+ getContractMetadata({ chainId, address, }: {
1201
+ /**
1202
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1203
+ */
1204
+ chainId: string;
1205
+ /**
1206
+ * Contract address on the relevant chain.
1207
+ */
1208
+ address: string;
1209
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1210
+ /**
1211
+ * Update contract information
1212
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1213
+ * @returns UpdateContractResponse
1214
+ * @throws ApiError
1215
+ */
1216
+ updateContractInfo({ chainId, address, requestBody, }: {
1217
+ /**
1218
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1219
+ */
1220
+ chainId: string;
1221
+ /**
1222
+ * Contract address on the relevant chain.
1223
+ */
1224
+ address: string;
1225
+ requestBody: ContractSubmissionBody;
1226
+ }): CancelablePromise<UpdateContractResponse>;
1227
+ }
1228
+
1229
+ type Erc1155Token = {
1230
+ /**
1231
+ * A wallet or contract address in mixed-case checksum encoding.
1232
+ */
1233
+ address: string;
1234
+ ercType: Erc1155Token.ercType;
1235
+ tokenId: string;
1236
+ tokenUri: string;
1237
+ metadata: Erc1155TokenMetadata;
1238
+ };
1239
+ declare namespace Erc1155Token {
1240
+ enum ercType {
1241
+ ERC_1155 = "ERC-1155"
1242
+ }
1243
+ }
1244
+
1245
+ type RichAddress = {
1246
+ /**
1247
+ * The contract name.
1248
+ */
1249
+ name?: string;
1250
+ /**
1251
+ * The contract symbol.
1252
+ */
1253
+ symbol?: string;
1254
+ /**
1255
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1256
+ */
1257
+ decimals?: number;
1258
+ /**
1259
+ * The logo uri for the address.
1260
+ */
1261
+ logoUri?: string;
1262
+ /**
1263
+ * A wallet or contract address in mixed-case checksum encoding.
1264
+ */
1265
+ address: string;
1266
+ };
1267
+
1268
+ type Erc1155TransferDetails = {
1269
+ from: RichAddress;
1270
+ to: RichAddress;
1271
+ logIndex: number;
1272
+ value: string;
1273
+ erc1155Token: Erc1155Token;
1274
+ };
1275
+
1276
+ type Erc20Token = {
1277
+ /**
1278
+ * A wallet or contract address in mixed-case checksum encoding.
1279
+ */
1280
+ address: string;
1281
+ /**
1282
+ * The contract name.
1283
+ */
1284
+ name: string;
1285
+ /**
1286
+ * The contract symbol.
1287
+ */
1288
+ symbol: string;
1289
+ /**
1290
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1291
+ */
1292
+ decimals: number;
1293
+ /**
1294
+ * The logo uri for the address.
1295
+ */
1296
+ logoUri?: string;
1297
+ ercType: Erc20Token.ercType;
1298
+ /**
1299
+ * The token price, if available.
1300
+ */
1301
+ price?: Money;
1302
+ };
1303
+ declare namespace Erc20Token {
1304
+ enum ercType {
1305
+ ERC_20 = "ERC-20"
1306
+ }
1307
+ }
1308
+
1309
+ type Erc20TransferDetails = {
1310
+ from: RichAddress;
1311
+ to: RichAddress;
1312
+ logIndex: number;
1313
+ value: string;
1314
+ erc20Token: Erc20Token;
1315
+ };
1316
+
1317
+ type Erc721Token = {
833
1318
  /**
834
1319
  * A wallet or contract address in mixed-case checksum encoding.
835
1320
  */
@@ -864,6 +1349,9 @@ type Erc721TransferDetails = {
864
1349
  erc721Token: Erc721Token;
865
1350
  };
866
1351
 
1352
+ /**
1353
+ * 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.
1354
+ */
867
1355
  declare enum TransactionMethodType {
868
1356
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
869
1357
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -871,9 +1359,6 @@ declare enum TransactionMethodType {
871
1359
  }
872
1360
 
873
1361
  type Method = {
874
- /**
875
- * 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.
876
- */
877
1362
  callType: TransactionMethodType;
878
1363
  /**
879
1364
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -986,195 +1471,25 @@ type GetTransactionResponse = {
986
1471
  /**
987
1472
  * The list of ERC-721 transfers.
988
1473
  */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
990
- /**
991
- * The list of ERC-1155 transfers.
992
- */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
994
- /**
995
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
996
- */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1000
- };
1001
-
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1004
- /**
1005
- * The address that initiated the transaction which deployed this contract.
1006
- */
1007
- deployerAddress: string;
1008
- /**
1009
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1010
- */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1015
- assetId?: string;
1016
- /**
1017
- * OUTPUT ONLY
1018
- */
1019
- imageUri?: string;
1020
- };
1021
-
1022
- declare enum ResourceLinkType {
1023
- BLOG = "Blog",
1024
- COIN_GECKO = "CoinGecko",
1025
- COIN_MARKET_CAP = "CoinMarketCap",
1026
- DISCORD = "Discord",
1027
- DOCUMENTATION = "Documentation",
1028
- FACEBOOK = "Facebook",
1029
- GITHUB = "Github",
1030
- INSTAGRAM = "Instagram",
1031
- LINKED_IN = "LinkedIn",
1032
- MEDIUM = "Medium",
1033
- REDDIT = "Reddit",
1034
- SUPPORT = "Support",
1035
- TELEGRAM = "Telegram",
1036
- TIK_TOK = "TikTok",
1037
- TWITTER = "Twitter",
1038
- WEBSITE = "Website",
1039
- WHITEPAPER = "Whitepaper",
1040
- YOUTUBE = "Youtube"
1041
- }
1042
-
1043
- type ResourceLink = {
1044
- type: ResourceLinkType;
1045
- url: string;
1046
- };
1047
-
1048
- type Erc1155Contract = {
1049
- /**
1050
- * The contract name.
1051
- */
1052
- name?: string;
1053
- description?: string;
1054
- officialSite?: string;
1055
- email?: string;
1056
- logoAsset?: ImageAsset;
1057
- bannerAsset?: ImageAsset;
1058
- color?: string;
1059
- coingeckoCoinId?: string;
1060
- resourceLinks?: Array<ResourceLink>;
1061
- tags?: Array<string>;
1062
- /**
1063
- * A wallet or contract address in mixed-case checksum encoding.
1064
- */
1065
- address: string;
1066
- deploymentDetails: ContractDeploymentDetails;
1067
- ercType: Erc1155Contract.ercType;
1068
- /**
1069
- * The contract symbol.
1070
- */
1071
- symbol?: string;
1072
- };
1073
- declare namespace Erc1155Contract {
1074
- enum ercType {
1075
- ERC_1155 = "ERC-1155"
1076
- }
1077
- }
1078
-
1079
- type Erc20Contract = {
1080
- /**
1081
- * The contract name.
1082
- */
1083
- name?: string;
1084
- description?: string;
1085
- officialSite?: string;
1086
- email?: string;
1087
- logoAsset?: ImageAsset;
1088
- bannerAsset?: ImageAsset;
1089
- color?: string;
1090
- coingeckoCoinId?: string;
1091
- resourceLinks?: Array<ResourceLink>;
1092
- tags?: Array<string>;
1093
- /**
1094
- * A wallet or contract address in mixed-case checksum encoding.
1095
- */
1096
- address: string;
1097
- deploymentDetails: ContractDeploymentDetails;
1098
- ercType: Erc20Contract.ercType;
1099
- /**
1100
- * The contract symbol.
1101
- */
1102
- symbol?: string;
1103
- /**
1104
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1105
- */
1106
- decimals: number;
1107
- };
1108
- declare namespace Erc20Contract {
1109
- enum ercType {
1110
- ERC_20 = "ERC-20"
1111
- }
1112
- }
1113
-
1114
- type Erc721Contract = {
1115
- /**
1116
- * The contract name.
1117
- */
1118
- name?: string;
1119
- description?: string;
1120
- officialSite?: string;
1121
- email?: string;
1122
- logoAsset?: ImageAsset;
1123
- bannerAsset?: ImageAsset;
1124
- color?: string;
1125
- coingeckoCoinId?: string;
1126
- resourceLinks?: Array<ResourceLink>;
1127
- tags?: Array<string>;
1128
- /**
1129
- * A wallet or contract address in mixed-case checksum encoding.
1130
- */
1131
- address: string;
1132
- deploymentDetails: ContractDeploymentDetails;
1133
- ercType: Erc721Contract.ercType;
1134
- /**
1135
- * The contract symbol.
1136
- */
1137
- symbol?: string;
1138
- };
1139
- declare namespace Erc721Contract {
1140
- enum ercType {
1141
- ERC_721 = "ERC-721"
1142
- }
1143
- }
1144
-
1145
- type UnknownContract = {
1146
- /**
1147
- * The contract name.
1148
- */
1149
- name?: string;
1150
- description?: string;
1151
- officialSite?: string;
1152
- email?: string;
1153
- logoAsset?: ImageAsset;
1154
- bannerAsset?: ImageAsset;
1155
- color?: string;
1156
- coingeckoCoinId?: string;
1157
- resourceLinks?: Array<ResourceLink>;
1158
- tags?: Array<string>;
1474
+ erc721Transfers?: Array<Erc721TransferDetails>;
1159
1475
  /**
1160
- * A wallet or contract address in mixed-case checksum encoding.
1476
+ * The list of ERC-1155 transfers.
1161
1477
  */
1162
- address: string;
1163
- deploymentDetails: ContractDeploymentDetails;
1164
- ercType: UnknownContract.ercType;
1478
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1479
+ /**
1480
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1481
+ */
1482
+ internalTransactions?: Array<InternalTransactionDetails>;
1483
+ networkTokenDetails: NetworkTokenDetails;
1484
+ nativeTransaction: FullNativeTransactionDetails;
1165
1485
  };
1166
- declare namespace UnknownContract {
1167
- enum ercType {
1168
- UNKNOWN = "UNKNOWN"
1169
- }
1170
- }
1171
1486
 
1172
1487
  type ListContractsResponse = {
1173
1488
  /**
1174
1489
  * 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.
1175
1490
  */
1176
1491
  nextPageToken?: string;
1177
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1492
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1178
1493
  };
1179
1494
 
1180
1495
  type Erc1155Transfer = {
@@ -1404,7 +1719,7 @@ type ListTransfersResponse = {
1404
1719
  * 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.
1405
1720
  */
1406
1721
  nextPageToken?: string;
1407
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1722
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1408
1723
  };
1409
1724
 
1410
1725
  declare enum SortOrder {
@@ -1428,7 +1743,7 @@ declare class EvmTransactionsService {
1428
1743
  */
1429
1744
  getDeploymentTransaction({ chainId, address, currency, }: {
1430
1745
  /**
1431
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1746
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1432
1747
  */
1433
1748
  chainId: string;
1434
1749
  /**
@@ -1446,23 +1761,23 @@ declare class EvmTransactionsService {
1446
1761
  * @returns ListContractsResponse
1447
1762
  * @throws ApiError
1448
1763
  */
1449
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1764
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1450
1765
  /**
1451
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1766
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1452
1767
  */
1453
1768
  chainId: string;
1454
1769
  /**
1455
1770
  * A wallet address.
1456
1771
  */
1457
1772
  address: string;
1458
- /**
1459
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1460
- */
1461
- pageSize?: number;
1462
1773
  /**
1463
1774
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1464
1775
  */
1465
1776
  pageToken?: string;
1777
+ /**
1778
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1779
+ */
1780
+ pageSize?: number;
1466
1781
  }): CancelablePromise<ListContractsResponse>;
1467
1782
  /**
1468
1783
  * List ERC transfers
@@ -1470,25 +1785,31 @@ declare class EvmTransactionsService {
1470
1785
  * @returns ListTransfersResponse
1471
1786
  * @throws ApiError
1472
1787
  */
1473
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1788
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1474
1789
  /**
1475
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1790
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1476
1791
  */
1477
1792
  chainId: string;
1478
1793
  /**
1479
1794
  * A wallet address.
1480
1795
  */
1481
1796
  address: string;
1797
+ /**
1798
+ * 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.
1799
+ */
1482
1800
  startBlock?: number;
1483
- endBlock?: number;
1484
1801
  /**
1485
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1802
+ * 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.
1486
1803
  */
1487
- pageSize?: number;
1804
+ endBlock?: number;
1488
1805
  /**
1489
1806
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1490
1807
  */
1491
1808
  pageToken?: string;
1809
+ /**
1810
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1811
+ */
1812
+ pageSize?: number;
1492
1813
  }): CancelablePromise<ListTransfersResponse>;
1493
1814
  /**
1494
1815
  * List transactions
@@ -1498,24 +1819,30 @@ declare class EvmTransactionsService {
1498
1819
  * @returns ListTransactionDetailsResponse
1499
1820
  * @throws ApiError
1500
1821
  */
1501
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1822
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1502
1823
  /**
1503
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1824
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1504
1825
  */
1505
1826
  chainId: string;
1506
1827
  /**
1507
1828
  * A wallet address.
1508
1829
  */
1509
1830
  address: string;
1831
+ /**
1832
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1833
+ */
1834
+ pageToken?: string;
1510
1835
  /**
1511
1836
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1512
1837
  */
1513
1838
  pageSize?: number;
1514
1839
  /**
1515
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1840
+ * 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.
1516
1841
  */
1517
- pageToken?: string;
1518
1842
  startBlock?: number;
1843
+ /**
1844
+ * 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.
1845
+ */
1519
1846
  endBlock?: number;
1520
1847
  /**
1521
1848
  * 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.
@@ -1528,25 +1855,31 @@ declare class EvmTransactionsService {
1528
1855
  * @returns ListNativeTransactionsResponse
1529
1856
  * @throws ApiError
1530
1857
  */
1531
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1858
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1532
1859
  /**
1533
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1860
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1534
1861
  */
1535
1862
  chainId: string;
1536
1863
  /**
1537
1864
  * A wallet address.
1538
1865
  */
1539
1866
  address: string;
1867
+ /**
1868
+ * 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.
1869
+ */
1540
1870
  startBlock?: number;
1541
- endBlock?: number;
1542
1871
  /**
1543
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1872
+ * 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.
1544
1873
  */
1545
- pageSize?: number;
1874
+ endBlock?: number;
1546
1875
  /**
1547
1876
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1548
1877
  */
1549
1878
  pageToken?: string;
1879
+ /**
1880
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1881
+ */
1882
+ pageSize?: number;
1550
1883
  }): CancelablePromise<ListNativeTransactionsResponse>;
1551
1884
  /**
1552
1885
  * List ERC-20 transfers
@@ -1554,25 +1887,31 @@ declare class EvmTransactionsService {
1554
1887
  * @returns ListErc20TransactionsResponse
1555
1888
  * @throws ApiError
1556
1889
  */
1557
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1890
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1558
1891
  /**
1559
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1892
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1560
1893
  */
1561
1894
  chainId: string;
1562
1895
  /**
1563
1896
  * A wallet address.
1564
1897
  */
1565
1898
  address: string;
1899
+ /**
1900
+ * 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.
1901
+ */
1566
1902
  startBlock?: number;
1567
- endBlock?: number;
1568
1903
  /**
1569
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1904
+ * 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.
1570
1905
  */
1571
- pageSize?: number;
1906
+ endBlock?: number;
1572
1907
  /**
1573
1908
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1574
1909
  */
1575
1910
  pageToken?: string;
1911
+ /**
1912
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1913
+ */
1914
+ pageSize?: number;
1576
1915
  }): CancelablePromise<ListErc20TransactionsResponse>;
1577
1916
  /**
1578
1917
  * List ERC-721 transfers
@@ -1580,25 +1919,31 @@ declare class EvmTransactionsService {
1580
1919
  * @returns ListErc721TransactionsResponse
1581
1920
  * @throws ApiError
1582
1921
  */
1583
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1922
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1584
1923
  /**
1585
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1924
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1586
1925
  */
1587
1926
  chainId: string;
1588
1927
  /**
1589
1928
  * A wallet address.
1590
1929
  */
1591
1930
  address: string;
1931
+ /**
1932
+ * 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.
1933
+ */
1592
1934
  startBlock?: number;
1593
- endBlock?: number;
1594
1935
  /**
1595
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1936
+ * 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.
1596
1937
  */
1597
- pageSize?: number;
1938
+ endBlock?: number;
1598
1939
  /**
1599
1940
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1600
1941
  */
1601
1942
  pageToken?: string;
1943
+ /**
1944
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1945
+ */
1946
+ pageSize?: number;
1602
1947
  }): CancelablePromise<ListErc721TransactionsResponse>;
1603
1948
  /**
1604
1949
  * List ERC-1155 transfers
@@ -1606,25 +1951,31 @@ declare class EvmTransactionsService {
1606
1951
  * @returns ListErc1155TransactionsResponse
1607
1952
  * @throws ApiError
1608
1953
  */
1609
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1954
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1610
1955
  /**
1611
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1956
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
1957
  */
1613
1958
  chainId: string;
1614
1959
  /**
1615
1960
  * A wallet address.
1616
1961
  */
1617
1962
  address: string;
1963
+ /**
1964
+ * 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.
1965
+ */
1618
1966
  startBlock?: number;
1619
- endBlock?: number;
1620
1967
  /**
1621
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1968
+ * 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.
1622
1969
  */
1623
- pageSize?: number;
1970
+ endBlock?: number;
1624
1971
  /**
1625
1972
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1626
1973
  */
1627
1974
  pageToken?: string;
1975
+ /**
1976
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1977
+ */
1978
+ pageSize?: number;
1628
1979
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1629
1980
  /**
1630
1981
  * List internal transactions
@@ -1634,25 +1985,31 @@ declare class EvmTransactionsService {
1634
1985
  * @returns ListInternalTransactionsResponse
1635
1986
  * @throws ApiError
1636
1987
  */
1637
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1988
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1638
1989
  /**
1639
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1990
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1640
1991
  */
1641
1992
  chainId: string;
1642
1993
  /**
1643
1994
  * A wallet address.
1644
1995
  */
1645
1996
  address: string;
1997
+ /**
1998
+ * 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.
1999
+ */
1646
2000
  startBlock?: number;
1647
- endBlock?: number;
1648
2001
  /**
1649
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2002
+ * 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.
1650
2003
  */
1651
- pageSize?: number;
2004
+ endBlock?: number;
1652
2005
  /**
1653
2006
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1654
2007
  */
1655
2008
  pageToken?: string;
2009
+ /**
2010
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2011
+ */
2012
+ pageSize?: number;
1656
2013
  }): CancelablePromise<ListInternalTransactionsResponse>;
1657
2014
  /**
1658
2015
  * Get transaction
@@ -1662,7 +2019,7 @@ declare class EvmTransactionsService {
1662
2019
  */
1663
2020
  getTransaction({ chainId, txHash, }: {
1664
2021
  /**
1665
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2022
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1666
2023
  */
1667
2024
  chainId: string;
1668
2025
  /**
@@ -1678,7 +2035,7 @@ declare class EvmTransactionsService {
1678
2035
  */
1679
2036
  getTransactionsForBlock({ chainId, blockId, }: {
1680
2037
  /**
1681
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2038
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1682
2039
  */
1683
2040
  chainId: string;
1684
2041
  /**
@@ -1692,19 +2049,19 @@ declare class EvmTransactionsService {
1692
2049
  * @returns ListNativeTransactionsResponse
1693
2050
  * @throws ApiError
1694
2051
  */
1695
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2052
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1696
2053
  /**
1697
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2054
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1698
2055
  */
1699
2056
  chainId: string;
1700
- /**
1701
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1702
- */
1703
- pageSize?: number;
1704
2057
  /**
1705
2058
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1706
2059
  */
1707
2060
  pageToken?: string;
2061
+ /**
2062
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2063
+ */
2064
+ pageSize?: number;
1708
2065
  /**
1709
2066
  * A status filter for listed transactions.
1710
2067
  */
@@ -1728,13 +2085,94 @@ declare class HealthCheckService {
1728
2085
  }>;
1729
2086
  }
1730
2087
 
2088
+ type ListNftTokens = {
2089
+ /**
2090
+ * 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.
2091
+ */
2092
+ nextPageToken?: string;
2093
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2094
+ };
2095
+
2096
+ declare class NfTsService {
2097
+ readonly httpRequest: BaseHttpRequest;
2098
+ constructor(httpRequest: BaseHttpRequest);
2099
+ /**
2100
+ * Reindex NFT metadata
2101
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2102
+ * @returns any
2103
+ * @throws ApiError
2104
+ */
2105
+ reindexNft({ chainId, address, tokenId, }: {
2106
+ /**
2107
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2108
+ */
2109
+ chainId: string;
2110
+ /**
2111
+ * Contract address on the relevant chain.
2112
+ */
2113
+ address: string;
2114
+ /**
2115
+ * TokenId on the contract
2116
+ */
2117
+ tokenId: string;
2118
+ }): CancelablePromise<any>;
2119
+ /**
2120
+ * List tokens
2121
+ * Lists tokens for an NFT contract.
2122
+ * @returns ListNftTokens
2123
+ * @throws ApiError
2124
+ */
2125
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2126
+ /**
2127
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2128
+ */
2129
+ chainId: string;
2130
+ /**
2131
+ * Contract address on the relevant chain.
2132
+ */
2133
+ address: string;
2134
+ /**
2135
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2136
+ */
2137
+ pageToken?: string;
2138
+ /**
2139
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2140
+ */
2141
+ pageSize?: number;
2142
+ }): CancelablePromise<ListNftTokens>;
2143
+ /**
2144
+ * Get token details
2145
+ * Gets token details for a specific token of an NFT contract.
2146
+ * @returns any
2147
+ * @throws ApiError
2148
+ */
2149
+ getTokenDetails({ chainId, address, tokenId, }: {
2150
+ /**
2151
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2152
+ */
2153
+ chainId: string;
2154
+ /**
2155
+ * Contract address on the relevant chain.
2156
+ */
2157
+ address: string;
2158
+ /**
2159
+ * TokenId on the contract
2160
+ */
2161
+ tokenId: string;
2162
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2163
+ }
2164
+
1731
2165
  type EvmNetworkOptions = {
1732
2166
  addresses: Array<string>;
1733
2167
  includeChains: Array<string>;
1734
2168
  };
1735
2169
 
2170
+ declare enum EVMOperationType {
2171
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2172
+ }
2173
+
1736
2174
  type CreateEvmTransactionExportRequest = {
1737
- type: CreateEvmTransactionExportRequest.type;
2175
+ type: EVMOperationType;
1738
2176
  firstDate: string;
1739
2177
  lastDate: string;
1740
2178
  /**
@@ -1747,10 +2185,11 @@ type CreateEvmTransactionExportRequest = {
1747
2185
  endDate: string;
1748
2186
  options: EvmNetworkOptions;
1749
2187
  };
1750
- declare namespace CreateEvmTransactionExportRequest {
1751
- enum type {
1752
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1753
- }
2188
+
2189
+ declare enum PrimaryNetworkOperationType {
2190
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2191
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2192
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
1754
2193
  }
1755
2194
 
1756
2195
  type PrimaryNetworkOptions = {
@@ -1760,7 +2199,7 @@ type PrimaryNetworkOptions = {
1760
2199
  };
1761
2200
 
1762
2201
  type CreatePrimaryNetworkTransactionExportRequest = {
1763
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2202
+ type: PrimaryNetworkOperationType;
1764
2203
  firstDate: string;
1765
2204
  lastDate: string;
1766
2205
  /**
@@ -1773,11 +2212,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1773
2212
  endDate: string;
1774
2213
  options: PrimaryNetworkOptions;
1775
2214
  };
1776
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1777
- enum type {
1778
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1779
- }
1780
- }
1781
2215
 
1782
2216
  declare enum OperationStatus {
1783
2217
  RUNNING = "RUNNING",
@@ -1787,8 +2221,10 @@ declare enum OperationStatus {
1787
2221
  }
1788
2222
 
1789
2223
  declare enum OperationType {
1790
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1791
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2224
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2225
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2226
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2227
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1792
2228
  }
1793
2229
 
1794
2230
  declare enum OperationStatusCode {
@@ -1822,17 +2258,6 @@ type OperationStatusResponse = {
1822
2258
  declare class OperationsService {
1823
2259
  readonly httpRequest: BaseHttpRequest;
1824
2260
  constructor(httpRequest: BaseHttpRequest);
1825
- /**
1826
- * Create transaction export operation
1827
- * Trigger a transaction export operation with given parameters.
1828
- *
1829
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
1830
- * @returns OperationStatusResponse
1831
- * @throws ApiError
1832
- */
1833
- postTransactionExportJob({ requestBody, }: {
1834
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1835
- }): CancelablePromise<OperationStatusResponse>;
1836
2261
  /**
1837
2262
  * Get operation
1838
2263
  * Gets operation details for the given operation id.
@@ -1845,6 +2270,17 @@ declare class OperationsService {
1845
2270
  */
1846
2271
  operationId: string;
1847
2272
  }): CancelablePromise<OperationStatusResponse>;
2273
+ /**
2274
+ * Create transaction export operation
2275
+ * Trigger a transaction export operation with given parameters.
2276
+ *
2277
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2278
+ * @returns OperationStatusResponse
2279
+ * @throws ApiError
2280
+ */
2281
+ postTransactionExportJob({ requestBody, }: {
2282
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2283
+ }): CancelablePromise<OperationStatusResponse>;
1848
2284
  }
1849
2285
 
1850
2286
  declare enum BlockchainIds {
@@ -1913,39 +2349,57 @@ type ListBlockchainsResponse = {
1913
2349
 
1914
2350
  type ActiveDelegatorDetails = {
1915
2351
  txHash: string;
2352
+ nodeId: string;
1916
2353
  rewardAddresses: Array<string>;
1917
2354
  amountDelegated: string;
1918
2355
  delegationFee: string;
1919
2356
  startTimestamp: number;
1920
2357
  endTimestamp: number;
1921
- delegationStatus: DelegationStatusType;
1922
2358
  estimatedGrossReward: string;
1923
2359
  estimatedNetReward: string;
2360
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1924
2361
  };
2362
+ declare namespace ActiveDelegatorDetails {
2363
+ enum delegationStatus {
2364
+ ACTIVE = "active"
2365
+ }
2366
+ }
1925
2367
 
1926
2368
  type CompletedDelegatorDetails = {
1927
2369
  txHash: string;
2370
+ nodeId: string;
1928
2371
  rewardAddresses: Array<string>;
1929
2372
  amountDelegated: string;
1930
2373
  delegationFee: string;
1931
2374
  startTimestamp: number;
1932
2375
  endTimestamp: number;
1933
- delegationStatus: DelegationStatusType;
1934
2376
  grossReward: string;
1935
2377
  netReward: string;
2378
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1936
2379
  };
2380
+ declare namespace CompletedDelegatorDetails {
2381
+ enum delegationStatus {
2382
+ COMPLETED = "completed"
2383
+ }
2384
+ }
1937
2385
 
1938
2386
  type PendingDelegatorDetails = {
1939
2387
  txHash: string;
2388
+ nodeId: string;
1940
2389
  rewardAddresses: Array<string>;
1941
2390
  amountDelegated: string;
1942
2391
  delegationFee: string;
1943
2392
  startTimestamp: number;
1944
2393
  endTimestamp: number;
1945
- delegationStatus: DelegationStatusType;
1946
2394
  estimatedGrossReward: string;
1947
2395
  estimatedNetReward: string;
2396
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1948
2397
  };
2398
+ declare namespace PendingDelegatorDetails {
2399
+ enum delegationStatus {
2400
+ PENDING = "pending"
2401
+ }
2402
+ }
1949
2403
 
1950
2404
  type ListDelegatorDetailsResponse = {
1951
2405
  /**
@@ -1962,13 +2416,44 @@ type BlockchainInfo = {
1962
2416
  blockchainId: string;
1963
2417
  };
1964
2418
 
2419
+ type SubnetOwnershipInfo = {
2420
+ /**
2421
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2422
+ */
2423
+ locktime: number;
2424
+ /**
2425
+ * Minimum number of signatures required to sign the Subnet update transactions.
2426
+ */
2427
+ threshold: number;
2428
+ /**
2429
+ * Addresses that are eligible to sign the Subnet update transactions.
2430
+ */
2431
+ addresses: Array<string>;
2432
+ };
2433
+
1965
2434
  type Subnet = {
1966
2435
  createBlockTimestamp: number;
1967
2436
  createBlockIndex: string;
1968
2437
  subnetId: string;
2438
+ /**
2439
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2440
+ * @deprecated
2441
+ */
1969
2442
  ownerAddresses: Array<string>;
2443
+ /**
2444
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2445
+ * @deprecated
2446
+ */
1970
2447
  threshold: number;
2448
+ /**
2449
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2450
+ * @deprecated
2451
+ */
1971
2452
  locktime: number;
2453
+ /**
2454
+ * Latest subnet owner details for this Subnet.
2455
+ */
2456
+ subnetOwnershipInfo: SubnetOwnershipInfo;
1972
2457
  blockchains: Array<BlockchainInfo>;
1973
2458
  };
1974
2459
 
@@ -1983,49 +2468,104 @@ type ListSubnetsResponse = {
1983
2468
  type Rewards = {
1984
2469
  validationRewardAmount: string;
1985
2470
  delegationRewardAmount: string;
2471
+ rewardAddresses?: Array<string>;
2472
+ rewardTxHash?: string;
1986
2473
  };
1987
2474
 
1988
- declare enum ValidationStatusType {
1989
- COMPLETED = "completed",
1990
- ACTIVE = "active",
1991
- PENDING = "pending"
1992
- }
2475
+ type ValidatorHealthDetails = {
2476
+ /**
2477
+ * Percent of requests responded to in last polling.
2478
+ */
2479
+ reachabilityPercent: number;
2480
+ /**
2481
+ * Percent of requests benched on the P-Chain in last polling.
2482
+ */
2483
+ benchedPChainRequestsPercent: number;
2484
+ /**
2485
+ * Percentage of requests benched on the X-Chain in last polling.
2486
+ */
2487
+ benchedXChainRequestsPercent: number;
2488
+ /**
2489
+ * Percentage of requests benched on the C-Chain in last polling.
2490
+ */
2491
+ benchedCChainRequestsPercent: number;
2492
+ };
1993
2493
 
1994
2494
  type ActiveValidatorDetails = {
2495
+ txHash: string;
1995
2496
  nodeId: string;
2497
+ subnetId: string;
1996
2498
  amountStaked: string;
1997
- delegationFee: string;
2499
+ delegationFee?: string;
1998
2500
  startTimestamp: number;
1999
2501
  endTimestamp: number;
2000
- validationStatus: ValidationStatusType;
2001
2502
  stakePercentage: number;
2002
2503
  delegatorCount: number;
2003
- amountDelegated: string;
2504
+ amountDelegated?: string;
2004
2505
  uptimePerformance: number;
2005
- avalancheGoVersion: string;
2006
- delegationCapacity: string;
2506
+ avalancheGoVersion?: string;
2507
+ delegationCapacity?: string;
2007
2508
  potentialRewards: Rewards;
2509
+ validationStatus: ActiveValidatorDetails.validationStatus;
2510
+ validatorHealth: ValidatorHealthDetails;
2008
2511
  };
2512
+ declare namespace ActiveValidatorDetails {
2513
+ enum validationStatus {
2514
+ ACTIVE = "active"
2515
+ }
2516
+ }
2009
2517
 
2010
2518
  type CompletedValidatorDetails = {
2519
+ txHash: string;
2011
2520
  nodeId: string;
2521
+ subnetId: string;
2012
2522
  amountStaked: string;
2013
- delegationFee: string;
2523
+ delegationFee?: string;
2014
2524
  startTimestamp: number;
2015
2525
  endTimestamp: number;
2016
- validationStatus: ValidationStatusType;
2017
2526
  delegatorCount: number;
2018
2527
  rewards: Rewards;
2528
+ validationStatus: CompletedValidatorDetails.validationStatus;
2019
2529
  };
2530
+ declare namespace CompletedValidatorDetails {
2531
+ enum validationStatus {
2532
+ COMPLETED = "completed"
2533
+ }
2534
+ }
2020
2535
 
2021
2536
  type PendingValidatorDetails = {
2537
+ txHash: string;
2022
2538
  nodeId: string;
2539
+ subnetId: string;
2023
2540
  amountStaked: string;
2024
- delegationFee: string;
2541
+ delegationFee?: string;
2542
+ startTimestamp: number;
2543
+ endTimestamp: number;
2544
+ validationStatus: PendingValidatorDetails.validationStatus;
2545
+ };
2546
+ declare namespace PendingValidatorDetails {
2547
+ enum validationStatus {
2548
+ PENDING = "pending"
2549
+ }
2550
+ }
2551
+
2552
+ type RemovedValidatorDetails = {
2553
+ txHash: string;
2554
+ nodeId: string;
2555
+ subnetId: string;
2556
+ amountStaked: string;
2557
+ delegationFee?: string;
2025
2558
  startTimestamp: number;
2026
2559
  endTimestamp: number;
2027
- validationStatus: ValidationStatusType;
2560
+ removeTxHash: string;
2561
+ removeTimestamp: number;
2562
+ validationStatus: RemovedValidatorDetails.validationStatus;
2028
2563
  };
2564
+ declare namespace RemovedValidatorDetails {
2565
+ enum validationStatus {
2566
+ REMOVED = "removed"
2567
+ }
2568
+ }
2029
2569
 
2030
2570
  type ListValidatorDetailsResponse = {
2031
2571
  /**
@@ -2033,9 +2573,9 @@ type ListValidatorDetailsResponse = {
2033
2573
  */
2034
2574
  nextPageToken?: string;
2035
2575
  /**
2036
- * The list of Validator Details.
2576
+ * The list of validator Details.
2037
2577
  */
2038
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2578
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2039
2579
  };
2040
2580
 
2041
2581
  declare enum Network {
@@ -2043,6 +2583,29 @@ declare enum Network {
2043
2583
  FUJI = "fuji"
2044
2584
  }
2045
2585
 
2586
+ declare enum ValidationStatusType {
2587
+ COMPLETED = "completed",
2588
+ ACTIVE = "active",
2589
+ PENDING = "pending",
2590
+ REMOVED = "removed"
2591
+ }
2592
+
2593
+ /**
2594
+ * Cap represents if an asset is a variable or fixed cap asset.
2595
+ */
2596
+ declare enum PrimaryNetworkAssetCap {
2597
+ FIXED = "fixed",
2598
+ VARIABLE = "variable"
2599
+ }
2600
+
2601
+ /**
2602
+ * Type of asset like SECP256K1 or NFT.
2603
+ */
2604
+ declare enum PrimaryNetworkAssetType {
2605
+ SECP256K1 = "secp256k1",
2606
+ NFT = "nft"
2607
+ }
2608
+
2046
2609
  type XChainAssetDetails = {
2047
2610
  /**
2048
2611
  * Unique ID for an asset.
@@ -2060,18 +2623,12 @@ type XChainAssetDetails = {
2060
2623
  * Denomination of this asset to represent fungibility.
2061
2624
  */
2062
2625
  denomination: number;
2063
- /**
2064
- * Type of asset like SECP256K1 or NFT.
2065
- */
2066
- type: string;
2626
+ type: PrimaryNetworkAssetType;
2067
2627
  /**
2068
2628
  * Timestamp in seconds this asset was created on.
2069
2629
  */
2070
2630
  createdAtTimestamp: number;
2071
- /**
2072
- * Cap represents if an asset can be or is fixed cap.
2073
- */
2074
- cap: string;
2631
+ cap: PrimaryNetworkAssetCap;
2075
2632
  };
2076
2633
 
2077
2634
  declare enum XChainId {
@@ -2137,19 +2694,19 @@ declare class PrimaryNetworkService {
2137
2694
  * @returns ListBlockchainsResponse
2138
2695
  * @throws ApiError
2139
2696
  */
2140
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2697
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2141
2698
  /**
2142
2699
  * Either mainnet or a testnet.
2143
2700
  */
2144
2701
  network: Network;
2145
- /**
2146
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2147
- */
2148
- pageSize?: number;
2149
2702
  /**
2150
2703
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2151
2704
  */
2152
2705
  pageToken?: string;
2706
+ /**
2707
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2708
+ */
2709
+ pageSize?: number;
2153
2710
  /**
2154
2711
  * 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.
2155
2712
  */
@@ -2161,19 +2718,19 @@ declare class PrimaryNetworkService {
2161
2718
  * @returns ListSubnetsResponse
2162
2719
  * @throws ApiError
2163
2720
  */
2164
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2721
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2165
2722
  /**
2166
2723
  * Either mainnet or a testnet.
2167
2724
  */
2168
2725
  network: Network;
2169
- /**
2170
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2171
- */
2172
- pageSize?: number;
2173
2726
  /**
2174
2727
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2175
2728
  */
2176
2729
  pageToken?: string;
2730
+ /**
2731
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2732
+ */
2733
+ pageSize?: number;
2177
2734
  /**
2178
2735
  * 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.
2179
2736
  */
@@ -2185,19 +2742,19 @@ declare class PrimaryNetworkService {
2185
2742
  * @returns ListValidatorDetailsResponse
2186
2743
  * @throws ApiError
2187
2744
  */
2188
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2745
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2189
2746
  /**
2190
2747
  * Either mainnet or a testnet.
2191
2748
  */
2192
2749
  network: Network;
2193
- /**
2194
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2195
- */
2196
- pageSize?: number;
2197
2750
  /**
2198
2751
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2199
2752
  */
2200
2753
  pageToken?: string;
2754
+ /**
2755
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2756
+ */
2757
+ pageSize?: number;
2201
2758
  /**
2202
2759
  * A comma separated list of node ids to filter by.
2203
2760
  */
@@ -2211,9 +2768,33 @@ declare class PrimaryNetworkService {
2211
2768
  */
2212
2769
  validationStatus?: ValidationStatusType;
2213
2770
  /**
2214
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2771
+ * 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
2772
+ */
2773
+ minDelegationCapacity?: string;
2774
+ /**
2775
+ * 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.
2776
+ */
2777
+ maxDelegationCapacity?: string;
2778
+ /**
2779
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2780
+ */
2781
+ minTimeRemaining?: number;
2782
+ /**
2783
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2784
+ */
2785
+ maxTimeRemaining?: number;
2786
+ /**
2787
+ * 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.
2788
+ */
2789
+ minFeePercentage?: number;
2790
+ /**
2791
+ * 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.
2792
+ */
2793
+ maxFeePercentage?: number;
2794
+ /**
2795
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2215
2796
  */
2216
- minDelegationCapacity?: any;
2797
+ subnetId?: string;
2217
2798
  }): CancelablePromise<ListValidatorDetailsResponse>;
2218
2799
  /**
2219
2800
  * Get single validator details
@@ -2221,7 +2802,7 @@ declare class PrimaryNetworkService {
2221
2802
  * @returns ListValidatorDetailsResponse
2222
2803
  * @throws ApiError
2223
2804
  */
2224
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2805
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2225
2806
  /**
2226
2807
  * Either mainnet or a testnet.
2227
2808
  */
@@ -2230,14 +2811,14 @@ declare class PrimaryNetworkService {
2230
2811
  * A primary network (P or X chain) nodeId.
2231
2812
  */
2232
2813
  nodeId: string;
2233
- /**
2234
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2235
- */
2236
- pageSize?: number;
2237
2814
  /**
2238
2815
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2239
2816
  */
2240
2817
  pageToken?: string;
2818
+ /**
2819
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2820
+ */
2821
+ pageSize?: number;
2241
2822
  /**
2242
2823
  * 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.
2243
2824
  */
@@ -2253,19 +2834,23 @@ declare class PrimaryNetworkService {
2253
2834
  * @returns ListDelegatorDetailsResponse
2254
2835
  * @throws ApiError
2255
2836
  */
2256
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2837
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2257
2838
  /**
2258
2839
  * Either mainnet or a testnet.
2259
2840
  */
2260
2841
  network: Network;
2842
+ /**
2843
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2844
+ */
2845
+ pageToken?: string;
2261
2846
  /**
2262
2847
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2263
2848
  */
2264
2849
  pageSize?: number;
2265
2850
  /**
2266
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2851
+ * A comma separated list of reward addresses to filter by.
2267
2852
  */
2268
- pageToken?: string;
2853
+ rewardAddresses?: string;
2269
2854
  /**
2270
2855
  * 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.
2271
2856
  */
@@ -2274,10 +2859,6 @@ declare class PrimaryNetworkService {
2274
2859
  * Delegation status of the node.
2275
2860
  */
2276
2861
  delegationStatus?: DelegationStatusType;
2277
- /**
2278
- * A comma separated list of reward addresses to filter by.
2279
- */
2280
- rewardAddresses?: string;
2281
2862
  /**
2282
2863
  * A comma separated list of node ids to filter by.
2283
2864
  */
@@ -2313,10 +2894,7 @@ type CChainSharedAssetBalance = {
2313
2894
  * Denomination of this asset to represent fungibility.
2314
2895
  */
2315
2896
  denomination: number;
2316
- /**
2317
- * Type of asset like SECP256K1 or NFT.
2318
- */
2319
- type: string;
2897
+ type: PrimaryNetworkAssetType;
2320
2898
  /**
2321
2899
  * Amount of the asset.
2322
2900
  */
@@ -2351,49 +2929,89 @@ type ListCChainAtomicBalancesResponse = {
2351
2929
  chainInfo: PrimaryNetworkChainInfo;
2352
2930
  };
2353
2931
 
2354
- type PChainAsset = {
2932
+ type AggregatedAssetAmount = {
2933
+ /**
2934
+ * Unique ID for an asset.
2935
+ */
2355
2936
  assetId: string;
2937
+ /**
2938
+ * Name of this asset.
2939
+ */
2940
+ name: string;
2941
+ /**
2942
+ * Symbol for this asset (max 4 characters).
2943
+ */
2944
+ symbol: string;
2945
+ /**
2946
+ * Denomination of this asset to represent fungibility.
2947
+ */
2948
+ denomination: number;
2949
+ type: PrimaryNetworkAssetType;
2950
+ /**
2951
+ * Amount of the asset.
2952
+ */
2356
2953
  amount: string;
2954
+ utxoCount: number;
2357
2955
  };
2358
2956
 
2359
2957
  type PChainSharedAsset = {
2958
+ /**
2959
+ * Unique ID for an asset.
2960
+ */
2360
2961
  assetId: string;
2962
+ /**
2963
+ * Name of this asset.
2964
+ */
2965
+ name: string;
2966
+ /**
2967
+ * Symbol for this asset (max 4 characters).
2968
+ */
2969
+ symbol: string;
2970
+ /**
2971
+ * Denomination of this asset to represent fungibility.
2972
+ */
2973
+ denomination: number;
2974
+ type: PrimaryNetworkAssetType;
2975
+ /**
2976
+ * Amount of the asset.
2977
+ */
2361
2978
  amount: string;
2979
+ utxoCount: number;
2362
2980
  sharedWithChainId: string;
2363
2981
  status: string;
2364
2982
  };
2365
2983
 
2366
2984
  type PChainBalance = {
2367
2985
  /**
2368
- * 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.
2986
+ * 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.
2369
2987
  */
2370
- unlockedUnstaked: Array<PChainAsset>;
2988
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2371
2989
  /**
2372
- * 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.
2990
+ * 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.
2373
2991
  */
2374
- unlockedStaked: Array<PChainAsset>;
2992
+ unlockedStaked: Array<AggregatedAssetAmount>;
2375
2993
  /**
2376
- * 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.
2994
+ * 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.
2377
2995
  */
2378
- lockedPlatform: Array<PChainAsset>;
2996
+ lockedPlatform: Array<AggregatedAssetAmount>;
2379
2997
  /**
2380
- * 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.
2998
+ * 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.
2381
2999
  */
2382
- lockedStakeable: Array<PChainAsset>;
3000
+ lockedStakeable: Array<AggregatedAssetAmount>;
2383
3001
  /**
2384
- * 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.
3002
+ * 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.
2385
3003
  */
2386
- lockedStaked: Array<PChainAsset>;
3004
+ lockedStaked: Array<AggregatedAssetAmount>;
2387
3005
  /**
2388
- * 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.
3006
+ * 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.
2389
3007
  */
2390
- pendingStaked: Array<PChainAsset>;
3008
+ pendingStaked: Array<AggregatedAssetAmount>;
2391
3009
  /**
2392
- * 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.
3010
+ * 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.
2393
3011
  */
2394
3012
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2395
3013
  /**
2396
- * 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.
3014
+ * 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.
2397
3015
  */
2398
3016
  atomicMemoryLocked: Array<PChainSharedAsset>;
2399
3017
  };
@@ -2403,34 +3021,6 @@ type ListPChainBalancesResponse = {
2403
3021
  chainInfo: PrimaryNetworkChainInfo;
2404
3022
  };
2405
3023
 
2406
- type XChainAssetBalance = {
2407
- /**
2408
- * Unique ID for an asset.
2409
- */
2410
- assetId: string;
2411
- /**
2412
- * Name of this asset.
2413
- */
2414
- name: string;
2415
- /**
2416
- * Symbol for this asset (max 4 characters).
2417
- */
2418
- symbol: string;
2419
- /**
2420
- * Denomination of this asset to represent fungibility.
2421
- */
2422
- denomination: number;
2423
- /**
2424
- * Type of asset like SECP256K1 or NFT.
2425
- */
2426
- type: string;
2427
- /**
2428
- * Amount of the asset.
2429
- */
2430
- amount: string;
2431
- utxoCount: number;
2432
- };
2433
-
2434
3024
  type XChainSharedAssetBalance = {
2435
3025
  /**
2436
3026
  * Unique ID for an asset.
@@ -2448,10 +3038,7 @@ type XChainSharedAssetBalance = {
2448
3038
  * Denomination of this asset to represent fungibility.
2449
3039
  */
2450
3040
  denomination: number;
2451
- /**
2452
- * Type of asset like SECP256K1 or NFT.
2453
- */
2454
- type: string;
3041
+ type: PrimaryNetworkAssetType;
2455
3042
  /**
2456
3043
  * Amount of the asset.
2457
3044
  */
@@ -2464,11 +3051,11 @@ type XChainBalances = {
2464
3051
  /**
2465
3052
  * A list of objects containing X-chain Asset balance information.
2466
3053
  */
2467
- locked: Array<XChainAssetBalance>;
3054
+ locked: Array<AggregatedAssetAmount>;
2468
3055
  /**
2469
3056
  * A list of objects containing X-chain Asset balance information.
2470
3057
  */
2471
- unlocked: Array<XChainAssetBalance>;
3058
+ unlocked: Array<AggregatedAssetAmount>;
2472
3059
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2473
3060
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2474
3061
  };
@@ -2526,6 +3113,7 @@ type GetPrimaryNetworkBlockResponse = {
2526
3113
  txCount: number;
2527
3114
  transactions: Array<string>;
2528
3115
  blockSizeBytes: number;
3116
+ currentSupply?: string;
2529
3117
  proposerDetails?: ProposerDetails;
2530
3118
  };
2531
3119
 
@@ -2538,6 +3126,7 @@ type PrimaryNetworkBlock = {
2538
3126
  txCount: number;
2539
3127
  transactions: Array<string>;
2540
3128
  blockSizeBytes: number;
3129
+ currentSupply?: string;
2541
3130
  proposerDetails?: ProposerDetails;
2542
3131
  };
2543
3132
 
@@ -2579,7 +3168,7 @@ declare class PrimaryNetworkBlocksService {
2579
3168
  * @returns ListPrimaryNetworkBlocksResponse
2580
3169
  * @throws ApiError
2581
3170
  */
2582
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3171
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2583
3172
  /**
2584
3173
  * A primary network blockchain id or alias.
2585
3174
  */
@@ -2592,14 +3181,14 @@ declare class PrimaryNetworkBlocksService {
2592
3181
  * A primary network (P or X chain) nodeId.
2593
3182
  */
2594
3183
  nodeId: string;
2595
- /**
2596
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2597
- */
2598
- pageSize?: number;
2599
3184
  /**
2600
3185
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2601
3186
  */
2602
3187
  pageToken?: string;
3188
+ /**
3189
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3190
+ */
3191
+ pageSize?: number;
2603
3192
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2604
3193
  /**
2605
3194
  * List latest blocks
@@ -2607,7 +3196,7 @@ declare class PrimaryNetworkBlocksService {
2607
3196
  * @returns ListPrimaryNetworkBlocksResponse
2608
3197
  * @throws ApiError
2609
3198
  */
2610
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3199
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2611
3200
  /**
2612
3201
  * A primary network blockchain id or alias.
2613
3202
  */
@@ -2616,20 +3205,49 @@ declare class PrimaryNetworkBlocksService {
2616
3205
  * Either mainnet or a testnet.
2617
3206
  */
2618
3207
  network: Network;
2619
- /**
2620
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2621
- */
2622
- pageSize?: number;
2623
3208
  /**
2624
3209
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2625
3210
  */
2626
3211
  pageToken?: string;
3212
+ /**
3213
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3214
+ */
3215
+ pageSize?: number;
2627
3216
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2628
3217
  }
2629
3218
 
3219
+ type AssetWithPriceInfo = {
3220
+ /**
3221
+ * Unique ID for an asset.
3222
+ */
3223
+ assetId: string;
3224
+ /**
3225
+ * Name of this asset.
3226
+ */
3227
+ name: string;
3228
+ /**
3229
+ * Symbol for this asset (max 4 characters).
3230
+ */
3231
+ symbol: string;
3232
+ /**
3233
+ * Denomination of this asset to represent fungibility.
3234
+ */
3235
+ denomination: number;
3236
+ type: PrimaryNetworkAssetType;
3237
+ /**
3238
+ * Amount of the asset.
3239
+ */
3240
+ amount: string;
3241
+ /**
3242
+ * 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.
3243
+ */
3244
+ historicalPrice?: Money;
3245
+ };
3246
+
2630
3247
  declare enum RewardType {
2631
3248
  VALIDATOR = "VALIDATOR",
2632
- DELEGATOR = "DELEGATOR"
3249
+ DELEGATOR = "DELEGATOR",
3250
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2633
3251
  }
2634
3252
 
2635
3253
  type HistoricalReward = {
@@ -2645,10 +3263,7 @@ type HistoricalReward = {
2645
3263
  rewardType: RewardType;
2646
3264
  utxoId: string;
2647
3265
  outputIndex: number;
2648
- /**
2649
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2650
- */
2651
- reward: PChainAsset;
3266
+ reward: AssetWithPriceInfo;
2652
3267
  rewardTxHash: string;
2653
3268
  };
2654
3269
 
@@ -2660,6 +3275,30 @@ type ListHistoricalRewardsResponse = {
2660
3275
  historicalRewards: Array<HistoricalReward>;
2661
3276
  };
2662
3277
 
3278
+ type AssetAmount = {
3279
+ /**
3280
+ * Unique ID for an asset.
3281
+ */
3282
+ assetId: string;
3283
+ /**
3284
+ * Name of this asset.
3285
+ */
3286
+ name: string;
3287
+ /**
3288
+ * Symbol for this asset (max 4 characters).
3289
+ */
3290
+ symbol: string;
3291
+ /**
3292
+ * Denomination of this asset to represent fungibility.
3293
+ */
3294
+ denomination: number;
3295
+ type: PrimaryNetworkAssetType;
3296
+ /**
3297
+ * Amount of the asset.
3298
+ */
3299
+ amount: string;
3300
+ };
3301
+
2663
3302
  type PendingReward = {
2664
3303
  /**
2665
3304
  * An array of P-Chain wallet addresses.
@@ -2673,9 +3312,9 @@ type PendingReward = {
2673
3312
  rewardType: RewardType;
2674
3313
  progress: number;
2675
3314
  /**
2676
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3315
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
2677
3316
  */
2678
- estimatedReward: PChainAsset;
3317
+ estimatedReward: AssetAmount;
2679
3318
  };
2680
3319
 
2681
3320
  type ListPendingRewardsResponse = {
@@ -2695,23 +3334,27 @@ declare class PrimaryNetworkRewardsService {
2695
3334
  * @returns ListPendingRewardsResponse
2696
3335
  * @throws ApiError
2697
3336
  */
2698
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3337
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2699
3338
  /**
2700
3339
  * Either mainnet or a testnet.
2701
3340
  */
2702
3341
  network: Network;
2703
3342
  /**
2704
- * 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".
3343
+ * 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.
2705
3344
  */
2706
3345
  addresses?: string;
3346
+ /**
3347
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3348
+ */
3349
+ pageToken?: string;
2707
3350
  /**
2708
3351
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2709
3352
  */
2710
3353
  pageSize?: number;
2711
3354
  /**
2712
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3355
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
2713
3356
  */
2714
- pageToken?: string;
3357
+ nodeIds?: string;
2715
3358
  /**
2716
3359
  * 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
3360
  */
@@ -2723,64 +3366,45 @@ declare class PrimaryNetworkRewardsService {
2723
3366
  * @returns ListHistoricalRewardsResponse
2724
3367
  * @throws ApiError
2725
3368
  */
2726
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3369
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2727
3370
  /**
2728
3371
  * Either mainnet or a testnet.
2729
3372
  */
2730
3373
  network: Network;
2731
3374
  /**
2732
- * 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".
3375
+ * 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.
2733
3376
  */
2734
3377
  addresses?: string;
3378
+ /**
3379
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3380
+ */
3381
+ pageToken?: string;
2735
3382
  /**
2736
3383
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2737
3384
  */
2738
3385
  pageSize?: number;
2739
3386
  /**
2740
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3387
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2741
3388
  */
2742
- pageToken?: string;
3389
+ nodeIds?: string;
2743
3390
  /**
2744
3391
  * 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.
2745
3392
  */
2746
3393
  sortOrder?: SortOrder;
3394
+ /**
3395
+ * The currency that return values should use. Defaults to USD.
3396
+ */
3397
+ currency?: CurrencyCode;
2747
3398
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2748
3399
  }
2749
3400
 
2750
- type Asset = {
2751
- /**
2752
- * Unique ID for an asset.
2753
- */
2754
- assetId: string;
2755
- /**
2756
- * Name of this asset.
2757
- */
2758
- name: string;
2759
- /**
2760
- * Symbol for this asset (max 4 characters).
2761
- */
2762
- symbol: string;
2763
- /**
2764
- * Denomination of this asset to represent fungibility.
2765
- */
2766
- denomination: number;
2767
- /**
2768
- * Type of asset like SECP256K1 or NFT.
2769
- */
2770
- type: string;
2771
- /**
2772
- * Amount of the asset.
2773
- */
2774
- amount: string;
2775
- };
2776
-
2777
3401
  type UtxoCredential = {
2778
3402
  /**
2779
- * Signature provided to consume the output
3403
+ * Signature provided to consume the output.
2780
3404
  */
2781
3405
  signature?: string;
2782
3406
  /**
2783
- * Public key associated with the signature
3407
+ * Public key associated with the signature.
2784
3408
  */
2785
3409
  publicKey?: string;
2786
3410
  };
@@ -2791,9 +3415,9 @@ type EVMInput = {
2791
3415
  */
2792
3416
  fromAddress: string;
2793
3417
  /**
2794
- * Asset details for the asset being transferred.
3418
+ * AssetAmount details for the asset being transferred.
2795
3419
  */
2796
- asset: Asset;
3420
+ asset: AssetAmount;
2797
3421
  /**
2798
3422
  * Credentials that signed this transaction.
2799
3423
  */
@@ -2802,66 +3426,66 @@ type EVMInput = {
2802
3426
 
2803
3427
  type Utxo = {
2804
3428
  /**
2805
- * UTXO ID for this output.
2806
- */
2807
- utxoId: string;
2808
- asset: Asset;
2809
- /**
2810
- * Type of output.
2811
- */
2812
- utxoType: string;
2813
- /**
2814
- * Blockchain ID on which this output is created on.
3429
+ * Addresses that are eligible to sign the consumption of this output.
2815
3430
  */
2816
- createdOnChainId: string;
3431
+ addresses: Array<string>;
3432
+ asset: AssetAmount;
2817
3433
  /**
2818
3434
  * Blockchain ID on which this output is consumed on.
2819
3435
  */
2820
3436
  consumedOnChainId: string;
2821
- /**
2822
- * Transaction ID that created this output.
2823
- */
2824
- creationTxHash: string;
2825
3437
  /**
2826
3438
  * Transaction ID that consumed this output.
2827
3439
  */
2828
3440
  consumingTxHash?: string;
2829
3441
  /**
2830
- * Timestamp in seconds this output is consumed.
3442
+ * Blockchain ID on which this output is created on.
3443
+ */
3444
+ createdOnChainId: string;
3445
+ /**
3446
+ * UTXO ID for this output.
3447
+ */
3448
+ utxoId: string;
3449
+ /**
3450
+ * Unix timestamp in seconds at which this output was consumed.
2831
3451
  */
2832
3452
  consumingTxTimestamp?: number;
2833
3453
  /**
2834
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3454
+ * Transaction ID that created this output.
2835
3455
  */
2836
- outputIndex: string;
3456
+ creationTxHash: string;
2837
3457
  /**
2838
- * Timestamp in seconds this outptut is created on.
3458
+ * Credentials that signed the transaction to consume this utxo
2839
3459
  */
2840
- timestamp: number;
3460
+ credentials?: Array<UtxoCredential>;
3461
+ /**
3462
+ * Index representing the minting set for the NFT mint output.
3463
+ */
3464
+ groupId?: number;
2841
3465
  /**
2842
3466
  * Locktime in seconds after which this output can be consumed.
2843
3467
  */
2844
3468
  locktime: number;
2845
3469
  /**
2846
- * Minimum number of signatures required to consume this output.
3470
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2847
3471
  */
2848
- threshold: number;
3472
+ outputIndex: string;
2849
3473
  /**
2850
- * Addresses that are eligible to sign the consumption of this output.
3474
+ * Hex encoded data for NFT assets.
2851
3475
  */
2852
- addresses: Array<string>;
3476
+ payload?: string;
2853
3477
  /**
2854
- * Hex encoded data for NFT assets
3478
+ * Minimum number of signatures required to consume this output.
2855
3479
  */
2856
- payload?: string;
3480
+ threshold: number;
2857
3481
  /**
2858
- * Index representing the minting set for the NFT mint output
3482
+ * Unix timestamp in seconds at which this outptut was created.
2859
3483
  */
2860
- groupId?: number;
3484
+ timestamp: number;
2861
3485
  /**
2862
- * Credentials that signed the transaction to consume this utxo
3486
+ * Type of output.
2863
3487
  */
2864
- credentials?: Array<UtxoCredential>;
3488
+ utxoType: string;
2865
3489
  };
2866
3490
 
2867
3491
  type CChainExportTransaction = {
@@ -2888,11 +3512,11 @@ type CChainExportTransaction = {
2888
3512
  /**
2889
3513
  * Assets unlocked by inputs of this transaction.
2890
3514
  */
2891
- amountUnlocked: Array<Asset>;
3515
+ amountUnlocked: Array<AssetAmount>;
2892
3516
  /**
2893
3517
  * Assets created by outputs of this transaction.
2894
3518
  */
2895
- amountCreated: Array<Asset>;
3519
+ amountCreated: Array<AssetAmount>;
2896
3520
  /**
2897
3521
  * Source chain for an atomic transaction.
2898
3522
  */
@@ -2923,9 +3547,9 @@ type EVMOutput = {
2923
3547
  */
2924
3548
  toAddress: string;
2925
3549
  /**
2926
- * Asset details for the asset being transferred.
3550
+ * AssetAmount details for the asset being transferred.
2927
3551
  */
2928
- asset: Asset;
3552
+ asset: AssetAmount;
2929
3553
  };
2930
3554
 
2931
3555
  type CChainImportTransaction = {
@@ -2952,11 +3576,11 @@ type CChainImportTransaction = {
2952
3576
  /**
2953
3577
  * Assets unlocked by inputs of this transaction.
2954
3578
  */
2955
- amountUnlocked: Array<Asset>;
3579
+ amountUnlocked: Array<AssetAmount>;
2956
3580
  /**
2957
3581
  * Assets created by outputs of this transaction.
2958
3582
  */
2959
- amountCreated: Array<Asset>;
3583
+ amountCreated: Array<AssetAmount>;
2960
3584
  /**
2961
3585
  * Source chain for an atomic transaction.
2962
3586
  */
@@ -2992,16 +3616,20 @@ type ListCChainAtomicTransactionsResponse = {
2992
3616
 
2993
3617
  declare enum PChainTransactionType {
2994
3618
  ADD_VALIDATOR_TX = "AddValidatorTx",
2995
- ADD_DELEGATOR_TX = "AddDelegatorTx",
2996
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
2997
3619
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2998
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2999
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3620
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3000
3621
  CREATE_CHAIN_TX = "CreateChainTx",
3001
3622
  CREATE_SUBNET_TX = "CreateSubnetTx",
3002
3623
  IMPORT_TX = "ImportTx",
3003
3624
  EXPORT_TX = "ExportTx",
3004
3625
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3626
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3627
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3628
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3629
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3630
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3631
+ BASE_TX = "BaseTx",
3632
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3005
3633
  UNKNOWN = "UNKNOWN"
3006
3634
  }
3007
3635
 
@@ -3012,29 +3640,48 @@ declare enum UtxoType {
3012
3640
 
3013
3641
  type PChainUtxo = {
3014
3642
  /**
3015
- * An array of P-Chain wallet addresses.
3643
+ * Addresses that are eligible to sign the consumption of this output.
3016
3644
  */
3017
3645
  addresses: Array<string>;
3646
+ asset: AssetAmount;
3647
+ /**
3648
+ * Blockchain ID on which this output is consumed on.
3649
+ */
3650
+ consumedOnChainId: string;
3651
+ /**
3652
+ * Transaction ID that consumed this output.
3653
+ */
3654
+ consumingTxHash?: string;
3655
+ /**
3656
+ * Blockchain ID on which this output is created on.
3657
+ */
3658
+ createdOnChainId: string;
3659
+ /**
3660
+ * UTXO ID for this output.
3661
+ */
3018
3662
  utxoId: string;
3019
- txHash: string;
3020
- outputIndex: number;
3663
+ /**
3664
+ * @deprecated
3665
+ */
3666
+ amount: string;
3667
+ /**
3668
+ * @deprecated
3669
+ */
3670
+ assetId: string;
3021
3671
  blockNumber: string;
3022
3672
  blockTimestamp: number;
3023
- consumingTxHash?: string;
3024
- consumingBlockTimestamp?: number;
3025
3673
  consumingBlockNumber?: string;
3026
- assetId: string;
3027
- utxoType: UtxoType;
3028
- amount: string;
3029
- stakeableLocktime?: number;
3674
+ consumingBlockTimestamp?: number;
3030
3675
  platformLocktime?: number;
3031
- threshold?: number;
3032
- createdOnChainId: string;
3033
- consumedOnChainId: string;
3676
+ outputIndex: number;
3677
+ rewardType?: RewardType;
3678
+ stakeableLocktime?: number;
3034
3679
  staked?: boolean;
3035
- utxoStartTimestamp?: number;
3680
+ threshold?: number;
3681
+ txHash: string;
3036
3682
  utxoEndTimestamp?: number;
3037
- rewardType?: RewardType;
3683
+ utxoStartTimestamp?: number;
3684
+ utxoType: UtxoType;
3038
3685
  };
3039
3686
 
3040
3687
  type PChainTransaction = {
@@ -3060,17 +3707,17 @@ type PChainTransaction = {
3060
3707
  */
3061
3708
  destinationChain?: string;
3062
3709
  /**
3063
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3710
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3064
3711
  */
3065
- value: Array<PChainAsset>;
3712
+ value: Array<AssetAmount>;
3066
3713
  /**
3067
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3714
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3068
3715
  */
3069
- amountBurned: Array<PChainAsset>;
3716
+ amountBurned: Array<AssetAmount>;
3070
3717
  /**
3071
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3718
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3072
3719
  */
3073
- amountStaked: Array<PChainAsset>;
3720
+ amountStaked: Array<AssetAmount>;
3074
3721
  /**
3075
3722
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3076
3723
  */
@@ -3096,11 +3743,16 @@ type PChainTransaction = {
3096
3743
  */
3097
3744
  estimatedReward?: string;
3098
3745
  rewardTxHash?: string;
3746
+ rewardAddresses?: Array<string>;
3099
3747
  memo?: string;
3100
3748
  /**
3101
3749
  * Present for RewardValidatorTx
3102
3750
  */
3103
3751
  stakingTxHash?: string;
3752
+ /**
3753
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3754
+ */
3755
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3104
3756
  };
3105
3757
 
3106
3758
  type ListPChainTransactionsResponse = {
@@ -3112,6 +3764,18 @@ type ListPChainTransactionsResponse = {
3112
3764
  chainInfo: PrimaryNetworkChainInfo;
3113
3765
  };
3114
3766
 
3767
+ /**
3768
+ * Type of transaction.
3769
+ */
3770
+ declare enum XChainTransactionType {
3771
+ BASE_TX = "BaseTx",
3772
+ CREATE_ASSET_TX = "CreateAssetTx",
3773
+ OPERATION_TX = "OperationTx",
3774
+ IMPORT_TX = "ImportTx",
3775
+ EXPORT_TX = "ExportTx",
3776
+ UNKNOWN = "UNKNOWN"
3777
+ }
3778
+
3115
3779
  type XChainLinearTransaction = {
3116
3780
  /**
3117
3781
  * Unique ID for this transaction.
@@ -3125,10 +3789,7 @@ type XChainLinearTransaction = {
3125
3789
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3126
3790
  */
3127
3791
  timestamp: number;
3128
- /**
3129
- * Type of transaction.
3130
- */
3131
- txType: string;
3792
+ txType: XChainTransactionType;
3132
3793
  /**
3133
3794
  * Hex encoded memo bytes for this transaction.
3134
3795
  */
@@ -3138,11 +3799,11 @@ type XChainLinearTransaction = {
3138
3799
  /**
3139
3800
  * Assets unlocked by inputs of this transaction.
3140
3801
  */
3141
- amountUnlocked: Array<Asset>;
3802
+ amountUnlocked: Array<AssetAmount>;
3142
3803
  /**
3143
3804
  * Assets created by outputs of this transaction.
3144
3805
  */
3145
- amountCreated: Array<Asset>;
3806
+ amountCreated: Array<AssetAmount>;
3146
3807
  /**
3147
3808
  * Source chain for an atomic transaction.
3148
3809
  */
@@ -3152,7 +3813,7 @@ type XChainLinearTransaction = {
3152
3813
  */
3153
3814
  destinationChain?: string;
3154
3815
  /**
3155
- * Asset details of the asset created in CreateAssetTx
3816
+ * AssetAmount details of the asset created in CreateAssetTx
3156
3817
  */
3157
3818
  assetCreated?: XChainAssetDetails;
3158
3819
  /**
@@ -3202,10 +3863,7 @@ type XChainNonLinearTransaction = {
3202
3863
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3203
3864
  */
3204
3865
  timestamp: number;
3205
- /**
3206
- * Type of transaction.
3207
- */
3208
- txType: string;
3866
+ txType: XChainTransactionType;
3209
3867
  /**
3210
3868
  * Hex encoded memo bytes for this transaction.
3211
3869
  */
@@ -3215,11 +3873,11 @@ type XChainNonLinearTransaction = {
3215
3873
  /**
3216
3874
  * Assets unlocked by inputs of this transaction.
3217
3875
  */
3218
- amountUnlocked: Array<Asset>;
3876
+ amountUnlocked: Array<AssetAmount>;
3219
3877
  /**
3220
3878
  * Assets created by outputs of this transaction.
3221
3879
  */
3222
- amountCreated: Array<Asset>;
3880
+ amountCreated: Array<AssetAmount>;
3223
3881
  /**
3224
3882
  * Source chain for an atomic transaction.
3225
3883
  */
@@ -3229,7 +3887,7 @@ type XChainNonLinearTransaction = {
3229
3887
  */
3230
3888
  destinationChain?: string;
3231
3889
  /**
3232
- * Asset details of the asset created in CreateAssetTx
3890
+ * AssetAmount details of the asset created in CreateAssetTx
3233
3891
  */
3234
3892
  assetCreated?: XChainAssetDetails;
3235
3893
  /**
@@ -3263,18 +3921,21 @@ declare enum PChainId {
3263
3921
 
3264
3922
  declare enum PrimaryNetworkTxType {
3265
3923
  ADD_VALIDATOR_TX = "AddValidatorTx",
3266
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3267
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3268
3924
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3269
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3270
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3925
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3271
3926
  CREATE_CHAIN_TX = "CreateChainTx",
3272
3927
  CREATE_SUBNET_TX = "CreateSubnetTx",
3273
3928
  IMPORT_TX = "ImportTx",
3274
3929
  EXPORT_TX = "ExportTx",
3275
3930
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3276
- UNKNOWN = "UNKNOWN",
3931
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3932
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3933
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3934
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3935
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3277
3936
  BASE_TX = "BaseTx",
3937
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3938
+ UNKNOWN = "UNKNOWN",
3278
3939
  CREATE_ASSET_TX = "CreateAssetTx",
3279
3940
  OPERATION_TX = "OperationTx"
3280
3941
  }
@@ -3304,11 +3965,15 @@ declare class PrimaryNetworkTransactionsService {
3304
3965
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3305
3966
  /**
3306
3967
  * List latest transactions
3307
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3968
+ * Lists the latest transactions on one of the Primary Network chains.
3969
+ *
3970
+ * 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.
3971
+ *
3972
+ * 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.
3308
3973
  * @returns any
3309
3974
  * @throws ApiError
3310
3975
  */
3311
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3976
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3312
3977
  /**
3313
3978
  * A primary network blockchain id or alias.
3314
3979
  */
@@ -3333,14 +3998,14 @@ declare class PrimaryNetworkTransactionsService {
3333
3998
  * Query param for retrieving items before a specific timestamp.
3334
3999
  */
3335
4000
  endTimestamp?: number;
3336
- /**
3337
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3338
- */
3339
- pageSize?: number;
3340
4001
  /**
3341
4002
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3342
4003
  */
3343
4004
  pageToken?: string;
4005
+ /**
4006
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4007
+ */
4008
+ pageSize?: number;
3344
4009
  /**
3345
4010
  * 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.
3346
4011
  */
@@ -3352,7 +4017,7 @@ declare class PrimaryNetworkTransactionsService {
3352
4017
  * @returns ListPChainTransactionsResponse
3353
4018
  * @throws ApiError
3354
4019
  */
3355
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
4020
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3356
4021
  /**
3357
4022
  * A primary network blockchain id or alias.
3358
4023
  */
@@ -3377,14 +4042,14 @@ declare class PrimaryNetworkTransactionsService {
3377
4042
  * Query param for retrieving items before a specific timestamp.
3378
4043
  */
3379
4044
  endTimestamp?: number;
3380
- /**
3381
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3382
- */
3383
- pageSize?: number;
3384
4045
  /**
3385
4046
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3386
4047
  */
3387
4048
  pageToken?: string;
4049
+ /**
4050
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4051
+ */
4052
+ pageSize?: number;
3388
4053
  /**
3389
4054
  * 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.
3390
4055
  */
@@ -3396,7 +4061,7 @@ declare class PrimaryNetworkTransactionsService {
3396
4061
  * @returns ListXChainTransactionsResponse
3397
4062
  * @throws ApiError
3398
4063
  */
3399
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
4064
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3400
4065
  /**
3401
4066
  * A primary network blockchain id or alias.
3402
4067
  */
@@ -3421,14 +4086,14 @@ declare class PrimaryNetworkTransactionsService {
3421
4086
  * Query param for retrieving items before a specific timestamp.
3422
4087
  */
3423
4088
  endTimestamp?: number;
3424
- /**
3425
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3426
- */
3427
- pageSize?: number;
3428
4089
  /**
3429
4090
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3430
4091
  */
3431
4092
  pageToken?: string;
4093
+ /**
4094
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4095
+ */
4096
+ pageSize?: number;
3432
4097
  }): CancelablePromise<ListXChainTransactionsResponse>;
3433
4098
  }
3434
4099
 
@@ -3459,7 +4124,7 @@ declare class PrimaryNetworkUtxOsService {
3459
4124
  * @returns any
3460
4125
  * @throws ApiError
3461
4126
  */
3462
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4127
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3463
4128
  /**
3464
4129
  * A primary network blockchain id or alias.
3465
4130
  */
@@ -3472,14 +4137,14 @@ declare class PrimaryNetworkUtxOsService {
3472
4137
  * 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".
3473
4138
  */
3474
4139
  addresses?: string;
3475
- /**
3476
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3477
- */
3478
- pageSize?: number;
3479
4140
  /**
3480
4141
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3481
4142
  */
3482
4143
  pageToken?: string;
4144
+ /**
4145
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4146
+ */
4147
+ pageSize?: number;
3483
4148
  /**
3484
4149
  * Asset ID for any asset (only applicable X-Chain)
3485
4150
  */
@@ -3524,7 +4189,7 @@ declare class PrimaryNetworkVerticesService {
3524
4189
  * @returns ListXChainVerticesResponse
3525
4190
  * @throws ApiError
3526
4191
  */
3527
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4192
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3528
4193
  /**
3529
4194
  * A primary network blockchain id or alias.
3530
4195
  */
@@ -3533,14 +4198,14 @@ declare class PrimaryNetworkVerticesService {
3533
4198
  * Either mainnet or a testnet.
3534
4199
  */
3535
4200
  network: Network;
3536
- /**
3537
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3538
- */
3539
- pageSize?: number;
3540
4201
  /**
3541
4202
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3542
4203
  */
3543
4204
  pageToken?: string;
4205
+ /**
4206
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4207
+ */
4208
+ pageSize?: number;
3544
4209
  }): CancelablePromise<ListXChainVerticesResponse>;
3545
4210
  /**
3546
4211
  * Get vertex
@@ -3568,7 +4233,7 @@ declare class PrimaryNetworkVerticesService {
3568
4233
  * @returns ListXChainVerticesResponse
3569
4234
  * @throws ApiError
3570
4235
  */
3571
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4236
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3572
4237
  /**
3573
4238
  * The height of a vertex.
3574
4239
  */
@@ -3581,28 +4246,207 @@ declare class PrimaryNetworkVerticesService {
3581
4246
  * Either mainnet or a testnet.
3582
4247
  */
3583
4248
  network: Network;
4249
+ /**
4250
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4251
+ */
4252
+ pageToken?: string;
3584
4253
  /**
3585
4254
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3586
4255
  */
3587
4256
  pageSize?: number;
4257
+ /**
4258
+ * 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.
4259
+ */
4260
+ sortOrder?: SortOrder;
4261
+ }): CancelablePromise<ListXChainVerticesResponse>;
4262
+ }
4263
+
4264
+ type TeleporterDestinationTransaction = {
4265
+ txHash: string;
4266
+ timestamp: number;
4267
+ gasSpent: string;
4268
+ rewardRedeemer: string;
4269
+ delivererAddress: string;
4270
+ };
4271
+
4272
+ type TeleporterReceipt = {
4273
+ receivedMessageNonce: string;
4274
+ relayerRewardAddress: string;
4275
+ };
4276
+
4277
+ type TeleporterRewardDetails = {
4278
+ /**
4279
+ * A wallet or contract address in mixed-case checksum encoding.
4280
+ */
4281
+ address: string;
4282
+ /**
4283
+ * The contract name.
4284
+ */
4285
+ name: string;
4286
+ /**
4287
+ * The contract symbol.
4288
+ */
4289
+ symbol: string;
4290
+ /**
4291
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4292
+ */
4293
+ decimals: number;
4294
+ /**
4295
+ * The logo uri for the address.
4296
+ */
4297
+ logoUri?: string;
4298
+ ercType: TeleporterRewardDetails.ercType;
4299
+ /**
4300
+ * The token price, if available.
4301
+ */
4302
+ price?: Money;
4303
+ value: string;
4304
+ };
4305
+ declare namespace TeleporterRewardDetails {
4306
+ enum ercType {
4307
+ ERC_20 = "ERC-20"
4308
+ }
4309
+ }
4310
+
4311
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4312
+ messageId: string;
4313
+ teleporterContractAddress: string;
4314
+ sourceBlockchainId: string;
4315
+ destinationBlockchainId: string;
4316
+ messageNonce: string;
4317
+ from: string;
4318
+ to: string;
4319
+ data?: string;
4320
+ messageExecuted: boolean;
4321
+ receipts: Array<TeleporterReceipt>;
4322
+ receiptDelivered: boolean;
4323
+ rewardDetails: TeleporterRewardDetails;
4324
+ destinationTransaction: TeleporterDestinationTransaction;
4325
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4326
+ };
4327
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4328
+ enum status {
4329
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4330
+ }
4331
+ }
4332
+
4333
+ type TeleporterSourceTransaction = {
4334
+ txHash: string;
4335
+ timestamp: number;
4336
+ gasSpent: string;
4337
+ };
4338
+
4339
+ type DeliveredTeleporterMessage = {
4340
+ messageId: string;
4341
+ teleporterContractAddress: string;
4342
+ sourceBlockchainId: string;
4343
+ destinationBlockchainId: string;
4344
+ messageNonce: string;
4345
+ from: string;
4346
+ to: string;
4347
+ data?: string;
4348
+ messageExecuted: boolean;
4349
+ receipts: Array<TeleporterReceipt>;
4350
+ receiptDelivered: boolean;
4351
+ rewardDetails: TeleporterRewardDetails;
4352
+ sourceTransaction: TeleporterSourceTransaction;
4353
+ destinationTransaction: TeleporterDestinationTransaction;
4354
+ status: DeliveredTeleporterMessage.status;
4355
+ };
4356
+ declare namespace DeliveredTeleporterMessage {
4357
+ enum status {
4358
+ DELIVERED = "delivered"
4359
+ }
4360
+ }
4361
+
4362
+ type NextPageToken = {
4363
+ /**
4364
+ * 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.
4365
+ */
4366
+ nextPageToken?: string;
4367
+ };
4368
+
4369
+ type PendingTeleporterMessage = {
4370
+ messageId: string;
4371
+ teleporterContractAddress: string;
4372
+ sourceBlockchainId: string;
4373
+ destinationBlockchainId: string;
4374
+ messageNonce: string;
4375
+ from: string;
4376
+ to: string;
4377
+ data?: string;
4378
+ messageExecuted: boolean;
4379
+ receipts: Array<TeleporterReceipt>;
4380
+ receiptDelivered: boolean;
4381
+ rewardDetails: TeleporterRewardDetails;
4382
+ sourceTransaction: TeleporterSourceTransaction;
4383
+ status: PendingTeleporterMessage.status;
4384
+ };
4385
+ declare namespace PendingTeleporterMessage {
4386
+ enum status {
4387
+ PENDING = "pending"
4388
+ }
4389
+ }
4390
+
4391
+ declare class TeleporterService {
4392
+ readonly httpRequest: BaseHttpRequest;
4393
+ constructor(httpRequest: BaseHttpRequest);
4394
+ /**
4395
+ * Get a teleporter message
4396
+ * Gets a teleporter message by message ID.
4397
+ * @returns any
4398
+ * @throws ApiError
4399
+ */
4400
+ getTeleporterMessage({ messageId, }: {
4401
+ /**
4402
+ * The message ID of the teleporter message.
4403
+ */
4404
+ messageId: string;
4405
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4406
+ /**
4407
+ * List teleporter messages
4408
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4409
+ * @returns any
4410
+ * @throws ApiError
4411
+ */
4412
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
3588
4413
  /**
3589
4414
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3590
4415
  */
3591
4416
  pageToken?: string;
3592
4417
  /**
3593
- * 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.
4418
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3594
4419
  */
3595
- sortOrder?: SortOrder;
3596
- }): CancelablePromise<ListXChainVerticesResponse>;
4420
+ pageSize?: number;
4421
+ /**
4422
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4423
+ */
4424
+ sourceBlockchainId?: string;
4425
+ /**
4426
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4427
+ */
4428
+ destinationBlockchainId?: string;
4429
+ /**
4430
+ * The address of the recipient of the teleporter message.
4431
+ */
4432
+ to?: string;
4433
+ /**
4434
+ * The address of the sender of the teleporter message.
4435
+ */
4436
+ from?: string;
4437
+ }): CancelablePromise<NextPageToken>;
3597
4438
  }
3598
4439
 
3599
4440
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3600
4441
  declare class Glacier {
4442
+ readonly default: DefaultService;
3601
4443
  readonly evmBalances: EvmBalancesService;
3602
4444
  readonly evmBlocks: EvmBlocksService;
3603
4445
  readonly evmChains: EvmChainsService;
4446
+ readonly evmContracts: EvmContractsService;
3604
4447
  readonly evmTransactions: EvmTransactionsService;
3605
4448
  readonly healthCheck: HealthCheckService;
4449
+ readonly nfTs: NfTsService;
3606
4450
  readonly operations: OperationsService;
3607
4451
  readonly primaryNetwork: PrimaryNetworkService;
3608
4452
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3611,6 +4455,7 @@ declare class Glacier {
3611
4455
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3612
4456
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3613
4457
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4458
+ readonly teleporter: TeleporterService;
3614
4459
  readonly request: BaseHttpRequest;
3615
4460
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3616
4461
  }
@@ -3632,4 +4477,4 @@ declare class ApiError extends Error {
3632
4477
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3633
4478
  }
3634
4479
 
3635
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
4480
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };