@avalabs/glacier-sdk 2.8.0-alpha.15 → 2.8.0-alpha.151

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 (288) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +4118 -3
  3. package/dist/index.js +2030 -155
  4. package/esm/generated/Glacier.d.ts +42 -0
  5. package/esm/generated/Glacier.js +68 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +18 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +91 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +227 -0
  18. package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
  19. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  20. package/esm/generated/models/ActiveValidatorDetails.d.ts +28 -0
  21. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  22. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  23. package/esm/generated/models/Asset.d.ts +28 -0
  24. package/esm/generated/models/Blockchain.d.ts +10 -0
  25. package/esm/generated/models/BlockchainId.d.ts +12 -0
  26. package/esm/generated/models/BlockchainId.js +13 -0
  27. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  28. package/esm/generated/models/BlockchainIds.js +10 -0
  29. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  30. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  31. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  32. package/esm/generated/models/CChainExportTransaction.js +8 -0
  33. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  34. package/esm/generated/models/CChainImportTransaction.js +8 -0
  35. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  36. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  37. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  38. package/esm/generated/models/ChainInfo.d.ts +28 -0
  39. package/esm/generated/models/ChainStatus.d.ts +6 -0
  40. package/esm/generated/models/ChainStatus.js +7 -0
  41. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  42. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  43. package/esm/generated/models/CompletedValidatorDetails.d.ts +21 -0
  44. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  45. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  46. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  47. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  48. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  49. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  50. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  51. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  52. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  53. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  54. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  55. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  56. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  57. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  58. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  59. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  60. package/esm/generated/models/CurrencyCode.js +19 -0
  61. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  62. package/esm/generated/models/DelegationStatusType.js +8 -0
  63. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  64. package/esm/generated/models/EVMInput.d.ts +19 -0
  65. package/esm/generated/models/EVMOutput.d.ts +14 -0
  66. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  67. package/esm/generated/models/Erc1155Contract.js +8 -0
  68. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  69. package/esm/generated/models/Erc1155Token.js +8 -0
  70. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  71. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  72. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  73. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  74. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  75. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  76. package/esm/generated/models/Erc20Contract.js +8 -0
  77. package/esm/generated/models/Erc20Token.d.ts +36 -0
  78. package/esm/generated/models/Erc20Token.js +8 -0
  79. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  80. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  81. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  82. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  83. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  84. package/esm/generated/models/Erc721Contract.js +8 -0
  85. package/esm/generated/models/Erc721Token.d.ts +31 -0
  86. package/esm/generated/models/Erc721Token.js +8 -0
  87. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  88. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  89. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  90. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  91. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  92. package/esm/generated/models/EventType.d.ts +5 -0
  93. package/esm/generated/models/EventType.js +6 -0
  94. package/esm/generated/models/EvmBlock.d.ts +45 -0
  95. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  96. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  97. package/esm/generated/models/GetChainResponse.d.ts +28 -0
  98. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  99. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  100. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  101. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +16 -0
  102. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  103. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  104. package/esm/generated/models/ImageAsset.d.ts +9 -0
  105. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  106. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  107. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  108. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  109. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  110. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  111. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  112. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  113. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  114. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  115. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  116. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  117. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  118. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  119. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  120. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  121. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  122. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  123. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  124. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  125. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  126. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  127. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  128. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  129. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  130. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  131. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  132. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  133. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  134. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  135. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  136. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  137. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  138. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  139. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  140. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  141. package/esm/generated/models/Method.d.ts +18 -0
  142. package/esm/generated/models/Money.d.ts +14 -0
  143. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  144. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  145. package/esm/generated/models/Network.d.ts +6 -0
  146. package/esm/generated/models/Network.js +7 -0
  147. package/esm/generated/models/NetworkToken.d.ts +21 -0
  148. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  149. package/esm/generated/models/NetworkType.d.ts +6 -0
  150. package/esm/generated/models/NetworkType.js +7 -0
  151. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  152. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  153. package/esm/generated/models/OperationStatus.d.ts +8 -0
  154. package/esm/generated/models/OperationStatus.js +9 -0
  155. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  156. package/esm/generated/models/OperationStatusCode.js +8 -0
  157. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  158. package/esm/generated/models/OperationType.d.ts +6 -0
  159. package/esm/generated/models/OperationType.js +7 -0
  160. package/esm/generated/models/PChainAsset.d.ts +6 -0
  161. package/esm/generated/models/PChainBalance.d.ts +39 -0
  162. package/esm/generated/models/PChainId.d.ts +6 -0
  163. package/esm/generated/models/PChainId.js +7 -0
  164. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  165. package/esm/generated/models/PChainTransaction.d.ts +72 -0
  166. package/esm/generated/models/PChainTransactionType.d.ts +17 -0
  167. package/esm/generated/models/PChainTransactionType.js +18 -0
  168. package/esm/generated/models/PChainUtxo.d.ts +31 -0
  169. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  170. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  171. package/esm/generated/models/PendingReward.d.ts +22 -0
  172. package/esm/generated/models/PendingValidatorDetails.d.ts +17 -0
  173. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  174. package/esm/generated/models/PricingProviders.d.ts +5 -0
  175. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  176. package/esm/generated/models/PrimaryNetwork.js +7 -0
  177. package/esm/generated/models/PrimaryNetworkBlock.d.ts +16 -0
  178. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  179. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  180. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  181. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  182. package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
  183. package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
  184. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  185. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  186. package/esm/generated/models/ResourceLink.d.ts +8 -0
  187. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  188. package/esm/generated/models/ResourceLinkType.js +23 -0
  189. package/esm/generated/models/RewardType.d.ts +7 -0
  190. package/esm/generated/models/RewardType.js +8 -0
  191. package/esm/generated/models/Rewards.d.ts +8 -0
  192. package/esm/generated/models/RichAddress.d.ts +24 -0
  193. package/esm/generated/models/SortOrder.d.ts +6 -0
  194. package/esm/generated/models/SortOrder.js +7 -0
  195. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  196. package/esm/generated/models/Subnet.d.ts +13 -0
  197. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  198. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  199. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  200. package/esm/generated/models/TransactionMethodType.js +8 -0
  201. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  202. package/esm/generated/models/TransactionStatus.js +7 -0
  203. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  204. package/esm/generated/models/UnknownContract.d.ts +31 -0
  205. package/esm/generated/models/UnknownContract.js +8 -0
  206. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  207. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  208. package/esm/generated/models/Utxo.d.ts +68 -0
  209. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  210. package/esm/generated/models/UtxoType.d.ts +6 -0
  211. package/esm/generated/models/UtxoType.js +7 -0
  212. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  213. package/esm/generated/models/ValidationStatusType.js +8 -0
  214. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  215. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  216. package/esm/generated/models/VmName.d.ts +7 -0
  217. package/esm/generated/models/VmName.js +8 -0
  218. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  219. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  220. package/esm/generated/models/WebhookStatus.js +7 -0
  221. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  222. package/esm/generated/models/WebhookStatusType.js +7 -0
  223. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  224. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  225. package/esm/generated/models/XChainBalances.d.ts +17 -0
  226. package/esm/generated/models/XChainId.d.ts +7 -0
  227. package/esm/generated/models/XChainId.js +8 -0
  228. package/esm/generated/models/XChainLinearTransaction.d.ts +68 -0
  229. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  230. package/esm/generated/models/XChainNonLinearTransaction.d.ts +65 -0
  231. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  232. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  233. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  234. package/esm/generated/models/XChainTransactionType.js +11 -0
  235. package/esm/generated/models/XChainVertex.d.ts +12 -0
  236. package/esm/generated/services/DefaultService.d.ts +59 -0
  237. package/esm/generated/services/DefaultService.js +49 -0
  238. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  239. package/esm/generated/services/EvmBalancesService.js +116 -0
  240. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  241. package/esm/generated/services/EvmBlocksService.js +37 -0
  242. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  243. package/esm/generated/services/EvmChainsService.js +29 -0
  244. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  245. package/esm/generated/services/EvmContractsService.js +36 -0
  246. package/esm/generated/services/EvmTransactionsService.d.ts +353 -0
  247. package/esm/generated/services/EvmTransactionsService.js +251 -0
  248. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  249. package/esm/generated/services/HealthCheckService.js +16 -0
  250. package/esm/generated/services/NfTsService.d.ts +76 -0
  251. package/esm/generated/services/NfTsService.js +56 -0
  252. package/esm/generated/services/OperationsService.d.ts +35 -0
  253. package/esm/generated/services/OperationsService.js +28 -0
  254. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  255. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  256. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  257. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  258. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
  259. package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
  260. package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
  261. package/esm/generated/services/PrimaryNetworkService.js +171 -0
  262. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  263. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  264. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  265. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  266. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  267. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  268. package/esm/index.d.ts +183 -0
  269. package/esm/index.js +77 -0
  270. package/package.json +11 -20
  271. package/.eslintrc.js +0 -3
  272. package/CHANGELOG.md +0 -250
  273. package/__tests__/glacier-sdk.test.js +0 -7
  274. package/dist/index.d.ts.map +0 -1
  275. package/dist/index.js.map +0 -1
  276. package/dist/src/generated/models.d.ts +0 -385
  277. package/dist/src/generated/models.d.ts.map +0 -1
  278. package/dist/src/glacierClient.d.ts +0 -93
  279. package/dist/src/glacierClient.d.ts.map +0 -1
  280. package/dist/src/types.d.ts +0 -13
  281. package/dist/src/types.d.ts.map +0 -1
  282. package/index.ts +0 -2
  283. package/rollup.config.js +0 -33
  284. package/src/generated/models.ts +0 -460
  285. package/src/glacierClient.ts +0 -190
  286. package/src/types.ts +0 -6
  287. package/swagger/generateModels.js +0 -40
  288. package/tsconfig.json +0 -7
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4118 @@
1
- export * from './src/generated/models';
2
- export * from './src/glacierClient';
3
- //# sourceMappingURL=index.d.ts.map
1
+ type ApiRequestOptions = {
2
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
+ readonly url: string;
4
+ readonly path?: Record<string, any>;
5
+ readonly cookies?: Record<string, any>;
6
+ readonly headers?: Record<string, any>;
7
+ readonly query?: Record<string, any>;
8
+ readonly formData?: Record<string, any>;
9
+ readonly body?: any;
10
+ readonly mediaType?: string;
11
+ readonly responseHeader?: string;
12
+ readonly errors?: Record<number, string>;
13
+ };
14
+
15
+ declare class CancelError extends Error {
16
+ constructor(message: string);
17
+ get isCancelled(): boolean;
18
+ }
19
+ interface OnCancel {
20
+ readonly isResolved: boolean;
21
+ readonly isRejected: boolean;
22
+ readonly isCancelled: boolean;
23
+ (cancelHandler: () => void): void;
24
+ }
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?;
34
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
35
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
+ catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
+ finally(onFinally?: (() => void) | null): Promise<T>;
38
+ cancel(): void;
39
+ get isCancelled(): boolean;
40
+ }
41
+
42
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
43
+ type Headers = Record<string, string>;
44
+ type OpenAPIConfig = {
45
+ BASE: string;
46
+ VERSION: string;
47
+ WITH_CREDENTIALS: boolean;
48
+ 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;
54
+ };
55
+ declare const OpenAPI: OpenAPIConfig;
56
+
57
+ declare abstract class BaseHttpRequest {
58
+ readonly config: OpenAPIConfig;
59
+ constructor(config: OpenAPIConfig);
60
+ abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
+ }
62
+
63
+ type AddressActivityMetadata = {
64
+ /**
65
+ * Ethereum address for the address_activity event type
66
+ */
67
+ address: string;
68
+ topic0?: string;
69
+ };
70
+
71
+ declare enum EventType {
72
+ ADDRESS_ACTIVITY = "address_activity"
73
+ }
74
+
75
+ declare enum WebhookStatusType {
76
+ ACTIVE = "active",
77
+ INACTIVE = "inactive"
78
+ }
79
+
80
+ type WebhookResponse = {
81
+ id: string;
82
+ eventType: EventType;
83
+ metadata: AddressActivityMetadata;
84
+ url: string;
85
+ chainId: string;
86
+ status: WebhookStatusType;
87
+ createdAt: number;
88
+ };
89
+
90
+ type ListWebhooksResponse = {
91
+ /**
92
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
93
+ */
94
+ nextPageToken?: string;
95
+ webhooks: Array<WebhookResponse>;
96
+ };
97
+
98
+ type RegisterWebhookRequest = {
99
+ url: string;
100
+ chainId: string;
101
+ /**
102
+ * The type of event for the webhook
103
+ */
104
+ eventType: EventType;
105
+ metadata: AddressActivityMetadata;
106
+ };
107
+
108
+ declare enum WebhookStatus {
109
+ ACTIVE = "active",
110
+ INACTIVE = "inactive"
111
+ }
112
+
113
+ declare class DefaultService {
114
+ readonly httpRequest: BaseHttpRequest;
115
+ constructor(httpRequest: BaseHttpRequest);
116
+ /**
117
+ * @returns any
118
+ * @throws ApiError
119
+ */
120
+ mediaControllerUploadImage(): CancelablePromise<any>;
121
+ /**
122
+ * Register a webhook
123
+ * Registers a new webhook.
124
+ * @returns WebhookResponse
125
+ * @throws ApiError
126
+ */
127
+ registerWebhook({ requestBody, }: {
128
+ requestBody: RegisterWebhookRequest;
129
+ }): CancelablePromise<WebhookResponse>;
130
+ /**
131
+ * List webhooks
132
+ * Lists webhooks for the user.
133
+ * @returns ListWebhooksResponse
134
+ * @throws ApiError
135
+ */
136
+ listWebhooks({ pageSize, pageToken, status, }: {
137
+ /**
138
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
139
+ */
140
+ pageSize?: number;
141
+ /**
142
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
143
+ */
144
+ pageToken?: string;
145
+ /**
146
+ * 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.
147
+ */
148
+ status?: WebhookStatus;
149
+ }): CancelablePromise<ListWebhooksResponse>;
150
+ /**
151
+ * Deactivate a webhook
152
+ * Deactivates a webhook by ID.
153
+ * @returns WebhookResponse
154
+ * @throws ApiError
155
+ */
156
+ deactivateWebhook({ id, }: {
157
+ /**
158
+ * The webhook identifier.
159
+ */
160
+ id: string;
161
+ }): CancelablePromise<WebhookResponse>;
162
+ }
163
+
164
+ declare enum CurrencyCode {
165
+ USD = "usd",
166
+ EUR = "eur",
167
+ AUD = "aud",
168
+ CAD = "cad",
169
+ CHF = "chf",
170
+ CLP = "clp",
171
+ CNY = "cny",
172
+ CZK = "czk",
173
+ DKK = "dkk",
174
+ GBP = "gbp",
175
+ HKD = "hkd",
176
+ HUF = "huf",
177
+ JPY = "jpy",
178
+ NZD = "nzd"
179
+ }
180
+
181
+ type Money = {
182
+ /**
183
+ * ISO 4217 currency code.
184
+ */
185
+ currencyCode: CurrencyCode;
186
+ /**
187
+ * Monetary value in base 10 decimals.
188
+ */
189
+ value: number;
190
+ };
191
+
192
+ type NativeTokenBalance = {
193
+ /**
194
+ * The contract name.
195
+ */
196
+ name: string;
197
+ /**
198
+ * The contract symbol.
199
+ */
200
+ symbol: string;
201
+ /**
202
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
203
+ */
204
+ decimals: number;
205
+ /**
206
+ * The logo uri for the address.
207
+ */
208
+ logoUri?: string;
209
+ /**
210
+ * The evm chain id.
211
+ */
212
+ chainId: string;
213
+ /**
214
+ * The token price, if available.
215
+ */
216
+ price?: Money;
217
+ /**
218
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
219
+ */
220
+ balance: string;
221
+ /**
222
+ * The monetary value of the balance, if a price is available for the token.
223
+ */
224
+ balanceValue?: Money;
225
+ };
226
+
227
+ type GetNativeBalanceResponse = {
228
+ /**
229
+ * The native token balance for the address.
230
+ */
231
+ nativeTokenBalance: NativeTokenBalance;
232
+ };
233
+
234
+ declare enum NftTokenMetadataStatus {
235
+ UNKNOWN = "UNKNOWN",
236
+ MISSING_TOKEN = "MISSING_TOKEN",
237
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
238
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
239
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
240
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
241
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
242
+ INVALID_METADATA = "INVALID_METADATA",
243
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
244
+ INDEXED = "INDEXED",
245
+ UNINDEXED = "UNINDEXED"
246
+ }
247
+
248
+ type Erc1155TokenMetadata = {
249
+ /**
250
+ * The metadata indexing status of the nft.
251
+ */
252
+ indexStatus: NftTokenMetadataStatus;
253
+ metadataLastUpdatedTimestamp?: number;
254
+ name?: string;
255
+ symbol?: string;
256
+ imageUri?: string;
257
+ description?: string;
258
+ animationUri?: string;
259
+ externalUrl?: string;
260
+ background?: string;
261
+ decimals?: number;
262
+ properties?: string;
263
+ };
264
+
265
+ type Erc1155TokenBalance = {
266
+ /**
267
+ * A wallet or contract address in mixed-case checksum encoding.
268
+ */
269
+ address: string;
270
+ ercType: Erc1155TokenBalance.ercType;
271
+ tokenId: string;
272
+ tokenUri: string;
273
+ metadata: Erc1155TokenMetadata;
274
+ /**
275
+ * The evm chain id.
276
+ */
277
+ chainId: string;
278
+ /**
279
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
280
+ */
281
+ balance: string;
282
+ };
283
+ declare namespace Erc1155TokenBalance {
284
+ enum ercType {
285
+ ERC_1155 = "ERC-1155"
286
+ }
287
+ }
288
+
289
+ type Erc721TokenMetadata = {
290
+ /**
291
+ * The metadata indexing status of the nft.
292
+ */
293
+ indexStatus: NftTokenMetadataStatus;
294
+ metadataLastUpdatedTimestamp?: number;
295
+ name?: string;
296
+ symbol?: string;
297
+ imageUri?: string;
298
+ description?: string;
299
+ animationUri?: string;
300
+ externalUrl?: string;
301
+ background?: string;
302
+ attributes?: string;
303
+ };
304
+
305
+ type Erc721TokenBalance = {
306
+ /**
307
+ * A wallet or contract address in mixed-case checksum encoding.
308
+ */
309
+ address: string;
310
+ /**
311
+ * The contract name.
312
+ */
313
+ name: string;
314
+ /**
315
+ * The contract symbol.
316
+ */
317
+ symbol: string;
318
+ ercType: Erc721TokenBalance.ercType;
319
+ tokenId: string;
320
+ tokenUri: string;
321
+ metadata: Erc721TokenMetadata;
322
+ /**
323
+ * A wallet or contract address in mixed-case checksum encoding.
324
+ */
325
+ ownerAddress?: string;
326
+ /**
327
+ * The evm chain id.
328
+ */
329
+ chainId: string;
330
+ };
331
+ declare namespace Erc721TokenBalance {
332
+ enum ercType {
333
+ ERC_721 = "ERC-721"
334
+ }
335
+ }
336
+
337
+ type ListCollectibleBalancesResponse = {
338
+ /**
339
+ * 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.
340
+ */
341
+ nextPageToken?: string;
342
+ /**
343
+ * The list of ERC-721 and ERC-1155 token balances for the address.
344
+ */
345
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
346
+ };
347
+
348
+ type ListErc1155BalancesResponse = {
349
+ /**
350
+ * 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.
351
+ */
352
+ nextPageToken?: string;
353
+ /**
354
+ * The list of ERC-1155 token balances for the address.
355
+ */
356
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
357
+ };
358
+
359
+ type Erc20TokenBalance = {
360
+ /**
361
+ * A wallet or contract address in mixed-case checksum encoding.
362
+ */
363
+ address: string;
364
+ /**
365
+ * The contract name.
366
+ */
367
+ name: string;
368
+ /**
369
+ * The contract symbol.
370
+ */
371
+ symbol: string;
372
+ /**
373
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
374
+ */
375
+ decimals: number;
376
+ /**
377
+ * The logo uri for the address.
378
+ */
379
+ logoUri?: string;
380
+ ercType: Erc20TokenBalance.ercType;
381
+ /**
382
+ * The token price, if available.
383
+ */
384
+ price?: Money;
385
+ /**
386
+ * The evm chain id.
387
+ */
388
+ chainId: string;
389
+ /**
390
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
391
+ */
392
+ balance: string;
393
+ /**
394
+ * The monetary value of the balance, if a price is available for the token.
395
+ */
396
+ balanceValue?: Money;
397
+ };
398
+ declare namespace Erc20TokenBalance {
399
+ enum ercType {
400
+ ERC_20 = "ERC-20"
401
+ }
402
+ }
403
+
404
+ type ListErc20BalancesResponse = {
405
+ /**
406
+ * 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.
407
+ */
408
+ nextPageToken?: string;
409
+ /**
410
+ * The list of ERC-20 token balances for the address.
411
+ */
412
+ erc20TokenBalances: Array<Erc20TokenBalance>;
413
+ };
414
+
415
+ type ListErc721BalancesResponse = {
416
+ /**
417
+ * 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.
418
+ */
419
+ nextPageToken?: string;
420
+ /**
421
+ * The list of ERC-721 token balances for the address.
422
+ */
423
+ erc721TokenBalances: Array<Erc721TokenBalance>;
424
+ };
425
+
426
+ declare class EvmBalancesService {
427
+ readonly httpRequest: BaseHttpRequest;
428
+ constructor(httpRequest: BaseHttpRequest);
429
+ /**
430
+ * Get native token balance
431
+ * Gets native token balance of a wallet address.
432
+ *
433
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
+ * @returns GetNativeBalanceResponse
435
+ * @throws ApiError
436
+ */
437
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
438
+ /**
439
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
440
+ */
441
+ chainId: string;
442
+ /**
443
+ * A wallet address.
444
+ */
445
+ address: string;
446
+ /**
447
+ * The block number, if not defined the block number will be the latest block.
448
+ */
449
+ blockNumber?: string;
450
+ /**
451
+ * The currency that return values should use. Defaults to USD.
452
+ */
453
+ currency?: CurrencyCode;
454
+ }): CancelablePromise<GetNativeBalanceResponse>;
455
+ /**
456
+ * List ERC-20 balances
457
+ * Lists ERC-20 token balances of a wallet address.
458
+ *
459
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
460
+ *
461
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
462
+ * @returns ListErc20BalancesResponse
463
+ * @throws ApiError
464
+ */
465
+ listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
466
+ /**
467
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
468
+ */
469
+ chainId: string;
470
+ /**
471
+ * A wallet address.
472
+ */
473
+ address: string;
474
+ /**
475
+ * The block number, if not defined the block number will be the latest block.
476
+ */
477
+ blockNumber?: string;
478
+ /**
479
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
480
+ */
481
+ pageSize?: number;
482
+ /**
483
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
484
+ */
485
+ pageToken?: string;
486
+ /**
487
+ * A comma separated list of contract addresses to filter by.
488
+ */
489
+ contractAddresses?: string;
490
+ /**
491
+ * The currency that return values should use. Defaults to USD.
492
+ */
493
+ currency?: CurrencyCode;
494
+ }): CancelablePromise<ListErc20BalancesResponse>;
495
+ /**
496
+ * List ERC-721 balances
497
+ * Lists ERC-721 token balances of a wallet address.
498
+ *
499
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
500
+ * @returns ListErc721BalancesResponse
501
+ * @throws ApiError
502
+ */
503
+ listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
504
+ /**
505
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
506
+ */
507
+ chainId: string;
508
+ /**
509
+ * A wallet address.
510
+ */
511
+ address: string;
512
+ /**
513
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
514
+ */
515
+ pageSize?: number;
516
+ /**
517
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
518
+ */
519
+ pageToken?: string;
520
+ /**
521
+ * A contract addresses to filter by.
522
+ */
523
+ contractAddress?: string;
524
+ }): CancelablePromise<ListErc721BalancesResponse>;
525
+ /**
526
+ * List ERC-1155 balances
527
+ * Lists ERC-1155 token balances of a wallet address.
528
+ *
529
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
530
+ *
531
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
532
+ * @returns ListErc1155BalancesResponse
533
+ * @throws ApiError
534
+ */
535
+ listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
536
+ /**
537
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
538
+ */
539
+ chainId: string;
540
+ /**
541
+ * A wallet address.
542
+ */
543
+ address: string;
544
+ /**
545
+ * The block number, if not defined the block number will be the latest block.
546
+ */
547
+ blockNumber?: string;
548
+ /**
549
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
550
+ */
551
+ pageSize?: number;
552
+ /**
553
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
554
+ */
555
+ pageToken?: string;
556
+ /**
557
+ * A contract addresses to filter by.
558
+ */
559
+ contractAddress?: string;
560
+ }): CancelablePromise<ListErc1155BalancesResponse>;
561
+ /**
562
+ * List collectible (ERC-721/ERC-1155) balances
563
+ * Lists ERC-721 and ERC-1155 token balances of a wallet address.
564
+ *
565
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
566
+ * @returns ListCollectibleBalancesResponse
567
+ * @throws ApiError
568
+ */
569
+ listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
570
+ /**
571
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
572
+ */
573
+ chainId: string;
574
+ /**
575
+ * A wallet address.
576
+ */
577
+ address: string;
578
+ /**
579
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
580
+ */
581
+ pageSize?: number;
582
+ /**
583
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
584
+ */
585
+ pageToken?: string;
586
+ /**
587
+ * A contract addresses to filter by.
588
+ */
589
+ contractAddress?: string;
590
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
591
+ }
592
+
593
+ type GetEvmBlockResponse = {
594
+ /**
595
+ * The block number on the chain.
596
+ */
597
+ blockNumber: string;
598
+ /**
599
+ * The block finality timestamp.
600
+ */
601
+ blockTimestamp: number;
602
+ /**
603
+ * The block hash identifier.
604
+ */
605
+ blockHash: string;
606
+ /**
607
+ * The number of evm transactions in the block.
608
+ */
609
+ txCount: number;
610
+ /**
611
+ * The base gas fee for a transaction to be included in the block.
612
+ */
613
+ baseFee: string;
614
+ /**
615
+ * The gas used for transactions in the block.
616
+ */
617
+ gasUsed: string;
618
+ /**
619
+ * The total gas limit set for transactions in the block.
620
+ */
621
+ gasLimit: string;
622
+ gasCost: string;
623
+ /**
624
+ * The hash of the parent block.
625
+ */
626
+ parentHash: string;
627
+ /**
628
+ * The amount of fees spent/burned for transactions in the block.
629
+ */
630
+ feesSpent: string;
631
+ /**
632
+ * The cumulative number of transactions for the chain including this block.
633
+ */
634
+ cumulativeTransactions: string;
635
+ };
636
+
637
+ type EvmBlock = {
638
+ /**
639
+ * The block number on the chain.
640
+ */
641
+ blockNumber: string;
642
+ /**
643
+ * The block finality timestamp.
644
+ */
645
+ blockTimestamp: number;
646
+ /**
647
+ * The block hash identifier.
648
+ */
649
+ blockHash: string;
650
+ /**
651
+ * The number of evm transactions in the block.
652
+ */
653
+ txCount: number;
654
+ /**
655
+ * The base gas fee for a transaction to be included in the block.
656
+ */
657
+ baseFee: string;
658
+ /**
659
+ * The gas used for transactions in the block.
660
+ */
661
+ gasUsed: string;
662
+ /**
663
+ * The total gas limit set for transactions in the block.
664
+ */
665
+ gasLimit: string;
666
+ gasCost: string;
667
+ /**
668
+ * The hash of the parent block.
669
+ */
670
+ parentHash: string;
671
+ /**
672
+ * The amount of fees spent/burned for transactions in the block.
673
+ */
674
+ feesSpent: string;
675
+ /**
676
+ * The cumulative number of transactions for the chain including this block.
677
+ */
678
+ cumulativeTransactions: string;
679
+ };
680
+
681
+ type ListEvmBlocksResponse = {
682
+ /**
683
+ * 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.
684
+ */
685
+ nextPageToken?: string;
686
+ blocks: Array<EvmBlock>;
687
+ };
688
+
689
+ declare class EvmBlocksService {
690
+ readonly httpRequest: BaseHttpRequest;
691
+ constructor(httpRequest: BaseHttpRequest);
692
+ /**
693
+ * List latest blocks
694
+ * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
695
+ * @returns ListEvmBlocksResponse
696
+ * @throws ApiError
697
+ */
698
+ getLatestBlocks({ chainId, pageSize, pageToken, }: {
699
+ /**
700
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
701
+ */
702
+ chainId: string;
703
+ /**
704
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
705
+ */
706
+ pageSize?: number;
707
+ /**
708
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
709
+ */
710
+ pageToken?: string;
711
+ }): CancelablePromise<ListEvmBlocksResponse>;
712
+ /**
713
+ * Get block
714
+ * Gets the details of an individual block on the EVM-compatible chain.
715
+ * @returns GetEvmBlockResponse
716
+ * @throws ApiError
717
+ */
718
+ getBlock({ chainId, blockId, }: {
719
+ /**
720
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
721
+ */
722
+ chainId: string;
723
+ /**
724
+ * A block identifier which is either a block number or the block hash.
725
+ */
726
+ blockId: string;
727
+ }): CancelablePromise<GetEvmBlockResponse>;
728
+ }
729
+
730
+ declare enum ChainStatus {
731
+ OK = "OK",
732
+ UNAVAILABLE = "UNAVAILABLE"
733
+ }
734
+
735
+ type NetworkToken = {
736
+ /**
737
+ * The contract name.
738
+ */
739
+ name: string;
740
+ /**
741
+ * The contract symbol.
742
+ */
743
+ symbol: string;
744
+ /**
745
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
746
+ */
747
+ decimals: number;
748
+ /**
749
+ * The logo uri for the address.
750
+ */
751
+ logoUri?: string;
752
+ description?: string;
753
+ };
754
+
755
+ type UtilityAddresses = {
756
+ multicall?: string;
757
+ };
758
+
759
+ declare enum VmName {
760
+ EVM = "EVM",
761
+ BITCOIN = "BITCOIN",
762
+ ETHEREUM = "ETHEREUM"
763
+ }
764
+
765
+ type GetChainResponse = {
766
+ chainId: string;
767
+ /**
768
+ * 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.
769
+ */
770
+ status: ChainStatus;
771
+ chainName: string;
772
+ description: string;
773
+ platformChainId?: string;
774
+ subnetId?: string;
775
+ vmId?: string;
776
+ vmName: VmName;
777
+ explorerUrl?: string;
778
+ rpcUrl: string;
779
+ wsUrl?: string;
780
+ isTestnet: boolean;
781
+ utilityAddresses?: UtilityAddresses;
782
+ networkToken: NetworkToken;
783
+ chainLogoUri?: string;
784
+ private?: boolean;
785
+ };
786
+
787
+ type ChainInfo = {
788
+ chainId: string;
789
+ /**
790
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
791
+ */
792
+ status: ChainStatus;
793
+ chainName: string;
794
+ description: string;
795
+ platformChainId?: string;
796
+ subnetId?: string;
797
+ vmId?: string;
798
+ vmName: VmName;
799
+ explorerUrl?: string;
800
+ rpcUrl: string;
801
+ wsUrl?: string;
802
+ isTestnet: boolean;
803
+ utilityAddresses?: UtilityAddresses;
804
+ networkToken: NetworkToken;
805
+ chainLogoUri?: string;
806
+ private?: boolean;
807
+ };
808
+
809
+ type ListChainsResponse = {
810
+ chains: Array<ChainInfo>;
811
+ };
812
+
813
+ declare enum NetworkType {
814
+ MAINNET = "mainnet",
815
+ TESTNET = "testnet"
816
+ }
817
+
818
+ declare class EvmChainsService {
819
+ readonly httpRequest: BaseHttpRequest;
820
+ constructor(httpRequest: BaseHttpRequest);
821
+ /**
822
+ * List chains
823
+ * Lists the supported EVM-compatible chains. Filterable by network.
824
+ * @returns ListChainsResponse
825
+ * @throws ApiError
826
+ */
827
+ supportedChains({ network, }: {
828
+ /**
829
+ * mainnet or testnet.
830
+ */
831
+ network?: NetworkType;
832
+ }): CancelablePromise<ListChainsResponse>;
833
+ /**
834
+ * Get chain information
835
+ * Gets chain information for the EVM-compatible chain if supported by the api.
836
+ * @returns GetChainResponse
837
+ * @throws ApiError
838
+ */
839
+ getChainInfo({ chainId, }: {
840
+ /**
841
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
842
+ */
843
+ chainId: string;
844
+ }): CancelablePromise<GetChainResponse>;
845
+ }
846
+
847
+ type ImageAsset = {
848
+ assetId?: string;
849
+ /**
850
+ * OUTPUT ONLY
851
+ */
852
+ imageUri?: string;
853
+ };
854
+
855
+ type PricingProviders = {
856
+ coingeckoCoinId?: string;
857
+ };
858
+
859
+ declare enum ResourceLinkType {
860
+ BLOG = "Blog",
861
+ COIN_GECKO = "CoinGecko",
862
+ COIN_MARKET_CAP = "CoinMarketCap",
863
+ DISCORD = "Discord",
864
+ DOCUMENTATION = "Documentation",
865
+ FACEBOOK = "Facebook",
866
+ GITHUB = "Github",
867
+ INSTAGRAM = "Instagram",
868
+ LINKED_IN = "LinkedIn",
869
+ MEDIUM = "Medium",
870
+ REDDIT = "Reddit",
871
+ SUPPORT = "Support",
872
+ TELEGRAM = "Telegram",
873
+ TIK_TOK = "TikTok",
874
+ TWITTER = "Twitter",
875
+ WEBSITE = "Website",
876
+ WHITEPAPER = "Whitepaper",
877
+ YOUTUBE = "Youtube"
878
+ }
879
+
880
+ type ResourceLink = {
881
+ type: ResourceLinkType;
882
+ url: string;
883
+ };
884
+
885
+ type ContractSubmissionErc1155 = {
886
+ description?: string;
887
+ officialSite?: string;
888
+ email?: string;
889
+ logoAsset?: ImageAsset;
890
+ bannerAsset?: ImageAsset;
891
+ color?: string;
892
+ resourceLinks?: Array<ResourceLink>;
893
+ tags?: Array<string>;
894
+ /**
895
+ * The contract name.
896
+ */
897
+ name: string;
898
+ ercType: ContractSubmissionErc1155.ercType;
899
+ /**
900
+ * The contract symbol.
901
+ */
902
+ symbol: string;
903
+ pricingProviders?: PricingProviders;
904
+ };
905
+ declare namespace ContractSubmissionErc1155 {
906
+ enum ercType {
907
+ ERC_1155 = "ERC-1155"
908
+ }
909
+ }
910
+
911
+ type ContractSubmissionErc20 = {
912
+ description?: string;
913
+ officialSite?: string;
914
+ email?: string;
915
+ logoAsset?: ImageAsset;
916
+ bannerAsset?: ImageAsset;
917
+ color?: string;
918
+ resourceLinks?: Array<ResourceLink>;
919
+ tags?: Array<string>;
920
+ /**
921
+ * The contract name.
922
+ */
923
+ name: string;
924
+ ercType: ContractSubmissionErc20.ercType;
925
+ /**
926
+ * The contract symbol.
927
+ */
928
+ symbol: string;
929
+ pricingProviders?: PricingProviders;
930
+ };
931
+ declare namespace ContractSubmissionErc20 {
932
+ enum ercType {
933
+ ERC_20 = "ERC-20"
934
+ }
935
+ }
936
+
937
+ type ContractSubmissionErc721 = {
938
+ description?: string;
939
+ officialSite?: string;
940
+ email?: string;
941
+ logoAsset?: ImageAsset;
942
+ bannerAsset?: ImageAsset;
943
+ color?: string;
944
+ resourceLinks?: Array<ResourceLink>;
945
+ tags?: Array<string>;
946
+ /**
947
+ * The contract name.
948
+ */
949
+ name: string;
950
+ ercType: ContractSubmissionErc721.ercType;
951
+ /**
952
+ * The contract symbol.
953
+ */
954
+ symbol: string;
955
+ };
956
+ declare namespace ContractSubmissionErc721 {
957
+ enum ercType {
958
+ ERC_721 = "ERC-721"
959
+ }
960
+ }
961
+
962
+ type ContractSubmissionUnknown = {
963
+ description?: string;
964
+ officialSite?: string;
965
+ email?: string;
966
+ logoAsset?: ImageAsset;
967
+ bannerAsset?: ImageAsset;
968
+ color?: string;
969
+ resourceLinks?: Array<ResourceLink>;
970
+ tags?: Array<string>;
971
+ /**
972
+ * The contract name.
973
+ */
974
+ name: string;
975
+ ercType: ContractSubmissionUnknown.ercType;
976
+ };
977
+ declare namespace ContractSubmissionUnknown {
978
+ enum ercType {
979
+ UNKNOWN = "UNKNOWN"
980
+ }
981
+ }
982
+
983
+ type ContractSubmissionBody = {
984
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
985
+ };
986
+
987
+ type ContractDeploymentDetails = {
988
+ txHash: string;
989
+ /**
990
+ * The address that initiated the transaction which deployed this contract.
991
+ */
992
+ deployerAddress: string;
993
+ /**
994
+ * 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.
995
+ */
996
+ deployerContractAddress?: string;
997
+ };
998
+
999
+ type Erc1155Contract = {
1000
+ /**
1001
+ * The contract name.
1002
+ */
1003
+ name?: string;
1004
+ description?: string;
1005
+ officialSite?: string;
1006
+ email?: string;
1007
+ logoAsset?: ImageAsset;
1008
+ bannerAsset?: ImageAsset;
1009
+ color?: string;
1010
+ resourceLinks?: Array<ResourceLink>;
1011
+ tags?: Array<string>;
1012
+ /**
1013
+ * A wallet or contract address in mixed-case checksum encoding.
1014
+ */
1015
+ address: string;
1016
+ deploymentDetails: ContractDeploymentDetails;
1017
+ ercType: Erc1155Contract.ercType;
1018
+ /**
1019
+ * The contract symbol.
1020
+ */
1021
+ symbol?: string;
1022
+ pricingProviders?: PricingProviders;
1023
+ };
1024
+ declare namespace Erc1155Contract {
1025
+ enum ercType {
1026
+ ERC_1155 = "ERC-1155"
1027
+ }
1028
+ }
1029
+
1030
+ type Erc20Contract = {
1031
+ /**
1032
+ * The contract name.
1033
+ */
1034
+ name?: string;
1035
+ description?: string;
1036
+ officialSite?: string;
1037
+ email?: string;
1038
+ logoAsset?: ImageAsset;
1039
+ bannerAsset?: ImageAsset;
1040
+ color?: string;
1041
+ resourceLinks?: Array<ResourceLink>;
1042
+ tags?: Array<string>;
1043
+ /**
1044
+ * A wallet or contract address in mixed-case checksum encoding.
1045
+ */
1046
+ address: string;
1047
+ deploymentDetails: ContractDeploymentDetails;
1048
+ ercType: Erc20Contract.ercType;
1049
+ /**
1050
+ * The contract symbol.
1051
+ */
1052
+ symbol?: string;
1053
+ /**
1054
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1055
+ */
1056
+ decimals: number;
1057
+ pricingProviders?: PricingProviders;
1058
+ };
1059
+ declare namespace Erc20Contract {
1060
+ enum ercType {
1061
+ ERC_20 = "ERC-20"
1062
+ }
1063
+ }
1064
+
1065
+ type Erc721Contract = {
1066
+ /**
1067
+ * The contract name.
1068
+ */
1069
+ name?: string;
1070
+ description?: string;
1071
+ officialSite?: string;
1072
+ email?: string;
1073
+ logoAsset?: ImageAsset;
1074
+ bannerAsset?: ImageAsset;
1075
+ color?: string;
1076
+ resourceLinks?: Array<ResourceLink>;
1077
+ tags?: Array<string>;
1078
+ /**
1079
+ * A wallet or contract address in mixed-case checksum encoding.
1080
+ */
1081
+ address: string;
1082
+ deploymentDetails: ContractDeploymentDetails;
1083
+ ercType: Erc721Contract.ercType;
1084
+ /**
1085
+ * The contract symbol.
1086
+ */
1087
+ symbol?: string;
1088
+ };
1089
+ declare namespace Erc721Contract {
1090
+ enum ercType {
1091
+ ERC_721 = "ERC-721"
1092
+ }
1093
+ }
1094
+
1095
+ type UnknownContract = {
1096
+ /**
1097
+ * The contract name.
1098
+ */
1099
+ name?: string;
1100
+ description?: string;
1101
+ officialSite?: string;
1102
+ email?: string;
1103
+ logoAsset?: ImageAsset;
1104
+ bannerAsset?: ImageAsset;
1105
+ color?: string;
1106
+ resourceLinks?: Array<ResourceLink>;
1107
+ tags?: Array<string>;
1108
+ /**
1109
+ * A wallet or contract address in mixed-case checksum encoding.
1110
+ */
1111
+ address: string;
1112
+ deploymentDetails: ContractDeploymentDetails;
1113
+ ercType: UnknownContract.ercType;
1114
+ };
1115
+ declare namespace UnknownContract {
1116
+ enum ercType {
1117
+ UNKNOWN = "UNKNOWN"
1118
+ }
1119
+ }
1120
+
1121
+ type UpdateContractResponse = {
1122
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1123
+ };
1124
+
1125
+ declare class EvmContractsService {
1126
+ readonly httpRequest: BaseHttpRequest;
1127
+ constructor(httpRequest: BaseHttpRequest);
1128
+ /**
1129
+ * Get contract metadata
1130
+ * Gets metadata about the contract at the given address.
1131
+ * @returns any
1132
+ * @throws ApiError
1133
+ */
1134
+ getContractMetadata({ chainId, address, }: {
1135
+ /**
1136
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1137
+ */
1138
+ chainId: string;
1139
+ /**
1140
+ * Contract address on the relevant chain.
1141
+ */
1142
+ address: string;
1143
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1144
+ /**
1145
+ * Update contract information
1146
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1147
+ * @returns UpdateContractResponse
1148
+ * @throws ApiError
1149
+ */
1150
+ updateContractInfo({ chainId, address, requestBody, }: {
1151
+ /**
1152
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1153
+ */
1154
+ chainId: string;
1155
+ /**
1156
+ * Contract address on the relevant chain.
1157
+ */
1158
+ address: string;
1159
+ requestBody: ContractSubmissionBody;
1160
+ }): CancelablePromise<UpdateContractResponse>;
1161
+ }
1162
+
1163
+ type Erc1155Token = {
1164
+ /**
1165
+ * A wallet or contract address in mixed-case checksum encoding.
1166
+ */
1167
+ address: string;
1168
+ ercType: Erc1155Token.ercType;
1169
+ tokenId: string;
1170
+ tokenUri: string;
1171
+ metadata: Erc1155TokenMetadata;
1172
+ };
1173
+ declare namespace Erc1155Token {
1174
+ enum ercType {
1175
+ ERC_1155 = "ERC-1155"
1176
+ }
1177
+ }
1178
+
1179
+ type RichAddress = {
1180
+ /**
1181
+ * The contract name.
1182
+ */
1183
+ name?: string;
1184
+ /**
1185
+ * The contract symbol.
1186
+ */
1187
+ symbol?: string;
1188
+ /**
1189
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1190
+ */
1191
+ decimals?: number;
1192
+ /**
1193
+ * The logo uri for the address.
1194
+ */
1195
+ logoUri?: string;
1196
+ /**
1197
+ * A wallet or contract address in mixed-case checksum encoding.
1198
+ */
1199
+ address: string;
1200
+ };
1201
+
1202
+ type Erc1155TransferDetails = {
1203
+ from: RichAddress;
1204
+ to: RichAddress;
1205
+ logIndex: number;
1206
+ value: string;
1207
+ erc1155Token: Erc1155Token;
1208
+ };
1209
+
1210
+ type Erc20Token = {
1211
+ /**
1212
+ * A wallet or contract address in mixed-case checksum encoding.
1213
+ */
1214
+ address: string;
1215
+ /**
1216
+ * The contract name.
1217
+ */
1218
+ name: string;
1219
+ /**
1220
+ * The contract symbol.
1221
+ */
1222
+ symbol: string;
1223
+ /**
1224
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1225
+ */
1226
+ decimals: number;
1227
+ /**
1228
+ * The logo uri for the address.
1229
+ */
1230
+ logoUri?: string;
1231
+ ercType: Erc20Token.ercType;
1232
+ /**
1233
+ * The token price, if available.
1234
+ */
1235
+ price?: Money;
1236
+ };
1237
+ declare namespace Erc20Token {
1238
+ enum ercType {
1239
+ ERC_20 = "ERC-20"
1240
+ }
1241
+ }
1242
+
1243
+ type Erc20TransferDetails = {
1244
+ from: RichAddress;
1245
+ to: RichAddress;
1246
+ logIndex: number;
1247
+ value: string;
1248
+ erc20Token: Erc20Token;
1249
+ };
1250
+
1251
+ type Erc721Token = {
1252
+ /**
1253
+ * A wallet or contract address in mixed-case checksum encoding.
1254
+ */
1255
+ address: string;
1256
+ /**
1257
+ * The contract name.
1258
+ */
1259
+ name: string;
1260
+ /**
1261
+ * The contract symbol.
1262
+ */
1263
+ symbol: string;
1264
+ ercType: Erc721Token.ercType;
1265
+ tokenId: string;
1266
+ tokenUri: string;
1267
+ metadata: Erc721TokenMetadata;
1268
+ /**
1269
+ * A wallet or contract address in mixed-case checksum encoding.
1270
+ */
1271
+ ownerAddress?: string;
1272
+ };
1273
+ declare namespace Erc721Token {
1274
+ enum ercType {
1275
+ ERC_721 = "ERC-721"
1276
+ }
1277
+ }
1278
+
1279
+ type Erc721TransferDetails = {
1280
+ from: RichAddress;
1281
+ to: RichAddress;
1282
+ logIndex: number;
1283
+ erc721Token: Erc721Token;
1284
+ };
1285
+
1286
+ declare enum TransactionMethodType {
1287
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1288
+ CONTRACT_CALL = "CONTRACT_CALL",
1289
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1290
+ }
1291
+
1292
+ type Method = {
1293
+ /**
1294
+ * 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.
1295
+ */
1296
+ callType: TransactionMethodType;
1297
+ /**
1298
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1299
+ */
1300
+ methodHash: string;
1301
+ /**
1302
+ * 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'.
1303
+ */
1304
+ methodName?: string;
1305
+ };
1306
+
1307
+ type FullNativeTransactionDetails = {
1308
+ /**
1309
+ * The block number on the chain.
1310
+ */
1311
+ blockNumber: string;
1312
+ /**
1313
+ * The block finality timestamp.
1314
+ */
1315
+ blockTimestamp: number;
1316
+ /**
1317
+ * The block hash identifier.
1318
+ */
1319
+ blockHash: string;
1320
+ /**
1321
+ * The index at which the transaction occured in the block (0-indexed).
1322
+ */
1323
+ blockIndex: number;
1324
+ /**
1325
+ * The transaction hash identifier.
1326
+ */
1327
+ txHash: string;
1328
+ /**
1329
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1330
+ */
1331
+ txStatus: string;
1332
+ /**
1333
+ * The transaction type.
1334
+ */
1335
+ txType: number;
1336
+ /**
1337
+ * The gas limit set for the transaction.
1338
+ */
1339
+ gasLimit: string;
1340
+ /**
1341
+ * The amount of gas used.
1342
+ */
1343
+ gasUsed: string;
1344
+ /**
1345
+ * The gas price denominated by the number of decimals of the native token.
1346
+ */
1347
+ gasPrice: string;
1348
+ /**
1349
+ * The nonce used by the sender of the transaction.
1350
+ */
1351
+ nonce: string;
1352
+ from: RichAddress;
1353
+ to: RichAddress;
1354
+ method?: Method;
1355
+ value: string;
1356
+ /**
1357
+ * The data sent for the transaction.
1358
+ */
1359
+ input: string;
1360
+ baseFeePerGas: string;
1361
+ maxFeePerGas?: string;
1362
+ maxPriorityFeePerGas?: string;
1363
+ };
1364
+
1365
+ declare enum InternalTransactionOpCall {
1366
+ UNKNOWN = "UNKNOWN",
1367
+ CALL = "CALL",
1368
+ CREATE = "CREATE",
1369
+ CREATE2 = "CREATE2",
1370
+ CALLCODE = "CALLCODE",
1371
+ DELEGATECALL = "DELEGATECALL",
1372
+ STATICCALL = "STATICCALL"
1373
+ }
1374
+
1375
+ type InternalTransactionDetails = {
1376
+ from: RichAddress;
1377
+ to: RichAddress;
1378
+ internalTxType: InternalTransactionOpCall;
1379
+ value: string;
1380
+ /**
1381
+ * True if the internal transaction was reverted.
1382
+ */
1383
+ isReverted: boolean;
1384
+ gasUsed: string;
1385
+ gasLimit: string;
1386
+ };
1387
+
1388
+ type NetworkTokenDetails = {
1389
+ networkToken: NetworkToken;
1390
+ /**
1391
+ * The current token price, if available.
1392
+ */
1393
+ currentPrice?: Money;
1394
+ /**
1395
+ * 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.
1396
+ */
1397
+ historicalPrice?: Money;
1398
+ };
1399
+
1400
+ type GetTransactionResponse = {
1401
+ /**
1402
+ * The list of ERC-20 transfers.
1403
+ */
1404
+ erc20Transfers?: Array<Erc20TransferDetails>;
1405
+ /**
1406
+ * The list of ERC-721 transfers.
1407
+ */
1408
+ erc721Transfers?: Array<Erc721TransferDetails>;
1409
+ /**
1410
+ * The list of ERC-1155 transfers.
1411
+ */
1412
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1413
+ /**
1414
+ * 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.
1415
+ */
1416
+ internalTransactions?: Array<InternalTransactionDetails>;
1417
+ networkTokenDetails: NetworkTokenDetails;
1418
+ nativeTransaction: FullNativeTransactionDetails;
1419
+ };
1420
+
1421
+ type ListContractsResponse = {
1422
+ /**
1423
+ * 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.
1424
+ */
1425
+ nextPageToken?: string;
1426
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1427
+ };
1428
+
1429
+ type Erc1155Transfer = {
1430
+ /**
1431
+ * The block number on the chain.
1432
+ */
1433
+ blockNumber: string;
1434
+ /**
1435
+ * The block finality timestamp.
1436
+ */
1437
+ blockTimestamp: number;
1438
+ /**
1439
+ * The block hash identifier.
1440
+ */
1441
+ blockHash: string;
1442
+ /**
1443
+ * The transaction hash identifier.
1444
+ */
1445
+ txHash: string;
1446
+ from: RichAddress;
1447
+ to: RichAddress;
1448
+ logIndex: number;
1449
+ value: string;
1450
+ erc1155Token: Erc1155Token;
1451
+ };
1452
+
1453
+ type ListErc1155TransactionsResponse = {
1454
+ /**
1455
+ * 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.
1456
+ */
1457
+ nextPageToken?: string;
1458
+ transactions: Array<Erc1155Transfer>;
1459
+ };
1460
+
1461
+ type Erc20Transfer = {
1462
+ /**
1463
+ * The block number on the chain.
1464
+ */
1465
+ blockNumber: string;
1466
+ /**
1467
+ * The block finality timestamp.
1468
+ */
1469
+ blockTimestamp: number;
1470
+ /**
1471
+ * The block hash identifier.
1472
+ */
1473
+ blockHash: string;
1474
+ /**
1475
+ * The transaction hash identifier.
1476
+ */
1477
+ txHash: string;
1478
+ from: RichAddress;
1479
+ to: RichAddress;
1480
+ logIndex: number;
1481
+ value: string;
1482
+ erc20Token: Erc20Token;
1483
+ };
1484
+
1485
+ type ListErc20TransactionsResponse = {
1486
+ /**
1487
+ * 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.
1488
+ */
1489
+ nextPageToken?: string;
1490
+ transactions: Array<Erc20Transfer>;
1491
+ };
1492
+
1493
+ type Erc721Transfer = {
1494
+ /**
1495
+ * The block number on the chain.
1496
+ */
1497
+ blockNumber: string;
1498
+ /**
1499
+ * The block finality timestamp.
1500
+ */
1501
+ blockTimestamp: number;
1502
+ /**
1503
+ * The block hash identifier.
1504
+ */
1505
+ blockHash: string;
1506
+ /**
1507
+ * The transaction hash identifier.
1508
+ */
1509
+ txHash: string;
1510
+ from: RichAddress;
1511
+ to: RichAddress;
1512
+ logIndex: number;
1513
+ erc721Token: Erc721Token;
1514
+ };
1515
+
1516
+ type ListErc721TransactionsResponse = {
1517
+ /**
1518
+ * 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.
1519
+ */
1520
+ nextPageToken?: string;
1521
+ transactions: Array<Erc721Transfer>;
1522
+ };
1523
+
1524
+ type InternalTransaction = {
1525
+ /**
1526
+ * The block number on the chain.
1527
+ */
1528
+ blockNumber: string;
1529
+ /**
1530
+ * The block finality timestamp.
1531
+ */
1532
+ blockTimestamp: number;
1533
+ /**
1534
+ * The block hash identifier.
1535
+ */
1536
+ blockHash: string;
1537
+ /**
1538
+ * The transaction hash identifier.
1539
+ */
1540
+ txHash: string;
1541
+ from: RichAddress;
1542
+ to: RichAddress;
1543
+ internalTxType: InternalTransactionOpCall;
1544
+ value: string;
1545
+ /**
1546
+ * True if the internal transaction was reverted.
1547
+ */
1548
+ isReverted: boolean;
1549
+ gasUsed: string;
1550
+ gasLimit: string;
1551
+ };
1552
+
1553
+ type ListInternalTransactionsResponse = {
1554
+ /**
1555
+ * 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.
1556
+ */
1557
+ nextPageToken?: string;
1558
+ transactions: Array<InternalTransaction>;
1559
+ };
1560
+
1561
+ type NativeTransaction = {
1562
+ /**
1563
+ * The block number on the chain.
1564
+ */
1565
+ blockNumber: string;
1566
+ /**
1567
+ * The block finality timestamp.
1568
+ */
1569
+ blockTimestamp: number;
1570
+ /**
1571
+ * The block hash identifier.
1572
+ */
1573
+ blockHash: string;
1574
+ /**
1575
+ * The index at which the transaction occured in the block (0-indexed).
1576
+ */
1577
+ blockIndex: number;
1578
+ /**
1579
+ * The transaction hash identifier.
1580
+ */
1581
+ txHash: string;
1582
+ /**
1583
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1584
+ */
1585
+ txStatus: string;
1586
+ /**
1587
+ * The transaction type.
1588
+ */
1589
+ txType: number;
1590
+ /**
1591
+ * The gas limit set for the transaction.
1592
+ */
1593
+ gasLimit: string;
1594
+ /**
1595
+ * The amount of gas used.
1596
+ */
1597
+ gasUsed: string;
1598
+ /**
1599
+ * The gas price denominated by the number of decimals of the native token.
1600
+ */
1601
+ gasPrice: string;
1602
+ /**
1603
+ * The nonce used by the sender of the transaction.
1604
+ */
1605
+ nonce: string;
1606
+ from: RichAddress;
1607
+ to: RichAddress;
1608
+ method?: Method;
1609
+ value: string;
1610
+ };
1611
+
1612
+ type ListNativeTransactionsResponse = {
1613
+ /**
1614
+ * 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.
1615
+ */
1616
+ nextPageToken?: string;
1617
+ transactions: Array<NativeTransaction>;
1618
+ };
1619
+
1620
+ type TransactionDetails = {
1621
+ /**
1622
+ * The native (top-level) transaction details.
1623
+ */
1624
+ nativeTransaction: NativeTransaction;
1625
+ /**
1626
+ * The list of ERC-20 transfers.
1627
+ */
1628
+ erc20Transfers?: Array<Erc20TransferDetails>;
1629
+ /**
1630
+ * The list of ERC-721 transfers.
1631
+ */
1632
+ erc721Transfers?: Array<Erc721TransferDetails>;
1633
+ /**
1634
+ * The list of ERC-1155 transfers.
1635
+ */
1636
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1637
+ /**
1638
+ * 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.
1639
+ */
1640
+ internalTransactions?: Array<InternalTransactionDetails>;
1641
+ };
1642
+
1643
+ type ListTransactionDetailsResponse = {
1644
+ /**
1645
+ * 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.
1646
+ */
1647
+ nextPageToken?: string;
1648
+ transactions: Array<TransactionDetails>;
1649
+ };
1650
+
1651
+ type ListTransfersResponse = {
1652
+ /**
1653
+ * 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.
1654
+ */
1655
+ nextPageToken?: string;
1656
+ transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1657
+ };
1658
+
1659
+ declare enum SortOrder {
1660
+ ASC = "asc",
1661
+ DESC = "desc"
1662
+ }
1663
+
1664
+ declare enum TransactionStatus {
1665
+ FAILED = "failed",
1666
+ SUCCESS = "success"
1667
+ }
1668
+
1669
+ declare class EvmTransactionsService {
1670
+ readonly httpRequest: BaseHttpRequest;
1671
+ constructor(httpRequest: BaseHttpRequest);
1672
+ /**
1673
+ * Get deployment transaction
1674
+ * If the address is a smart contract, returns the transaction in which it was deployed.
1675
+ * @returns GetTransactionResponse
1676
+ * @throws ApiError
1677
+ */
1678
+ getDeploymentTransaction({ chainId, address, currency, }: {
1679
+ /**
1680
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1681
+ */
1682
+ chainId: string;
1683
+ /**
1684
+ * Contract address on the relevant chain.
1685
+ */
1686
+ address: string;
1687
+ /**
1688
+ * The currency that return values should use. Defaults to USD.
1689
+ */
1690
+ currency?: CurrencyCode;
1691
+ }): CancelablePromise<GetTransactionResponse>;
1692
+ /**
1693
+ * List deployed contracts
1694
+ * Lists all contracts deployed by the given address.
1695
+ * @returns ListContractsResponse
1696
+ * @throws ApiError
1697
+ */
1698
+ listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1699
+ /**
1700
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1701
+ */
1702
+ chainId: string;
1703
+ /**
1704
+ * A wallet address.
1705
+ */
1706
+ address: string;
1707
+ /**
1708
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1709
+ */
1710
+ pageSize?: number;
1711
+ /**
1712
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1713
+ */
1714
+ pageToken?: string;
1715
+ }): CancelablePromise<ListContractsResponse>;
1716
+ /**
1717
+ * List ERC transfers
1718
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1719
+ * @returns ListTransfersResponse
1720
+ * @throws ApiError
1721
+ */
1722
+ listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1723
+ /**
1724
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1725
+ */
1726
+ chainId: string;
1727
+ /**
1728
+ * A wallet address.
1729
+ */
1730
+ address: string;
1731
+ /**
1732
+ * 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.
1733
+ */
1734
+ startBlock?: number;
1735
+ /**
1736
+ * 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.
1737
+ */
1738
+ endBlock?: number;
1739
+ /**
1740
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1741
+ */
1742
+ pageSize?: number;
1743
+ /**
1744
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
+ */
1746
+ pageToken?: string;
1747
+ }): CancelablePromise<ListTransfersResponse>;
1748
+ /**
1749
+ * List transactions
1750
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1751
+ *
1752
+ * Filterable by block ranges.
1753
+ * @returns ListTransactionDetailsResponse
1754
+ * @throws ApiError
1755
+ */
1756
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1757
+ /**
1758
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1759
+ */
1760
+ chainId: string;
1761
+ /**
1762
+ * A wallet address.
1763
+ */
1764
+ address: string;
1765
+ /**
1766
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1767
+ */
1768
+ pageSize?: number;
1769
+ /**
1770
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1771
+ */
1772
+ pageToken?: string;
1773
+ /**
1774
+ * 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.
1775
+ */
1776
+ startBlock?: number;
1777
+ /**
1778
+ * 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.
1779
+ */
1780
+ endBlock?: number;
1781
+ /**
1782
+ * 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.
1783
+ */
1784
+ sortOrder?: SortOrder;
1785
+ }): CancelablePromise<ListTransactionDetailsResponse>;
1786
+ /**
1787
+ * List native transactions
1788
+ * Lists native transactions for an address. Filterable by block range.
1789
+ * @returns ListNativeTransactionsResponse
1790
+ * @throws ApiError
1791
+ */
1792
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1793
+ /**
1794
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1795
+ */
1796
+ chainId: string;
1797
+ /**
1798
+ * A wallet address.
1799
+ */
1800
+ address: string;
1801
+ /**
1802
+ * 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.
1803
+ */
1804
+ startBlock?: number;
1805
+ /**
1806
+ * 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.
1807
+ */
1808
+ endBlock?: number;
1809
+ /**
1810
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1811
+ */
1812
+ pageSize?: number;
1813
+ /**
1814
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1815
+ */
1816
+ pageToken?: string;
1817
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1818
+ /**
1819
+ * List ERC-20 transfers
1820
+ * Lists ERC-20 transfers for an address. Filterable by block range.
1821
+ * @returns ListErc20TransactionsResponse
1822
+ * @throws ApiError
1823
+ */
1824
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1825
+ /**
1826
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1827
+ */
1828
+ chainId: string;
1829
+ /**
1830
+ * A wallet address.
1831
+ */
1832
+ address: string;
1833
+ /**
1834
+ * 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.
1835
+ */
1836
+ startBlock?: number;
1837
+ /**
1838
+ * 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.
1839
+ */
1840
+ endBlock?: number;
1841
+ /**
1842
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1843
+ */
1844
+ pageSize?: number;
1845
+ /**
1846
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1847
+ */
1848
+ pageToken?: string;
1849
+ }): CancelablePromise<ListErc20TransactionsResponse>;
1850
+ /**
1851
+ * List ERC-721 transfers
1852
+ * Lists ERC-721 transfers for an address. Filterable by block range.
1853
+ * @returns ListErc721TransactionsResponse
1854
+ * @throws ApiError
1855
+ */
1856
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1857
+ /**
1858
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1859
+ */
1860
+ chainId: string;
1861
+ /**
1862
+ * A wallet address.
1863
+ */
1864
+ address: string;
1865
+ /**
1866
+ * 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.
1867
+ */
1868
+ startBlock?: number;
1869
+ /**
1870
+ * 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.
1871
+ */
1872
+ endBlock?: number;
1873
+ /**
1874
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1875
+ */
1876
+ pageSize?: number;
1877
+ /**
1878
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1879
+ */
1880
+ pageToken?: string;
1881
+ }): CancelablePromise<ListErc721TransactionsResponse>;
1882
+ /**
1883
+ * List ERC-1155 transfers
1884
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
1885
+ * @returns ListErc1155TransactionsResponse
1886
+ * @throws ApiError
1887
+ */
1888
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1889
+ /**
1890
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1891
+ */
1892
+ chainId: string;
1893
+ /**
1894
+ * A wallet address.
1895
+ */
1896
+ address: string;
1897
+ /**
1898
+ * 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.
1899
+ */
1900
+ startBlock?: number;
1901
+ /**
1902
+ * 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.
1903
+ */
1904
+ endBlock?: number;
1905
+ /**
1906
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1907
+ */
1908
+ pageSize?: number;
1909
+ /**
1910
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1911
+ */
1912
+ pageToken?: string;
1913
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
1914
+ /**
1915
+ * List internal transactions
1916
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
1917
+ *
1918
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1919
+ * @returns ListInternalTransactionsResponse
1920
+ * @throws ApiError
1921
+ */
1922
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1923
+ /**
1924
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
+ */
1926
+ chainId: string;
1927
+ /**
1928
+ * A wallet address.
1929
+ */
1930
+ address: string;
1931
+ /**
1932
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1933
+ */
1934
+ startBlock?: number;
1935
+ /**
1936
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1937
+ */
1938
+ endBlock?: number;
1939
+ /**
1940
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1941
+ */
1942
+ pageSize?: number;
1943
+ /**
1944
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1945
+ */
1946
+ pageToken?: string;
1947
+ }): CancelablePromise<ListInternalTransactionsResponse>;
1948
+ /**
1949
+ * Get transaction
1950
+ * Gets the details of a single transaction.
1951
+ * @returns GetTransactionResponse
1952
+ * @throws ApiError
1953
+ */
1954
+ getTransaction({ chainId, txHash, }: {
1955
+ /**
1956
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1957
+ */
1958
+ chainId: string;
1959
+ /**
1960
+ * A transaction hash.
1961
+ */
1962
+ txHash: string;
1963
+ }): CancelablePromise<GetTransactionResponse>;
1964
+ /**
1965
+ * List transactions for a block
1966
+ * Lists the transactions that occured in a given block.
1967
+ * @returns ListNativeTransactionsResponse
1968
+ * @throws ApiError
1969
+ */
1970
+ getTransactionsForBlock({ chainId, blockId, }: {
1971
+ /**
1972
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1973
+ */
1974
+ chainId: string;
1975
+ /**
1976
+ * A block identifier which is either a block number or the block hash.
1977
+ */
1978
+ blockId: string;
1979
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1980
+ /**
1981
+ * List latest transactions
1982
+ * Lists the latest transactions. Filterable by status.
1983
+ * @returns ListNativeTransactionsResponse
1984
+ * @throws ApiError
1985
+ */
1986
+ listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1987
+ /**
1988
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1989
+ */
1990
+ chainId: string;
1991
+ /**
1992
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1993
+ */
1994
+ pageSize?: number;
1995
+ /**
1996
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1997
+ */
1998
+ pageToken?: string;
1999
+ /**
2000
+ * A status filter for listed transactions.
2001
+ */
2002
+ status?: TransactionStatus;
2003
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2004
+ }
2005
+
2006
+ declare class HealthCheckService {
2007
+ readonly httpRequest: BaseHttpRequest;
2008
+ constructor(httpRequest: BaseHttpRequest);
2009
+ /**
2010
+ * Get the health of the service
2011
+ * @returns any The Health Check is successful
2012
+ * @throws ApiError
2013
+ */
2014
+ healthCheck(): CancelablePromise<{
2015
+ status?: string;
2016
+ info?: Record<string, Record<string, string>> | null;
2017
+ error?: Record<string, Record<string, string>> | null;
2018
+ details?: Record<string, Record<string, string>>;
2019
+ }>;
2020
+ }
2021
+
2022
+ type ListNftTokens = {
2023
+ /**
2024
+ * 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.
2025
+ */
2026
+ nextPageToken?: string;
2027
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2028
+ };
2029
+
2030
+ declare class NfTsService {
2031
+ readonly httpRequest: BaseHttpRequest;
2032
+ constructor(httpRequest: BaseHttpRequest);
2033
+ /**
2034
+ * Reindex NFT metadata
2035
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2036
+ * @returns any
2037
+ * @throws ApiError
2038
+ */
2039
+ reindexNft({ chainId, address, tokenId, }: {
2040
+ /**
2041
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2042
+ */
2043
+ chainId: string;
2044
+ /**
2045
+ * Contract address on the relevant chain.
2046
+ */
2047
+ address: string;
2048
+ /**
2049
+ * TokenId on the contract
2050
+ */
2051
+ tokenId: string;
2052
+ }): CancelablePromise<any>;
2053
+ /**
2054
+ * List tokens
2055
+ * Lists tokens for an NFT contract.
2056
+ * @returns ListNftTokens
2057
+ * @throws ApiError
2058
+ */
2059
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2060
+ /**
2061
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2062
+ */
2063
+ chainId: string;
2064
+ /**
2065
+ * Contract address on the relevant chain.
2066
+ */
2067
+ address: string;
2068
+ /**
2069
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2070
+ */
2071
+ pageSize?: number;
2072
+ /**
2073
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2074
+ */
2075
+ pageToken?: string;
2076
+ }): CancelablePromise<ListNftTokens>;
2077
+ /**
2078
+ * Get token details
2079
+ * Gets token details for a specific token of an NFT contract.
2080
+ * @returns any
2081
+ * @throws ApiError
2082
+ */
2083
+ getTokenDetails({ chainId, address, tokenId, }: {
2084
+ /**
2085
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2086
+ */
2087
+ chainId: string;
2088
+ /**
2089
+ * Contract address on the relevant chain.
2090
+ */
2091
+ address: string;
2092
+ /**
2093
+ * TokenId on the contract
2094
+ */
2095
+ tokenId: string;
2096
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2097
+ }
2098
+
2099
+ type EvmNetworkOptions = {
2100
+ addresses: Array<string>;
2101
+ includeChains: Array<string>;
2102
+ };
2103
+
2104
+ type CreateEvmTransactionExportRequest = {
2105
+ type: CreateEvmTransactionExportRequest.type;
2106
+ firstDate: string;
2107
+ lastDate: string;
2108
+ /**
2109
+ * @deprecated
2110
+ */
2111
+ startDate: string;
2112
+ /**
2113
+ * @deprecated
2114
+ */
2115
+ endDate: string;
2116
+ options: EvmNetworkOptions;
2117
+ };
2118
+ declare namespace CreateEvmTransactionExportRequest {
2119
+ enum type {
2120
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
2121
+ }
2122
+ }
2123
+
2124
+ type PrimaryNetworkOptions = {
2125
+ addresses: Array<string>;
2126
+ cChainEvmAddresses?: Array<string>;
2127
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2128
+ };
2129
+
2130
+ type CreatePrimaryNetworkTransactionExportRequest = {
2131
+ type: CreatePrimaryNetworkTransactionExportRequest.type;
2132
+ firstDate: string;
2133
+ lastDate: string;
2134
+ /**
2135
+ * @deprecated
2136
+ */
2137
+ startDate: string;
2138
+ /**
2139
+ * @deprecated
2140
+ */
2141
+ endDate: string;
2142
+ options: PrimaryNetworkOptions;
2143
+ };
2144
+ declare namespace CreatePrimaryNetworkTransactionExportRequest {
2145
+ enum type {
2146
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2147
+ }
2148
+ }
2149
+
2150
+ declare enum OperationStatus {
2151
+ RUNNING = "RUNNING",
2152
+ COMPLETED = "COMPLETED",
2153
+ COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
2154
+ FAILED = "FAILED"
2155
+ }
2156
+
2157
+ declare enum OperationType {
2158
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
2159
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2160
+ }
2161
+
2162
+ declare enum OperationStatusCode {
2163
+ ERR_INVALID_REQUEST = "ErrInvalidRequest",
2164
+ ERR_INTERNAL = "ErrInternal",
2165
+ WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
2166
+ }
2167
+
2168
+ type TransactionExportMetadata = {
2169
+ code?: OperationStatusCode;
2170
+ /**
2171
+ * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
2172
+ */
2173
+ downloadUrl?: string;
2174
+ /**
2175
+ * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
2176
+ */
2177
+ nextDate?: string;
2178
+ };
2179
+
2180
+ type OperationStatusResponse = {
2181
+ operationId: string;
2182
+ operationType: OperationType;
2183
+ operationStatus: OperationStatus;
2184
+ message?: string;
2185
+ metadata: TransactionExportMetadata;
2186
+ createdAtTimestamp: number;
2187
+ updatedAtTimestamp: number;
2188
+ };
2189
+
2190
+ declare class OperationsService {
2191
+ readonly httpRequest: BaseHttpRequest;
2192
+ constructor(httpRequest: BaseHttpRequest);
2193
+ /**
2194
+ * Get operation
2195
+ * Gets operation details for the given operation id.
2196
+ * @returns OperationStatusResponse
2197
+ * @throws ApiError
2198
+ */
2199
+ getOperationResult({ operationId, }: {
2200
+ /**
2201
+ * UUID of given operation
2202
+ */
2203
+ operationId: string;
2204
+ }): CancelablePromise<OperationStatusResponse>;
2205
+ /**
2206
+ * Create transaction export operation
2207
+ * Trigger a transaction export operation with given parameters.
2208
+ *
2209
+ * 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.
2210
+ * @returns OperationStatusResponse
2211
+ * @throws ApiError
2212
+ */
2213
+ postTransactionExportJob({ requestBody, }: {
2214
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2215
+ }): CancelablePromise<OperationStatusResponse>;
2216
+ }
2217
+
2218
+ declare enum BlockchainIds {
2219
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2220
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2221
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2222
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2223
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2224
+ }
2225
+
2226
+ type ChainAddressChainIdMap = {
2227
+ address: string;
2228
+ blockchainIds: Array<BlockchainIds>;
2229
+ };
2230
+
2231
+ type ChainAddressChainIdMapListResponse = {
2232
+ addresses: Array<ChainAddressChainIdMap>;
2233
+ };
2234
+
2235
+ declare enum DelegationStatusType {
2236
+ COMPLETED = "completed",
2237
+ ACTIVE = "active",
2238
+ PENDING = "pending"
2239
+ }
2240
+
2241
+ type DelegatorsDetails = {
2242
+ delegatorCount: number;
2243
+ totalAmountStaked: string;
2244
+ };
2245
+
2246
+ type StakingDistribution = {
2247
+ version: string;
2248
+ amountStaked: string;
2249
+ validatorCount: number;
2250
+ };
2251
+
2252
+ type ValidatorsDetails = {
2253
+ validatorCount: number;
2254
+ totalAmountStaked: string;
2255
+ estimatedAnnualStakingReward: string;
2256
+ stakingDistributionByVersion: Array<StakingDistribution>;
2257
+ stakingRatio: string;
2258
+ };
2259
+
2260
+ type GetNetworkDetailsResponse = {
2261
+ validatorDetails: ValidatorsDetails;
2262
+ delegatorDetails: DelegatorsDetails;
2263
+ };
2264
+
2265
+ type Blockchain = {
2266
+ createBlockTimestamp: number;
2267
+ createBlockNumber: string;
2268
+ blockchainId: string;
2269
+ vmId: string;
2270
+ subnetId: string;
2271
+ blockchainName: string;
2272
+ };
2273
+
2274
+ type ListBlockchainsResponse = {
2275
+ /**
2276
+ * 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.
2277
+ */
2278
+ nextPageToken?: string;
2279
+ blockchains: Array<Blockchain>;
2280
+ };
2281
+
2282
+ type ActiveDelegatorDetails = {
2283
+ txHash: string;
2284
+ nodeId: string;
2285
+ rewardAddresses: Array<string>;
2286
+ amountDelegated: string;
2287
+ delegationFee: string;
2288
+ startTimestamp: number;
2289
+ endTimestamp: number;
2290
+ estimatedGrossReward: string;
2291
+ estimatedNetReward: string;
2292
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
2293
+ };
2294
+ declare namespace ActiveDelegatorDetails {
2295
+ enum delegationStatus {
2296
+ ACTIVE = "active"
2297
+ }
2298
+ }
2299
+
2300
+ type CompletedDelegatorDetails = {
2301
+ txHash: string;
2302
+ nodeId: string;
2303
+ rewardAddresses: Array<string>;
2304
+ amountDelegated: string;
2305
+ delegationFee: string;
2306
+ startTimestamp: number;
2307
+ endTimestamp: number;
2308
+ grossReward: string;
2309
+ netReward: string;
2310
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
2311
+ };
2312
+ declare namespace CompletedDelegatorDetails {
2313
+ enum delegationStatus {
2314
+ COMPLETED = "completed"
2315
+ }
2316
+ }
2317
+
2318
+ type PendingDelegatorDetails = {
2319
+ txHash: string;
2320
+ nodeId: string;
2321
+ rewardAddresses: Array<string>;
2322
+ amountDelegated: string;
2323
+ delegationFee: string;
2324
+ startTimestamp: number;
2325
+ endTimestamp: number;
2326
+ estimatedGrossReward: string;
2327
+ estimatedNetReward: string;
2328
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
2329
+ };
2330
+ declare namespace PendingDelegatorDetails {
2331
+ enum delegationStatus {
2332
+ PENDING = "pending"
2333
+ }
2334
+ }
2335
+
2336
+ type ListDelegatorDetailsResponse = {
2337
+ /**
2338
+ * 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.
2339
+ */
2340
+ nextPageToken?: string;
2341
+ /**
2342
+ * The list of Delegator Details.
2343
+ */
2344
+ delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2345
+ };
2346
+
2347
+ type BlockchainInfo = {
2348
+ blockchainId: string;
2349
+ };
2350
+
2351
+ type Subnet = {
2352
+ createBlockTimestamp: number;
2353
+ createBlockIndex: string;
2354
+ subnetId: string;
2355
+ ownerAddresses: Array<string>;
2356
+ threshold: number;
2357
+ locktime: number;
2358
+ blockchains: Array<BlockchainInfo>;
2359
+ };
2360
+
2361
+ type ListSubnetsResponse = {
2362
+ /**
2363
+ * 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.
2364
+ */
2365
+ nextPageToken?: string;
2366
+ subnets: Array<Subnet>;
2367
+ };
2368
+
2369
+ type Rewards = {
2370
+ validationRewardAmount: string;
2371
+ delegationRewardAmount: string;
2372
+ rewardAddresses?: Array<string>;
2373
+ rewardTxHash?: string;
2374
+ };
2375
+
2376
+ type ValidatorHealthDetails = {
2377
+ /**
2378
+ * Percent of requests responded to in last polling.
2379
+ */
2380
+ reachabilityPercent: number;
2381
+ /**
2382
+ * Percent of requests benched on the P-Chain in last polling.
2383
+ */
2384
+ benchedPChainRequestsPercent: number;
2385
+ /**
2386
+ * Percentage of requests benched on the X-Chain in last polling.
2387
+ */
2388
+ benchedXChainRequestsPercent: number;
2389
+ /**
2390
+ * Percentage of requests benched on the C-Chain in last polling.
2391
+ */
2392
+ benchedCChainRequestsPercent: number;
2393
+ };
2394
+
2395
+ type ActiveValidatorDetails = {
2396
+ txHash: string;
2397
+ nodeId: string;
2398
+ subnetId: string;
2399
+ amountStaked: string;
2400
+ delegationFee?: string;
2401
+ startTimestamp: number;
2402
+ endTimestamp: number;
2403
+ stakePercentage: number;
2404
+ delegatorCount: number;
2405
+ amountDelegated?: string;
2406
+ uptimePerformance: number;
2407
+ avalancheGoVersion?: string;
2408
+ delegationCapacity?: string;
2409
+ potentialRewards: Rewards;
2410
+ validationStatus: ActiveValidatorDetails.validationStatus;
2411
+ validatorHealth: ValidatorHealthDetails;
2412
+ };
2413
+ declare namespace ActiveValidatorDetails {
2414
+ enum validationStatus {
2415
+ ACTIVE = "active"
2416
+ }
2417
+ }
2418
+
2419
+ type CompletedValidatorDetails = {
2420
+ txHash: string;
2421
+ nodeId: string;
2422
+ subnetId: string;
2423
+ amountStaked: string;
2424
+ delegationFee?: string;
2425
+ startTimestamp: number;
2426
+ endTimestamp: number;
2427
+ delegatorCount: number;
2428
+ rewards: Rewards;
2429
+ validationStatus: CompletedValidatorDetails.validationStatus;
2430
+ };
2431
+ declare namespace CompletedValidatorDetails {
2432
+ enum validationStatus {
2433
+ COMPLETED = "completed"
2434
+ }
2435
+ }
2436
+
2437
+ type PendingValidatorDetails = {
2438
+ txHash: string;
2439
+ nodeId: string;
2440
+ subnetId: string;
2441
+ amountStaked: string;
2442
+ delegationFee?: string;
2443
+ startTimestamp: number;
2444
+ endTimestamp: number;
2445
+ validationStatus: PendingValidatorDetails.validationStatus;
2446
+ };
2447
+ declare namespace PendingValidatorDetails {
2448
+ enum validationStatus {
2449
+ PENDING = "pending"
2450
+ }
2451
+ }
2452
+
2453
+ type ListValidatorDetailsResponse = {
2454
+ /**
2455
+ * 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.
2456
+ */
2457
+ nextPageToken?: string;
2458
+ /**
2459
+ * The list of validator Details.
2460
+ */
2461
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2462
+ };
2463
+
2464
+ declare enum Network {
2465
+ MAINNET = "mainnet",
2466
+ FUJI = "fuji"
2467
+ }
2468
+
2469
+ declare enum ValidationStatusType {
2470
+ COMPLETED = "completed",
2471
+ ACTIVE = "active",
2472
+ PENDING = "pending"
2473
+ }
2474
+
2475
+ type XChainAssetDetails = {
2476
+ /**
2477
+ * Unique ID for an asset.
2478
+ */
2479
+ assetId: string;
2480
+ /**
2481
+ * Name of this asset.
2482
+ */
2483
+ name: string;
2484
+ /**
2485
+ * Symbol for this asset (max 4 characters).
2486
+ */
2487
+ symbol: string;
2488
+ /**
2489
+ * Denomination of this asset to represent fungibility.
2490
+ */
2491
+ denomination: number;
2492
+ /**
2493
+ * Type of asset like SECP256K1 or NFT.
2494
+ */
2495
+ type: string;
2496
+ /**
2497
+ * Timestamp in seconds this asset was created on.
2498
+ */
2499
+ createdAtTimestamp: number;
2500
+ /**
2501
+ * Cap represents if an asset can be or is fixed cap.
2502
+ */
2503
+ cap: string;
2504
+ };
2505
+
2506
+ declare enum XChainId {
2507
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2508
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2509
+ X_CHAIN = "x-chain"
2510
+ }
2511
+
2512
+ declare class PrimaryNetworkService {
2513
+ readonly httpRequest: BaseHttpRequest;
2514
+ constructor(httpRequest: BaseHttpRequest);
2515
+ /**
2516
+ * Get asset details
2517
+ * Gets asset details corresponding to the given asset id on the X-Chain.
2518
+ * @returns XChainAssetDetails
2519
+ * @throws ApiError
2520
+ */
2521
+ getAssetDetails({ blockchainId, network, assetId, }: {
2522
+ /**
2523
+ * A primary network blockchain id or alias.
2524
+ */
2525
+ blockchainId: XChainId;
2526
+ /**
2527
+ * Either mainnet or a testnet.
2528
+ */
2529
+ network: Network;
2530
+ /**
2531
+ * Asset ID for any asset on X-Chain
2532
+ */
2533
+ assetId: string;
2534
+ }): CancelablePromise<XChainAssetDetails>;
2535
+ /**
2536
+ * Get chain interactions for addresses
2537
+ * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
2538
+ * @returns ChainAddressChainIdMapListResponse
2539
+ * @throws ApiError
2540
+ */
2541
+ getChainIdsForAddresses({ addresses, network, }: {
2542
+ /**
2543
+ * 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".
2544
+ */
2545
+ addresses: string;
2546
+ /**
2547
+ * Either mainnet or a testnet.
2548
+ */
2549
+ network: Network;
2550
+ }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2551
+ /**
2552
+ * Get network details
2553
+ * Gets network details such as validator and delegator stats.
2554
+ * @returns GetNetworkDetailsResponse
2555
+ * @throws ApiError
2556
+ */
2557
+ getNetworkDetails({ network, }: {
2558
+ /**
2559
+ * Either mainnet or a testnet.
2560
+ */
2561
+ network: Network;
2562
+ }): CancelablePromise<GetNetworkDetailsResponse>;
2563
+ /**
2564
+ * List blockchains
2565
+ * Lists all blockchains registered on the network.
2566
+ * @returns ListBlockchainsResponse
2567
+ * @throws ApiError
2568
+ */
2569
+ listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2570
+ /**
2571
+ * Either mainnet or a testnet.
2572
+ */
2573
+ network: Network;
2574
+ /**
2575
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2576
+ */
2577
+ pageSize?: number;
2578
+ /**
2579
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2580
+ */
2581
+ pageToken?: string;
2582
+ /**
2583
+ * 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.
2584
+ */
2585
+ sortOrder?: SortOrder;
2586
+ }): CancelablePromise<ListBlockchainsResponse>;
2587
+ /**
2588
+ * List subnets
2589
+ * Lists all subnets registered on the network.
2590
+ * @returns ListSubnetsResponse
2591
+ * @throws ApiError
2592
+ */
2593
+ listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2594
+ /**
2595
+ * Either mainnet or a testnet.
2596
+ */
2597
+ network: Network;
2598
+ /**
2599
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2600
+ */
2601
+ pageSize?: number;
2602
+ /**
2603
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2604
+ */
2605
+ pageToken?: string;
2606
+ /**
2607
+ * 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.
2608
+ */
2609
+ sortOrder?: SortOrder;
2610
+ }): CancelablePromise<ListSubnetsResponse>;
2611
+ /**
2612
+ * List validators
2613
+ * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2614
+ * @returns ListValidatorDetailsResponse
2615
+ * @throws ApiError
2616
+ */
2617
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2618
+ /**
2619
+ * Either mainnet or a testnet.
2620
+ */
2621
+ network: Network;
2622
+ /**
2623
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2624
+ */
2625
+ pageSize?: number;
2626
+ /**
2627
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2628
+ */
2629
+ pageToken?: string;
2630
+ /**
2631
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2632
+ */
2633
+ minTimeRemaining?: any;
2634
+ /**
2635
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2636
+ */
2637
+ maxTimeRemaining?: any;
2638
+ /**
2639
+ * 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
2640
+ */
2641
+ minDelegationCapacity?: number;
2642
+ /**
2643
+ * 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.
2644
+ */
2645
+ maxDelegationCapacity?: number;
2646
+ /**
2647
+ * 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.
2648
+ */
2649
+ minFeePercentage?: any;
2650
+ /**
2651
+ * 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.
2652
+ */
2653
+ maxFeePercentage?: any;
2654
+ /**
2655
+ * A comma separated list of node ids to filter by.
2656
+ */
2657
+ nodeIds?: string;
2658
+ /**
2659
+ * 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.
2660
+ */
2661
+ sortOrder?: SortOrder;
2662
+ /**
2663
+ * Validation status of the node.
2664
+ */
2665
+ validationStatus?: ValidationStatusType;
2666
+ /**
2667
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2668
+ */
2669
+ subnetId?: string;
2670
+ }): CancelablePromise<ListValidatorDetailsResponse>;
2671
+ /**
2672
+ * Get single validator details
2673
+ * List validator details for a single validator. Filterable by validation status.
2674
+ * @returns ListValidatorDetailsResponse
2675
+ * @throws ApiError
2676
+ */
2677
+ getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2678
+ /**
2679
+ * Either mainnet or a testnet.
2680
+ */
2681
+ network: Network;
2682
+ /**
2683
+ * A primary network (P or X chain) nodeId.
2684
+ */
2685
+ nodeId: string;
2686
+ /**
2687
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2688
+ */
2689
+ pageSize?: number;
2690
+ /**
2691
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2692
+ */
2693
+ pageToken?: string;
2694
+ /**
2695
+ * 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.
2696
+ */
2697
+ sortOrder?: SortOrder;
2698
+ /**
2699
+ * Validation status of the node.
2700
+ */
2701
+ validationStatus?: ValidationStatusType;
2702
+ }): CancelablePromise<ListValidatorDetailsResponse>;
2703
+ /**
2704
+ * List delegators
2705
+ * Lists details for delegators.
2706
+ * @returns ListDelegatorDetailsResponse
2707
+ * @throws ApiError
2708
+ */
2709
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2710
+ /**
2711
+ * Either mainnet or a testnet.
2712
+ */
2713
+ network: Network;
2714
+ /**
2715
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2716
+ */
2717
+ pageSize?: number;
2718
+ /**
2719
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2720
+ */
2721
+ pageToken?: string;
2722
+ /**
2723
+ * A comma separated list of reward addresses to filter by.
2724
+ */
2725
+ rewardAddresses?: string;
2726
+ /**
2727
+ * 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.
2728
+ */
2729
+ sortOrder?: SortOrder;
2730
+ /**
2731
+ * Delegation status of the node.
2732
+ */
2733
+ delegationStatus?: DelegationStatusType;
2734
+ /**
2735
+ * A comma separated list of node ids to filter by.
2736
+ */
2737
+ nodeIds?: string;
2738
+ }): CancelablePromise<ListDelegatorDetailsResponse>;
2739
+ }
2740
+
2741
+ declare enum BlockchainId {
2742
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2743
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2744
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2745
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2746
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2747
+ P_CHAIN = "p-chain",
2748
+ X_CHAIN = "x-chain",
2749
+ C_CHAIN = "c-chain"
2750
+ }
2751
+
2752
+ type CChainSharedAssetBalance = {
2753
+ /**
2754
+ * Unique ID for an asset.
2755
+ */
2756
+ assetId: string;
2757
+ /**
2758
+ * Name of this asset.
2759
+ */
2760
+ name: string;
2761
+ /**
2762
+ * Symbol for this asset (max 4 characters).
2763
+ */
2764
+ symbol: string;
2765
+ /**
2766
+ * Denomination of this asset to represent fungibility.
2767
+ */
2768
+ denomination: number;
2769
+ /**
2770
+ * Type of asset like SECP256K1 or NFT.
2771
+ */
2772
+ type: string;
2773
+ /**
2774
+ * Amount of the asset.
2775
+ */
2776
+ amount: string;
2777
+ utxoCount: number;
2778
+ sharedWithChainId: string;
2779
+ };
2780
+
2781
+ type CChainAtomicBalances = {
2782
+ atomicMemoryUnlocked: Array<CChainSharedAssetBalance>;
2783
+ atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2784
+ };
2785
+
2786
+ declare enum PrimaryNetwork {
2787
+ MAINNET = "mainnet",
2788
+ FUJI = "fuji"
2789
+ }
2790
+
2791
+ declare enum PrimaryNetworkChainName {
2792
+ P_CHAIN = "p-chain",
2793
+ X_CHAIN = "x-chain",
2794
+ C_CHAIN = "c-chain"
2795
+ }
2796
+
2797
+ type PrimaryNetworkChainInfo = {
2798
+ chainName: PrimaryNetworkChainName;
2799
+ network: PrimaryNetwork;
2800
+ };
2801
+
2802
+ type ListCChainAtomicBalancesResponse = {
2803
+ balances: CChainAtomicBalances;
2804
+ chainInfo: PrimaryNetworkChainInfo;
2805
+ };
2806
+
2807
+ type PChainAsset = {
2808
+ assetId: string;
2809
+ amount: string;
2810
+ };
2811
+
2812
+ type PChainSharedAsset = {
2813
+ assetId: string;
2814
+ amount: string;
2815
+ sharedWithChainId: string;
2816
+ status: string;
2817
+ };
2818
+
2819
+ type PChainBalance = {
2820
+ /**
2821
+ * 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.
2822
+ */
2823
+ unlockedUnstaked: Array<PChainAsset>;
2824
+ /**
2825
+ * 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.
2826
+ */
2827
+ unlockedStaked: Array<PChainAsset>;
2828
+ /**
2829
+ * 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.
2830
+ */
2831
+ lockedPlatform: Array<PChainAsset>;
2832
+ /**
2833
+ * 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.
2834
+ */
2835
+ lockedStakeable: Array<PChainAsset>;
2836
+ /**
2837
+ * 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.
2838
+ */
2839
+ lockedStaked: Array<PChainAsset>;
2840
+ /**
2841
+ * 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.
2842
+ */
2843
+ pendingStaked: Array<PChainAsset>;
2844
+ /**
2845
+ * 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.
2846
+ */
2847
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
2848
+ /**
2849
+ * 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.
2850
+ */
2851
+ atomicMemoryLocked: Array<PChainSharedAsset>;
2852
+ };
2853
+
2854
+ type ListPChainBalancesResponse = {
2855
+ balances: PChainBalance;
2856
+ chainInfo: PrimaryNetworkChainInfo;
2857
+ };
2858
+
2859
+ type XChainAssetBalance = {
2860
+ /**
2861
+ * Unique ID for an asset.
2862
+ */
2863
+ assetId: string;
2864
+ /**
2865
+ * Name of this asset.
2866
+ */
2867
+ name: string;
2868
+ /**
2869
+ * Symbol for this asset (max 4 characters).
2870
+ */
2871
+ symbol: string;
2872
+ /**
2873
+ * Denomination of this asset to represent fungibility.
2874
+ */
2875
+ denomination: number;
2876
+ /**
2877
+ * Type of asset like SECP256K1 or NFT.
2878
+ */
2879
+ type: string;
2880
+ /**
2881
+ * Amount of the asset.
2882
+ */
2883
+ amount: string;
2884
+ utxoCount: number;
2885
+ };
2886
+
2887
+ type XChainSharedAssetBalance = {
2888
+ /**
2889
+ * Unique ID for an asset.
2890
+ */
2891
+ assetId: string;
2892
+ /**
2893
+ * Name of this asset.
2894
+ */
2895
+ name: string;
2896
+ /**
2897
+ * Symbol for this asset (max 4 characters).
2898
+ */
2899
+ symbol: string;
2900
+ /**
2901
+ * Denomination of this asset to represent fungibility.
2902
+ */
2903
+ denomination: number;
2904
+ /**
2905
+ * Type of asset like SECP256K1 or NFT.
2906
+ */
2907
+ type: string;
2908
+ /**
2909
+ * Amount of the asset.
2910
+ */
2911
+ amount: string;
2912
+ utxoCount: number;
2913
+ sharedWithChainId: string;
2914
+ };
2915
+
2916
+ type XChainBalances = {
2917
+ /**
2918
+ * A list of objects containing X-chain Asset balance information.
2919
+ */
2920
+ locked: Array<XChainAssetBalance>;
2921
+ /**
2922
+ * A list of objects containing X-chain Asset balance information.
2923
+ */
2924
+ unlocked: Array<XChainAssetBalance>;
2925
+ atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2926
+ atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2927
+ };
2928
+
2929
+ type ListXChainBalancesResponse = {
2930
+ balances: XChainBalances;
2931
+ chainInfo: PrimaryNetworkChainInfo;
2932
+ };
2933
+
2934
+ declare class PrimaryNetworkBalancesService {
2935
+ readonly httpRequest: BaseHttpRequest;
2936
+ constructor(httpRequest: BaseHttpRequest);
2937
+ /**
2938
+ * Get balances
2939
+ * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
2940
+ *
2941
+ * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
2942
+ * @returns any
2943
+ * @throws ApiError
2944
+ */
2945
+ getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
2946
+ /**
2947
+ * A primary network blockchain id or alias.
2948
+ */
2949
+ blockchainId: BlockchainId;
2950
+ /**
2951
+ * Either mainnet or a testnet.
2952
+ */
2953
+ network: Network;
2954
+ /**
2955
+ * An epoch timestamp in seconds. Balance will be calculated at this timestamp.
2956
+ */
2957
+ blockTimestamp?: number;
2958
+ /**
2959
+ * 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".
2960
+ */
2961
+ addresses?: string;
2962
+ }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
2963
+ }
2964
+
2965
+ type ProposerDetails = {
2966
+ proposerId?: string;
2967
+ proposerParentId?: string;
2968
+ proposerNodeId?: string;
2969
+ proposerPChainHeight?: number;
2970
+ proposerTimestamp?: number;
2971
+ };
2972
+
2973
+ type GetPrimaryNetworkBlockResponse = {
2974
+ blockNumber: string;
2975
+ blockHash: string;
2976
+ parentHash: string;
2977
+ blockTimestamp: number;
2978
+ blockType: string;
2979
+ txCount: number;
2980
+ transactions: Array<string>;
2981
+ blockSizeBytes: number;
2982
+ currentSupply?: string;
2983
+ proposerDetails?: ProposerDetails;
2984
+ };
2985
+
2986
+ type PrimaryNetworkBlock = {
2987
+ blockNumber: string;
2988
+ blockHash: string;
2989
+ parentHash: string;
2990
+ blockTimestamp: number;
2991
+ blockType: string;
2992
+ txCount: number;
2993
+ transactions: Array<string>;
2994
+ blockSizeBytes: number;
2995
+ currentSupply?: string;
2996
+ proposerDetails?: ProposerDetails;
2997
+ };
2998
+
2999
+ type ListPrimaryNetworkBlocksResponse = {
3000
+ /**
3001
+ * 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.
3002
+ */
3003
+ nextPageToken?: string;
3004
+ blocks: Array<PrimaryNetworkBlock>;
3005
+ chainInfo: PrimaryNetworkChainInfo;
3006
+ };
3007
+
3008
+ declare class PrimaryNetworkBlocksService {
3009
+ readonly httpRequest: BaseHttpRequest;
3010
+ constructor(httpRequest: BaseHttpRequest);
3011
+ /**
3012
+ * Get block
3013
+ * Gets a block by block height or block hash on one of the Primary Network chains.
3014
+ * @returns GetPrimaryNetworkBlockResponse
3015
+ * @throws ApiError
3016
+ */
3017
+ getBlockById({ blockchainId, network, blockId, }: {
3018
+ /**
3019
+ * A primary network blockchain id or alias.
3020
+ */
3021
+ blockchainId: BlockchainId;
3022
+ /**
3023
+ * Either mainnet or a testnet.
3024
+ */
3025
+ network: Network;
3026
+ /**
3027
+ * A block identifier which is either a block number or the block hash.
3028
+ */
3029
+ blockId: string;
3030
+ }): CancelablePromise<GetPrimaryNetworkBlockResponse>;
3031
+ /**
3032
+ * List blocks proposed by node
3033
+ * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3034
+ * @returns ListPrimaryNetworkBlocksResponse
3035
+ * @throws ApiError
3036
+ */
3037
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3038
+ /**
3039
+ * A primary network blockchain id or alias.
3040
+ */
3041
+ blockchainId: BlockchainId;
3042
+ /**
3043
+ * Either mainnet or a testnet.
3044
+ */
3045
+ network: Network;
3046
+ /**
3047
+ * A primary network (P or X chain) nodeId.
3048
+ */
3049
+ nodeId: string;
3050
+ /**
3051
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3052
+ */
3053
+ pageSize?: number;
3054
+ /**
3055
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3056
+ */
3057
+ pageToken?: string;
3058
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3059
+ /**
3060
+ * List latest blocks
3061
+ * Lists latest blocks on one of the Primary Network chains.
3062
+ * @returns ListPrimaryNetworkBlocksResponse
3063
+ * @throws ApiError
3064
+ */
3065
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3066
+ /**
3067
+ * A primary network blockchain id or alias.
3068
+ */
3069
+ blockchainId: BlockchainId;
3070
+ /**
3071
+ * Either mainnet or a testnet.
3072
+ */
3073
+ network: Network;
3074
+ /**
3075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3076
+ */
3077
+ pageSize?: number;
3078
+ /**
3079
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3080
+ */
3081
+ pageToken?: string;
3082
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3083
+ }
3084
+
3085
+ declare enum RewardType {
3086
+ VALIDATOR = "VALIDATOR",
3087
+ DELEGATOR = "DELEGATOR",
3088
+ VALIDATOR_FEE = "VALIDATOR_FEE"
3089
+ }
3090
+
3091
+ type HistoricalReward = {
3092
+ /**
3093
+ * An array of P-Chain wallet addresses.
3094
+ */
3095
+ addresses: Array<string>;
3096
+ txHash: string;
3097
+ amountStaked: string;
3098
+ nodeId: string;
3099
+ startTimestamp: number;
3100
+ endTimestamp: number;
3101
+ rewardType: RewardType;
3102
+ utxoId: string;
3103
+ outputIndex: number;
3104
+ /**
3105
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
3106
+ */
3107
+ reward: PChainAsset;
3108
+ rewardTxHash: string;
3109
+ };
3110
+
3111
+ type ListHistoricalRewardsResponse = {
3112
+ /**
3113
+ * 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.
3114
+ */
3115
+ nextPageToken?: string;
3116
+ historicalRewards: Array<HistoricalReward>;
3117
+ };
3118
+
3119
+ type PendingReward = {
3120
+ /**
3121
+ * An array of P-Chain wallet addresses.
3122
+ */
3123
+ addresses: Array<string>;
3124
+ txHash: string;
3125
+ amountStaked: string;
3126
+ nodeId: string;
3127
+ startTimestamp: number;
3128
+ endTimestamp: number;
3129
+ rewardType: RewardType;
3130
+ progress: number;
3131
+ /**
3132
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
3133
+ */
3134
+ estimatedReward: PChainAsset;
3135
+ };
3136
+
3137
+ type ListPendingRewardsResponse = {
3138
+ /**
3139
+ * 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.
3140
+ */
3141
+ nextPageToken?: string;
3142
+ pendingRewards: Array<PendingReward>;
3143
+ };
3144
+
3145
+ declare class PrimaryNetworkRewardsService {
3146
+ readonly httpRequest: BaseHttpRequest;
3147
+ constructor(httpRequest: BaseHttpRequest);
3148
+ /**
3149
+ * List pending rewards
3150
+ * Lists pending rewards on the Primary Network for the supplied addresses.
3151
+ * @returns ListPendingRewardsResponse
3152
+ * @throws ApiError
3153
+ */
3154
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3155
+ /**
3156
+ * Either mainnet or a testnet.
3157
+ */
3158
+ network: Network;
3159
+ /**
3160
+ * 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".
3161
+ */
3162
+ addresses?: string;
3163
+ /**
3164
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3165
+ */
3166
+ pageSize?: number;
3167
+ /**
3168
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3169
+ */
3170
+ pageToken?: string;
3171
+ /**
3172
+ * A comma separated list of node ids to filter by.
3173
+ */
3174
+ nodeIds?: string;
3175
+ /**
3176
+ * 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.
3177
+ */
3178
+ sortOrder?: SortOrder;
3179
+ }): CancelablePromise<ListPendingRewardsResponse>;
3180
+ /**
3181
+ * List historical rewards
3182
+ * Lists historical rewards on the Primary Network for the supplied addresses.
3183
+ * @returns ListHistoricalRewardsResponse
3184
+ * @throws ApiError
3185
+ */
3186
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3187
+ /**
3188
+ * Either mainnet or a testnet.
3189
+ */
3190
+ network: Network;
3191
+ /**
3192
+ * 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".
3193
+ */
3194
+ addresses?: string;
3195
+ /**
3196
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3197
+ */
3198
+ pageSize?: number;
3199
+ /**
3200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3201
+ */
3202
+ pageToken?: string;
3203
+ /**
3204
+ * A comma separated list of node ids to filter by.
3205
+ */
3206
+ nodeIds?: string;
3207
+ /**
3208
+ * 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.
3209
+ */
3210
+ sortOrder?: SortOrder;
3211
+ }): CancelablePromise<ListHistoricalRewardsResponse>;
3212
+ }
3213
+
3214
+ type Asset = {
3215
+ /**
3216
+ * Unique ID for an asset.
3217
+ */
3218
+ assetId: string;
3219
+ /**
3220
+ * Name of this asset.
3221
+ */
3222
+ name: string;
3223
+ /**
3224
+ * Symbol for this asset (max 4 characters).
3225
+ */
3226
+ symbol: string;
3227
+ /**
3228
+ * Denomination of this asset to represent fungibility.
3229
+ */
3230
+ denomination: number;
3231
+ /**
3232
+ * Type of asset like SECP256K1 or NFT.
3233
+ */
3234
+ type: string;
3235
+ /**
3236
+ * Amount of the asset.
3237
+ */
3238
+ amount: string;
3239
+ };
3240
+
3241
+ type UtxoCredential = {
3242
+ /**
3243
+ * Signature provided to consume the output
3244
+ */
3245
+ signature?: string;
3246
+ /**
3247
+ * Public key associated with the signature
3248
+ */
3249
+ publicKey?: string;
3250
+ };
3251
+
3252
+ type EVMInput = {
3253
+ /**
3254
+ * EVM address from which the asset is exported in ExportTx.
3255
+ */
3256
+ fromAddress: string;
3257
+ /**
3258
+ * Asset details for the asset being transferred.
3259
+ */
3260
+ asset: Asset;
3261
+ /**
3262
+ * Credentials that signed this transaction.
3263
+ */
3264
+ credentials: Array<UtxoCredential>;
3265
+ };
3266
+
3267
+ type Utxo = {
3268
+ /**
3269
+ * UTXO ID for this output.
3270
+ */
3271
+ utxoId: string;
3272
+ asset: Asset;
3273
+ /**
3274
+ * Type of output.
3275
+ */
3276
+ utxoType: string;
3277
+ /**
3278
+ * Blockchain ID on which this output is created on.
3279
+ */
3280
+ createdOnChainId: string;
3281
+ /**
3282
+ * Blockchain ID on which this output is consumed on.
3283
+ */
3284
+ consumedOnChainId: string;
3285
+ /**
3286
+ * Transaction ID that created this output.
3287
+ */
3288
+ creationTxHash: string;
3289
+ /**
3290
+ * Transaction ID that consumed this output.
3291
+ */
3292
+ consumingTxHash?: string;
3293
+ /**
3294
+ * Timestamp in seconds this output is consumed.
3295
+ */
3296
+ consumingTxTimestamp?: number;
3297
+ /**
3298
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3299
+ */
3300
+ outputIndex: string;
3301
+ /**
3302
+ * Timestamp in seconds this outptut is created on.
3303
+ */
3304
+ timestamp: number;
3305
+ /**
3306
+ * Locktime in seconds after which this output can be consumed.
3307
+ */
3308
+ locktime: number;
3309
+ /**
3310
+ * Minimum number of signatures required to consume this output.
3311
+ */
3312
+ threshold: number;
3313
+ /**
3314
+ * Addresses that are eligible to sign the consumption of this output.
3315
+ */
3316
+ addresses: Array<string>;
3317
+ /**
3318
+ * Hex encoded data for NFT assets
3319
+ */
3320
+ payload?: string;
3321
+ /**
3322
+ * Index representing the minting set for the NFT mint output
3323
+ */
3324
+ groupId?: number;
3325
+ /**
3326
+ * Credentials that signed the transaction to consume this utxo
3327
+ */
3328
+ credentials?: Array<UtxoCredential>;
3329
+ };
3330
+
3331
+ type CChainExportTransaction = {
3332
+ /**
3333
+ * Unique ID for this transaction.
3334
+ */
3335
+ txHash: string;
3336
+ /**
3337
+ * Height of the block this transaction belongs to.
3338
+ */
3339
+ blockHeight: number;
3340
+ /**
3341
+ * Hash of the block this transaction belongs to.
3342
+ */
3343
+ blockHash: string;
3344
+ /**
3345
+ * Latest timestamp in seconds this transaction was accepted.
3346
+ */
3347
+ timestamp: number;
3348
+ /**
3349
+ * Hex encoded memo bytes for this transaction.
3350
+ */
3351
+ memo: string;
3352
+ /**
3353
+ * Assets unlocked by inputs of this transaction.
3354
+ */
3355
+ amountUnlocked: Array<Asset>;
3356
+ /**
3357
+ * Assets created by outputs of this transaction.
3358
+ */
3359
+ amountCreated: Array<Asset>;
3360
+ /**
3361
+ * Source chain for an atomic transaction.
3362
+ */
3363
+ sourceChain: string;
3364
+ /**
3365
+ * Destination chain for an atomic transaction.
3366
+ */
3367
+ destinationChain: string;
3368
+ /**
3369
+ * Type of transaction.
3370
+ */
3371
+ txType: CChainExportTransaction.txType;
3372
+ evmInputs: Array<EVMInput>;
3373
+ emittedUtxos: Array<Utxo>;
3374
+ };
3375
+ declare namespace CChainExportTransaction {
3376
+ /**
3377
+ * Type of transaction.
3378
+ */
3379
+ enum txType {
3380
+ EXPORT_TX = "ExportTx"
3381
+ }
3382
+ }
3383
+
3384
+ type EVMOutput = {
3385
+ /**
3386
+ * EVM address to which the asset is imported in ImportTx
3387
+ */
3388
+ toAddress: string;
3389
+ /**
3390
+ * Asset details for the asset being transferred.
3391
+ */
3392
+ asset: Asset;
3393
+ };
3394
+
3395
+ type CChainImportTransaction = {
3396
+ /**
3397
+ * Unique ID for this transaction.
3398
+ */
3399
+ txHash: string;
3400
+ /**
3401
+ * Height of the block this transaction belongs to.
3402
+ */
3403
+ blockHeight: number;
3404
+ /**
3405
+ * Hash of the block this transaction belongs to.
3406
+ */
3407
+ blockHash: string;
3408
+ /**
3409
+ * Latest timestamp in seconds this transaction was accepted.
3410
+ */
3411
+ timestamp: number;
3412
+ /**
3413
+ * Hex encoded memo bytes for this transaction.
3414
+ */
3415
+ memo: string;
3416
+ /**
3417
+ * Assets unlocked by inputs of this transaction.
3418
+ */
3419
+ amountUnlocked: Array<Asset>;
3420
+ /**
3421
+ * Assets created by outputs of this transaction.
3422
+ */
3423
+ amountCreated: Array<Asset>;
3424
+ /**
3425
+ * Source chain for an atomic transaction.
3426
+ */
3427
+ sourceChain: string;
3428
+ /**
3429
+ * Destination chain for an atomic transaction.
3430
+ */
3431
+ destinationChain: string;
3432
+ /**
3433
+ * Type of transaction.
3434
+ */
3435
+ txType: CChainImportTransaction.txType;
3436
+ evmOutputs: Array<EVMOutput>;
3437
+ consumedUtxos: Array<Utxo>;
3438
+ };
3439
+ declare namespace CChainImportTransaction {
3440
+ /**
3441
+ * Type of transaction.
3442
+ */
3443
+ enum txType {
3444
+ IMPORT_TX = "ImportTx"
3445
+ }
3446
+ }
3447
+
3448
+ type ListCChainAtomicTransactionsResponse = {
3449
+ /**
3450
+ * 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.
3451
+ */
3452
+ nextPageToken?: string;
3453
+ transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
3454
+ chainInfo: PrimaryNetworkChainInfo;
3455
+ };
3456
+
3457
+ declare enum PChainTransactionType {
3458
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3459
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3460
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3462
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3463
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3464
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3465
+ CREATE_CHAIN_TX = "CreateChainTx",
3466
+ CREATE_SUBNET_TX = "CreateSubnetTx",
3467
+ IMPORT_TX = "ImportTx",
3468
+ EXPORT_TX = "ExportTx",
3469
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
3470
+ UNKNOWN = "UNKNOWN"
3471
+ }
3472
+
3473
+ declare enum UtxoType {
3474
+ STAKE = "STAKE",
3475
+ TRANSFER = "TRANSFER"
3476
+ }
3477
+
3478
+ type PChainUtxo = {
3479
+ /**
3480
+ * An array of P-Chain wallet addresses.
3481
+ */
3482
+ addresses: Array<string>;
3483
+ utxoId: string;
3484
+ txHash: string;
3485
+ outputIndex: number;
3486
+ blockNumber: string;
3487
+ blockTimestamp: number;
3488
+ consumingTxHash?: string;
3489
+ consumingBlockTimestamp?: number;
3490
+ consumingBlockNumber?: string;
3491
+ assetId: string;
3492
+ utxoType: UtxoType;
3493
+ amount: string;
3494
+ stakeableLocktime?: number;
3495
+ platformLocktime?: number;
3496
+ threshold?: number;
3497
+ createdOnChainId: string;
3498
+ consumedOnChainId: string;
3499
+ staked?: boolean;
3500
+ utxoStartTimestamp?: number;
3501
+ utxoEndTimestamp?: number;
3502
+ rewardType?: RewardType;
3503
+ };
3504
+
3505
+ type PChainTransaction = {
3506
+ /**
3507
+ * A P-Chain transaction hash.
3508
+ */
3509
+ txHash: string;
3510
+ txType: PChainTransactionType;
3511
+ /**
3512
+ * The block finality timestamp.
3513
+ */
3514
+ blockTimestamp: number;
3515
+ blockNumber: string;
3516
+ blockHash: string;
3517
+ consumedUtxos: Array<PChainUtxo>;
3518
+ emittedUtxos: Array<PChainUtxo>;
3519
+ /**
3520
+ * Source chain for an atomic transaction.
3521
+ */
3522
+ sourceChain?: string;
3523
+ /**
3524
+ * Destination chain for an atomic transaction.
3525
+ */
3526
+ destinationChain?: string;
3527
+ /**
3528
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3529
+ */
3530
+ value: Array<PChainAsset>;
3531
+ /**
3532
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3533
+ */
3534
+ amountBurned: Array<PChainAsset>;
3535
+ /**
3536
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3537
+ */
3538
+ amountStaked: Array<PChainAsset>;
3539
+ /**
3540
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3541
+ */
3542
+ startTimestamp?: number;
3543
+ /**
3544
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3545
+ */
3546
+ endTimestamp?: number;
3547
+ /**
3548
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx
3549
+ */
3550
+ delegationFeePercent?: string;
3551
+ /**
3552
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3553
+ */
3554
+ nodeId?: string;
3555
+ /**
3556
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
3557
+ */
3558
+ subnetId?: string;
3559
+ /**
3560
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3561
+ */
3562
+ estimatedReward?: string;
3563
+ rewardTxHash?: string;
3564
+ rewardAddresses?: Array<string>;
3565
+ memo?: string;
3566
+ /**
3567
+ * Present for RewardValidatorTx
3568
+ */
3569
+ stakingTxHash?: string;
3570
+ };
3571
+
3572
+ type ListPChainTransactionsResponse = {
3573
+ /**
3574
+ * 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.
3575
+ */
3576
+ nextPageToken?: string;
3577
+ transactions: Array<PChainTransaction>;
3578
+ chainInfo: PrimaryNetworkChainInfo;
3579
+ };
3580
+
3581
+ declare enum XChainTransactionType {
3582
+ BASE_TX = "BaseTx",
3583
+ CREATE_ASSET_TX = "CreateAssetTx",
3584
+ OPERATION_TX = "OperationTx",
3585
+ IMPORT_TX = "ImportTx",
3586
+ EXPORT_TX = "ExportTx",
3587
+ UNKNOWN = "UNKNOWN"
3588
+ }
3589
+
3590
+ type XChainLinearTransaction = {
3591
+ /**
3592
+ * Unique ID for this transaction.
3593
+ */
3594
+ txHash: string;
3595
+ /**
3596
+ * Represents chain format this transaction is included in.
3597
+ */
3598
+ chainFormat: XChainLinearTransaction.chainFormat;
3599
+ /**
3600
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3601
+ */
3602
+ timestamp: number;
3603
+ /**
3604
+ * Type of transaction.
3605
+ */
3606
+ txType: XChainTransactionType;
3607
+ /**
3608
+ * Hex encoded memo bytes for this transaction.
3609
+ */
3610
+ memo: string;
3611
+ consumedUtxos: Array<Utxo>;
3612
+ emittedUtxos: Array<Utxo>;
3613
+ /**
3614
+ * Assets unlocked by inputs of this transaction.
3615
+ */
3616
+ amountUnlocked: Array<Asset>;
3617
+ /**
3618
+ * Assets created by outputs of this transaction.
3619
+ */
3620
+ amountCreated: Array<Asset>;
3621
+ /**
3622
+ * Source chain for an atomic transaction.
3623
+ */
3624
+ sourceChain?: string;
3625
+ /**
3626
+ * Destination chain for an atomic transaction.
3627
+ */
3628
+ destinationChain?: string;
3629
+ /**
3630
+ * Asset details of the asset created in CreateAssetTx
3631
+ */
3632
+ assetCreated?: XChainAssetDetails;
3633
+ /**
3634
+ * Height of the block this transaction belongs to.
3635
+ */
3636
+ blockHeight: number;
3637
+ /**
3638
+ * Hash of the block this transaction belongs to.
3639
+ */
3640
+ blockHash: string;
3641
+ };
3642
+ declare namespace XChainLinearTransaction {
3643
+ /**
3644
+ * Represents chain format this transaction is included in.
3645
+ */
3646
+ enum chainFormat {
3647
+ NON_LINEAR = "non-linear",
3648
+ LINEAR = "linear"
3649
+ }
3650
+ }
3651
+
3652
+ type TransactionVertexDetail = {
3653
+ /**
3654
+ * Vertex ID of the vertex this transaction belongs to.
3655
+ */
3656
+ hash: string;
3657
+ /**
3658
+ * Vertex height of the vertex this transaction belongs to.
3659
+ */
3660
+ height: number;
3661
+ /**
3662
+ * Timestamp in seconds this vertex was accepted.
3663
+ */
3664
+ timestamp: number;
3665
+ };
3666
+
3667
+ type XChainNonLinearTransaction = {
3668
+ /**
3669
+ * Unique ID for this transaction.
3670
+ */
3671
+ txHash: string;
3672
+ /**
3673
+ * Represents chain format this transaction is included in.
3674
+ */
3675
+ chainFormat: XChainNonLinearTransaction.chainFormat;
3676
+ /**
3677
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
3678
+ */
3679
+ timestamp: number;
3680
+ /**
3681
+ * Type of transaction.
3682
+ */
3683
+ txType: XChainTransactionType;
3684
+ /**
3685
+ * Hex encoded memo bytes for this transaction.
3686
+ */
3687
+ memo: string;
3688
+ consumedUtxos: Array<Utxo>;
3689
+ emittedUtxos: Array<Utxo>;
3690
+ /**
3691
+ * Assets unlocked by inputs of this transaction.
3692
+ */
3693
+ amountUnlocked: Array<Asset>;
3694
+ /**
3695
+ * Assets created by outputs of this transaction.
3696
+ */
3697
+ amountCreated: Array<Asset>;
3698
+ /**
3699
+ * Source chain for an atomic transaction.
3700
+ */
3701
+ sourceChain?: string;
3702
+ /**
3703
+ * Destination chain for an atomic transaction.
3704
+ */
3705
+ destinationChain?: string;
3706
+ /**
3707
+ * Asset details of the asset created in CreateAssetTx
3708
+ */
3709
+ assetCreated?: XChainAssetDetails;
3710
+ /**
3711
+ * A transaction on X-Chain can be accepted over multiple vertices.
3712
+ */
3713
+ vertices: Array<TransactionVertexDetail>;
3714
+ };
3715
+ declare namespace XChainNonLinearTransaction {
3716
+ /**
3717
+ * Represents chain format this transaction is included in.
3718
+ */
3719
+ enum chainFormat {
3720
+ NON_LINEAR = "non-linear",
3721
+ LINEAR = "linear"
3722
+ }
3723
+ }
3724
+
3725
+ type ListXChainTransactionsResponse = {
3726
+ /**
3727
+ * 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.
3728
+ */
3729
+ nextPageToken?: string;
3730
+ transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
3731
+ chainInfo: PrimaryNetworkChainInfo;
3732
+ };
3733
+
3734
+ declare enum PChainId {
3735
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3736
+ P_CHAIN = "p-chain"
3737
+ }
3738
+
3739
+ declare enum PrimaryNetworkTxType {
3740
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3741
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3742
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3744
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3745
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3746
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3747
+ CREATE_CHAIN_TX = "CreateChainTx",
3748
+ CREATE_SUBNET_TX = "CreateSubnetTx",
3749
+ IMPORT_TX = "ImportTx",
3750
+ EXPORT_TX = "ExportTx",
3751
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
3752
+ UNKNOWN = "UNKNOWN",
3753
+ BASE_TX = "BaseTx",
3754
+ CREATE_ASSET_TX = "CreateAssetTx",
3755
+ OPERATION_TX = "OperationTx"
3756
+ }
3757
+
3758
+ declare class PrimaryNetworkTransactionsService {
3759
+ readonly httpRequest: BaseHttpRequest;
3760
+ constructor(httpRequest: BaseHttpRequest);
3761
+ /**
3762
+ * Get transaction
3763
+ * Gets the details of a single transaction on one of the Primary Network chains.
3764
+ * @returns any
3765
+ * @throws ApiError
3766
+ */
3767
+ getTxByHash({ blockchainId, network, txHash, }: {
3768
+ /**
3769
+ * A primary network blockchain id or alias.
3770
+ */
3771
+ blockchainId: BlockchainId;
3772
+ /**
3773
+ * Either mainnet or a testnet.
3774
+ */
3775
+ network: Network;
3776
+ /**
3777
+ * A primary network (P or X chain) transaction hash.
3778
+ */
3779
+ txHash: string;
3780
+ }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3781
+ /**
3782
+ * List latest transactions
3783
+ * Lists the latest transactions on one of the Primary Network chains.
3784
+ *
3785
+ * Transactions are filterable by addresses.
3786
+ *
3787
+ * 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.
3788
+ * @returns any
3789
+ * @throws ApiError
3790
+ */
3791
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3792
+ /**
3793
+ * A primary network blockchain id or alias.
3794
+ */
3795
+ blockchainId: BlockchainId;
3796
+ /**
3797
+ * Either mainnet or a testnet.
3798
+ */
3799
+ network: Network;
3800
+ /**
3801
+ * 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".
3802
+ */
3803
+ addresses?: string;
3804
+ /**
3805
+ * Query param for filtering items based on transaction types.
3806
+ */
3807
+ txTypes?: Array<PrimaryNetworkTxType>;
3808
+ /**
3809
+ * Query param for retrieving items after a specific timestamp.
3810
+ */
3811
+ startTimestamp?: number;
3812
+ /**
3813
+ * Query param for retrieving items before a specific timestamp.
3814
+ */
3815
+ endTimestamp?: number;
3816
+ /**
3817
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3818
+ */
3819
+ pageSize?: number;
3820
+ /**
3821
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3822
+ */
3823
+ pageToken?: string;
3824
+ /**
3825
+ * 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.
3826
+ */
3827
+ sortOrder?: SortOrder;
3828
+ }): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
3829
+ /**
3830
+ * List staking transactions
3831
+ * Lists active staking transactions on the P-Chain for the supplied addresses.
3832
+ * @returns ListPChainTransactionsResponse
3833
+ * @throws ApiError
3834
+ */
3835
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3836
+ /**
3837
+ * A primary network blockchain id or alias.
3838
+ */
3839
+ blockchainId: PChainId;
3840
+ /**
3841
+ * Either mainnet or a testnet.
3842
+ */
3843
+ network: Network;
3844
+ /**
3845
+ * 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".
3846
+ */
3847
+ addresses?: string;
3848
+ /**
3849
+ * Query param for filtering items based on transaction types.
3850
+ */
3851
+ txTypes?: Array<PrimaryNetworkTxType>;
3852
+ /**
3853
+ * Query param for retrieving items after a specific timestamp.
3854
+ */
3855
+ startTimestamp?: number;
3856
+ /**
3857
+ * Query param for retrieving items before a specific timestamp.
3858
+ */
3859
+ endTimestamp?: number;
3860
+ /**
3861
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3862
+ */
3863
+ pageSize?: number;
3864
+ /**
3865
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3866
+ */
3867
+ pageToken?: string;
3868
+ /**
3869
+ * 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.
3870
+ */
3871
+ sortOrder?: SortOrder;
3872
+ }): CancelablePromise<ListPChainTransactionsResponse>;
3873
+ /**
3874
+ * List asset transactions
3875
+ * Lists asset transactions corresponding to the given asset id on the X-Chain.
3876
+ * @returns ListXChainTransactionsResponse
3877
+ * @throws ApiError
3878
+ */
3879
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3880
+ /**
3881
+ * A primary network blockchain id or alias.
3882
+ */
3883
+ blockchainId: XChainId;
3884
+ /**
3885
+ * Either mainnet or a testnet.
3886
+ */
3887
+ network: Network;
3888
+ /**
3889
+ * Asset ID for any asset on X-Chain
3890
+ */
3891
+ assetId: string;
3892
+ /**
3893
+ * Query param for filtering items based on transaction types.
3894
+ */
3895
+ txTypes?: Array<PrimaryNetworkTxType>;
3896
+ /**
3897
+ * Query param for retrieving items after a specific timestamp.
3898
+ */
3899
+ startTimestamp?: number;
3900
+ /**
3901
+ * Query param for retrieving items before a specific timestamp.
3902
+ */
3903
+ endTimestamp?: number;
3904
+ /**
3905
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3906
+ */
3907
+ pageSize?: number;
3908
+ /**
3909
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3910
+ */
3911
+ pageToken?: string;
3912
+ }): CancelablePromise<ListXChainTransactionsResponse>;
3913
+ }
3914
+
3915
+ type ListPChainUtxosResponse = {
3916
+ /**
3917
+ * 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.
3918
+ */
3919
+ nextPageToken?: string;
3920
+ utxos: Array<PChainUtxo>;
3921
+ chainInfo: PrimaryNetworkChainInfo;
3922
+ };
3923
+
3924
+ type ListUtxosResponse = {
3925
+ /**
3926
+ * 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.
3927
+ */
3928
+ nextPageToken?: string;
3929
+ utxos: Array<Utxo>;
3930
+ chainInfo: PrimaryNetworkChainInfo;
3931
+ };
3932
+
3933
+ declare class PrimaryNetworkUtxOsService {
3934
+ readonly httpRequest: BaseHttpRequest;
3935
+ constructor(httpRequest: BaseHttpRequest);
3936
+ /**
3937
+ * List UTXOs
3938
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
3939
+ * @returns any
3940
+ * @throws ApiError
3941
+ */
3942
+ getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
3943
+ /**
3944
+ * A primary network blockchain id or alias.
3945
+ */
3946
+ blockchainId: BlockchainId;
3947
+ /**
3948
+ * Either mainnet or a testnet.
3949
+ */
3950
+ network: Network;
3951
+ /**
3952
+ * 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".
3953
+ */
3954
+ addresses?: string;
3955
+ /**
3956
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3957
+ */
3958
+ pageSize?: number;
3959
+ /**
3960
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3961
+ */
3962
+ pageToken?: string;
3963
+ /**
3964
+ * Asset ID for any asset (only applicable X-Chain)
3965
+ */
3966
+ assetId?: string;
3967
+ /**
3968
+ * Boolean filter to include spent UTXOs.
3969
+ */
3970
+ includeSpent?: boolean;
3971
+ /**
3972
+ * 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.
3973
+ */
3974
+ sortOrder?: SortOrder;
3975
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
3976
+ }
3977
+
3978
+ type XChainVertex = {
3979
+ vertexHash: string;
3980
+ parentHashes: Array<string>;
3981
+ vertexHeight: number;
3982
+ vertexIndex: number;
3983
+ vertexTimestamp: number;
3984
+ txCount: number;
3985
+ transactions: Array<string>;
3986
+ vertexSizeBytes: number;
3987
+ };
3988
+
3989
+ type ListXChainVerticesResponse = {
3990
+ /**
3991
+ * 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.
3992
+ */
3993
+ nextPageToken?: string;
3994
+ vertices: Array<XChainVertex>;
3995
+ chainInfo: PrimaryNetworkChainInfo;
3996
+ };
3997
+
3998
+ declare class PrimaryNetworkVerticesService {
3999
+ readonly httpRequest: BaseHttpRequest;
4000
+ constructor(httpRequest: BaseHttpRequest);
4001
+ /**
4002
+ * List vertices
4003
+ * Lists latest vertices on the X-Chain.
4004
+ * @returns ListXChainVerticesResponse
4005
+ * @throws ApiError
4006
+ */
4007
+ listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4008
+ /**
4009
+ * A primary network blockchain id or alias.
4010
+ */
4011
+ blockchainId: XChainId;
4012
+ /**
4013
+ * Either mainnet or a testnet.
4014
+ */
4015
+ network: Network;
4016
+ /**
4017
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4018
+ */
4019
+ pageSize?: number;
4020
+ /**
4021
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4022
+ */
4023
+ pageToken?: string;
4024
+ }): CancelablePromise<ListXChainVerticesResponse>;
4025
+ /**
4026
+ * Get vertex
4027
+ * Gets a single vertex on the X-Chain.
4028
+ * @returns XChainVertex
4029
+ * @throws ApiError
4030
+ */
4031
+ getVertexByHash({ vertexHash, blockchainId, network, }: {
4032
+ /**
4033
+ * A vertex hash string.
4034
+ */
4035
+ vertexHash: string;
4036
+ /**
4037
+ * A primary network blockchain id or alias.
4038
+ */
4039
+ blockchainId: XChainId;
4040
+ /**
4041
+ * Either mainnet or a testnet.
4042
+ */
4043
+ network: Network;
4044
+ }): CancelablePromise<XChainVertex>;
4045
+ /**
4046
+ * List vertices by height
4047
+ * Lists vertices at the given vertex height on the X-Chain.
4048
+ * @returns ListXChainVerticesResponse
4049
+ * @throws ApiError
4050
+ */
4051
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4052
+ /**
4053
+ * The height of a vertex.
4054
+ */
4055
+ vertexHeight: number;
4056
+ /**
4057
+ * A primary network blockchain id or alias.
4058
+ */
4059
+ blockchainId: XChainId;
4060
+ /**
4061
+ * Either mainnet or a testnet.
4062
+ */
4063
+ network: Network;
4064
+ /**
4065
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4066
+ */
4067
+ pageSize?: number;
4068
+ /**
4069
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4070
+ */
4071
+ pageToken?: string;
4072
+ /**
4073
+ * 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.
4074
+ */
4075
+ sortOrder?: SortOrder;
4076
+ }): CancelablePromise<ListXChainVerticesResponse>;
4077
+ }
4078
+
4079
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4080
+ declare class Glacier {
4081
+ readonly default: DefaultService;
4082
+ readonly evmBalances: EvmBalancesService;
4083
+ readonly evmBlocks: EvmBlocksService;
4084
+ readonly evmChains: EvmChainsService;
4085
+ readonly evmContracts: EvmContractsService;
4086
+ readonly evmTransactions: EvmTransactionsService;
4087
+ readonly healthCheck: HealthCheckService;
4088
+ readonly nfTs: NfTsService;
4089
+ readonly operations: OperationsService;
4090
+ readonly primaryNetwork: PrimaryNetworkService;
4091
+ readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
4092
+ readonly primaryNetworkBlocks: PrimaryNetworkBlocksService;
4093
+ readonly primaryNetworkRewards: PrimaryNetworkRewardsService;
4094
+ readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4095
+ readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4096
+ readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4097
+ readonly request: BaseHttpRequest;
4098
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4099
+ }
4100
+
4101
+ type ApiResult = {
4102
+ readonly url: string;
4103
+ readonly ok: boolean;
4104
+ readonly status: number;
4105
+ readonly statusText: string;
4106
+ readonly body: any;
4107
+ };
4108
+
4109
+ declare class ApiError extends Error {
4110
+ readonly url: string;
4111
+ readonly status: number;
4112
+ readonly statusText: string;
4113
+ readonly body: any;
4114
+ readonly request: ApiRequestOptions;
4115
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4116
+ }
4117
+
4118
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };