@avalabs/glacier-sdk 2.8.0-canary.9b911e2.0 → 2.8.0-canary.9b9388d.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 (173) hide show
  1. package/dist/index.d.ts +1615 -725
  2. package/dist/index.js +674 -202
  3. package/esm/generated/Glacier.d.ts +12 -0
  4. package/esm/generated/Glacier.js +41 -10
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  7. package/esm/generated/core/CancelablePromise.js +41 -31
  8. package/esm/generated/core/OpenAPI.d.ts +5 -5
  9. package/esm/generated/core/request.js +39 -40
  10. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  11. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  12. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  13. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  14. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  15. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  16. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  17. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  18. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  19. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  20. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  21. package/esm/generated/models/ChainInfo.d.ts +2 -3
  22. package/esm/generated/models/ChainStatus.d.ts +3 -0
  23. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  24. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  25. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  26. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  27. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  28. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  29. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  30. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  31. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  32. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  33. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  34. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  35. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  36. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  37. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  38. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  39. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  40. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  41. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  42. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  43. package/esm/generated/models/EVMInput.d.ts +3 -3
  44. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  45. package/esm/generated/models/EVMOperationType.js +6 -0
  46. package/esm/generated/models/EVMOutput.d.ts +3 -3
  47. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  48. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  49. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  50. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  51. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  52. package/esm/generated/models/EventType.d.ts +5 -0
  53. package/esm/generated/models/EventType.js +6 -0
  54. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  55. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  56. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  57. package/esm/generated/models/GlacierApiFeature.js +6 -0
  58. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  59. package/esm/generated/models/ImageAsset.d.ts +0 -3
  60. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  61. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  62. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  63. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  64. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  65. package/esm/generated/models/Method.d.ts +0 -3
  66. package/esm/generated/models/Money.d.ts +0 -3
  67. package/esm/generated/models/NextPageToken.d.ts +8 -0
  68. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  69. package/esm/generated/models/OperationType.d.ts +4 -2
  70. package/esm/generated/models/OperationType.js +3 -1
  71. package/esm/generated/models/PChainBalance.d.ts +15 -15
  72. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  73. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  74. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  75. package/esm/generated/models/PChainTransactionType.js +8 -4
  76. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  77. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  78. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  79. package/esm/generated/models/PendingReward.d.ts +3 -3
  80. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  81. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  82. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  83. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  84. package/esm/generated/models/PricingProviders.d.ts +5 -0
  85. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  86. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  87. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  88. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  89. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  90. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  91. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  92. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  93. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  94. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  95. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  96. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  97. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  98. package/esm/generated/models/RewardType.d.ts +2 -1
  99. package/esm/generated/models/RewardType.js +1 -0
  100. package/esm/generated/models/Rewards.d.ts +2 -0
  101. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  102. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  103. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  104. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  105. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  106. package/esm/generated/models/Subnet.d.ts +17 -0
  107. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  108. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  109. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  110. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  111. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  112. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  113. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  114. package/esm/generated/models/UnknownContract.d.ts +0 -1
  115. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  116. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  117. package/esm/generated/models/Utxo.d.ts +30 -30
  118. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  119. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  120. package/esm/generated/models/ValidationStatusType.js +1 -0
  121. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  122. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  123. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  124. package/esm/generated/models/WebhookStatus.js +7 -0
  125. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  126. package/esm/generated/models/WebhookStatusType.js +7 -0
  127. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  128. package/esm/generated/models/XChainBalances.d.ts +3 -3
  129. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  130. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  131. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  132. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  133. package/esm/generated/models/XChainTransactionType.js +11 -0
  134. package/esm/generated/services/DefaultService.d.ts +14 -0
  135. package/esm/generated/services/DefaultService.js +13 -0
  136. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  137. package/esm/generated/services/EvmBalancesService.js +8 -8
  138. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  139. package/esm/generated/services/EvmBlocksService.js +4 -4
  140. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  141. package/esm/generated/services/EvmChainsService.js +4 -2
  142. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  143. package/esm/generated/services/EvmContractsService.js +36 -0
  144. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  145. package/esm/generated/services/EvmTransactionsService.js +33 -33
  146. package/esm/generated/services/NfTsService.d.ts +76 -0
  147. package/esm/generated/services/NfTsService.js +56 -0
  148. package/esm/generated/services/OperationsService.d.ts +11 -11
  149. package/esm/generated/services/OperationsService.js +10 -10
  150. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  151. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  152. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  153. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  154. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -31
  155. package/esm/generated/services/PrimaryNetworkService.js +27 -17
  156. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
  157. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  158. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  159. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  160. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  161. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  162. package/esm/generated/services/RpcService.d.ts +25 -0
  163. package/esm/generated/services/RpcService.js +24 -0
  164. package/esm/generated/services/TeleporterService.d.ts +57 -0
  165. package/esm/generated/services/TeleporterService.js +39 -0
  166. package/esm/generated/services/WebhooksService.d.ts +95 -0
  167. package/esm/generated/services/WebhooksService.js +80 -0
  168. package/esm/index.d.ts +47 -3
  169. package/esm/index.js +30 -2
  170. package/package.json +3 -3
  171. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  172. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  173. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -23,15 +23,9 @@ interface OnCancel {
23
23
  (cancelHandler: () => void): void;
24
24
  }
25
25
  declare class CancelablePromise<T> implements Promise<T> {
26
- readonly [Symbol.toStringTag]: string;
27
- private _isResolved;
28
- private _isRejected;
29
- private _isCancelled;
30
- private readonly _cancelHandlers;
31
- private readonly _promise;
32
- private _resolve?;
33
- private _reject?;
26
+ #private;
34
27
  constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
28
+ get [Symbol.toStringTag](): string;
35
29
  then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
30
  catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
31
  finally(onFinally?: (() => void) | null): Promise<T>;
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
46
40
  VERSION: string;
47
41
  WITH_CREDENTIALS: boolean;
48
42
  CREDENTIALS: 'include' | 'omit' | 'same-origin';
49
- TOKEN?: string | Resolver<string>;
50
- USERNAME?: string | Resolver<string>;
51
- PASSWORD?: string | Resolver<string>;
52
- HEADERS?: Headers | Resolver<Headers>;
53
- ENCODE_PATH?: (path: string) => string;
43
+ TOKEN?: string | Resolver<string> | undefined;
44
+ USERNAME?: string | Resolver<string> | undefined;
45
+ PASSWORD?: string | Resolver<string> | undefined;
46
+ HEADERS?: Headers | Resolver<Headers> | undefined;
47
+ ENCODE_PATH?: ((path: string) => string) | undefined;
54
48
  };
55
49
  declare const OpenAPI: OpenAPIConfig;
56
50
 
@@ -60,6 +54,19 @@ declare abstract class BaseHttpRequest {
60
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
55
  }
62
56
 
57
+ declare class DefaultService {
58
+ readonly httpRequest: BaseHttpRequest;
59
+ constructor(httpRequest: BaseHttpRequest);
60
+ /**
61
+ * @returns any
62
+ * @throws ApiError
63
+ */
64
+ mediaControllerUploadImage(): CancelablePromise<any>;
65
+ }
66
+
67
+ /**
68
+ * ISO 4217 currency code.
69
+ */
63
70
  declare enum CurrencyCode {
64
71
  USD = "usd",
65
72
  EUR = "eur",
@@ -78,9 +85,6 @@ declare enum CurrencyCode {
78
85
  }
79
86
 
80
87
  type Money = {
81
- /**
82
- * ISO 4217 currency code.
83
- */
84
88
  currencyCode: CurrencyCode;
85
89
  /**
86
90
  * Monetary value in base 10 decimals.
@@ -130,6 +134,9 @@ type GetNativeBalanceResponse = {
130
134
  nativeTokenBalance: NativeTokenBalance;
131
135
  };
132
136
 
137
+ /**
138
+ * The metadata indexing status of the nft.
139
+ */
133
140
  declare enum NftTokenMetadataStatus {
134
141
  UNKNOWN = "UNKNOWN",
135
142
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -145,9 +152,6 @@ declare enum NftTokenMetadataStatus {
145
152
  }
146
153
 
147
154
  type Erc1155TokenMetadata = {
148
- /**
149
- * The metadata indexing status of the nft.
150
- */
151
155
  indexStatus: NftTokenMetadataStatus;
152
156
  metadataLastUpdatedTimestamp?: number;
153
157
  name?: string;
@@ -186,9 +190,6 @@ declare namespace Erc1155TokenBalance {
186
190
  }
187
191
 
188
192
  type Erc721TokenMetadata = {
189
- /**
190
- * The metadata indexing status of the nft.
191
- */
192
193
  indexStatus: NftTokenMetadataStatus;
193
194
  metadataLastUpdatedTimestamp?: number;
194
195
  name?: string;
@@ -335,7 +336,7 @@ declare class EvmBalancesService {
335
336
  */
336
337
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
337
338
  /**
338
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
340
  */
340
341
  chainId: string;
341
342
  /**
@@ -361,9 +362,9 @@ declare class EvmBalancesService {
361
362
  * @returns ListErc20BalancesResponse
362
363
  * @throws ApiError
363
364
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
365
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
366
  /**
366
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
368
  */
368
369
  chainId: string;
369
370
  /**
@@ -374,14 +375,14 @@ declare class EvmBalancesService {
374
375
  * The block number, if not defined the block number will be the latest block.
375
376
  */
376
377
  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
378
  /**
382
379
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
383
380
  */
384
381
  pageToken?: string;
382
+ /**
383
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
384
+ */
385
+ pageSize?: number;
385
386
  /**
386
387
  * A comma separated list of contract addresses to filter by.
387
388
  */
@@ -399,23 +400,23 @@ declare class EvmBalancesService {
399
400
  * @returns ListErc721BalancesResponse
400
401
  * @throws ApiError
401
402
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
403
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
404
  /**
404
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
406
  */
406
407
  chainId: string;
407
408
  /**
408
409
  * A wallet address.
409
410
  */
410
411
  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
412
  /**
416
413
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
414
  */
418
415
  pageToken?: string;
416
+ /**
417
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
418
+ */
419
+ pageSize?: number;
419
420
  /**
420
421
  * A contract addresses to filter by.
421
422
  */
@@ -431,9 +432,9 @@ declare class EvmBalancesService {
431
432
  * @returns ListErc1155BalancesResponse
432
433
  * @throws ApiError
433
434
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
435
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
436
  /**
436
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
438
  */
438
439
  chainId: string;
439
440
  /**
@@ -444,14 +445,14 @@ declare class EvmBalancesService {
444
445
  * The block number, if not defined the block number will be the latest block.
445
446
  */
446
447
  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
448
  /**
452
449
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
450
  */
454
451
  pageToken?: string;
452
+ /**
453
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
454
+ */
455
+ pageSize?: number;
455
456
  /**
456
457
  * A contract addresses to filter by.
457
458
  */
@@ -465,23 +466,23 @@ declare class EvmBalancesService {
465
466
  * @returns ListCollectibleBalancesResponse
466
467
  * @throws ApiError
467
468
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
469
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
470
  /**
470
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
472
  */
472
473
  chainId: string;
473
474
  /**
474
475
  * A wallet address.
475
476
  */
476
477
  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
478
  /**
482
479
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
480
  */
484
481
  pageToken?: string;
482
+ /**
483
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
484
+ */
485
+ pageSize?: number;
485
486
  /**
486
487
  * A contract addresses to filter by.
487
488
  */
@@ -594,19 +595,19 @@ declare class EvmBlocksService {
594
595
  * @returns ListEvmBlocksResponse
595
596
  * @throws ApiError
596
597
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
598
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
599
  /**
599
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
601
  */
601
602
  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
603
  /**
607
604
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
605
  */
609
606
  pageToken?: string;
607
+ /**
608
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
609
+ */
610
+ pageSize?: number;
610
611
  }): CancelablePromise<ListEvmBlocksResponse>;
611
612
  /**
612
613
  * Get block
@@ -616,7 +617,7 @@ declare class EvmBlocksService {
616
617
  */
617
618
  getBlock({ chainId, blockId, }: {
618
619
  /**
619
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
621
  */
621
622
  chainId: string;
622
623
  /**
@@ -626,6 +627,9 @@ declare class EvmBlocksService {
626
627
  }): CancelablePromise<GetEvmBlockResponse>;
627
628
  }
628
629
 
630
+ /**
631
+ * 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.
632
+ */
629
633
  declare enum ChainStatus {
630
634
  OK = "OK",
631
635
  UNAVAILABLE = "UNAVAILABLE"
@@ -663,9 +667,6 @@ declare enum VmName {
663
667
 
664
668
  type GetChainResponse = {
665
669
  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
670
  status: ChainStatus;
670
671
  chainName: string;
671
672
  description: string;
@@ -680,13 +681,16 @@ type GetChainResponse = {
680
681
  utilityAddresses?: UtilityAddresses;
681
682
  networkToken: NetworkToken;
682
683
  chainLogoUri?: string;
684
+ private?: boolean;
685
+ enabledFeatures?: Array<'nftIndexing'>;
683
686
  };
684
687
 
688
+ declare enum GlacierApiFeature {
689
+ NFT_INDEXING = "nftIndexing"
690
+ }
691
+
685
692
  type ChainInfo = {
686
693
  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
694
  status: ChainStatus;
691
695
  chainName: string;
692
696
  description: string;
@@ -701,6 +705,8 @@ type ChainInfo = {
701
705
  utilityAddresses?: UtilityAddresses;
702
706
  networkToken: NetworkToken;
703
707
  chainLogoUri?: string;
708
+ private?: boolean;
709
+ enabledFeatures?: Array<'nftIndexing'>;
704
710
  };
705
711
 
706
712
  type ListChainsResponse = {
@@ -721,11 +727,15 @@ declare class EvmChainsService {
721
727
  * @returns ListChainsResponse
722
728
  * @throws ApiError
723
729
  */
724
- supportedChains({ network, }: {
730
+ supportedChains({ network, feature, }: {
725
731
  /**
726
732
  * mainnet or testnet.
727
733
  */
728
734
  network?: NetworkType;
735
+ /**
736
+ * Filter by feature.
737
+ */
738
+ feature?: GlacierApiFeature;
729
739
  }): CancelablePromise<ListChainsResponse>;
730
740
  /**
731
741
  * Get chain information
@@ -735,449 +745,592 @@ declare class EvmChainsService {
735
745
  */
736
746
  getChainInfo({ chainId, }: {
737
747
  /**
738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
748
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
739
749
  */
740
750
  chainId: string;
741
751
  }): CancelablePromise<GetChainResponse>;
742
752
  }
743
753
 
744
- type Erc1155Token = {
754
+ type ImageAsset = {
755
+ assetId?: string;
745
756
  /**
746
- * A wallet or contract address in mixed-case checksum encoding.
757
+ * OUTPUT ONLY
747
758
  */
748
- address: string;
749
- ercType: Erc1155Token.ercType;
750
- tokenId: string;
751
- tokenUri: string;
752
- metadata: Erc1155TokenMetadata;
759
+ imageUri?: string;
753
760
  };
754
- declare namespace Erc1155Token {
755
- enum ercType {
756
- ERC_1155 = "ERC-1155"
757
- }
761
+
762
+ type PricingProviders = {
763
+ coingeckoCoinId?: string;
764
+ };
765
+
766
+ declare enum ResourceLinkType {
767
+ BLOG = "Blog",
768
+ COIN_GECKO = "CoinGecko",
769
+ COIN_MARKET_CAP = "CoinMarketCap",
770
+ DISCORD = "Discord",
771
+ DOCUMENTATION = "Documentation",
772
+ FACEBOOK = "Facebook",
773
+ GITHUB = "Github",
774
+ INSTAGRAM = "Instagram",
775
+ LINKED_IN = "LinkedIn",
776
+ MEDIUM = "Medium",
777
+ REDDIT = "Reddit",
778
+ SUPPORT = "Support",
779
+ TELEGRAM = "Telegram",
780
+ TIK_TOK = "TikTok",
781
+ TWITTER = "Twitter",
782
+ WEBSITE = "Website",
783
+ WHITEPAPER = "Whitepaper",
784
+ YOUTUBE = "Youtube"
758
785
  }
759
786
 
760
- type RichAddress = {
787
+ type ResourceLink = {
788
+ type: ResourceLinkType;
789
+ url: string;
790
+ };
791
+
792
+ type ContractSubmissionErc1155 = {
793
+ description?: string;
794
+ officialSite?: string;
795
+ email?: string;
796
+ logoAsset?: ImageAsset;
797
+ bannerAsset?: ImageAsset;
798
+ color?: string;
799
+ resourceLinks?: Array<ResourceLink>;
800
+ tags?: Array<string>;
761
801
  /**
762
802
  * The contract name.
763
803
  */
764
- name?: string;
804
+ name: string;
805
+ ercType: ContractSubmissionErc1155.ercType;
765
806
  /**
766
807
  * The contract symbol.
767
808
  */
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;
809
+ symbol: string;
810
+ pricingProviders?: PricingProviders;
789
811
  };
812
+ declare namespace ContractSubmissionErc1155 {
813
+ enum ercType {
814
+ ERC_1155 = "ERC-1155"
815
+ }
816
+ }
790
817
 
791
- type Erc20Token = {
792
- /**
793
- * A wallet or contract address in mixed-case checksum encoding.
794
- */
795
- address: string;
818
+ type ContractSubmissionErc20 = {
819
+ description?: string;
820
+ officialSite?: string;
821
+ email?: string;
822
+ logoAsset?: ImageAsset;
823
+ bannerAsset?: ImageAsset;
824
+ color?: string;
825
+ resourceLinks?: Array<ResourceLink>;
826
+ tags?: Array<string>;
796
827
  /**
797
828
  * The contract name.
798
829
  */
799
830
  name: string;
831
+ ercType: ContractSubmissionErc20.ercType;
800
832
  /**
801
833
  * The contract symbol.
802
834
  */
803
835
  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;
836
+ pricingProviders?: PricingProviders;
817
837
  };
818
- declare namespace Erc20Token {
838
+ declare namespace ContractSubmissionErc20 {
819
839
  enum ercType {
820
840
  ERC_20 = "ERC-20"
821
841
  }
822
842
  }
823
843
 
824
- type Erc20TransferDetails = {
825
- from: RichAddress;
826
- to: RichAddress;
827
- logIndex: number;
828
- value: string;
829
- erc20Token: Erc20Token;
830
- };
831
-
832
- type Erc721Token = {
833
- /**
834
- * A wallet or contract address in mixed-case checksum encoding.
835
- */
836
- address: string;
844
+ type ContractSubmissionErc721 = {
845
+ description?: string;
846
+ officialSite?: string;
847
+ email?: string;
848
+ logoAsset?: ImageAsset;
849
+ bannerAsset?: ImageAsset;
850
+ color?: string;
851
+ resourceLinks?: Array<ResourceLink>;
852
+ tags?: Array<string>;
837
853
  /**
838
854
  * The contract name.
839
855
  */
840
856
  name: string;
857
+ ercType: ContractSubmissionErc721.ercType;
841
858
  /**
842
859
  * The contract symbol.
843
860
  */
844
861
  symbol: string;
845
- ercType: Erc721Token.ercType;
846
- tokenId: string;
847
- tokenUri: string;
848
- metadata: Erc721TokenMetadata;
849
- /**
850
- * A wallet or contract address in mixed-case checksum encoding.
851
- */
852
- ownerAddress?: string;
853
862
  };
854
- declare namespace Erc721Token {
863
+ declare namespace ContractSubmissionErc721 {
855
864
  enum ercType {
856
865
  ERC_721 = "ERC-721"
857
866
  }
858
867
  }
859
868
 
860
- type Erc721TransferDetails = {
861
- from: RichAddress;
862
- to: RichAddress;
863
- logIndex: number;
864
- erc721Token: Erc721Token;
869
+ type ContractSubmissionUnknown = {
870
+ description?: string;
871
+ officialSite?: string;
872
+ email?: string;
873
+ logoAsset?: ImageAsset;
874
+ bannerAsset?: ImageAsset;
875
+ color?: string;
876
+ resourceLinks?: Array<ResourceLink>;
877
+ tags?: Array<string>;
878
+ /**
879
+ * The contract name.
880
+ */
881
+ name: string;
882
+ ercType: ContractSubmissionUnknown.ercType;
865
883
  };
866
-
867
- declare enum TransactionMethodType {
868
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
869
- CONTRACT_CALL = "CONTRACT_CALL",
870
- CONTRACT_CREATION = "CONTRACT_CREATION"
884
+ declare namespace ContractSubmissionUnknown {
885
+ enum ercType {
886
+ UNKNOWN = "UNKNOWN"
887
+ }
871
888
  }
872
889
 
873
- 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
- callType: TransactionMethodType;
890
+ type ContractSubmissionBody = {
891
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
892
+ };
893
+
894
+ type ContractDeploymentDetails = {
895
+ txHash: string;
878
896
  /**
879
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
897
+ * The address that initiated the transaction which deployed this contract.
880
898
  */
881
- methodHash: string;
899
+ deployerAddress: string;
882
900
  /**
883
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
901
+ * 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.
884
902
  */
885
- methodName?: string;
903
+ deployerContractAddress?: string;
886
904
  };
887
905
 
888
- type FullNativeTransactionDetails = {
906
+ type Erc1155Contract = {
889
907
  /**
890
- * The block number on the chain.
908
+ * The contract name.
891
909
  */
892
- blockNumber: string;
910
+ name?: string;
911
+ description?: string;
912
+ officialSite?: string;
913
+ email?: string;
914
+ logoAsset?: ImageAsset;
915
+ bannerAsset?: ImageAsset;
916
+ color?: string;
917
+ resourceLinks?: Array<ResourceLink>;
918
+ tags?: Array<string>;
893
919
  /**
894
- * The block finality timestamp.
920
+ * A wallet or contract address in mixed-case checksum encoding.
895
921
  */
896
- blockTimestamp: number;
922
+ address: string;
923
+ deploymentDetails: ContractDeploymentDetails;
924
+ ercType: Erc1155Contract.ercType;
897
925
  /**
898
- * The block hash identifier.
926
+ * The contract symbol.
899
927
  */
900
- blockHash: string;
928
+ symbol?: string;
929
+ pricingProviders?: PricingProviders;
930
+ };
931
+ declare namespace Erc1155Contract {
932
+ enum ercType {
933
+ ERC_1155 = "ERC-1155"
934
+ }
935
+ }
936
+
937
+ type Erc20Contract = {
901
938
  /**
902
- * The index at which the transaction occured in the block (0-indexed).
939
+ * The contract name.
903
940
  */
904
- blockIndex: number;
941
+ name?: string;
942
+ description?: string;
943
+ officialSite?: string;
944
+ email?: string;
945
+ logoAsset?: ImageAsset;
946
+ bannerAsset?: ImageAsset;
947
+ color?: string;
948
+ resourceLinks?: Array<ResourceLink>;
949
+ tags?: Array<string>;
905
950
  /**
906
- * The transaction hash identifier.
951
+ * A wallet or contract address in mixed-case checksum encoding.
907
952
  */
908
- txHash: string;
953
+ address: string;
954
+ deploymentDetails: ContractDeploymentDetails;
955
+ ercType: Erc20Contract.ercType;
909
956
  /**
910
- * The transaction status, which is either 0 (failed) or 1 (successful).
957
+ * The contract symbol.
911
958
  */
912
- txStatus: string;
959
+ symbol?: string;
913
960
  /**
914
- * The transaction type.
961
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
915
962
  */
916
- txType: number;
963
+ decimals: number;
964
+ pricingProviders?: PricingProviders;
965
+ };
966
+ declare namespace Erc20Contract {
967
+ enum ercType {
968
+ ERC_20 = "ERC-20"
969
+ }
970
+ }
971
+
972
+ type Erc721Contract = {
917
973
  /**
918
- * The gas limit set for the transaction.
974
+ * The contract name.
919
975
  */
920
- gasLimit: string;
976
+ name?: string;
977
+ description?: string;
978
+ officialSite?: string;
979
+ email?: string;
980
+ logoAsset?: ImageAsset;
981
+ bannerAsset?: ImageAsset;
982
+ color?: string;
983
+ resourceLinks?: Array<ResourceLink>;
984
+ tags?: Array<string>;
921
985
  /**
922
- * The amount of gas used.
986
+ * A wallet or contract address in mixed-case checksum encoding.
923
987
  */
924
- gasUsed: string;
988
+ address: string;
989
+ deploymentDetails: ContractDeploymentDetails;
990
+ ercType: Erc721Contract.ercType;
925
991
  /**
926
- * The gas price denominated by the number of decimals of the native token.
992
+ * The contract symbol.
927
993
  */
928
- gasPrice: string;
994
+ symbol?: string;
995
+ };
996
+ declare namespace Erc721Contract {
997
+ enum ercType {
998
+ ERC_721 = "ERC-721"
999
+ }
1000
+ }
1001
+
1002
+ type UnknownContract = {
929
1003
  /**
930
- * The nonce used by the sender of the transaction.
1004
+ * The contract name.
931
1005
  */
932
- nonce: string;
933
- from: RichAddress;
934
- to: RichAddress;
935
- method?: Method;
936
- value: string;
1006
+ name?: string;
1007
+ description?: string;
1008
+ officialSite?: string;
1009
+ email?: string;
1010
+ logoAsset?: ImageAsset;
1011
+ bannerAsset?: ImageAsset;
1012
+ color?: string;
1013
+ resourceLinks?: Array<ResourceLink>;
1014
+ tags?: Array<string>;
937
1015
  /**
938
- * The data sent for the transaction.
1016
+ * A wallet or contract address in mixed-case checksum encoding.
939
1017
  */
940
- input: string;
941
- baseFeePerGas: string;
942
- maxFeePerGas?: string;
943
- maxPriorityFeePerGas?: string;
1018
+ address: string;
1019
+ deploymentDetails: ContractDeploymentDetails;
1020
+ ercType: UnknownContract.ercType;
944
1021
  };
945
-
946
- declare enum InternalTransactionOpCall {
947
- UNKNOWN = "UNKNOWN",
948
- CALL = "CALL",
949
- CREATE = "CREATE",
950
- CREATE2 = "CREATE2",
951
- CALLCODE = "CALLCODE",
952
- DELEGATECALL = "DELEGATECALL",
953
- STATICCALL = "STATICCALL"
1022
+ declare namespace UnknownContract {
1023
+ enum ercType {
1024
+ UNKNOWN = "UNKNOWN"
1025
+ }
954
1026
  }
955
1027
 
956
- type InternalTransactionDetails = {
957
- from: RichAddress;
958
- to: RichAddress;
959
- internalTxType: InternalTransactionOpCall;
960
- value: string;
961
- /**
962
- * True if the internal transaction was reverted.
963
- */
964
- isReverted: boolean;
965
- gasUsed: string;
966
- gasLimit: string;
1028
+ type UpdateContractResponse = {
1029
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
967
1030
  };
968
1031
 
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
1032
+ declare class EvmContractsService {
1033
+ readonly httpRequest: BaseHttpRequest;
1034
+ constructor(httpRequest: BaseHttpRequest);
971
1035
  /**
972
- * The current token price, if available.
1036
+ * Get contract metadata
1037
+ * Gets metadata about the contract at the given address.
1038
+ * @returns any
1039
+ * @throws ApiError
973
1040
  */
974
- currentPrice?: Money;
1041
+ getContractMetadata({ chainId, address, }: {
1042
+ /**
1043
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1044
+ */
1045
+ chainId: string;
1046
+ /**
1047
+ * Contract address on the relevant chain.
1048
+ */
1049
+ address: string;
1050
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
975
1051
  /**
976
- * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1052
+ * Update contract information
1053
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1054
+ * @returns UpdateContractResponse
1055
+ * @throws ApiError
977
1056
  */
978
- historicalPrice?: Money;
1057
+ updateContractInfo({ chainId, address, requestBody, }: {
1058
+ /**
1059
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1060
+ */
1061
+ chainId: string;
1062
+ /**
1063
+ * Contract address on the relevant chain.
1064
+ */
1065
+ address: string;
1066
+ requestBody: ContractSubmissionBody;
1067
+ }): CancelablePromise<UpdateContractResponse>;
1068
+ }
1069
+
1070
+ type Erc1155Token = {
1071
+ /**
1072
+ * A wallet or contract address in mixed-case checksum encoding.
1073
+ */
1074
+ address: string;
1075
+ ercType: Erc1155Token.ercType;
1076
+ tokenId: string;
1077
+ tokenUri: string;
1078
+ metadata: Erc1155TokenMetadata;
979
1079
  };
1080
+ declare namespace Erc1155Token {
1081
+ enum ercType {
1082
+ ERC_1155 = "ERC-1155"
1083
+ }
1084
+ }
980
1085
 
981
- type GetTransactionResponse = {
1086
+ type RichAddress = {
982
1087
  /**
983
- * The list of ERC-20 transfers.
1088
+ * The contract name.
984
1089
  */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
1090
+ name?: string;
986
1091
  /**
987
- * The list of ERC-721 transfers.
1092
+ * The contract symbol.
988
1093
  */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
1094
+ symbol?: string;
990
1095
  /**
991
- * The list of ERC-1155 transfers.
1096
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
992
1097
  */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1098
+ decimals?: number;
994
1099
  /**
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.
1100
+ * The logo uri for the address.
996
1101
  */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1102
+ logoUri?: string;
1103
+ /**
1104
+ * A wallet or contract address in mixed-case checksum encoding.
1105
+ */
1106
+ address: string;
1000
1107
  };
1001
1108
 
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1109
+ type Erc1155TransferDetails = {
1110
+ from: RichAddress;
1111
+ to: RichAddress;
1112
+ logIndex: number;
1113
+ value: string;
1114
+ erc1155Token: Erc1155Token;
1115
+ };
1116
+
1117
+ type Erc20Token = {
1004
1118
  /**
1005
- * The address that initiated the transaction which deployed this contract.
1119
+ * A wallet or contract address in mixed-case checksum encoding.
1006
1120
  */
1007
- deployerAddress: string;
1121
+ address: string;
1008
1122
  /**
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.
1123
+ * The contract name.
1010
1124
  */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1125
+ name: string;
1015
1126
  /**
1016
- * INPUT ONLY
1127
+ * The contract symbol.
1017
1128
  */
1018
- assetId?: string;
1129
+ symbol: string;
1019
1130
  /**
1020
- * OUTPUT ONLY
1131
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1021
1132
  */
1022
- imageUri?: string;
1133
+ decimals: number;
1134
+ /**
1135
+ * The logo uri for the address.
1136
+ */
1137
+ logoUri?: string;
1138
+ ercType: Erc20Token.ercType;
1139
+ /**
1140
+ * The token price, if available.
1141
+ */
1142
+ price?: Money;
1023
1143
  };
1024
-
1025
- declare enum ResourceLinkType {
1026
- BLOG = "Blog",
1027
- COIN_GECKO = "CoinGecko",
1028
- COIN_MARKET_CAP = "CoinMarketCap",
1029
- DISCORD = "Discord",
1030
- DOCUMENTATION = "Documentation",
1031
- FACEBOOK = "Facebook",
1032
- GITHUB = "Github",
1033
- INSTAGRAM = "Instagram",
1034
- LINKED_IN = "LinkedIn",
1035
- MEDIUM = "Medium",
1036
- REDDIT = "Reddit",
1037
- SUPPORT = "Support",
1038
- TELEGRAM = "Telegram",
1039
- TIK_TOK = "TikTok",
1040
- TWITTER = "Twitter",
1041
- WEBSITE = "Website",
1042
- WHITEPAPER = "Whitepaper",
1043
- YOUTUBE = "Youtube"
1144
+ declare namespace Erc20Token {
1145
+ enum ercType {
1146
+ ERC_20 = "ERC-20"
1147
+ }
1044
1148
  }
1045
1149
 
1046
- type ResourceLink = {
1047
- type: ResourceLinkType;
1048
- url: string;
1150
+ type Erc20TransferDetails = {
1151
+ from: RichAddress;
1152
+ to: RichAddress;
1153
+ logIndex: number;
1154
+ value: string;
1155
+ erc20Token: Erc20Token;
1049
1156
  };
1050
1157
 
1051
- type Erc1155Contract = {
1052
- /**
1053
- * The contract name.
1054
- */
1055
- name?: string;
1056
- description?: string;
1057
- officialSite?: string;
1058
- email?: string;
1059
- logoAsset?: ImageAsset;
1060
- bannerAsset?: ImageAsset;
1061
- color?: string;
1062
- coingeckoCoinId?: string;
1063
- resourceLinks?: Array<ResourceLink>;
1064
- tags?: Array<string>;
1158
+ type Erc721Token = {
1065
1159
  /**
1066
1160
  * A wallet or contract address in mixed-case checksum encoding.
1067
1161
  */
1068
1162
  address: string;
1069
- deploymentDetails: ContractDeploymentDetails;
1070
- ercType: Erc1155Contract.ercType;
1163
+ /**
1164
+ * The contract name.
1165
+ */
1166
+ name: string;
1071
1167
  /**
1072
1168
  * The contract symbol.
1073
1169
  */
1074
- symbol?: string;
1170
+ symbol: string;
1171
+ ercType: Erc721Token.ercType;
1172
+ tokenId: string;
1173
+ tokenUri: string;
1174
+ metadata: Erc721TokenMetadata;
1175
+ /**
1176
+ * A wallet or contract address in mixed-case checksum encoding.
1177
+ */
1178
+ ownerAddress?: string;
1075
1179
  };
1076
- declare namespace Erc1155Contract {
1180
+ declare namespace Erc721Token {
1077
1181
  enum ercType {
1078
- ERC_1155 = "ERC-1155"
1182
+ ERC_721 = "ERC-721"
1079
1183
  }
1080
1184
  }
1081
1185
 
1082
- type Erc20Contract = {
1186
+ type Erc721TransferDetails = {
1187
+ from: RichAddress;
1188
+ to: RichAddress;
1189
+ logIndex: number;
1190
+ erc721Token: Erc721Token;
1191
+ };
1192
+
1193
+ /**
1194
+ * 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.
1195
+ */
1196
+ declare enum TransactionMethodType {
1197
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1198
+ CONTRACT_CALL = "CONTRACT_CALL",
1199
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1200
+ }
1201
+
1202
+ type Method = {
1203
+ callType: TransactionMethodType;
1083
1204
  /**
1084
- * The contract name.
1205
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1085
1206
  */
1086
- name?: string;
1087
- description?: string;
1088
- officialSite?: string;
1089
- email?: string;
1090
- logoAsset?: ImageAsset;
1091
- bannerAsset?: ImageAsset;
1092
- color?: string;
1093
- coingeckoCoinId?: string;
1094
- resourceLinks?: Array<ResourceLink>;
1095
- tags?: Array<string>;
1207
+ methodHash: string;
1208
+ /**
1209
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1210
+ */
1211
+ methodName?: string;
1212
+ };
1213
+
1214
+ type FullNativeTransactionDetails = {
1215
+ /**
1216
+ * The block number on the chain.
1217
+ */
1218
+ blockNumber: string;
1219
+ /**
1220
+ * The block finality timestamp.
1221
+ */
1222
+ blockTimestamp: number;
1223
+ /**
1224
+ * The block hash identifier.
1225
+ */
1226
+ blockHash: string;
1227
+ /**
1228
+ * The index at which the transaction occured in the block (0-indexed).
1229
+ */
1230
+ blockIndex: number;
1231
+ /**
1232
+ * The transaction hash identifier.
1233
+ */
1234
+ txHash: string;
1235
+ /**
1236
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1237
+ */
1238
+ txStatus: string;
1239
+ /**
1240
+ * The transaction type.
1241
+ */
1242
+ txType: number;
1096
1243
  /**
1097
- * A wallet or contract address in mixed-case checksum encoding.
1244
+ * The gas limit set for the transaction.
1098
1245
  */
1099
- address: string;
1100
- deploymentDetails: ContractDeploymentDetails;
1101
- ercType: Erc20Contract.ercType;
1246
+ gasLimit: string;
1102
1247
  /**
1103
- * The contract symbol.
1248
+ * The amount of gas used.
1104
1249
  */
1105
- symbol?: string;
1250
+ gasUsed: string;
1106
1251
  /**
1107
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1252
+ * The gas price denominated by the number of decimals of the native token.
1108
1253
  */
1109
- decimals: number;
1254
+ gasPrice: string;
1255
+ /**
1256
+ * The nonce used by the sender of the transaction.
1257
+ */
1258
+ nonce: string;
1259
+ from: RichAddress;
1260
+ to: RichAddress;
1261
+ method?: Method;
1262
+ value: string;
1263
+ /**
1264
+ * The data sent for the transaction.
1265
+ */
1266
+ input: string;
1267
+ baseFeePerGas: string;
1268
+ maxFeePerGas?: string;
1269
+ maxPriorityFeePerGas?: string;
1110
1270
  };
1111
- declare namespace Erc20Contract {
1112
- enum ercType {
1113
- ERC_20 = "ERC-20"
1114
- }
1271
+
1272
+ declare enum InternalTransactionOpCall {
1273
+ UNKNOWN = "UNKNOWN",
1274
+ CALL = "CALL",
1275
+ CREATE = "CREATE",
1276
+ CREATE2 = "CREATE2",
1277
+ CALLCODE = "CALLCODE",
1278
+ DELEGATECALL = "DELEGATECALL",
1279
+ STATICCALL = "STATICCALL"
1115
1280
  }
1116
1281
 
1117
- type Erc721Contract = {
1282
+ type InternalTransactionDetails = {
1283
+ from: RichAddress;
1284
+ to: RichAddress;
1285
+ internalTxType: InternalTransactionOpCall;
1286
+ value: string;
1118
1287
  /**
1119
- * The contract name.
1288
+ * True if the internal transaction was reverted.
1120
1289
  */
1121
- name?: string;
1122
- description?: string;
1123
- officialSite?: string;
1124
- email?: string;
1125
- logoAsset?: ImageAsset;
1126
- bannerAsset?: ImageAsset;
1127
- color?: string;
1128
- coingeckoCoinId?: string;
1129
- resourceLinks?: Array<ResourceLink>;
1130
- tags?: Array<string>;
1290
+ isReverted: boolean;
1291
+ gasUsed: string;
1292
+ gasLimit: string;
1293
+ };
1294
+
1295
+ type NetworkTokenDetails = {
1296
+ networkToken: NetworkToken;
1131
1297
  /**
1132
- * A wallet or contract address in mixed-case checksum encoding.
1298
+ * The current token price, if available.
1133
1299
  */
1134
- address: string;
1135
- deploymentDetails: ContractDeploymentDetails;
1136
- ercType: Erc721Contract.ercType;
1300
+ currentPrice?: Money;
1137
1301
  /**
1138
- * The contract symbol.
1302
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1139
1303
  */
1140
- symbol?: string;
1304
+ historicalPrice?: Money;
1141
1305
  };
1142
- declare namespace Erc721Contract {
1143
- enum ercType {
1144
- ERC_721 = "ERC-721"
1145
- }
1146
- }
1147
1306
 
1148
- type UnknownContract = {
1307
+ type GetTransactionResponse = {
1149
1308
  /**
1150
- * The contract name.
1309
+ * The list of ERC-20 transfers.
1151
1310
  */
1152
- name?: string;
1153
- description?: string;
1154
- officialSite?: string;
1155
- email?: string;
1156
- logoAsset?: ImageAsset;
1157
- bannerAsset?: ImageAsset;
1158
- color?: string;
1159
- coingeckoCoinId?: string;
1160
- resourceLinks?: Array<ResourceLink>;
1161
- tags?: Array<string>;
1311
+ erc20Transfers?: Array<Erc20TransferDetails>;
1162
1312
  /**
1163
- * A wallet or contract address in mixed-case checksum encoding.
1313
+ * The list of ERC-721 transfers.
1164
1314
  */
1165
- address: string;
1166
- deploymentDetails: ContractDeploymentDetails;
1167
- ercType: UnknownContract.ercType;
1315
+ erc721Transfers?: Array<Erc721TransferDetails>;
1316
+ /**
1317
+ * The list of ERC-1155 transfers.
1318
+ */
1319
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1320
+ /**
1321
+ * 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.
1322
+ */
1323
+ internalTransactions?: Array<InternalTransactionDetails>;
1324
+ networkTokenDetails: NetworkTokenDetails;
1325
+ nativeTransaction: FullNativeTransactionDetails;
1168
1326
  };
1169
- declare namespace UnknownContract {
1170
- enum ercType {
1171
- UNKNOWN = "UNKNOWN"
1172
- }
1173
- }
1174
1327
 
1175
1328
  type ListContractsResponse = {
1176
1329
  /**
1177
1330
  * 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.
1178
1331
  */
1179
1332
  nextPageToken?: string;
1180
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1333
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1181
1334
  };
1182
1335
 
1183
1336
  type Erc1155Transfer = {
@@ -1407,7 +1560,7 @@ type ListTransfersResponse = {
1407
1560
  * 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.
1408
1561
  */
1409
1562
  nextPageToken?: string;
1410
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1563
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
1411
1564
  };
1412
1565
 
1413
1566
  declare enum SortOrder {
@@ -1431,7 +1584,7 @@ declare class EvmTransactionsService {
1431
1584
  */
1432
1585
  getDeploymentTransaction({ chainId, address, currency, }: {
1433
1586
  /**
1434
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1587
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1435
1588
  */
1436
1589
  chainId: string;
1437
1590
  /**
@@ -1449,23 +1602,23 @@ declare class EvmTransactionsService {
1449
1602
  * @returns ListContractsResponse
1450
1603
  * @throws ApiError
1451
1604
  */
1452
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1605
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1453
1606
  /**
1454
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1607
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1455
1608
  */
1456
1609
  chainId: string;
1457
1610
  /**
1458
1611
  * A wallet address.
1459
1612
  */
1460
1613
  address: string;
1461
- /**
1462
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1463
- */
1464
- pageSize?: number;
1465
1614
  /**
1466
1615
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1467
1616
  */
1468
1617
  pageToken?: string;
1618
+ /**
1619
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1620
+ */
1621
+ pageSize?: number;
1469
1622
  }): CancelablePromise<ListContractsResponse>;
1470
1623
  /**
1471
1624
  * List ERC transfers
@@ -1473,25 +1626,31 @@ declare class EvmTransactionsService {
1473
1626
  * @returns ListTransfersResponse
1474
1627
  * @throws ApiError
1475
1628
  */
1476
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1629
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1477
1630
  /**
1478
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1631
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1479
1632
  */
1480
1633
  chainId: string;
1481
1634
  /**
1482
1635
  * A wallet address.
1483
1636
  */
1484
1637
  address: string;
1638
+ /**
1639
+ * 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.
1640
+ */
1485
1641
  startBlock?: number;
1486
- endBlock?: number;
1487
1642
  /**
1488
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1643
+ * 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.
1489
1644
  */
1490
- pageSize?: number;
1645
+ endBlock?: number;
1491
1646
  /**
1492
1647
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1493
1648
  */
1494
1649
  pageToken?: string;
1650
+ /**
1651
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1652
+ */
1653
+ pageSize?: number;
1495
1654
  }): CancelablePromise<ListTransfersResponse>;
1496
1655
  /**
1497
1656
  * List transactions
@@ -1501,24 +1660,30 @@ declare class EvmTransactionsService {
1501
1660
  * @returns ListTransactionDetailsResponse
1502
1661
  * @throws ApiError
1503
1662
  */
1504
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1663
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1505
1664
  /**
1506
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1665
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1507
1666
  */
1508
1667
  chainId: string;
1509
1668
  /**
1510
1669
  * A wallet address.
1511
1670
  */
1512
1671
  address: string;
1672
+ /**
1673
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1674
+ */
1675
+ pageToken?: string;
1513
1676
  /**
1514
1677
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1515
1678
  */
1516
1679
  pageSize?: number;
1517
1680
  /**
1518
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1681
+ * 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.
1519
1682
  */
1520
- pageToken?: string;
1521
1683
  startBlock?: number;
1684
+ /**
1685
+ * 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.
1686
+ */
1522
1687
  endBlock?: number;
1523
1688
  /**
1524
1689
  * 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.
@@ -1531,25 +1696,31 @@ declare class EvmTransactionsService {
1531
1696
  * @returns ListNativeTransactionsResponse
1532
1697
  * @throws ApiError
1533
1698
  */
1534
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1699
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1535
1700
  /**
1536
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1701
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1537
1702
  */
1538
1703
  chainId: string;
1539
1704
  /**
1540
1705
  * A wallet address.
1541
1706
  */
1542
1707
  address: string;
1708
+ /**
1709
+ * 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.
1710
+ */
1543
1711
  startBlock?: number;
1544
- endBlock?: number;
1545
1712
  /**
1546
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1713
+ * 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.
1547
1714
  */
1548
- pageSize?: number;
1715
+ endBlock?: number;
1549
1716
  /**
1550
1717
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1551
1718
  */
1552
1719
  pageToken?: string;
1720
+ /**
1721
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1722
+ */
1723
+ pageSize?: number;
1553
1724
  }): CancelablePromise<ListNativeTransactionsResponse>;
1554
1725
  /**
1555
1726
  * List ERC-20 transfers
@@ -1557,25 +1728,31 @@ declare class EvmTransactionsService {
1557
1728
  * @returns ListErc20TransactionsResponse
1558
1729
  * @throws ApiError
1559
1730
  */
1560
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1731
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1561
1732
  /**
1562
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1733
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1563
1734
  */
1564
1735
  chainId: string;
1565
1736
  /**
1566
1737
  * A wallet address.
1567
1738
  */
1568
1739
  address: string;
1740
+ /**
1741
+ * 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.
1742
+ */
1569
1743
  startBlock?: number;
1570
- endBlock?: number;
1571
1744
  /**
1572
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1745
+ * 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.
1573
1746
  */
1574
- pageSize?: number;
1747
+ endBlock?: number;
1575
1748
  /**
1576
1749
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1577
1750
  */
1578
1751
  pageToken?: string;
1752
+ /**
1753
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1754
+ */
1755
+ pageSize?: number;
1579
1756
  }): CancelablePromise<ListErc20TransactionsResponse>;
1580
1757
  /**
1581
1758
  * List ERC-721 transfers
@@ -1583,25 +1760,31 @@ declare class EvmTransactionsService {
1583
1760
  * @returns ListErc721TransactionsResponse
1584
1761
  * @throws ApiError
1585
1762
  */
1586
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1763
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1587
1764
  /**
1588
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1765
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1589
1766
  */
1590
1767
  chainId: string;
1591
1768
  /**
1592
1769
  * A wallet address.
1593
1770
  */
1594
1771
  address: string;
1772
+ /**
1773
+ * 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.
1774
+ */
1595
1775
  startBlock?: number;
1596
- endBlock?: number;
1597
1776
  /**
1598
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1777
+ * 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.
1599
1778
  */
1600
- pageSize?: number;
1779
+ endBlock?: number;
1601
1780
  /**
1602
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1603
1782
  */
1604
1783
  pageToken?: string;
1784
+ /**
1785
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1786
+ */
1787
+ pageSize?: number;
1605
1788
  }): CancelablePromise<ListErc721TransactionsResponse>;
1606
1789
  /**
1607
1790
  * List ERC-1155 transfers
@@ -1609,25 +1792,31 @@ declare class EvmTransactionsService {
1609
1792
  * @returns ListErc1155TransactionsResponse
1610
1793
  * @throws ApiError
1611
1794
  */
1612
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1795
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1613
1796
  /**
1614
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1797
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1615
1798
  */
1616
1799
  chainId: string;
1617
1800
  /**
1618
1801
  * A wallet address.
1619
1802
  */
1620
1803
  address: string;
1804
+ /**
1805
+ * 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.
1806
+ */
1621
1807
  startBlock?: number;
1622
- endBlock?: number;
1623
1808
  /**
1624
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1809
+ * 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.
1625
1810
  */
1626
- pageSize?: number;
1811
+ endBlock?: number;
1627
1812
  /**
1628
1813
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1629
1814
  */
1630
1815
  pageToken?: string;
1816
+ /**
1817
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1818
+ */
1819
+ pageSize?: number;
1631
1820
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1632
1821
  /**
1633
1822
  * List internal transactions
@@ -1637,25 +1826,31 @@ declare class EvmTransactionsService {
1637
1826
  * @returns ListInternalTransactionsResponse
1638
1827
  * @throws ApiError
1639
1828
  */
1640
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1829
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1641
1830
  /**
1642
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1831
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1643
1832
  */
1644
1833
  chainId: string;
1645
1834
  /**
1646
1835
  * A wallet address.
1647
1836
  */
1648
1837
  address: string;
1838
+ /**
1839
+ * 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.
1840
+ */
1649
1841
  startBlock?: number;
1650
- endBlock?: number;
1651
1842
  /**
1652
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1843
+ * 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.
1653
1844
  */
1654
- pageSize?: number;
1845
+ endBlock?: number;
1655
1846
  /**
1656
1847
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1657
1848
  */
1658
1849
  pageToken?: string;
1850
+ /**
1851
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1852
+ */
1853
+ pageSize?: number;
1659
1854
  }): CancelablePromise<ListInternalTransactionsResponse>;
1660
1855
  /**
1661
1856
  * Get transaction
@@ -1665,7 +1860,7 @@ declare class EvmTransactionsService {
1665
1860
  */
1666
1861
  getTransaction({ chainId, txHash, }: {
1667
1862
  /**
1668
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1863
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1669
1864
  */
1670
1865
  chainId: string;
1671
1866
  /**
@@ -1674,61 +1869,138 @@ declare class EvmTransactionsService {
1674
1869
  txHash: string;
1675
1870
  }): CancelablePromise<GetTransactionResponse>;
1676
1871
  /**
1677
- * List transactions for a block
1678
- * Lists the transactions that occured in a given block.
1679
- * @returns ListNativeTransactionsResponse
1872
+ * List transactions for a block
1873
+ * Lists the transactions that occured in a given block.
1874
+ * @returns ListNativeTransactionsResponse
1875
+ * @throws ApiError
1876
+ */
1877
+ getTransactionsForBlock({ chainId, blockId, }: {
1878
+ /**
1879
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1880
+ */
1881
+ chainId: string;
1882
+ /**
1883
+ * A block identifier which is either a block number or the block hash.
1884
+ */
1885
+ blockId: string;
1886
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1887
+ /**
1888
+ * List latest transactions
1889
+ * Lists the latest transactions. Filterable by status.
1890
+ * @returns ListNativeTransactionsResponse
1891
+ * @throws ApiError
1892
+ */
1893
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1894
+ /**
1895
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1896
+ */
1897
+ chainId: string;
1898
+ /**
1899
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1900
+ */
1901
+ pageToken?: string;
1902
+ /**
1903
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1904
+ */
1905
+ pageSize?: number;
1906
+ /**
1907
+ * A status filter for listed transactions.
1908
+ */
1909
+ status?: TransactionStatus;
1910
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1911
+ }
1912
+
1913
+ declare class HealthCheckService {
1914
+ readonly httpRequest: BaseHttpRequest;
1915
+ constructor(httpRequest: BaseHttpRequest);
1916
+ /**
1917
+ * Get the health of the service
1918
+ * @returns any The Health Check is successful
1919
+ * @throws ApiError
1920
+ */
1921
+ healthCheck(): CancelablePromise<{
1922
+ status?: string;
1923
+ info?: Record<string, Record<string, string>> | null;
1924
+ error?: Record<string, Record<string, string>> | null;
1925
+ details?: Record<string, Record<string, string>>;
1926
+ }>;
1927
+ }
1928
+
1929
+ type ListNftTokens = {
1930
+ /**
1931
+ * 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.
1932
+ */
1933
+ nextPageToken?: string;
1934
+ tokens: Array<(Erc721Token | Erc1155Token)>;
1935
+ };
1936
+
1937
+ declare class NfTsService {
1938
+ readonly httpRequest: BaseHttpRequest;
1939
+ constructor(httpRequest: BaseHttpRequest);
1940
+ /**
1941
+ * Reindex NFT metadata
1942
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1943
+ * @returns any
1680
1944
  * @throws ApiError
1681
1945
  */
1682
- getTransactionsForBlock({ chainId, blockId, }: {
1946
+ reindexNft({ chainId, address, tokenId, }: {
1683
1947
  /**
1684
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1948
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1685
1949
  */
1686
1950
  chainId: string;
1687
1951
  /**
1688
- * A block identifier which is either a block number or the block hash.
1952
+ * Contract address on the relevant chain.
1689
1953
  */
1690
- blockId: string;
1691
- }): CancelablePromise<ListNativeTransactionsResponse>;
1954
+ address: string;
1955
+ /**
1956
+ * TokenId on the contract
1957
+ */
1958
+ tokenId: string;
1959
+ }): CancelablePromise<any>;
1692
1960
  /**
1693
- * List latest transactions
1694
- * Lists the latest transactions. Filterable by status.
1695
- * @returns ListNativeTransactionsResponse
1961
+ * List tokens
1962
+ * Lists tokens for an NFT contract.
1963
+ * @returns ListNftTokens
1696
1964
  * @throws ApiError
1697
1965
  */
1698
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1966
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1699
1967
  /**
1700
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1968
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1701
1969
  */
1702
1970
  chainId: string;
1703
1971
  /**
1704
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1972
+ * Contract address on the relevant chain.
1705
1973
  */
1706
- pageSize?: number;
1974
+ address: string;
1707
1975
  /**
1708
1976
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1709
1977
  */
1710
1978
  pageToken?: string;
1711
1979
  /**
1712
- * A status filter for listed transactions.
1980
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1713
1981
  */
1714
- status?: TransactionStatus;
1715
- }): CancelablePromise<ListNativeTransactionsResponse>;
1716
- }
1717
-
1718
- declare class HealthCheckService {
1719
- readonly httpRequest: BaseHttpRequest;
1720
- constructor(httpRequest: BaseHttpRequest);
1982
+ pageSize?: number;
1983
+ }): CancelablePromise<ListNftTokens>;
1721
1984
  /**
1722
- * Get the health of the service
1723
- * @returns any The Health Check is successful
1985
+ * Get token details
1986
+ * Gets token details for a specific token of an NFT contract.
1987
+ * @returns any
1724
1988
  * @throws ApiError
1725
1989
  */
1726
- healthCheck(): CancelablePromise<{
1727
- status?: string;
1728
- info?: Record<string, Record<string, string>> | null;
1729
- error?: Record<string, Record<string, string>> | null;
1730
- details?: Record<string, Record<string, string>>;
1731
- }>;
1990
+ getTokenDetails({ chainId, address, tokenId, }: {
1991
+ /**
1992
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1993
+ */
1994
+ chainId: string;
1995
+ /**
1996
+ * Contract address on the relevant chain.
1997
+ */
1998
+ address: string;
1999
+ /**
2000
+ * TokenId on the contract
2001
+ */
2002
+ tokenId: string;
2003
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1732
2004
  }
1733
2005
 
1734
2006
  type EvmNetworkOptions = {
@@ -1736,8 +2008,12 @@ type EvmNetworkOptions = {
1736
2008
  includeChains: Array<string>;
1737
2009
  };
1738
2010
 
2011
+ declare enum EVMOperationType {
2012
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2013
+ }
2014
+
1739
2015
  type CreateEvmTransactionExportRequest = {
1740
- type: CreateEvmTransactionExportRequest.type;
2016
+ type: EVMOperationType;
1741
2017
  firstDate: string;
1742
2018
  lastDate: string;
1743
2019
  /**
@@ -1750,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
1750
2026
  endDate: string;
1751
2027
  options: EvmNetworkOptions;
1752
2028
  };
1753
- declare namespace CreateEvmTransactionExportRequest {
1754
- enum type {
1755
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1756
- }
2029
+
2030
+ declare enum PrimaryNetworkOperationType {
2031
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2032
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2033
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
1757
2034
  }
1758
2035
 
1759
2036
  type PrimaryNetworkOptions = {
1760
- addresses: Array<string>;
2037
+ addresses?: Array<string>;
1761
2038
  cChainEvmAddresses?: Array<string>;
1762
2039
  includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
1763
2040
  };
1764
2041
 
1765
2042
  type CreatePrimaryNetworkTransactionExportRequest = {
1766
- type: CreatePrimaryNetworkTransactionExportRequest.type;
2043
+ type: PrimaryNetworkOperationType;
1767
2044
  firstDate: string;
1768
2045
  lastDate: string;
1769
2046
  /**
@@ -1776,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
1776
2053
  endDate: string;
1777
2054
  options: PrimaryNetworkOptions;
1778
2055
  };
1779
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
1780
- enum type {
1781
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1782
- }
1783
- }
1784
2056
 
1785
2057
  declare enum OperationStatus {
1786
2058
  RUNNING = "RUNNING",
@@ -1790,8 +2062,10 @@ declare enum OperationStatus {
1790
2062
  }
1791
2063
 
1792
2064
  declare enum OperationType {
1793
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1794
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2065
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
2066
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
2067
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
2068
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1795
2069
  }
1796
2070
 
1797
2071
  declare enum OperationStatusCode {
@@ -1825,17 +2099,6 @@ type OperationStatusResponse = {
1825
2099
  declare class OperationsService {
1826
2100
  readonly httpRequest: BaseHttpRequest;
1827
2101
  constructor(httpRequest: BaseHttpRequest);
1828
- /**
1829
- * Create transaction export operation
1830
- * Trigger a transaction export operation with given parameters.
1831
- *
1832
- * 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.
1833
- * @returns OperationStatusResponse
1834
- * @throws ApiError
1835
- */
1836
- postTransactionExportJob({ requestBody, }: {
1837
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1838
- }): CancelablePromise<OperationStatusResponse>;
1839
2102
  /**
1840
2103
  * Get operation
1841
2104
  * Gets operation details for the given operation id.
@@ -1848,6 +2111,17 @@ declare class OperationsService {
1848
2111
  */
1849
2112
  operationId: string;
1850
2113
  }): CancelablePromise<OperationStatusResponse>;
2114
+ /**
2115
+ * Create transaction export operation
2116
+ * Trigger a transaction export operation with given parameters.
2117
+ *
2118
+ * 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.
2119
+ * @returns OperationStatusResponse
2120
+ * @throws ApiError
2121
+ */
2122
+ postTransactionExportJob({ requestBody, }: {
2123
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2124
+ }): CancelablePromise<OperationStatusResponse>;
1851
2125
  }
1852
2126
 
1853
2127
  declare enum BlockchainIds {
@@ -1916,39 +2190,57 @@ type ListBlockchainsResponse = {
1916
2190
 
1917
2191
  type ActiveDelegatorDetails = {
1918
2192
  txHash: string;
2193
+ nodeId: string;
1919
2194
  rewardAddresses: Array<string>;
1920
2195
  amountDelegated: string;
1921
2196
  delegationFee: string;
1922
2197
  startTimestamp: number;
1923
2198
  endTimestamp: number;
1924
- delegationStatus: DelegationStatusType;
1925
2199
  estimatedGrossReward: string;
1926
2200
  estimatedNetReward: string;
2201
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1927
2202
  };
2203
+ declare namespace ActiveDelegatorDetails {
2204
+ enum delegationStatus {
2205
+ ACTIVE = "active"
2206
+ }
2207
+ }
1928
2208
 
1929
2209
  type CompletedDelegatorDetails = {
1930
2210
  txHash: string;
2211
+ nodeId: string;
1931
2212
  rewardAddresses: Array<string>;
1932
2213
  amountDelegated: string;
1933
2214
  delegationFee: string;
1934
2215
  startTimestamp: number;
1935
2216
  endTimestamp: number;
1936
- delegationStatus: DelegationStatusType;
1937
2217
  grossReward: string;
1938
2218
  netReward: string;
2219
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1939
2220
  };
2221
+ declare namespace CompletedDelegatorDetails {
2222
+ enum delegationStatus {
2223
+ COMPLETED = "completed"
2224
+ }
2225
+ }
1940
2226
 
1941
2227
  type PendingDelegatorDetails = {
1942
2228
  txHash: string;
2229
+ nodeId: string;
1943
2230
  rewardAddresses: Array<string>;
1944
2231
  amountDelegated: string;
1945
2232
  delegationFee: string;
1946
2233
  startTimestamp: number;
1947
2234
  endTimestamp: number;
1948
- delegationStatus: DelegationStatusType;
1949
2235
  estimatedGrossReward: string;
1950
2236
  estimatedNetReward: string;
2237
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1951
2238
  };
2239
+ declare namespace PendingDelegatorDetails {
2240
+ enum delegationStatus {
2241
+ PENDING = "pending"
2242
+ }
2243
+ }
1952
2244
 
1953
2245
  type ListDelegatorDetailsResponse = {
1954
2246
  /**
@@ -1965,13 +2257,44 @@ type BlockchainInfo = {
1965
2257
  blockchainId: string;
1966
2258
  };
1967
2259
 
2260
+ type SubnetOwnershipInfo = {
2261
+ /**
2262
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2263
+ */
2264
+ locktime: number;
2265
+ /**
2266
+ * Minimum number of signatures required to sign the Subnet update transactions.
2267
+ */
2268
+ threshold: number;
2269
+ /**
2270
+ * Addresses that are eligible to sign the Subnet update transactions.
2271
+ */
2272
+ addresses: Array<string>;
2273
+ };
2274
+
1968
2275
  type Subnet = {
1969
2276
  createBlockTimestamp: number;
1970
2277
  createBlockIndex: string;
1971
2278
  subnetId: string;
2279
+ /**
2280
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2281
+ * @deprecated
2282
+ */
1972
2283
  ownerAddresses: Array<string>;
2284
+ /**
2285
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2286
+ * @deprecated
2287
+ */
1973
2288
  threshold: number;
2289
+ /**
2290
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2291
+ * @deprecated
2292
+ */
1974
2293
  locktime: number;
2294
+ /**
2295
+ * Latest subnet owner details for this Subnet.
2296
+ */
2297
+ subnetOwnershipInfo: SubnetOwnershipInfo;
1975
2298
  blockchains: Array<BlockchainInfo>;
1976
2299
  };
1977
2300
 
@@ -1986,49 +2309,104 @@ type ListSubnetsResponse = {
1986
2309
  type Rewards = {
1987
2310
  validationRewardAmount: string;
1988
2311
  delegationRewardAmount: string;
2312
+ rewardAddresses?: Array<string>;
2313
+ rewardTxHash?: string;
1989
2314
  };
1990
2315
 
1991
- declare enum ValidationStatusType {
1992
- COMPLETED = "completed",
1993
- ACTIVE = "active",
1994
- PENDING = "pending"
1995
- }
2316
+ type ValidatorHealthDetails = {
2317
+ /**
2318
+ * Percent of requests responded to in last polling.
2319
+ */
2320
+ reachabilityPercent: number;
2321
+ /**
2322
+ * Percent of requests benched on the P-Chain in last polling.
2323
+ */
2324
+ benchedPChainRequestsPercent: number;
2325
+ /**
2326
+ * Percentage of requests benched on the X-Chain in last polling.
2327
+ */
2328
+ benchedXChainRequestsPercent: number;
2329
+ /**
2330
+ * Percentage of requests benched on the C-Chain in last polling.
2331
+ */
2332
+ benchedCChainRequestsPercent: number;
2333
+ };
1996
2334
 
1997
2335
  type ActiveValidatorDetails = {
2336
+ txHash: string;
1998
2337
  nodeId: string;
2338
+ subnetId: string;
1999
2339
  amountStaked: string;
2000
- delegationFee: string;
2340
+ delegationFee?: string;
2001
2341
  startTimestamp: number;
2002
2342
  endTimestamp: number;
2003
- validationStatus: ValidationStatusType;
2004
2343
  stakePercentage: number;
2005
2344
  delegatorCount: number;
2006
- amountDelegated: string;
2345
+ amountDelegated?: string;
2007
2346
  uptimePerformance: number;
2008
- avalancheGoVersion: string;
2009
- delegationCapacity: string;
2347
+ avalancheGoVersion?: string;
2348
+ delegationCapacity?: string;
2010
2349
  potentialRewards: Rewards;
2350
+ validationStatus: ActiveValidatorDetails.validationStatus;
2351
+ validatorHealth: ValidatorHealthDetails;
2011
2352
  };
2353
+ declare namespace ActiveValidatorDetails {
2354
+ enum validationStatus {
2355
+ ACTIVE = "active"
2356
+ }
2357
+ }
2012
2358
 
2013
2359
  type CompletedValidatorDetails = {
2360
+ txHash: string;
2014
2361
  nodeId: string;
2362
+ subnetId: string;
2015
2363
  amountStaked: string;
2016
- delegationFee: string;
2364
+ delegationFee?: string;
2017
2365
  startTimestamp: number;
2018
2366
  endTimestamp: number;
2019
- validationStatus: ValidationStatusType;
2020
2367
  delegatorCount: number;
2021
2368
  rewards: Rewards;
2369
+ validationStatus: CompletedValidatorDetails.validationStatus;
2022
2370
  };
2371
+ declare namespace CompletedValidatorDetails {
2372
+ enum validationStatus {
2373
+ COMPLETED = "completed"
2374
+ }
2375
+ }
2023
2376
 
2024
2377
  type PendingValidatorDetails = {
2378
+ txHash: string;
2025
2379
  nodeId: string;
2380
+ subnetId: string;
2026
2381
  amountStaked: string;
2027
- delegationFee: string;
2382
+ delegationFee?: string;
2383
+ startTimestamp: number;
2384
+ endTimestamp: number;
2385
+ validationStatus: PendingValidatorDetails.validationStatus;
2386
+ };
2387
+ declare namespace PendingValidatorDetails {
2388
+ enum validationStatus {
2389
+ PENDING = "pending"
2390
+ }
2391
+ }
2392
+
2393
+ type RemovedValidatorDetails = {
2394
+ txHash: string;
2395
+ nodeId: string;
2396
+ subnetId: string;
2397
+ amountStaked: string;
2398
+ delegationFee?: string;
2028
2399
  startTimestamp: number;
2029
2400
  endTimestamp: number;
2030
- validationStatus: ValidationStatusType;
2401
+ removeTxHash: string;
2402
+ removeTimestamp: number;
2403
+ validationStatus: RemovedValidatorDetails.validationStatus;
2031
2404
  };
2405
+ declare namespace RemovedValidatorDetails {
2406
+ enum validationStatus {
2407
+ REMOVED = "removed"
2408
+ }
2409
+ }
2032
2410
 
2033
2411
  type ListValidatorDetailsResponse = {
2034
2412
  /**
@@ -2036,9 +2414,9 @@ type ListValidatorDetailsResponse = {
2036
2414
  */
2037
2415
  nextPageToken?: string;
2038
2416
  /**
2039
- * The list of Validator Details.
2417
+ * The list of validator Details.
2040
2418
  */
2041
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2419
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2042
2420
  };
2043
2421
 
2044
2422
  declare enum Network {
@@ -2046,6 +2424,29 @@ declare enum Network {
2046
2424
  FUJI = "fuji"
2047
2425
  }
2048
2426
 
2427
+ declare enum ValidationStatusType {
2428
+ COMPLETED = "completed",
2429
+ ACTIVE = "active",
2430
+ PENDING = "pending",
2431
+ REMOVED = "removed"
2432
+ }
2433
+
2434
+ /**
2435
+ * Cap represents if an asset is a variable or fixed cap asset.
2436
+ */
2437
+ declare enum PrimaryNetworkAssetCap {
2438
+ FIXED = "fixed",
2439
+ VARIABLE = "variable"
2440
+ }
2441
+
2442
+ /**
2443
+ * Type of asset like SECP256K1 or NFT.
2444
+ */
2445
+ declare enum PrimaryNetworkAssetType {
2446
+ SECP256K1 = "secp256k1",
2447
+ NFT = "nft"
2448
+ }
2449
+
2049
2450
  type XChainAssetDetails = {
2050
2451
  /**
2051
2452
  * Unique ID for an asset.
@@ -2063,18 +2464,12 @@ type XChainAssetDetails = {
2063
2464
  * Denomination of this asset to represent fungibility.
2064
2465
  */
2065
2466
  denomination: number;
2066
- /**
2067
- * Type of asset like SECP256K1 or NFT.
2068
- */
2069
- type: string;
2467
+ type: PrimaryNetworkAssetType;
2070
2468
  /**
2071
2469
  * Timestamp in seconds this asset was created on.
2072
2470
  */
2073
2471
  createdAtTimestamp: number;
2074
- /**
2075
- * Cap represents if an asset can be or is fixed cap.
2076
- */
2077
- cap: string;
2472
+ cap: PrimaryNetworkAssetCap;
2078
2473
  };
2079
2474
 
2080
2475
  declare enum XChainId {
@@ -2140,19 +2535,19 @@ declare class PrimaryNetworkService {
2140
2535
  * @returns ListBlockchainsResponse
2141
2536
  * @throws ApiError
2142
2537
  */
2143
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2538
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2144
2539
  /**
2145
2540
  * Either mainnet or a testnet.
2146
2541
  */
2147
2542
  network: Network;
2148
- /**
2149
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2150
- */
2151
- pageSize?: number;
2152
2543
  /**
2153
2544
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2154
2545
  */
2155
2546
  pageToken?: string;
2547
+ /**
2548
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2549
+ */
2550
+ pageSize?: number;
2156
2551
  /**
2157
2552
  * 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.
2158
2553
  */
@@ -2164,19 +2559,19 @@ declare class PrimaryNetworkService {
2164
2559
  * @returns ListSubnetsResponse
2165
2560
  * @throws ApiError
2166
2561
  */
2167
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2562
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2168
2563
  /**
2169
2564
  * Either mainnet or a testnet.
2170
2565
  */
2171
2566
  network: Network;
2172
- /**
2173
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2174
- */
2175
- pageSize?: number;
2176
2567
  /**
2177
2568
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2178
2569
  */
2179
2570
  pageToken?: string;
2571
+ /**
2572
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2573
+ */
2574
+ pageSize?: number;
2180
2575
  /**
2181
2576
  * 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.
2182
2577
  */
@@ -2188,19 +2583,19 @@ declare class PrimaryNetworkService {
2188
2583
  * @returns ListValidatorDetailsResponse
2189
2584
  * @throws ApiError
2190
2585
  */
2191
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2586
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2192
2587
  /**
2193
2588
  * Either mainnet or a testnet.
2194
2589
  */
2195
2590
  network: Network;
2196
- /**
2197
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2198
- */
2199
- pageSize?: number;
2200
2591
  /**
2201
2592
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2202
2593
  */
2203
2594
  pageToken?: 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;
2204
2599
  /**
2205
2600
  * A comma separated list of node ids to filter by.
2206
2601
  */
@@ -2214,9 +2609,33 @@ declare class PrimaryNetworkService {
2214
2609
  */
2215
2610
  validationStatus?: ValidationStatusType;
2216
2611
  /**
2217
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2612
+ * 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
2613
+ */
2614
+ minDelegationCapacity?: string;
2615
+ /**
2616
+ * 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.
2617
+ */
2618
+ maxDelegationCapacity?: string;
2619
+ /**
2620
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2218
2621
  */
2219
- minDelegationCapacity?: any;
2622
+ minTimeRemaining?: number;
2623
+ /**
2624
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2625
+ */
2626
+ maxTimeRemaining?: number;
2627
+ /**
2628
+ * 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.
2629
+ */
2630
+ minFeePercentage?: number;
2631
+ /**
2632
+ * 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.
2633
+ */
2634
+ maxFeePercentage?: number;
2635
+ /**
2636
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2637
+ */
2638
+ subnetId?: any;
2220
2639
  }): CancelablePromise<ListValidatorDetailsResponse>;
2221
2640
  /**
2222
2641
  * Get single validator details
@@ -2224,7 +2643,7 @@ declare class PrimaryNetworkService {
2224
2643
  * @returns ListValidatorDetailsResponse
2225
2644
  * @throws ApiError
2226
2645
  */
2227
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2646
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2228
2647
  /**
2229
2648
  * Either mainnet or a testnet.
2230
2649
  */
@@ -2233,14 +2652,14 @@ declare class PrimaryNetworkService {
2233
2652
  * A primary network (P or X chain) nodeId.
2234
2653
  */
2235
2654
  nodeId: string;
2236
- /**
2237
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2238
- */
2239
- pageSize?: number;
2240
2655
  /**
2241
2656
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2242
2657
  */
2243
2658
  pageToken?: string;
2659
+ /**
2660
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2661
+ */
2662
+ pageSize?: number;
2244
2663
  /**
2245
2664
  * 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.
2246
2665
  */
@@ -2256,23 +2675,23 @@ declare class PrimaryNetworkService {
2256
2675
  * @returns ListDelegatorDetailsResponse
2257
2676
  * @throws ApiError
2258
2677
  */
2259
- listDelegators({ network, nodeId, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2678
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2260
2679
  /**
2261
2680
  * Either mainnet or a testnet.
2262
2681
  */
2263
2682
  network: Network;
2264
2683
  /**
2265
- * A primary network (P or X chain) nodeId.
2684
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2266
2685
  */
2267
- nodeId: string;
2686
+ pageToken?: string;
2268
2687
  /**
2269
2688
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2270
2689
  */
2271
2690
  pageSize?: number;
2272
2691
  /**
2273
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2692
+ * A comma separated list of reward addresses to filter by.
2274
2693
  */
2275
- pageToken?: string;
2694
+ rewardAddresses?: string;
2276
2695
  /**
2277
2696
  * 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.
2278
2697
  */
@@ -2281,10 +2700,6 @@ declare class PrimaryNetworkService {
2281
2700
  * Delegation status of the node.
2282
2701
  */
2283
2702
  delegationStatus?: DelegationStatusType;
2284
- /**
2285
- * A comma separated list of reward addresses to filter by.
2286
- */
2287
- rewardAddresses?: string;
2288
2703
  /**
2289
2704
  * A comma separated list of node ids to filter by.
2290
2705
  */
@@ -2320,10 +2735,7 @@ type CChainSharedAssetBalance = {
2320
2735
  * Denomination of this asset to represent fungibility.
2321
2736
  */
2322
2737
  denomination: number;
2323
- /**
2324
- * Type of asset like SECP256K1 or NFT.
2325
- */
2326
- type: string;
2738
+ type: PrimaryNetworkAssetType;
2327
2739
  /**
2328
2740
  * Amount of the asset.
2329
2741
  */
@@ -2358,49 +2770,89 @@ type ListCChainAtomicBalancesResponse = {
2358
2770
  chainInfo: PrimaryNetworkChainInfo;
2359
2771
  };
2360
2772
 
2361
- type PChainAsset = {
2773
+ type AggregatedAssetAmount = {
2774
+ /**
2775
+ * Unique ID for an asset.
2776
+ */
2362
2777
  assetId: string;
2778
+ /**
2779
+ * Name of this asset.
2780
+ */
2781
+ name: string;
2782
+ /**
2783
+ * Symbol for this asset (max 4 characters).
2784
+ */
2785
+ symbol: string;
2786
+ /**
2787
+ * Denomination of this asset to represent fungibility.
2788
+ */
2789
+ denomination: number;
2790
+ type: PrimaryNetworkAssetType;
2791
+ /**
2792
+ * Amount of the asset.
2793
+ */
2363
2794
  amount: string;
2795
+ utxoCount: number;
2364
2796
  };
2365
2797
 
2366
2798
  type PChainSharedAsset = {
2799
+ /**
2800
+ * Unique ID for an asset.
2801
+ */
2367
2802
  assetId: string;
2803
+ /**
2804
+ * Name of this asset.
2805
+ */
2806
+ name: string;
2807
+ /**
2808
+ * Symbol for this asset (max 4 characters).
2809
+ */
2810
+ symbol: string;
2811
+ /**
2812
+ * Denomination of this asset to represent fungibility.
2813
+ */
2814
+ denomination: number;
2815
+ type: PrimaryNetworkAssetType;
2816
+ /**
2817
+ * Amount of the asset.
2818
+ */
2368
2819
  amount: string;
2820
+ utxoCount: number;
2369
2821
  sharedWithChainId: string;
2370
2822
  status: string;
2371
2823
  };
2372
2824
 
2373
2825
  type PChainBalance = {
2374
2826
  /**
2375
- * 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.
2827
+ * 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.
2376
2828
  */
2377
- unlockedUnstaked: Array<PChainAsset>;
2829
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
2378
2830
  /**
2379
- * 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.
2831
+ * 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.
2380
2832
  */
2381
- unlockedStaked: Array<PChainAsset>;
2833
+ unlockedStaked: Array<AggregatedAssetAmount>;
2382
2834
  /**
2383
- * 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.
2835
+ * 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.
2384
2836
  */
2385
- lockedPlatform: Array<PChainAsset>;
2837
+ lockedPlatform: Array<AggregatedAssetAmount>;
2386
2838
  /**
2387
- * 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.
2839
+ * 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.
2388
2840
  */
2389
- lockedStakeable: Array<PChainAsset>;
2841
+ lockedStakeable: Array<AggregatedAssetAmount>;
2390
2842
  /**
2391
- * 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.
2843
+ * 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.
2392
2844
  */
2393
- lockedStaked: Array<PChainAsset>;
2845
+ lockedStaked: Array<AggregatedAssetAmount>;
2394
2846
  /**
2395
- * 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.
2847
+ * 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.
2396
2848
  */
2397
- pendingStaked: Array<PChainAsset>;
2849
+ pendingStaked: Array<AggregatedAssetAmount>;
2398
2850
  /**
2399
- * 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.
2851
+ * 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.
2400
2852
  */
2401
2853
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
2402
2854
  /**
2403
- * 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.
2855
+ * 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.
2404
2856
  */
2405
2857
  atomicMemoryLocked: Array<PChainSharedAsset>;
2406
2858
  };
@@ -2410,34 +2862,6 @@ type ListPChainBalancesResponse = {
2410
2862
  chainInfo: PrimaryNetworkChainInfo;
2411
2863
  };
2412
2864
 
2413
- type XChainAssetBalance = {
2414
- /**
2415
- * Unique ID for an asset.
2416
- */
2417
- assetId: string;
2418
- /**
2419
- * Name of this asset.
2420
- */
2421
- name: string;
2422
- /**
2423
- * Symbol for this asset (max 4 characters).
2424
- */
2425
- symbol: string;
2426
- /**
2427
- * Denomination of this asset to represent fungibility.
2428
- */
2429
- denomination: number;
2430
- /**
2431
- * Type of asset like SECP256K1 or NFT.
2432
- */
2433
- type: string;
2434
- /**
2435
- * Amount of the asset.
2436
- */
2437
- amount: string;
2438
- utxoCount: number;
2439
- };
2440
-
2441
2865
  type XChainSharedAssetBalance = {
2442
2866
  /**
2443
2867
  * Unique ID for an asset.
@@ -2455,10 +2879,7 @@ type XChainSharedAssetBalance = {
2455
2879
  * Denomination of this asset to represent fungibility.
2456
2880
  */
2457
2881
  denomination: number;
2458
- /**
2459
- * Type of asset like SECP256K1 or NFT.
2460
- */
2461
- type: string;
2882
+ type: PrimaryNetworkAssetType;
2462
2883
  /**
2463
2884
  * Amount of the asset.
2464
2885
  */
@@ -2471,11 +2892,11 @@ type XChainBalances = {
2471
2892
  /**
2472
2893
  * A list of objects containing X-chain Asset balance information.
2473
2894
  */
2474
- locked: Array<XChainAssetBalance>;
2895
+ locked: Array<AggregatedAssetAmount>;
2475
2896
  /**
2476
2897
  * A list of objects containing X-chain Asset balance information.
2477
2898
  */
2478
- unlocked: Array<XChainAssetBalance>;
2899
+ unlocked: Array<AggregatedAssetAmount>;
2479
2900
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2480
2901
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2481
2902
  };
@@ -2533,6 +2954,7 @@ type GetPrimaryNetworkBlockResponse = {
2533
2954
  txCount: number;
2534
2955
  transactions: Array<string>;
2535
2956
  blockSizeBytes: number;
2957
+ currentSupply?: string;
2536
2958
  proposerDetails?: ProposerDetails;
2537
2959
  };
2538
2960
 
@@ -2545,6 +2967,7 @@ type PrimaryNetworkBlock = {
2545
2967
  txCount: number;
2546
2968
  transactions: Array<string>;
2547
2969
  blockSizeBytes: number;
2970
+ currentSupply?: string;
2548
2971
  proposerDetails?: ProposerDetails;
2549
2972
  };
2550
2973
 
@@ -2586,7 +3009,7 @@ declare class PrimaryNetworkBlocksService {
2586
3009
  * @returns ListPrimaryNetworkBlocksResponse
2587
3010
  * @throws ApiError
2588
3011
  */
2589
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3012
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2590
3013
  /**
2591
3014
  * A primary network blockchain id or alias.
2592
3015
  */
@@ -2599,14 +3022,14 @@ declare class PrimaryNetworkBlocksService {
2599
3022
  * A primary network (P or X chain) nodeId.
2600
3023
  */
2601
3024
  nodeId: string;
2602
- /**
2603
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2604
- */
2605
- pageSize?: number;
2606
3025
  /**
2607
3026
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2608
3027
  */
2609
3028
  pageToken?: string;
3029
+ /**
3030
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3031
+ */
3032
+ pageSize?: number;
2610
3033
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2611
3034
  /**
2612
3035
  * List latest blocks
@@ -2614,7 +3037,7 @@ declare class PrimaryNetworkBlocksService {
2614
3037
  * @returns ListPrimaryNetworkBlocksResponse
2615
3038
  * @throws ApiError
2616
3039
  */
2617
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3040
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2618
3041
  /**
2619
3042
  * A primary network blockchain id or alias.
2620
3043
  */
@@ -2623,20 +3046,49 @@ declare class PrimaryNetworkBlocksService {
2623
3046
  * Either mainnet or a testnet.
2624
3047
  */
2625
3048
  network: Network;
2626
- /**
2627
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2628
- */
2629
- pageSize?: number;
2630
3049
  /**
2631
3050
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2632
3051
  */
2633
3052
  pageToken?: string;
3053
+ /**
3054
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3055
+ */
3056
+ pageSize?: number;
2634
3057
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2635
3058
  }
2636
3059
 
3060
+ type AssetWithPriceInfo = {
3061
+ /**
3062
+ * Unique ID for an asset.
3063
+ */
3064
+ assetId: string;
3065
+ /**
3066
+ * Name of this asset.
3067
+ */
3068
+ name: string;
3069
+ /**
3070
+ * Symbol for this asset (max 4 characters).
3071
+ */
3072
+ symbol: string;
3073
+ /**
3074
+ * Denomination of this asset to represent fungibility.
3075
+ */
3076
+ denomination: number;
3077
+ type: PrimaryNetworkAssetType;
3078
+ /**
3079
+ * Amount of the asset.
3080
+ */
3081
+ amount: string;
3082
+ /**
3083
+ * 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.
3084
+ */
3085
+ historicalPrice?: Money;
3086
+ };
3087
+
2637
3088
  declare enum RewardType {
2638
3089
  VALIDATOR = "VALIDATOR",
2639
- DELEGATOR = "DELEGATOR"
3090
+ DELEGATOR = "DELEGATOR",
3091
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2640
3092
  }
2641
3093
 
2642
3094
  type HistoricalReward = {
@@ -2652,10 +3104,7 @@ type HistoricalReward = {
2652
3104
  rewardType: RewardType;
2653
3105
  utxoId: string;
2654
3106
  outputIndex: number;
2655
- /**
2656
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2657
- */
2658
- reward: PChainAsset;
3107
+ reward: AssetWithPriceInfo;
2659
3108
  rewardTxHash: string;
2660
3109
  };
2661
3110
 
@@ -2667,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
2667
3116
  historicalRewards: Array<HistoricalReward>;
2668
3117
  };
2669
3118
 
3119
+ type AssetAmount = {
3120
+ /**
3121
+ * Unique ID for an asset.
3122
+ */
3123
+ assetId: string;
3124
+ /**
3125
+ * Name of this asset.
3126
+ */
3127
+ name: string;
3128
+ /**
3129
+ * Symbol for this asset (max 4 characters).
3130
+ */
3131
+ symbol: string;
3132
+ /**
3133
+ * Denomination of this asset to represent fungibility.
3134
+ */
3135
+ denomination: number;
3136
+ type: PrimaryNetworkAssetType;
3137
+ /**
3138
+ * Amount of the asset.
3139
+ */
3140
+ amount: string;
3141
+ };
3142
+
2670
3143
  type PendingReward = {
2671
3144
  /**
2672
3145
  * An array of P-Chain wallet addresses.
@@ -2680,9 +3153,9 @@ type PendingReward = {
2680
3153
  rewardType: RewardType;
2681
3154
  progress: number;
2682
3155
  /**
2683
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3156
+ * An object containing P-chain Asset basic info and the amount of that Asset ID.
2684
3157
  */
2685
- estimatedReward: PChainAsset;
3158
+ estimatedReward: AssetAmount;
2686
3159
  };
2687
3160
 
2688
3161
  type ListPendingRewardsResponse = {
@@ -2702,23 +3175,27 @@ declare class PrimaryNetworkRewardsService {
2702
3175
  * @returns ListPendingRewardsResponse
2703
3176
  * @throws ApiError
2704
3177
  */
2705
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3178
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2706
3179
  /**
2707
3180
  * Either mainnet or a testnet.
2708
3181
  */
2709
3182
  network: Network;
2710
3183
  /**
2711
- * 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".
3184
+ * 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.
2712
3185
  */
2713
3186
  addresses?: string;
3187
+ /**
3188
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3189
+ */
3190
+ pageToken?: string;
2714
3191
  /**
2715
3192
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2716
3193
  */
2717
3194
  pageSize?: number;
2718
3195
  /**
2719
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3196
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
2720
3197
  */
2721
- pageToken?: string;
3198
+ nodeIds?: string;
2722
3199
  /**
2723
3200
  * 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.
2724
3201
  */
@@ -2730,64 +3207,45 @@ declare class PrimaryNetworkRewardsService {
2730
3207
  * @returns ListHistoricalRewardsResponse
2731
3208
  * @throws ApiError
2732
3209
  */
2733
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3210
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2734
3211
  /**
2735
3212
  * Either mainnet or a testnet.
2736
3213
  */
2737
3214
  network: Network;
2738
3215
  /**
2739
- * 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".
3216
+ * 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.
2740
3217
  */
2741
3218
  addresses?: string;
3219
+ /**
3220
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3221
+ */
3222
+ pageToken?: string;
2742
3223
  /**
2743
3224
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2744
3225
  */
2745
3226
  pageSize?: number;
2746
3227
  /**
2747
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3228
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2748
3229
  */
2749
- pageToken?: string;
3230
+ nodeIds?: string;
2750
3231
  /**
2751
3232
  * 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.
2752
3233
  */
2753
3234
  sortOrder?: SortOrder;
3235
+ /**
3236
+ * The currency that return values should use. Defaults to USD.
3237
+ */
3238
+ currency?: CurrencyCode;
2754
3239
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2755
3240
  }
2756
3241
 
2757
- type Asset = {
2758
- /**
2759
- * Unique ID for an asset.
2760
- */
2761
- assetId: string;
2762
- /**
2763
- * Name of this asset.
2764
- */
2765
- name: string;
2766
- /**
2767
- * Symbol for this asset (max 4 characters).
2768
- */
2769
- symbol: string;
2770
- /**
2771
- * Denomination of this asset to represent fungibility.
2772
- */
2773
- denomination: number;
2774
- /**
2775
- * Type of asset like SECP256K1 or NFT.
2776
- */
2777
- type: string;
2778
- /**
2779
- * Amount of the asset.
2780
- */
2781
- amount: string;
2782
- };
2783
-
2784
3242
  type UtxoCredential = {
2785
3243
  /**
2786
- * Signature provided to consume the output
3244
+ * Signature provided to consume the output.
2787
3245
  */
2788
3246
  signature?: string;
2789
3247
  /**
2790
- * Public key associated with the signature
3248
+ * Public key associated with the signature.
2791
3249
  */
2792
3250
  publicKey?: string;
2793
3251
  };
@@ -2798,9 +3256,9 @@ type EVMInput = {
2798
3256
  */
2799
3257
  fromAddress: string;
2800
3258
  /**
2801
- * Asset details for the asset being transferred.
3259
+ * AssetAmount details for the asset being transferred.
2802
3260
  */
2803
- asset: Asset;
3261
+ asset: AssetAmount;
2804
3262
  /**
2805
3263
  * Credentials that signed this transaction.
2806
3264
  */
@@ -2809,66 +3267,66 @@ type EVMInput = {
2809
3267
 
2810
3268
  type Utxo = {
2811
3269
  /**
2812
- * UTXO ID for this output.
3270
+ * Addresses that are eligible to sign the consumption of this output.
2813
3271
  */
2814
- utxoId: string;
2815
- asset: Asset;
3272
+ addresses: Array<string>;
3273
+ asset: AssetAmount;
2816
3274
  /**
2817
- * Type of output.
3275
+ * Blockchain ID on which this output is consumed on.
2818
3276
  */
2819
- utxoType: string;
3277
+ consumedOnChainId: string;
2820
3278
  /**
2821
- * Blockchain ID on which this output is created on.
3279
+ * Transaction ID that consumed this output.
2822
3280
  */
2823
- createdOnChainId: string;
3281
+ consumingTxHash?: string;
2824
3282
  /**
2825
- * Blockchain ID on which this output is consumed on.
3283
+ * Blockchain ID on which this output is created on.
2826
3284
  */
2827
- consumedOnChainId: string;
3285
+ createdOnChainId: string;
2828
3286
  /**
2829
- * Transaction ID that created this output.
3287
+ * UTXO ID for this output.
2830
3288
  */
2831
- creationTxHash: string;
3289
+ utxoId: string;
2832
3290
  /**
2833
- * Transaction ID that consumed this output.
3291
+ * Unix timestamp in seconds at which this output was consumed.
2834
3292
  */
2835
- consumingTxHash?: string;
3293
+ consumingTxTimestamp?: number;
2836
3294
  /**
2837
- * Timestamp in seconds this output is consumed.
3295
+ * Transaction ID that created this output.
2838
3296
  */
2839
- consumingTxTimestamp?: number;
3297
+ creationTxHash: string;
2840
3298
  /**
2841
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3299
+ * Credentials that signed the transaction to consume this utxo
2842
3300
  */
2843
- outputIndex: string;
3301
+ credentials?: Array<UtxoCredential>;
2844
3302
  /**
2845
- * Timestamp in seconds this outptut is created on.
3303
+ * Index representing the minting set for the NFT mint output.
2846
3304
  */
2847
- timestamp: number;
3305
+ groupId?: number;
2848
3306
  /**
2849
3307
  * Locktime in seconds after which this output can be consumed.
2850
3308
  */
2851
3309
  locktime: number;
2852
3310
  /**
2853
- * Minimum number of signatures required to consume this output.
3311
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2854
3312
  */
2855
- threshold: number;
3313
+ outputIndex: string;
2856
3314
  /**
2857
- * Addresses that are eligible to sign the consumption of this output.
3315
+ * Hex encoded data for NFT assets.
2858
3316
  */
2859
- addresses: Array<string>;
3317
+ payload?: string;
2860
3318
  /**
2861
- * Hex encoded data for NFT assets
3319
+ * Minimum number of signatures required to consume this output.
2862
3320
  */
2863
- payload?: string;
3321
+ threshold: number;
2864
3322
  /**
2865
- * Index representing the minting set for the NFT mint output
3323
+ * Unix timestamp in seconds at which this outptut was created.
2866
3324
  */
2867
- groupId?: number;
3325
+ timestamp: number;
2868
3326
  /**
2869
- * Credentials that signed the transaction to consume this utxo
3327
+ * Type of output.
2870
3328
  */
2871
- credentials?: Array<UtxoCredential>;
3329
+ utxoType: string;
2872
3330
  };
2873
3331
 
2874
3332
  type CChainExportTransaction = {
@@ -2895,11 +3353,11 @@ type CChainExportTransaction = {
2895
3353
  /**
2896
3354
  * Assets unlocked by inputs of this transaction.
2897
3355
  */
2898
- amountUnlocked: Array<Asset>;
3356
+ amountUnlocked: Array<AssetAmount>;
2899
3357
  /**
2900
3358
  * Assets created by outputs of this transaction.
2901
3359
  */
2902
- amountCreated: Array<Asset>;
3360
+ amountCreated: Array<AssetAmount>;
2903
3361
  /**
2904
3362
  * Source chain for an atomic transaction.
2905
3363
  */
@@ -2930,9 +3388,9 @@ type EVMOutput = {
2930
3388
  */
2931
3389
  toAddress: string;
2932
3390
  /**
2933
- * Asset details for the asset being transferred.
3391
+ * AssetAmount details for the asset being transferred.
2934
3392
  */
2935
- asset: Asset;
3393
+ asset: AssetAmount;
2936
3394
  };
2937
3395
 
2938
3396
  type CChainImportTransaction = {
@@ -2959,11 +3417,11 @@ type CChainImportTransaction = {
2959
3417
  /**
2960
3418
  * Assets unlocked by inputs of this transaction.
2961
3419
  */
2962
- amountUnlocked: Array<Asset>;
3420
+ amountUnlocked: Array<AssetAmount>;
2963
3421
  /**
2964
3422
  * Assets created by outputs of this transaction.
2965
3423
  */
2966
- amountCreated: Array<Asset>;
3424
+ amountCreated: Array<AssetAmount>;
2967
3425
  /**
2968
3426
  * Source chain for an atomic transaction.
2969
3427
  */
@@ -2999,16 +3457,20 @@ type ListCChainAtomicTransactionsResponse = {
2999
3457
 
3000
3458
  declare enum PChainTransactionType {
3001
3459
  ADD_VALIDATOR_TX = "AddValidatorTx",
3002
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3003
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3004
3460
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3005
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3006
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3461
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3007
3462
  CREATE_CHAIN_TX = "CreateChainTx",
3008
3463
  CREATE_SUBNET_TX = "CreateSubnetTx",
3009
3464
  IMPORT_TX = "ImportTx",
3010
3465
  EXPORT_TX = "ExportTx",
3011
3466
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3467
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3468
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3469
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3470
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3471
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3472
+ BASE_TX = "BaseTx",
3473
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3012
3474
  UNKNOWN = "UNKNOWN"
3013
3475
  }
3014
3476
 
@@ -3019,29 +3481,48 @@ declare enum UtxoType {
3019
3481
 
3020
3482
  type PChainUtxo = {
3021
3483
  /**
3022
- * An array of P-Chain wallet addresses.
3484
+ * Addresses that are eligible to sign the consumption of this output.
3023
3485
  */
3024
3486
  addresses: Array<string>;
3487
+ asset: AssetAmount;
3488
+ /**
3489
+ * Blockchain ID on which this output is consumed on.
3490
+ */
3491
+ consumedOnChainId: string;
3492
+ /**
3493
+ * Transaction ID that consumed this output.
3494
+ */
3495
+ consumingTxHash?: string;
3496
+ /**
3497
+ * Blockchain ID on which this output is created on.
3498
+ */
3499
+ createdOnChainId: string;
3500
+ /**
3501
+ * UTXO ID for this output.
3502
+ */
3025
3503
  utxoId: string;
3026
- txHash: string;
3027
- outputIndex: number;
3504
+ /**
3505
+ * @deprecated
3506
+ */
3507
+ amount: string;
3508
+ /**
3509
+ * @deprecated
3510
+ */
3511
+ assetId: string;
3028
3512
  blockNumber: string;
3029
3513
  blockTimestamp: number;
3030
- consumingTxHash?: string;
3031
- consumingBlockTimestamp?: number;
3032
3514
  consumingBlockNumber?: string;
3033
- assetId: string;
3034
- utxoType: UtxoType;
3035
- amount: string;
3036
- stakeableLocktime?: number;
3515
+ consumingBlockTimestamp?: number;
3037
3516
  platformLocktime?: number;
3038
- threshold?: number;
3039
- createdOnChainId: string;
3040
- consumedOnChainId: string;
3517
+ outputIndex: number;
3518
+ rewardType?: RewardType;
3519
+ stakeableLocktime?: number;
3041
3520
  staked?: boolean;
3042
- utxoStartTimestamp?: number;
3521
+ threshold?: number;
3522
+ txHash: string;
3043
3523
  utxoEndTimestamp?: number;
3044
- rewardType?: RewardType;
3524
+ utxoStartTimestamp?: number;
3525
+ utxoType: UtxoType;
3045
3526
  };
3046
3527
 
3047
3528
  type PChainTransaction = {
@@ -3067,17 +3548,17 @@ type PChainTransaction = {
3067
3548
  */
3068
3549
  destinationChain?: string;
3069
3550
  /**
3070
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3551
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3071
3552
  */
3072
- value: Array<PChainAsset>;
3553
+ value: Array<AssetAmount>;
3073
3554
  /**
3074
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3555
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
3075
3556
  */
3076
- amountBurned: Array<PChainAsset>;
3557
+ amountBurned: Array<AssetAmount>;
3077
3558
  /**
3078
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3559
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3079
3560
  */
3080
- amountStaked: Array<PChainAsset>;
3561
+ amountStaked: Array<AssetAmount>;
3081
3562
  /**
3082
3563
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3083
3564
  */
@@ -3103,11 +3584,16 @@ type PChainTransaction = {
3103
3584
  */
3104
3585
  estimatedReward?: string;
3105
3586
  rewardTxHash?: string;
3587
+ rewardAddresses?: Array<string>;
3106
3588
  memo?: string;
3107
3589
  /**
3108
3590
  * Present for RewardValidatorTx
3109
3591
  */
3110
3592
  stakingTxHash?: string;
3593
+ /**
3594
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3595
+ */
3596
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3111
3597
  };
3112
3598
 
3113
3599
  type ListPChainTransactionsResponse = {
@@ -3119,6 +3605,18 @@ type ListPChainTransactionsResponse = {
3119
3605
  chainInfo: PrimaryNetworkChainInfo;
3120
3606
  };
3121
3607
 
3608
+ /**
3609
+ * Type of transaction.
3610
+ */
3611
+ declare enum XChainTransactionType {
3612
+ BASE_TX = "BaseTx",
3613
+ CREATE_ASSET_TX = "CreateAssetTx",
3614
+ OPERATION_TX = "OperationTx",
3615
+ IMPORT_TX = "ImportTx",
3616
+ EXPORT_TX = "ExportTx",
3617
+ UNKNOWN = "UNKNOWN"
3618
+ }
3619
+
3122
3620
  type XChainLinearTransaction = {
3123
3621
  /**
3124
3622
  * Unique ID for this transaction.
@@ -3131,11 +3629,8 @@ type XChainLinearTransaction = {
3131
3629
  /**
3132
3630
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3133
3631
  */
3134
- timestamp: number;
3135
- /**
3136
- * Type of transaction.
3137
- */
3138
- txType: string;
3632
+ timestamp: number;
3633
+ txType: XChainTransactionType;
3139
3634
  /**
3140
3635
  * Hex encoded memo bytes for this transaction.
3141
3636
  */
@@ -3145,11 +3640,11 @@ type XChainLinearTransaction = {
3145
3640
  /**
3146
3641
  * Assets unlocked by inputs of this transaction.
3147
3642
  */
3148
- amountUnlocked: Array<Asset>;
3643
+ amountUnlocked: Array<AssetAmount>;
3149
3644
  /**
3150
3645
  * Assets created by outputs of this transaction.
3151
3646
  */
3152
- amountCreated: Array<Asset>;
3647
+ amountCreated: Array<AssetAmount>;
3153
3648
  /**
3154
3649
  * Source chain for an atomic transaction.
3155
3650
  */
@@ -3159,7 +3654,7 @@ type XChainLinearTransaction = {
3159
3654
  */
3160
3655
  destinationChain?: string;
3161
3656
  /**
3162
- * Asset details of the asset created in CreateAssetTx
3657
+ * AssetAmount details of the asset created in CreateAssetTx
3163
3658
  */
3164
3659
  assetCreated?: XChainAssetDetails;
3165
3660
  /**
@@ -3209,10 +3704,7 @@ type XChainNonLinearTransaction = {
3209
3704
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3210
3705
  */
3211
3706
  timestamp: number;
3212
- /**
3213
- * Type of transaction.
3214
- */
3215
- txType: string;
3707
+ txType: XChainTransactionType;
3216
3708
  /**
3217
3709
  * Hex encoded memo bytes for this transaction.
3218
3710
  */
@@ -3222,11 +3714,11 @@ type XChainNonLinearTransaction = {
3222
3714
  /**
3223
3715
  * Assets unlocked by inputs of this transaction.
3224
3716
  */
3225
- amountUnlocked: Array<Asset>;
3717
+ amountUnlocked: Array<AssetAmount>;
3226
3718
  /**
3227
3719
  * Assets created by outputs of this transaction.
3228
3720
  */
3229
- amountCreated: Array<Asset>;
3721
+ amountCreated: Array<AssetAmount>;
3230
3722
  /**
3231
3723
  * Source chain for an atomic transaction.
3232
3724
  */
@@ -3236,7 +3728,7 @@ type XChainNonLinearTransaction = {
3236
3728
  */
3237
3729
  destinationChain?: string;
3238
3730
  /**
3239
- * Asset details of the asset created in CreateAssetTx
3731
+ * AssetAmount details of the asset created in CreateAssetTx
3240
3732
  */
3241
3733
  assetCreated?: XChainAssetDetails;
3242
3734
  /**
@@ -3270,18 +3762,21 @@ declare enum PChainId {
3270
3762
 
3271
3763
  declare enum PrimaryNetworkTxType {
3272
3764
  ADD_VALIDATOR_TX = "AddValidatorTx",
3273
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3274
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3275
3765
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3276
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3277
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3766
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3278
3767
  CREATE_CHAIN_TX = "CreateChainTx",
3279
3768
  CREATE_SUBNET_TX = "CreateSubnetTx",
3280
3769
  IMPORT_TX = "ImportTx",
3281
3770
  EXPORT_TX = "ExportTx",
3282
3771
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3283
- UNKNOWN = "UNKNOWN",
3772
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3773
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3774
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3775
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3776
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3284
3777
  BASE_TX = "BaseTx",
3778
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3779
+ UNKNOWN = "UNKNOWN",
3285
3780
  CREATE_ASSET_TX = "CreateAssetTx",
3286
3781
  OPERATION_TX = "OperationTx"
3287
3782
  }
@@ -3311,11 +3806,15 @@ declare class PrimaryNetworkTransactionsService {
3311
3806
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3312
3807
  /**
3313
3808
  * List latest transactions
3314
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3809
+ * Lists the latest transactions on one of the Primary Network chains.
3810
+ *
3811
+ * 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.
3812
+ *
3813
+ * 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.
3315
3814
  * @returns any
3316
3815
  * @throws ApiError
3317
3816
  */
3318
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3817
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3319
3818
  /**
3320
3819
  * A primary network blockchain id or alias.
3321
3820
  */
@@ -3340,14 +3839,14 @@ declare class PrimaryNetworkTransactionsService {
3340
3839
  * Query param for retrieving items before a specific timestamp.
3341
3840
  */
3342
3841
  endTimestamp?: number;
3343
- /**
3344
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3345
- */
3346
- pageSize?: number;
3347
3842
  /**
3348
3843
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3349
3844
  */
3350
3845
  pageToken?: string;
3846
+ /**
3847
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3848
+ */
3849
+ pageSize?: number;
3351
3850
  /**
3352
3851
  * 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.
3353
3852
  */
@@ -3359,7 +3858,7 @@ declare class PrimaryNetworkTransactionsService {
3359
3858
  * @returns ListPChainTransactionsResponse
3360
3859
  * @throws ApiError
3361
3860
  */
3362
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3861
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3363
3862
  /**
3364
3863
  * A primary network blockchain id or alias.
3365
3864
  */
@@ -3384,14 +3883,14 @@ declare class PrimaryNetworkTransactionsService {
3384
3883
  * Query param for retrieving items before a specific timestamp.
3385
3884
  */
3386
3885
  endTimestamp?: number;
3387
- /**
3388
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3389
- */
3390
- pageSize?: number;
3391
3886
  /**
3392
3887
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3393
3888
  */
3394
3889
  pageToken?: string;
3890
+ /**
3891
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3892
+ */
3893
+ pageSize?: number;
3395
3894
  /**
3396
3895
  * 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.
3397
3896
  */
@@ -3403,7 +3902,7 @@ declare class PrimaryNetworkTransactionsService {
3403
3902
  * @returns ListXChainTransactionsResponse
3404
3903
  * @throws ApiError
3405
3904
  */
3406
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3905
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3407
3906
  /**
3408
3907
  * A primary network blockchain id or alias.
3409
3908
  */
@@ -3428,14 +3927,14 @@ declare class PrimaryNetworkTransactionsService {
3428
3927
  * Query param for retrieving items before a specific timestamp.
3429
3928
  */
3430
3929
  endTimestamp?: number;
3431
- /**
3432
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3433
- */
3434
- pageSize?: number;
3435
3930
  /**
3436
3931
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3437
3932
  */
3438
3933
  pageToken?: string;
3934
+ /**
3935
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3936
+ */
3937
+ pageSize?: number;
3439
3938
  }): CancelablePromise<ListXChainTransactionsResponse>;
3440
3939
  }
3441
3940
 
@@ -3466,7 +3965,7 @@ declare class PrimaryNetworkUtxOsService {
3466
3965
  * @returns any
3467
3966
  * @throws ApiError
3468
3967
  */
3469
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3968
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3470
3969
  /**
3471
3970
  * A primary network blockchain id or alias.
3472
3971
  */
@@ -3479,14 +3978,14 @@ declare class PrimaryNetworkUtxOsService {
3479
3978
  * 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".
3480
3979
  */
3481
3980
  addresses?: string;
3482
- /**
3483
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3484
- */
3485
- pageSize?: number;
3486
3981
  /**
3487
3982
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3488
3983
  */
3489
3984
  pageToken?: string;
3985
+ /**
3986
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3987
+ */
3988
+ pageSize?: number;
3490
3989
  /**
3491
3990
  * Asset ID for any asset (only applicable X-Chain)
3492
3991
  */
@@ -3531,7 +4030,7 @@ declare class PrimaryNetworkVerticesService {
3531
4030
  * @returns ListXChainVerticesResponse
3532
4031
  * @throws ApiError
3533
4032
  */
3534
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4033
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3535
4034
  /**
3536
4035
  * A primary network blockchain id or alias.
3537
4036
  */
@@ -3540,14 +4039,14 @@ declare class PrimaryNetworkVerticesService {
3540
4039
  * Either mainnet or a testnet.
3541
4040
  */
3542
4041
  network: Network;
3543
- /**
3544
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3545
- */
3546
- pageSize?: number;
3547
4042
  /**
3548
4043
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3549
4044
  */
3550
4045
  pageToken?: string;
4046
+ /**
4047
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4048
+ */
4049
+ pageSize?: number;
3551
4050
  }): CancelablePromise<ListXChainVerticesResponse>;
3552
4051
  /**
3553
4052
  * Get vertex
@@ -3575,7 +4074,7 @@ declare class PrimaryNetworkVerticesService {
3575
4074
  * @returns ListXChainVerticesResponse
3576
4075
  * @throws ApiError
3577
4076
  */
3578
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4077
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3579
4078
  /**
3580
4079
  * The height of a vertex.
3581
4080
  */
@@ -3588,28 +4087,416 @@ declare class PrimaryNetworkVerticesService {
3588
4087
  * Either mainnet or a testnet.
3589
4088
  */
3590
4089
  network: Network;
4090
+ /**
4091
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4092
+ */
4093
+ pageToken?: string;
4094
+ /**
4095
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4096
+ */
4097
+ pageSize?: number;
4098
+ /**
4099
+ * 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.
4100
+ */
4101
+ sortOrder?: SortOrder;
4102
+ }): CancelablePromise<ListXChainVerticesResponse>;
4103
+ }
4104
+
4105
+ type RpcErrorDto = {
4106
+ code: number;
4107
+ message: string;
4108
+ data?: Record<string, any>;
4109
+ };
4110
+
4111
+ type RpcErrorResponseDto = {
4112
+ jsonrpc: string;
4113
+ id?: (string | number);
4114
+ error: RpcErrorDto;
4115
+ };
4116
+
4117
+ type RpcRequestBodyDto = {
4118
+ method: string;
4119
+ params?: Record<string, any>;
4120
+ id?: (string | number);
4121
+ jsonrpc?: string;
4122
+ };
4123
+
4124
+ type RpcSuccessResponseDto = {
4125
+ jsonrpc: string;
4126
+ id?: (string | number);
4127
+ result: Record<string, any>;
4128
+ };
4129
+
4130
+ declare class RpcService {
4131
+ readonly httpRequest: BaseHttpRequest;
4132
+ constructor(httpRequest: BaseHttpRequest);
4133
+ /**
4134
+ * Calls JSON-RPC method
4135
+ * Calls JSON-RPC method.
4136
+ * @returns any
4137
+ * @throws ApiError
4138
+ */
4139
+ rpc({ chainId, requestBody, }: {
4140
+ /**
4141
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4142
+ */
4143
+ chainId: string;
4144
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4145
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4146
+ }
4147
+
4148
+ type TeleporterDestinationTransaction = {
4149
+ txHash: string;
4150
+ timestamp: number;
4151
+ gasSpent: string;
4152
+ rewardRedeemer: string;
4153
+ delivererAddress: string;
4154
+ };
4155
+
4156
+ type TeleporterReceipt = {
4157
+ receivedMessageNonce: string;
4158
+ relayerRewardAddress: string;
4159
+ };
4160
+
4161
+ type TeleporterRewardDetails = {
4162
+ /**
4163
+ * A wallet or contract address in mixed-case checksum encoding.
4164
+ */
4165
+ address: string;
4166
+ /**
4167
+ * The contract name.
4168
+ */
4169
+ name: string;
4170
+ /**
4171
+ * The contract symbol.
4172
+ */
4173
+ symbol: string;
4174
+ /**
4175
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4176
+ */
4177
+ decimals: number;
4178
+ /**
4179
+ * The logo uri for the address.
4180
+ */
4181
+ logoUri?: string;
4182
+ ercType: TeleporterRewardDetails.ercType;
4183
+ /**
4184
+ * The token price, if available.
4185
+ */
4186
+ price?: Money;
4187
+ value: string;
4188
+ };
4189
+ declare namespace TeleporterRewardDetails {
4190
+ enum ercType {
4191
+ ERC_20 = "ERC-20"
4192
+ }
4193
+ }
4194
+
4195
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4196
+ messageId: string;
4197
+ teleporterContractAddress: string;
4198
+ sourceBlockchainId: string;
4199
+ destinationBlockchainId: string;
4200
+ messageNonce: string;
4201
+ from: string;
4202
+ to: string;
4203
+ data?: string;
4204
+ messageExecuted: boolean;
4205
+ receipts: Array<TeleporterReceipt>;
4206
+ receiptDelivered: boolean;
4207
+ rewardDetails: TeleporterRewardDetails;
4208
+ destinationTransaction: TeleporterDestinationTransaction;
4209
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4210
+ };
4211
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4212
+ enum status {
4213
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4214
+ }
4215
+ }
4216
+
4217
+ type TeleporterSourceTransaction = {
4218
+ txHash: string;
4219
+ timestamp: number;
4220
+ gasSpent: string;
4221
+ };
4222
+
4223
+ type DeliveredTeleporterMessage = {
4224
+ messageId: string;
4225
+ teleporterContractAddress: string;
4226
+ sourceBlockchainId: string;
4227
+ destinationBlockchainId: string;
4228
+ messageNonce: string;
4229
+ from: string;
4230
+ to: string;
4231
+ data?: string;
4232
+ messageExecuted: boolean;
4233
+ receipts: Array<TeleporterReceipt>;
4234
+ receiptDelivered: boolean;
4235
+ rewardDetails: TeleporterRewardDetails;
4236
+ sourceTransaction: TeleporterSourceTransaction;
4237
+ destinationTransaction: TeleporterDestinationTransaction;
4238
+ status: DeliveredTeleporterMessage.status;
4239
+ };
4240
+ declare namespace DeliveredTeleporterMessage {
4241
+ enum status {
4242
+ DELIVERED = "delivered"
4243
+ }
4244
+ }
4245
+
4246
+ type NextPageToken = {
4247
+ /**
4248
+ * 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.
4249
+ */
4250
+ nextPageToken?: string;
4251
+ };
4252
+
4253
+ type PendingTeleporterMessage = {
4254
+ messageId: string;
4255
+ teleporterContractAddress: string;
4256
+ sourceBlockchainId: string;
4257
+ destinationBlockchainId: string;
4258
+ messageNonce: string;
4259
+ from: string;
4260
+ to: string;
4261
+ data?: string;
4262
+ messageExecuted: boolean;
4263
+ receipts: Array<TeleporterReceipt>;
4264
+ receiptDelivered: boolean;
4265
+ rewardDetails: TeleporterRewardDetails;
4266
+ sourceTransaction: TeleporterSourceTransaction;
4267
+ status: PendingTeleporterMessage.status;
4268
+ };
4269
+ declare namespace PendingTeleporterMessage {
4270
+ enum status {
4271
+ PENDING = "pending"
4272
+ }
4273
+ }
4274
+
4275
+ declare class TeleporterService {
4276
+ readonly httpRequest: BaseHttpRequest;
4277
+ constructor(httpRequest: BaseHttpRequest);
4278
+ /**
4279
+ * Get a teleporter message
4280
+ * Gets a teleporter message by message ID.
4281
+ * @returns any
4282
+ * @throws ApiError
4283
+ */
4284
+ getTeleporterMessage({ messageId, }: {
4285
+ /**
4286
+ * The message ID of the teleporter message.
4287
+ */
4288
+ messageId: string;
4289
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4290
+ /**
4291
+ * List teleporter messages
4292
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4293
+ * @returns any
4294
+ * @throws ApiError
4295
+ */
4296
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4297
+ /**
4298
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4299
+ */
4300
+ pageToken?: string;
3591
4301
  /**
3592
4302
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3593
4303
  */
3594
4304
  pageSize?: number;
4305
+ /**
4306
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
4307
+ */
4308
+ sourceBlockchainId?: string;
4309
+ /**
4310
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4311
+ */
4312
+ destinationBlockchainId?: string;
4313
+ /**
4314
+ * The address of the recipient of the teleporter message.
4315
+ */
4316
+ to?: string;
4317
+ /**
4318
+ * The address of the sender of the teleporter message.
4319
+ */
4320
+ from?: string;
4321
+ }): CancelablePromise<NextPageToken>;
4322
+ }
4323
+
4324
+ type AddressActivityMetadata = {
4325
+ /**
4326
+ * Ethereum address for the address_activity event type
4327
+ */
4328
+ address: string;
4329
+ /**
4330
+ * Array of hexadecimal strings of the event signatures.
4331
+ */
4332
+ eventSignatures?: Array<string>;
4333
+ };
4334
+
4335
+ declare enum EventType {
4336
+ ADDRESS_ACTIVITY = "address_activity"
4337
+ }
4338
+
4339
+ declare enum WebhookStatusType {
4340
+ ACTIVE = "active",
4341
+ INACTIVE = "inactive"
4342
+ }
4343
+
4344
+ type WebhookResponse = {
4345
+ id: string;
4346
+ eventType: EventType;
4347
+ metadata: AddressActivityMetadata;
4348
+ /**
4349
+ * Whether to include traces in the webhook payload.
4350
+ */
4351
+ includeInternalTxs?: boolean;
4352
+ /**
4353
+ * Whether to include logs in the webhook payload.
4354
+ */
4355
+ includeLogs?: boolean;
4356
+ url: string;
4357
+ chainId: string;
4358
+ status: WebhookStatusType;
4359
+ createdAt: number;
4360
+ name: string;
4361
+ description: string;
4362
+ };
4363
+
4364
+ type ListWebhooksResponse = {
4365
+ /**
4366
+ * 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.
4367
+ */
4368
+ nextPageToken?: string;
4369
+ webhooks: Array<WebhookResponse>;
4370
+ };
4371
+
4372
+ type RegisterWebhookRequest = {
4373
+ url: string;
4374
+ chainId: string;
4375
+ eventType: EventType;
4376
+ metadata: AddressActivityMetadata;
4377
+ /**
4378
+ * Whether to include traces in the webhook payload.
4379
+ */
4380
+ includeInternalTxs?: boolean;
4381
+ /**
4382
+ * Whether to include logs in the webhook payload.
4383
+ */
4384
+ includeLogs?: boolean;
4385
+ };
4386
+
4387
+ type SharedSecretsResponse = {
4388
+ secret: string;
4389
+ };
4390
+
4391
+ type UpdateWebhookRequest = {
4392
+ name?: string;
4393
+ description?: string;
4394
+ url?: string;
4395
+ status?: WebhookStatusType;
4396
+ includeInternalTxs?: boolean;
4397
+ includeLogs?: boolean;
4398
+ };
4399
+
4400
+ declare enum WebhookStatus {
4401
+ ACTIVE = "active",
4402
+ INACTIVE = "inactive"
4403
+ }
4404
+
4405
+ declare class WebhooksService {
4406
+ readonly httpRequest: BaseHttpRequest;
4407
+ constructor(httpRequest: BaseHttpRequest);
4408
+ /**
4409
+ * Register a webhook
4410
+ * Registers a new webhook.
4411
+ * @returns WebhookResponse
4412
+ * @throws ApiError
4413
+ */
4414
+ registerWebhook({ requestBody, }: {
4415
+ requestBody: RegisterWebhookRequest;
4416
+ }): CancelablePromise<WebhookResponse>;
4417
+ /**
4418
+ * List webhooks
4419
+ * Lists webhooks for the user.
4420
+ * @returns ListWebhooksResponse
4421
+ * @throws ApiError
4422
+ */
4423
+ listWebhooks({ pageToken, pageSize, status, }: {
3595
4424
  /**
3596
4425
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3597
4426
  */
3598
4427
  pageToken?: string;
3599
4428
  /**
3600
- * 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.
4429
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3601
4430
  */
3602
- sortOrder?: SortOrder;
3603
- }): CancelablePromise<ListXChainVerticesResponse>;
4431
+ pageSize?: number;
4432
+ /**
4433
+ * 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.
4434
+ */
4435
+ status?: WebhookStatus;
4436
+ }): CancelablePromise<ListWebhooksResponse>;
4437
+ /**
4438
+ * Get a webhook by ID
4439
+ * Retrieves a webhook by ID.
4440
+ * @returns WebhookResponse
4441
+ * @throws ApiError
4442
+ */
4443
+ getWebhook({ id, }: {
4444
+ /**
4445
+ * The webhook identifier.
4446
+ */
4447
+ id: string;
4448
+ }): CancelablePromise<WebhookResponse>;
4449
+ /**
4450
+ * Deactivate a webhook
4451
+ * Deactivates a webhook by ID.
4452
+ * @returns WebhookResponse
4453
+ * @throws ApiError
4454
+ */
4455
+ deactivateWebhook({ id, }: {
4456
+ /**
4457
+ * The webhook identifier.
4458
+ */
4459
+ id: string;
4460
+ }): CancelablePromise<WebhookResponse>;
4461
+ /**
4462
+ * Update a webhook
4463
+ * Updates an existing webhook.
4464
+ * @returns WebhookResponse
4465
+ * @throws ApiError
4466
+ */
4467
+ updateWebhook({ id, requestBody, }: {
4468
+ /**
4469
+ * The webhook identifier.
4470
+ */
4471
+ id: string;
4472
+ requestBody: UpdateWebhookRequest;
4473
+ }): CancelablePromise<WebhookResponse>;
4474
+ /**
4475
+ * Generate a shared secret
4476
+ * Generates a new shared secret.
4477
+ * @returns SharedSecretsResponse
4478
+ * @throws ApiError
4479
+ */
4480
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4481
+ /**
4482
+ * Get a shared secret
4483
+ * Get a previously generated shared secret.
4484
+ * @returns SharedSecretsResponse
4485
+ * @throws ApiError
4486
+ */
4487
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
3604
4488
  }
3605
4489
 
3606
4490
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3607
4491
  declare class Glacier {
4492
+ readonly default: DefaultService;
3608
4493
  readonly evmBalances: EvmBalancesService;
3609
4494
  readonly evmBlocks: EvmBlocksService;
3610
4495
  readonly evmChains: EvmChainsService;
4496
+ readonly evmContracts: EvmContractsService;
3611
4497
  readonly evmTransactions: EvmTransactionsService;
3612
4498
  readonly healthCheck: HealthCheckService;
4499
+ readonly nfTs: NfTsService;
3613
4500
  readonly operations: OperationsService;
3614
4501
  readonly primaryNetwork: PrimaryNetworkService;
3615
4502
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3618,6 +4505,9 @@ declare class Glacier {
3618
4505
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3619
4506
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3620
4507
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4508
+ readonly rpc: RpcService;
4509
+ readonly teleporter: TeleporterService;
4510
+ readonly webhooks: WebhooksService;
3621
4511
  readonly request: BaseHttpRequest;
3622
4512
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3623
4513
  }
@@ -3639,4 +4529,4 @@ declare class ApiError extends Error {
3639
4529
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3640
4530
  }
3641
4531
 
3642
- 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 };
4532
+ 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, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, 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, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };