@avalabs/glacier-sdk 2.8.0-alpha.18 → 2.8.0-alpha.180

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