@avalabs/glacier-sdk 3.1.0-canary.979d9e5.0 → 3.1.0-canary.9af5915.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1973 -411
  3. package/esm/generated/Glacier.d.ts +6 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  6. package/esm/generated/core/ApiResult.d.ts +1 -1
  7. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  8. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  9. package/esm/generated/core/OpenAPI.d.ts +2 -1
  10. package/esm/generated/core/OpenAPI.js +1 -1
  11. package/esm/generated/models/AccessListData.d.ts +12 -0
  12. package/esm/generated/models/AccessRequest.d.ts +12 -0
  13. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  14. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  15. package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  18. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  19. package/esm/generated/models/AssetAmount.d.ts +1 -1
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  21. package/esm/generated/models/BadGateway.d.ts +1 -1
  22. package/esm/generated/models/BadRequest.d.ts +1 -1
  23. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  24. package/esm/generated/models/Blockchain.d.ts +9 -1
  25. package/esm/generated/models/BlockchainId.d.ts +0 -2
  26. package/esm/generated/models/BlockchainId.js +1 -1
  27. package/esm/generated/models/BlockchainIds.d.ts +1 -3
  28. package/esm/generated/models/BlockchainIds.js +1 -1
  29. package/esm/generated/models/BlockchainInfo.d.ts +7 -2
  30. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  31. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  32. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  33. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  34. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  35. package/esm/generated/models/ChainInfo.d.ts +1 -1
  36. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  37. package/esm/generated/models/CommonBalanceType.js +1 -0
  38. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  39. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  40. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  41. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  42. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
  43. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
  44. package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
  45. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  46. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  47. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  48. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  49. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  50. package/esm/generated/models/ERCToken.d.ts +24 -0
  51. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  52. package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
  53. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  54. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  55. package/esm/generated/models/EVMInput.d.ts +1 -1
  56. package/esm/generated/models/EVMOutput.d.ts +1 -1
  57. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  58. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  59. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  60. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  61. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  62. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  63. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  64. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  65. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  66. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  67. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  68. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  69. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  70. package/esm/generated/models/EvmBlock.d.ts +5 -1
  71. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  72. package/esm/generated/models/Forbidden.d.ts +1 -1
  73. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  74. package/esm/generated/models/Geolocation.d.ts +24 -0
  75. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  76. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  77. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  78. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  79. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  80. package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
  81. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  82. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  83. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  84. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  85. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  86. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  87. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  88. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  89. package/esm/generated/models/IcmRewardDetails.js +1 -0
  90. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  91. package/esm/generated/models/ImageAsset.d.ts +1 -1
  92. package/esm/generated/models/InternalServerError.d.ts +1 -1
  93. package/esm/generated/models/InternalTransaction.d.ts +1 -1
  94. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  95. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  96. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  97. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  98. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  99. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  100. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  101. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  102. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  103. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  104. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  105. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  106. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  107. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  108. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  109. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  110. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  111. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  112. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  113. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  114. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  115. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  116. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  117. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  118. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  119. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  120. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  121. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  122. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  124. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  125. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  126. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  127. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  128. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  129. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  130. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  131. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  133. package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
  134. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  135. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  136. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  137. package/esm/generated/models/Log.d.ts +40 -0
  138. package/esm/generated/models/LogsFormat.d.ts +1 -1
  139. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  140. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  141. package/esm/generated/models/Method.d.ts +1 -1
  142. package/esm/generated/models/Metric.d.ts +1 -1
  143. package/esm/generated/models/Money.d.ts +1 -1
  144. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  145. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  146. package/esm/generated/models/Network.d.ts +1 -2
  147. package/esm/generated/models/Network.js +1 -1
  148. package/esm/generated/models/NetworkToken.d.ts +1 -1
  149. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  150. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  151. package/esm/generated/models/NextPageToken.d.ts +1 -1
  152. package/esm/generated/models/NotFound.d.ts +1 -1
  153. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  154. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  155. package/esm/generated/models/PChainBalance.d.ts +1 -1
  156. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  157. package/esm/generated/models/PChainTransaction.d.ts +39 -8
  158. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  159. package/esm/generated/models/PChainTransactionType.js +1 -1
  160. package/esm/generated/models/PChainUtxo.d.ts +32 -1
  161. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  162. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  163. package/esm/generated/models/PendingIcmMessage.js +1 -0
  164. package/esm/generated/models/PendingReward.d.ts +1 -1
  165. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  166. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  167. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  168. package/esm/generated/models/PricingProviders.d.ts +1 -1
  169. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  170. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  171. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  172. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  173. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  174. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  175. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  176. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  177. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  178. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  179. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  180. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  181. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  182. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
  183. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  184. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  185. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  186. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  187. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  188. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  189. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  190. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  191. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  192. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  193. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  194. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  195. package/esm/generated/models/ResourceLink.d.ts +1 -1
  196. package/esm/generated/models/Rewards.d.ts +1 -1
  197. package/esm/generated/models/RichAddress.d.ts +1 -1
  198. package/esm/generated/models/RpcMetrics.d.ts +1 -1
  199. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  200. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  201. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  202. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  203. package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
  204. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  205. package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
  206. package/esm/generated/models/SignatureAggregatorRequest.d.ts +2 -8
  207. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  208. package/esm/generated/models/Subnet.d.ts +16 -3
  209. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  210. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  211. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  212. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  213. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  214. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  215. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  216. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  217. package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
  218. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  219. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  220. package/esm/generated/models/TooManyRequests.d.ts +1 -1
  221. package/esm/generated/models/Transaction.d.ts +121 -0
  222. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  223. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  224. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  225. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  226. package/esm/generated/models/Unauthorized.d.ts +1 -1
  227. package/esm/generated/models/UnknownContract.d.ts +1 -1
  228. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  229. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  230. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  231. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  232. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  233. package/esm/generated/models/Utxo.d.ts +5 -1
  234. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  235. package/esm/generated/models/UtxoType.d.ts +3 -0
  236. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  237. package/esm/generated/models/UtxosSortByOption.js +1 -0
  238. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  239. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  240. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  241. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  242. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  243. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  244. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  245. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  246. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  247. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  248. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  249. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  250. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  251. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  252. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  253. package/esm/generated/models/XChainBalances.d.ts +1 -1
  254. package/esm/generated/models/XChainId.d.ts +0 -1
  255. package/esm/generated/models/XChainId.js +1 -1
  256. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  257. package/esm/generated/models/XChainVertex.d.ts +1 -1
  258. package/esm/generated/services/AvaxSupplyService.d.ts +16 -0
  259. package/esm/generated/services/AvaxSupplyService.js +1 -0
  260. package/esm/generated/services/DataApiUsageMetricsService.d.ts +122 -23
  261. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  262. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  263. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  264. package/esm/generated/services/EvmBlocksService.js +1 -1
  265. package/esm/generated/services/EvmChainsService.d.ts +72 -6
  266. package/esm/generated/services/EvmChainsService.js +1 -1
  267. package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
  268. package/esm/generated/services/EvmTransactionsService.js +1 -1
  269. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  270. package/esm/generated/services/HealthCheckService.js +1 -1
  271. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  272. package/esm/generated/services/InterchainMessagingService.js +1 -0
  273. package/esm/generated/services/NotificationsService.d.ts +51 -0
  274. package/esm/generated/services/NotificationsService.js +1 -0
  275. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  276. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  277. package/esm/generated/services/PrimaryNetworkService.d.ts +55 -4
  278. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  279. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  280. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  281. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +48 -1
  282. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  283. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  284. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  285. package/esm/generated/services/TeleporterService.d.ts +12 -6
  286. package/esm/generated/services/WebhooksService.d.ts +28 -24
  287. package/esm/generated/services/WebhooksService.js +1 -1
  288. package/esm/index.d.ts +64 -10
  289. package/esm/index.js +1 -1
  290. package/package.json +13 -4
  291. package/dist/index.js +0 -1
  292. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  293. package/esm/generated/models/EventType.d.ts +0 -5
  294. package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
  295. package/esm/generated/models/PrimaryNetwork.js +0 -1
  296. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  297. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  298. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  299. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  300. package/esm/generated/services/RpcService.d.ts +0 -25
  301. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,18 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ declare class AvaxSupplyService {
58
+ readonly httpRequest: BaseHttpRequest;
59
+ constructor(httpRequest: BaseHttpRequest);
60
+ /**
61
+ * Get AVAX supply information
62
+ * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
63
+ * @returns void
64
+ * @throws ApiError
65
+ */
66
+ getAvaxSupply(): CancelablePromise<void>;
67
+ }
68
+
57
69
  type LogsFormatMetadata = {
58
70
  /**
59
71
  * The IP address of the client that made the request.
@@ -148,6 +160,28 @@ type LogsResponseDTO = {
148
160
  logs: Array<LogsFormat>;
149
161
  };
150
162
 
163
+ declare enum Network {
164
+ MAINNET = "mainnet",
165
+ FUJI = "fuji",
166
+ TESTNET = "testnet"
167
+ }
168
+
169
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
170
+ RPC_METHOD = "rpcMethod",
171
+ REQUEST_PATH = "requestPath",
172
+ RESPONSE_CODE = "responseCode",
173
+ COUNTRY = "country",
174
+ CONTINENT = "continent",
175
+ USER_AGENT = "userAgent"
176
+ }
177
+
178
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
179
+ HOURLY = "hourly",
180
+ DAILY = "daily",
181
+ WEEKLY = "weekly",
182
+ MONTHLY = "monthly"
183
+ }
184
+
151
185
  type RpcUsageMetricsValueAggregated = {
152
186
  /**
153
187
  * The total number of requests
@@ -173,6 +207,10 @@ type RpcUsageMetricsValueAggregated = {
173
207
  * The number of invalid requests
174
208
  */
175
209
  invalidRequests: number;
210
+ /**
211
+ * The number of API credits wasted on invalid requests
212
+ */
213
+ apiCreditsWasted: number;
176
214
  /**
177
215
  * Column name used for data aggregation
178
216
  */
@@ -190,6 +228,10 @@ declare namespace RpcUsageMetricsValueAggregated {
190
228
  RPC_METHOD = "rpcMethod",
191
229
  RESPONSE_CODE = "responseCode",
192
230
  RL_BYPASS_TOKEN = "rlBypassToken",
231
+ REQUEST_PATH = "requestPath",
232
+ COUNTRY = "country",
233
+ CONTINENT = "continent",
234
+ USER_AGENT = "userAgent",
193
235
  NONE = "None"
194
236
  }
195
237
  }
@@ -205,19 +247,56 @@ type RpcMetrics = {
205
247
  values: Array<RpcUsageMetricsValueAggregated>;
206
248
  };
207
249
 
208
- type RpcUsageMetricsResponseDTO = {
250
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
209
251
  /**
210
252
  * Duration in which the metrics value is aggregated
211
253
  */
212
254
  aggregateDuration: string;
213
255
  /**
214
- * ChainId for which the metrics are aggregated
256
+ * Metrics values
215
257
  */
216
- chainId: string;
258
+ metrics: Array<RpcMetrics>;
259
+ /**
260
+ * Network type for which the metrics are aggregated
261
+ */
262
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
263
+ };
264
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
265
+ /**
266
+ * Network type for which the metrics are aggregated
267
+ */
268
+ enum network {
269
+ MAINNET = "mainnet",
270
+ TESTNET = "testnet"
271
+ }
272
+ }
273
+
274
+ declare enum RpcUsageMetricsGroupByEnum {
275
+ RPC_METHOD = "rpcMethod",
276
+ RESPONSE_CODE = "responseCode",
277
+ RL_BYPASS_TOKEN = "rlBypassToken"
278
+ }
279
+
280
+ declare enum SubnetRpcTimeIntervalGranularity {
281
+ HOURLY = "hourly",
282
+ DAILY = "daily",
283
+ WEEKLY = "weekly",
284
+ MONTHLY = "monthly"
285
+ }
286
+
287
+ type SubnetRpcUsageMetricsResponseDTO = {
288
+ /**
289
+ * Duration in which the metrics value is aggregated
290
+ */
291
+ aggregateDuration: string;
217
292
  /**
218
293
  * Metrics values
219
294
  */
220
295
  metrics: Array<RpcMetrics>;
296
+ /**
297
+ * ChainId for which the metrics are aggregated
298
+ */
299
+ chainId: string;
221
300
  };
222
301
 
223
302
  declare enum TimeIntervalGranularityExtended {
@@ -323,7 +402,7 @@ declare class DataApiUsageMetricsService {
323
402
  * @returns UsageMetricsResponseDTO Successful response
324
403
  * @throws ApiError
325
404
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
405
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
406
  /**
328
407
  * Organization ID to fetch usage metrics for
329
408
  */
@@ -333,7 +412,7 @@ declare class DataApiUsageMetricsService {
333
412
  */
334
413
  startTimestamp?: number;
335
414
  /**
336
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
415
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
337
416
  */
338
417
  endTimestamp?: number;
339
418
  /**
@@ -348,10 +427,6 @@ declare class DataApiUsageMetricsService {
348
427
  * Filter data by chain ID.
349
428
  */
350
429
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
430
  /**
356
431
  * Filter data by response status code.
357
432
  */
@@ -364,6 +439,10 @@ declare class DataApiUsageMetricsService {
364
439
  * Filter data by API key ID.
365
440
  */
366
441
  apiKeyId?: string;
442
+ /**
443
+ * Filter data by request path.
444
+ */
445
+ requestPath?: string;
367
446
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
447
  /**
369
448
  * Get logs for requests made by client
@@ -371,7 +450,7 @@ declare class DataApiUsageMetricsService {
371
450
  * @returns LogsResponseDTO Successful response
372
451
  * @throws ApiError
373
452
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
453
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
454
  /**
376
455
  * Organization ID to fetch usage metrics for
377
456
  */
@@ -381,17 +460,13 @@ declare class DataApiUsageMetricsService {
381
460
  */
382
461
  startTimestamp?: number;
383
462
  /**
384
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
463
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
385
464
  */
386
465
  endTimestamp?: number;
387
466
  /**
388
467
  * Filter data by chain ID.
389
468
  */
390
469
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
470
  /**
396
471
  * Filter data by response status code.
397
472
  */
@@ -404,6 +479,10 @@ declare class DataApiUsageMetricsService {
404
479
  * Filter data by API key ID.
405
480
  */
406
481
  apiKeyId?: string;
482
+ /**
483
+ * Filter data by request path.
484
+ */
485
+ requestPath?: string;
407
486
  /**
408
487
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
488
  */
@@ -415,35 +494,75 @@ declare class DataApiUsageMetricsService {
415
494
  }): CancelablePromise<LogsResponseDTO>;
416
495
  /**
417
496
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
- * @returns RpcUsageMetricsResponseDTO Successful response
497
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
498
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
420
499
  * @throws ApiError
421
500
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
501
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
502
  /**
424
- * Query param for setting time interval of data aggregation.
503
+ * Time interval granularity for data aggregation for subnet
504
+ * rpc metrics
425
505
  */
426
- timeInterval?: string;
506
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
507
  /**
428
508
  * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
429
509
  */
430
510
  startTimestamp?: number;
431
511
  /**
432
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
512
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
433
513
  */
434
514
  endTimestamp?: number;
435
515
  /**
436
516
  * Query param for the criterion used for grouping metrics
437
517
  */
438
- groupBy?: UsageMetricsGroupByEnum;
518
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
519
  /**
440
520
  * Filter data by chain ID.
441
521
  */
442
522
  chainId?: string;
443
523
  /**
444
- * Filter data by request path.
524
+ * Filter data by response status code.
445
525
  */
446
- requestPath?: string;
526
+ responseCode?: string;
527
+ /**
528
+ * Filter data by RPC method.
529
+ */
530
+ rpcMethod?: string;
531
+ /**
532
+ * Filter data by Rl Bypass API Token.
533
+ */
534
+ rlBypassApiToken?: string;
535
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
536
+ /**
537
+ * @deprecated
538
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
539
+ *
540
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
541
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
542
+ * @throws ApiError
543
+ */
544
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
545
+ /**
546
+ * Time interval granularity for data aggregation for subnet
547
+ * rpc metrics
548
+ */
549
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
550
+ /**
551
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
552
+ */
553
+ startTimestamp?: number;
554
+ /**
555
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
556
+ */
557
+ endTimestamp?: number;
558
+ /**
559
+ * Query param for the criterion used for grouping metrics
560
+ */
561
+ groupBy?: RpcUsageMetricsGroupByEnum;
562
+ /**
563
+ * Filter data by chain ID.
564
+ */
565
+ chainId?: string;
447
566
  /**
448
567
  * Filter data by response status code.
449
568
  */
@@ -456,7 +575,60 @@ declare class DataApiUsageMetricsService {
456
575
  * Filter data by Rl Bypass API Token.
457
576
  */
458
577
  rlBypassApiToken?: string;
459
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
578
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
579
+ /**
580
+ * Get usage metrics for the Primary Network RPC
581
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
582
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
583
+ * @throws ApiError
584
+ */
585
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
586
+ /**
587
+ * Either mainnet or testnet/fuji.
588
+ */
589
+ network: Network;
590
+ /**
591
+ * Time interval granularity for data aggregation for subnet
592
+ * rpc metrics
593
+ */
594
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
595
+ /**
596
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
597
+ */
598
+ startTimestamp?: number;
599
+ /**
600
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
601
+ */
602
+ endTimestamp?: number;
603
+ /**
604
+ * Query param for the criterion used for grouping metrics
605
+ */
606
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
607
+ /**
608
+ * Filter data by response status code.
609
+ */
610
+ responseCode?: string;
611
+ /**
612
+ * Filter data by request path.
613
+ */
614
+ requestPath?: string;
615
+ /**
616
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
617
+ */
618
+ country?: string;
619
+ /**
620
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
621
+ */
622
+ continent?: string;
623
+ /**
624
+ * Filter data by User Agent.
625
+ */
626
+ userAgent?: string;
627
+ /**
628
+ * Filter data by RPC method.
629
+ */
630
+ rpcMethod?: string;
631
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
460
632
  }
461
633
 
462
634
  declare class DefaultService {
@@ -655,6 +827,10 @@ type ListErc1155BalancesResponse = {
655
827
  * 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.
656
828
  */
657
829
  nextPageToken?: string;
830
+ /**
831
+ * The native token balance for the address.
832
+ */
833
+ nativeTokenBalance: NativeTokenBalance;
658
834
  /**
659
835
  * The list of ERC-1155 token balances for the address.
660
836
  */
@@ -699,11 +875,22 @@ type Erc20TokenBalance = {
699
875
  * The monetary value of the balance, if a price is available for the token.
700
876
  */
701
877
  balanceValue?: Money;
878
+ /**
879
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
880
+ */
881
+ tokenReputation: Erc20TokenBalance.tokenReputation;
702
882
  };
703
883
  declare namespace Erc20TokenBalance {
704
884
  enum ercType {
705
885
  ERC_20 = "ERC-20"
706
886
  }
887
+ /**
888
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
889
+ */
890
+ enum tokenReputation {
891
+ MALICIOUS = "Malicious",
892
+ BENIGN = "Benign"
893
+ }
707
894
  }
708
895
 
709
896
  type ListErc20BalancesResponse = {
@@ -711,6 +898,10 @@ type ListErc20BalancesResponse = {
711
898
  * 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.
712
899
  */
713
900
  nextPageToken?: string;
901
+ /**
902
+ * The native token balance for the address.
903
+ */
904
+ nativeTokenBalance: NativeTokenBalance;
714
905
  /**
715
906
  * The list of ERC-20 token balances for the address.
716
907
  */
@@ -722,6 +913,10 @@ type ListErc721BalancesResponse = {
722
913
  * 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.
723
914
  */
724
915
  nextPageToken?: string;
916
+ /**
917
+ * The native token balance for the address.
918
+ */
919
+ nativeTokenBalance: NativeTokenBalance;
725
920
  /**
726
921
  * The list of ERC-721 token balances for the address.
727
922
  */
@@ -785,7 +980,7 @@ declare class EvmBalancesService {
785
980
  */
786
981
  pageToken?: string;
787
982
  /**
788
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
983
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
789
984
  */
790
985
  pageSize?: number;
791
986
  /**
@@ -823,7 +1018,7 @@ declare class EvmBalancesService {
823
1018
  */
824
1019
  pageToken?: string;
825
1020
  /**
826
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1021
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
827
1022
  */
828
1023
  pageSize?: number;
829
1024
  /**
@@ -859,7 +1054,7 @@ declare class EvmBalancesService {
859
1054
  */
860
1055
  pageToken?: string;
861
1056
  /**
862
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1057
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
863
1058
  */
864
1059
  pageSize?: number;
865
1060
  /**
@@ -889,7 +1084,7 @@ declare class EvmBalancesService {
889
1084
  */
890
1085
  pageToken?: string;
891
1086
  /**
892
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1087
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
893
1088
  */
894
1089
  pageSize?: number;
895
1090
  /**
@@ -900,6 +1095,10 @@ declare class EvmBalancesService {
900
1095
  }
901
1096
 
902
1097
  type GetEvmBlockResponse = {
1098
+ /**
1099
+ * The EVM chain ID on which the block was created.
1100
+ */
1101
+ chainId: string;
903
1102
  /**
904
1103
  * The block number on the chain.
905
1104
  */
@@ -944,6 +1143,10 @@ type GetEvmBlockResponse = {
944
1143
  };
945
1144
 
946
1145
  type EvmBlock = {
1146
+ /**
1147
+ * The EVM chain ID on which the block was created.
1148
+ */
1149
+ chainId: string;
947
1150
  /**
948
1151
  * The block number on the chain.
949
1152
  */
@@ -998,6 +1201,26 @@ type ListEvmBlocksResponse = {
998
1201
  declare class EvmBlocksService {
999
1202
  readonly httpRequest: BaseHttpRequest;
1000
1203
  constructor(httpRequest: BaseHttpRequest);
1204
+ /**
1205
+ * List latest blocks across all supported EVM chains
1206
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1207
+ * @returns ListEvmBlocksResponse Successful response
1208
+ * @throws ApiError
1209
+ */
1210
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1211
+ /**
1212
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1213
+ */
1214
+ pageToken?: string;
1215
+ /**
1216
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1217
+ */
1218
+ pageSize?: number;
1219
+ /**
1220
+ * Either mainnet or testnet/fuji.
1221
+ */
1222
+ network?: Network;
1223
+ }): CancelablePromise<ListEvmBlocksResponse>;
1001
1224
  /**
1002
1225
  * List latest blocks
1003
1226
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1120,74 +1343,246 @@ type ChainInfo = {
1120
1343
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1344
  };
1122
1345
 
1346
+ type ListAddressChainsResponse = {
1347
+ indexedChains?: Array<ChainInfo>;
1348
+ unindexedChains?: Array<string>;
1349
+ };
1350
+
1123
1351
  type ListChainsResponse = {
1124
1352
  chains: Array<ChainInfo>;
1125
1353
  };
1126
1354
 
1127
- declare enum Network {
1128
- MAINNET = "mainnet",
1129
- FUJI = "fuji",
1130
- TESTNET = "testnet",
1131
- DEVNET = "devnet"
1355
+ /**
1356
+ * 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.
1357
+ */
1358
+ declare enum TransactionMethodType {
1359
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1360
+ CONTRACT_CALL = "CONTRACT_CALL",
1361
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1132
1362
  }
1133
1363
 
1134
- declare class EvmChainsService {
1135
- readonly httpRequest: BaseHttpRequest;
1136
- constructor(httpRequest: BaseHttpRequest);
1364
+ type Method = {
1365
+ callType: TransactionMethodType;
1137
1366
  /**
1138
- * List chains
1139
- * Lists the supported EVM-compatible chains. Filterable by network.
1140
- * @returns ListChainsResponse Successful response
1141
- * @throws ApiError
1367
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1142
1368
  */
1143
- supportedChains({ network, feature, }: {
1144
- /**
1145
- * Either mainnet or testnet/fuji.
1146
- */
1147
- network?: Network;
1148
- /**
1149
- * Filter by feature.
1150
- */
1151
- feature?: ApiFeature;
1152
- }): CancelablePromise<ListChainsResponse>;
1369
+ methodHash: string;
1153
1370
  /**
1154
- * Get chain information
1155
- * Gets chain information for the EVM-compatible chain if supported by the api.
1156
- * @returns GetChainResponse Successful response
1157
- * @throws ApiError
1371
+ * 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'.
1158
1372
  */
1159
- getChainInfo({ chainId, }: {
1160
- /**
1161
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1162
- */
1163
- chainId: string;
1164
- }): CancelablePromise<GetChainResponse>;
1373
+ methodName?: string;
1374
+ };
1375
+
1376
+ type RichAddress = {
1165
1377
  /**
1166
- * Get chains for address
1167
- * Gets the list of chains an address has interacted with.
1168
- * @returns ListChainsResponse Successful response
1169
- * @throws ApiError
1378
+ * The contract name.
1170
1379
  */
1171
- getAddressChains({ address, }: {
1172
- /**
1173
- * A wallet address.
1174
- */
1175
- address: string;
1176
- }): CancelablePromise<ListChainsResponse>;
1177
- }
1178
-
1179
- type ImageAsset = {
1180
- assetId?: string;
1380
+ name?: string;
1181
1381
  /**
1182
- * OUTPUT ONLY
1382
+ * The contract symbol.
1183
1383
  */
1184
- imageUri?: string;
1185
- };
1186
-
1187
- type PricingProviders = {
1188
- coingeckoCoinId?: string;
1189
- };
1190
-
1384
+ symbol?: string;
1385
+ /**
1386
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1387
+ */
1388
+ decimals?: number;
1389
+ /**
1390
+ * The logo uri for the address.
1391
+ */
1392
+ logoUri?: string;
1393
+ /**
1394
+ * A wallet or contract address in mixed-case checksum encoding.
1395
+ */
1396
+ address: string;
1397
+ };
1398
+
1399
+ type NativeTransaction = {
1400
+ /**
1401
+ * The block number on the chain.
1402
+ */
1403
+ blockNumber: string;
1404
+ /**
1405
+ * The block finality timestamp.
1406
+ */
1407
+ blockTimestamp: number;
1408
+ /**
1409
+ * The block hash identifier.
1410
+ */
1411
+ blockHash: string;
1412
+ /**
1413
+ * The EVM chain ID on which the transaction occured.
1414
+ */
1415
+ chainId: string;
1416
+ /**
1417
+ * The index at which the transaction occured in the block (0-indexed).
1418
+ */
1419
+ blockIndex: number;
1420
+ /**
1421
+ * The transaction hash identifier.
1422
+ */
1423
+ txHash: string;
1424
+ /**
1425
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1426
+ */
1427
+ txStatus: string;
1428
+ /**
1429
+ * The transaction type.
1430
+ */
1431
+ txType: number;
1432
+ /**
1433
+ * The gas limit set for the transaction.
1434
+ */
1435
+ gasLimit: string;
1436
+ /**
1437
+ * The amount of gas used.
1438
+ */
1439
+ gasUsed: string;
1440
+ /**
1441
+ * The gas price denominated by the number of decimals of the native token.
1442
+ */
1443
+ gasPrice: string;
1444
+ /**
1445
+ * The nonce used by the sender of the transaction.
1446
+ */
1447
+ nonce: string;
1448
+ from: RichAddress;
1449
+ to: RichAddress;
1450
+ method?: Method;
1451
+ value: string;
1452
+ };
1453
+
1454
+ type ListNativeTransactionsResponse = {
1455
+ /**
1456
+ * 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.
1457
+ */
1458
+ nextPageToken?: string;
1459
+ transactions: Array<NativeTransaction>;
1460
+ };
1461
+
1462
+ declare enum TransactionStatus {
1463
+ FAILED = "failed",
1464
+ SUCCESS = "success"
1465
+ }
1466
+
1467
+ declare class EvmChainsService {
1468
+ readonly httpRequest: BaseHttpRequest;
1469
+ constructor(httpRequest: BaseHttpRequest);
1470
+ /**
1471
+ * List all chains associated with a given address
1472
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1473
+ * @returns ListAddressChainsResponse Successful response
1474
+ * @throws ApiError
1475
+ */
1476
+ listAddressChains({ address, }: {
1477
+ /**
1478
+ * A wallet address.
1479
+ */
1480
+ address: string;
1481
+ }): CancelablePromise<ListAddressChainsResponse>;
1482
+ /**
1483
+ * List chains
1484
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1485
+ * @returns ListChainsResponse Successful response
1486
+ * @throws ApiError
1487
+ */
1488
+ supportedChains({ network, feature, }: {
1489
+ /**
1490
+ * Either mainnet or testnet/fuji.
1491
+ */
1492
+ network?: Network;
1493
+ /**
1494
+ * Filter by feature.
1495
+ */
1496
+ feature?: ApiFeature;
1497
+ }): CancelablePromise<ListChainsResponse>;
1498
+ /**
1499
+ * Get chain information
1500
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1501
+ * @returns GetChainResponse Successful response
1502
+ * @throws ApiError
1503
+ */
1504
+ getChainInfo({ chainId, }: {
1505
+ /**
1506
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1507
+ */
1508
+ chainId: string;
1509
+ }): CancelablePromise<GetChainResponse>;
1510
+ /**
1511
+ * @deprecated
1512
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1513
+ *
1514
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1515
+ * @returns ListAddressChainsResponse Successful response
1516
+ * @throws ApiError
1517
+ */
1518
+ getAddressChains({ address, }: {
1519
+ /**
1520
+ * A wallet address.
1521
+ */
1522
+ address: string;
1523
+ }): CancelablePromise<ListAddressChainsResponse>;
1524
+ /**
1525
+ * @deprecated
1526
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1527
+ *
1528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1529
+ * @returns ListNativeTransactionsResponse Successful response
1530
+ * @throws ApiError
1531
+ */
1532
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1533
+ /**
1534
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1535
+ */
1536
+ pageToken?: string;
1537
+ /**
1538
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1539
+ */
1540
+ pageSize?: number;
1541
+ /**
1542
+ * Either mainnet or testnet/fuji.
1543
+ */
1544
+ network?: Network;
1545
+ /**
1546
+ * A status filter for listed transactions.
1547
+ */
1548
+ status?: TransactionStatus;
1549
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1550
+ /**
1551
+ * @deprecated
1552
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1553
+ *
1554
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1555
+ * @returns ListEvmBlocksResponse Successful response
1556
+ * @throws ApiError
1557
+ */
1558
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1559
+ /**
1560
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1561
+ */
1562
+ pageToken?: string;
1563
+ /**
1564
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1565
+ */
1566
+ pageSize?: number;
1567
+ /**
1568
+ * Either mainnet or testnet/fuji.
1569
+ */
1570
+ network?: Network;
1571
+ }): CancelablePromise<ListEvmBlocksResponse>;
1572
+ }
1573
+
1574
+ type ImageAsset = {
1575
+ assetId?: string;
1576
+ /**
1577
+ * OUTPUT ONLY
1578
+ */
1579
+ imageUri?: string;
1580
+ };
1581
+
1582
+ type PricingProviders = {
1583
+ coingeckoCoinId?: string;
1584
+ };
1585
+
1191
1586
  declare enum ResourceLinkType {
1192
1587
  BLOG = "Blog",
1193
1588
  COIN_GECKO = "CoinGecko",
@@ -1345,7 +1740,7 @@ type Erc1155Contract = {
1345
1740
  * A wallet or contract address in mixed-case checksum encoding.
1346
1741
  */
1347
1742
  address: string;
1348
- deploymentDetails: ContractDeploymentDetails;
1743
+ deploymentDetails?: ContractDeploymentDetails;
1349
1744
  ercType: Erc1155Contract.ercType;
1350
1745
  /**
1351
1746
  * The contract symbol.
@@ -1376,7 +1771,7 @@ type Erc20Contract = {
1376
1771
  * A wallet or contract address in mixed-case checksum encoding.
1377
1772
  */
1378
1773
  address: string;
1379
- deploymentDetails: ContractDeploymentDetails;
1774
+ deploymentDetails?: ContractDeploymentDetails;
1380
1775
  ercType: Erc20Contract.ercType;
1381
1776
  /**
1382
1777
  * The contract symbol.
@@ -1411,7 +1806,7 @@ type Erc721Contract = {
1411
1806
  * A wallet or contract address in mixed-case checksum encoding.
1412
1807
  */
1413
1808
  address: string;
1414
- deploymentDetails: ContractDeploymentDetails;
1809
+ deploymentDetails?: ContractDeploymentDetails;
1415
1810
  ercType: Erc721Contract.ercType;
1416
1811
  /**
1417
1812
  * The contract symbol.
@@ -1441,7 +1836,7 @@ type UnknownContract = {
1441
1836
  * A wallet or contract address in mixed-case checksum encoding.
1442
1837
  */
1443
1838
  address: string;
1444
- deploymentDetails: ContractDeploymentDetails;
1839
+ deploymentDetails?: ContractDeploymentDetails;
1445
1840
  ercType: UnknownContract.ercType;
1446
1841
  };
1447
1842
  declare namespace UnknownContract {
@@ -1508,29 +1903,6 @@ declare namespace Erc1155Token {
1508
1903
  }
1509
1904
  }
1510
1905
 
1511
- type RichAddress = {
1512
- /**
1513
- * The contract name.
1514
- */
1515
- name?: string;
1516
- /**
1517
- * The contract symbol.
1518
- */
1519
- symbol?: string;
1520
- /**
1521
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1522
- */
1523
- decimals?: number;
1524
- /**
1525
- * The logo uri for the address.
1526
- */
1527
- logoUri?: string;
1528
- /**
1529
- * A wallet or contract address in mixed-case checksum encoding.
1530
- */
1531
- address: string;
1532
- };
1533
-
1534
1906
  type Erc1155TransferDetails = {
1535
1907
  from: RichAddress;
1536
1908
  to: RichAddress;
@@ -1615,27 +1987,6 @@ type Erc721TransferDetails = {
1615
1987
  erc721Token: Erc721Token;
1616
1988
  };
1617
1989
 
1618
- /**
1619
- * 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.
1620
- */
1621
- declare enum TransactionMethodType {
1622
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1623
- CONTRACT_CALL = "CONTRACT_CALL",
1624
- CONTRACT_CREATION = "CONTRACT_CREATION"
1625
- }
1626
-
1627
- type Method = {
1628
- callType: TransactionMethodType;
1629
- /**
1630
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1631
- */
1632
- methodHash: string;
1633
- /**
1634
- * 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'.
1635
- */
1636
- methodName?: string;
1637
- };
1638
-
1639
1990
  type FullNativeTransactionDetails = {
1640
1991
  /**
1641
1992
  * The block number on the chain.
@@ -1649,6 +2000,10 @@ type FullNativeTransactionDetails = {
1649
2000
  * The block hash identifier.
1650
2001
  */
1651
2002
  blockHash: string;
2003
+ /**
2004
+ * The EVM chain ID on which the transaction occured.
2005
+ */
2006
+ chainId: string;
1652
2007
  /**
1653
2008
  * The index at which the transaction occured in the block (0-indexed).
1654
2009
  */
@@ -1699,6 +2054,7 @@ declare enum InternalTransactionOpCall {
1699
2054
  CALL = "CALL",
1700
2055
  CREATE = "CREATE",
1701
2056
  CREATE2 = "CREATE2",
2057
+ CREATE3 = "CREATE3",
1702
2058
  CALLCODE = "CALLCODE",
1703
2059
  DELEGATECALL = "DELEGATECALL",
1704
2060
  STATICCALL = "STATICCALL"
@@ -1740,11 +2096,11 @@ type TeleporterMessageInfo = {
1740
2096
  /**
1741
2097
  * chain id of the source chain. valid only for destination transactions
1742
2098
  */
1743
- sourceChainId?: Record<string, any>;
2099
+ sourceChainId?: string;
1744
2100
  /**
1745
2101
  * chain id of the destination chain. valid only for source transactions
1746
2102
  */
1747
- destinationChainId?: Record<string, any>;
2103
+ destinationChainId?: string;
1748
2104
  };
1749
2105
 
1750
2106
  type GetTransactionResponse = {
@@ -1761,7 +2117,7 @@ type GetTransactionResponse = {
1761
2117
  */
1762
2118
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1763
2119
  /**
1764
- * 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.
2120
+ * 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/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1765
2121
  */
1766
2122
  internalTransactions?: Array<InternalTransactionDetails>;
1767
2123
  networkTokenDetails: NetworkTokenDetails;
@@ -1912,89 +2268,30 @@ type ListInternalTransactionsResponse = {
1912
2268
  transactions: Array<InternalTransaction>;
1913
2269
  };
1914
2270
 
1915
- type NativeTransaction = {
2271
+ type TransactionDetails = {
1916
2272
  /**
1917
- * The block number on the chain.
2273
+ * The native (top-level) transaction details.
1918
2274
  */
1919
- blockNumber: string;
2275
+ nativeTransaction: NativeTransaction;
1920
2276
  /**
1921
- * The block finality timestamp.
2277
+ * The list of ERC-20 transfers.
1922
2278
  */
1923
- blockTimestamp: number;
2279
+ erc20Transfers?: Array<Erc20TransferDetails>;
1924
2280
  /**
1925
- * The block hash identifier.
2281
+ * The list of ERC-721 transfers.
1926
2282
  */
1927
- blockHash: string;
2283
+ erc721Transfers?: Array<Erc721TransferDetails>;
1928
2284
  /**
1929
- * The index at which the transaction occured in the block (0-indexed).
2285
+ * The list of ERC-1155 transfers.
1930
2286
  */
1931
- blockIndex: number;
2287
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1932
2288
  /**
1933
- * The transaction hash identifier.
2289
+ * 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/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1934
2290
  */
1935
- txHash: string;
1936
- /**
1937
- * The transaction status, which is either 0 (failed) or 1 (successful).
1938
- */
1939
- txStatus: string;
1940
- /**
1941
- * The transaction type.
1942
- */
1943
- txType: number;
1944
- /**
1945
- * The gas limit set for the transaction.
1946
- */
1947
- gasLimit: string;
1948
- /**
1949
- * The amount of gas used.
1950
- */
1951
- gasUsed: string;
1952
- /**
1953
- * The gas price denominated by the number of decimals of the native token.
1954
- */
1955
- gasPrice: string;
1956
- /**
1957
- * The nonce used by the sender of the transaction.
1958
- */
1959
- nonce: string;
1960
- from: RichAddress;
1961
- to: RichAddress;
1962
- method?: Method;
1963
- value: string;
1964
- };
1965
-
1966
- type ListNativeTransactionsResponse = {
1967
- /**
1968
- * 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.
1969
- */
1970
- nextPageToken?: string;
1971
- transactions: Array<NativeTransaction>;
1972
- };
1973
-
1974
- type TransactionDetails = {
1975
- /**
1976
- * The native (top-level) transaction details.
1977
- */
1978
- nativeTransaction: NativeTransaction;
1979
- /**
1980
- * The list of ERC-20 transfers.
1981
- */
1982
- erc20Transfers?: Array<Erc20TransferDetails>;
1983
- /**
1984
- * The list of ERC-721 transfers.
1985
- */
1986
- erc721Transfers?: Array<Erc721TransferDetails>;
1987
- /**
1988
- * The list of ERC-1155 transfers.
1989
- */
1990
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1991
- /**
1992
- * 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.
1993
- */
1994
- internalTransactions?: Array<InternalTransactionDetails>;
1995
- };
1996
-
1997
- type ListTransactionDetailsResponse = {
2291
+ internalTransactions?: Array<InternalTransactionDetails>;
2292
+ };
2293
+
2294
+ type ListTransactionDetailsResponse = {
1998
2295
  /**
1999
2296
  * 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.
2000
2297
  */
@@ -2015,14 +2312,33 @@ declare enum SortOrder {
2015
2312
  DESC = "desc"
2016
2313
  }
2017
2314
 
2018
- declare enum TransactionStatus {
2019
- FAILED = "failed",
2020
- SUCCESS = "success"
2021
- }
2022
-
2023
2315
  declare class EvmTransactionsService {
2024
2316
  readonly httpRequest: BaseHttpRequest;
2025
2317
  constructor(httpRequest: BaseHttpRequest);
2318
+ /**
2319
+ * List the latest transactions across all supported EVM chains
2320
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2321
+ * @returns ListNativeTransactionsResponse Successful response
2322
+ * @throws ApiError
2323
+ */
2324
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2325
+ /**
2326
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2327
+ */
2328
+ pageToken?: string;
2329
+ /**
2330
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2331
+ */
2332
+ pageSize?: number;
2333
+ /**
2334
+ * Either mainnet or testnet/fuji.
2335
+ */
2336
+ network?: Network;
2337
+ /**
2338
+ * A status filter for listed transactions.
2339
+ */
2340
+ status?: TransactionStatus;
2341
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2026
2342
  /**
2027
2343
  * Get deployment transaction
2028
2344
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2269,7 +2585,7 @@ declare class EvmTransactionsService {
2269
2585
  * List internal transactions
2270
2586
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
2271
2587
  *
2272
- * 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.
2588
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2273
2589
  * @returns ListInternalTransactionsResponse Successful response
2274
2590
  * @throws ApiError
2275
2591
  */
@@ -2321,7 +2637,7 @@ declare class EvmTransactionsService {
2321
2637
  * @returns ListNativeTransactionsResponse Successful response
2322
2638
  * @throws ApiError
2323
2639
  */
2324
- getTransactionsForBlock({ chainId, blockId, }: {
2640
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2325
2641
  /**
2326
2642
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2327
2643
  */
@@ -2330,6 +2646,14 @@ declare class EvmTransactionsService {
2330
2646
  * A block identifier which is either a block number or the block hash.
2331
2647
  */
2332
2648
  blockId: string;
2649
+ /**
2650
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2651
+ */
2652
+ pageToken?: string;
2653
+ /**
2654
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2655
+ */
2656
+ pageSize?: number;
2333
2657
  }): CancelablePromise<ListNativeTransactionsResponse>;
2334
2658
  /**
2335
2659
  * List latest transactions
@@ -2357,66 +2681,307 @@ declare class EvmTransactionsService {
2357
2681
  }): CancelablePromise<ListNativeTransactionsResponse>;
2358
2682
  }
2359
2683
 
2684
+ type HealthIndicatorResultDto = {
2685
+ /**
2686
+ * Status of the health indicator.
2687
+ */
2688
+ status?: HealthIndicatorResultDto.status;
2689
+ };
2690
+ declare namespace HealthIndicatorResultDto {
2691
+ /**
2692
+ * Status of the health indicator.
2693
+ */
2694
+ enum status {
2695
+ UP = "up",
2696
+ DOWN = "down"
2697
+ }
2698
+ }
2699
+
2700
+ type HealthCheckResultDto = {
2701
+ status?: HealthCheckResultDto.status;
2702
+ info?: any | null;
2703
+ error?: any | null;
2704
+ details?: Record<string, HealthIndicatorResultDto>;
2705
+ };
2706
+ declare namespace HealthCheckResultDto {
2707
+ enum status {
2708
+ ERROR = "error",
2709
+ OK = "ok",
2710
+ SHUTTING_DOWN = "shutting_down"
2711
+ }
2712
+ }
2713
+
2360
2714
  declare class HealthCheckService {
2361
2715
  readonly httpRequest: BaseHttpRequest;
2362
2716
  constructor(httpRequest: BaseHttpRequest);
2363
2717
  /**
2364
2718
  * Get the health of the service
2365
- * @returns any The Health Check is successful
2719
+ * Check the health of the service.
2720
+ * @returns HealthCheckResultDto The health of the service
2366
2721
  * @throws ApiError
2367
2722
  */
2368
- dataHealthCheck(): CancelablePromise<{
2369
- status?: string;
2370
- info?: Record<string, Record<string, string>> | null;
2371
- error?: Record<string, Record<string, string>> | null;
2372
- details?: Record<string, Record<string, string>>;
2373
- }>;
2723
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2374
2724
  }
2375
2725
 
2376
- type ListNftTokens = {
2726
+ type IcmDestinationTransaction = {
2727
+ txHash: string;
2728
+ timestamp: number;
2729
+ gasSpent: string;
2730
+ rewardRedeemer: string;
2731
+ delivererAddress: string;
2732
+ };
2733
+
2734
+ type IcmReceipt = {
2735
+ receivedMessageNonce: string;
2736
+ relayerRewardAddress: string;
2737
+ };
2738
+
2739
+ type IcmRewardDetails = {
2740
+ /**
2741
+ * A wallet or contract address in mixed-case checksum encoding.
2742
+ */
2743
+ address: string;
2744
+ /**
2745
+ * The contract name.
2746
+ */
2747
+ name: string;
2748
+ /**
2749
+ * The contract symbol.
2750
+ */
2751
+ symbol: string;
2752
+ /**
2753
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2754
+ */
2755
+ decimals: number;
2756
+ /**
2757
+ * The logo uri for the address.
2758
+ */
2759
+ logoUri?: string;
2760
+ ercType: IcmRewardDetails.ercType;
2761
+ /**
2762
+ * The token price, if available.
2763
+ */
2764
+ price?: Money;
2765
+ value: string;
2766
+ };
2767
+ declare namespace IcmRewardDetails {
2768
+ enum ercType {
2769
+ ERC_20 = "ERC-20"
2770
+ }
2771
+ }
2772
+
2773
+ type IcmSourceTransaction = {
2774
+ txHash: string;
2775
+ timestamp: number;
2776
+ gasSpent: string;
2777
+ };
2778
+
2779
+ type DeliveredIcmMessage = {
2780
+ messageId: string;
2781
+ icmContractAddress: string;
2782
+ sourceBlockchainId: string;
2783
+ destinationBlockchainId: string;
2784
+ sourceEvmChainId: string;
2785
+ destinationEvmChainId: string;
2786
+ messageNonce: string;
2787
+ from: string;
2788
+ to: string;
2789
+ data?: string;
2790
+ messageExecuted: boolean;
2791
+ receipts: Array<IcmReceipt>;
2792
+ receiptDelivered: boolean;
2793
+ rewardDetails: IcmRewardDetails;
2794
+ sourceTransaction: IcmSourceTransaction;
2795
+ destinationTransaction: IcmDestinationTransaction;
2796
+ status: DeliveredIcmMessage.status;
2797
+ };
2798
+ declare namespace DeliveredIcmMessage {
2799
+ enum status {
2800
+ DELIVERED = "delivered"
2801
+ }
2802
+ }
2803
+
2804
+ type DeliveredSourceNotIndexedIcmMessage = {
2805
+ messageId: string;
2806
+ icmContractAddress: string;
2807
+ sourceBlockchainId: string;
2808
+ destinationBlockchainId: string;
2809
+ sourceEvmChainId: string;
2810
+ destinationEvmChainId: string;
2811
+ messageNonce: string;
2812
+ from: string;
2813
+ to: string;
2814
+ data?: string;
2815
+ messageExecuted: boolean;
2816
+ receipts: Array<IcmReceipt>;
2817
+ receiptDelivered: boolean;
2818
+ rewardDetails: IcmRewardDetails;
2819
+ destinationTransaction: IcmDestinationTransaction;
2820
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2821
+ };
2822
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2823
+ enum status {
2824
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2825
+ }
2826
+ }
2827
+
2828
+ type PendingIcmMessage = {
2829
+ messageId: string;
2830
+ icmContractAddress: string;
2831
+ sourceBlockchainId: string;
2832
+ destinationBlockchainId: string;
2833
+ sourceEvmChainId: string;
2834
+ destinationEvmChainId: string;
2835
+ messageNonce: string;
2836
+ from: string;
2837
+ to: string;
2838
+ data?: string;
2839
+ messageExecuted: boolean;
2840
+ receipts: Array<IcmReceipt>;
2841
+ receiptDelivered: boolean;
2842
+ rewardDetails: IcmRewardDetails;
2843
+ sourceTransaction: IcmSourceTransaction;
2844
+ status: PendingIcmMessage.status;
2845
+ };
2846
+ declare namespace PendingIcmMessage {
2847
+ enum status {
2848
+ PENDING = "pending"
2849
+ }
2850
+ }
2851
+
2852
+ type ListIcmMessagesResponse = {
2377
2853
  /**
2378
2854
  * 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.
2379
2855
  */
2380
2856
  nextPageToken?: string;
2381
- tokens: Array<(Erc721Token | Erc1155Token)>;
2857
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2382
2858
  };
2383
2859
 
2384
- declare class NfTsService {
2860
+ declare class InterchainMessagingService {
2385
2861
  readonly httpRequest: BaseHttpRequest;
2386
2862
  constructor(httpRequest: BaseHttpRequest);
2387
2863
  /**
2388
- * Reindex NFT metadata
2389
- * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2864
+ * Get an ICM message
2865
+ * Gets an ICM message by teleporter message ID.
2390
2866
  * @returns any Successful response
2391
2867
  * @throws ApiError
2392
2868
  */
2393
- reindexNft({ chainId, address, tokenId, }: {
2869
+ getIcmMessage({ messageId, }: {
2394
2870
  /**
2395
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2871
+ * The teleporter message ID of the ICM message.
2396
2872
  */
2397
- chainId: string;
2873
+ messageId: string;
2874
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2875
+ /**
2876
+ * List ICM messages
2877
+ * Lists ICM messages. Ordered by timestamp in descending order.
2878
+ * @returns ListIcmMessagesResponse Successful response
2879
+ * @throws ApiError
2880
+ */
2881
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2398
2882
  /**
2399
- * Contract address on the relevant chain.
2883
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2400
2884
  */
2401
- address: string;
2885
+ pageToken?: string;
2402
2886
  /**
2403
- * TokenId on the contract
2887
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2404
2888
  */
2405
- tokenId: string;
2406
- }): CancelablePromise<any>;
2889
+ pageSize?: number;
2890
+ /**
2891
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2892
+ */
2893
+ sourceBlockchainId?: string;
2894
+ /**
2895
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2896
+ */
2897
+ destinationBlockchainId?: string;
2898
+ /**
2899
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2900
+ */
2901
+ blockchainId?: string;
2902
+ /**
2903
+ * The address of the recipient of the ICM message.
2904
+ */
2905
+ to?: string;
2906
+ /**
2907
+ * The address of the sender of the ICM message.
2908
+ */
2909
+ from?: string;
2910
+ /**
2911
+ * Either mainnet or testnet/fuji.
2912
+ */
2913
+ network?: Network;
2914
+ }): CancelablePromise<ListIcmMessagesResponse>;
2407
2915
  /**
2408
- * List tokens
2409
- * Lists tokens for an NFT contract.
2410
- * @returns ListNftTokens Successful response
2916
+ * List ICM messages by address
2917
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2918
+ * @returns ListIcmMessagesResponse Successful response
2411
2919
  * @throws ApiError
2412
2920
  */
2413
- listTokens({ chainId, address, pageToken, pageSize, }: {
2414
- /**
2415
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2416
- */
2417
- chainId: string;
2921
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2418
2922
  /**
2419
- * Contract address on the relevant chain.
2923
+ * An EVM address.
2924
+ */
2925
+ address: string;
2926
+ /**
2927
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2928
+ */
2929
+ pageToken?: string;
2930
+ /**
2931
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2932
+ */
2933
+ pageSize?: number;
2934
+ /**
2935
+ * Either mainnet or testnet/fuji.
2936
+ */
2937
+ network?: Network;
2938
+ }): CancelablePromise<ListIcmMessagesResponse>;
2939
+ }
2940
+
2941
+ type ListNftTokens = {
2942
+ /**
2943
+ * 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.
2944
+ */
2945
+ nextPageToken?: string;
2946
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2947
+ };
2948
+
2949
+ declare class NfTsService {
2950
+ readonly httpRequest: BaseHttpRequest;
2951
+ constructor(httpRequest: BaseHttpRequest);
2952
+ /**
2953
+ * Reindex NFT metadata
2954
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2955
+ * @returns any Successful response
2956
+ * @throws ApiError
2957
+ */
2958
+ reindexNft({ chainId, address, tokenId, }: {
2959
+ /**
2960
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2961
+ */
2962
+ chainId: string;
2963
+ /**
2964
+ * Contract address on the relevant chain.
2965
+ */
2966
+ address: string;
2967
+ /**
2968
+ * TokenId on the contract
2969
+ */
2970
+ tokenId: string;
2971
+ }): CancelablePromise<any>;
2972
+ /**
2973
+ * List tokens
2974
+ * Lists tokens for an NFT contract.
2975
+ * @returns ListNftTokens Successful response
2976
+ * @throws ApiError
2977
+ */
2978
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2979
+ /**
2980
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2981
+ */
2982
+ chainId: string;
2983
+ /**
2984
+ * Contract address on the relevant chain.
2420
2985
  */
2421
2986
  address: string;
2422
2987
  /**
@@ -2450,6 +3015,108 @@ declare class NfTsService {
2450
3015
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2451
3016
  }
2452
3017
 
3018
+ type AccessRequest = {
3019
+ /**
3020
+ * The email address to send the access token to
3021
+ */
3022
+ email: string;
3023
+ /**
3024
+ * The captcha to verify the user
3025
+ */
3026
+ captcha: string;
3027
+ };
3028
+
3029
+ type NotificationsResponse = {
3030
+ message: string;
3031
+ };
3032
+
3033
+ type SubscribeRequest = {
3034
+ /**
3035
+ * The access token to use for authentication
3036
+ */
3037
+ accessToken: string;
3038
+ /**
3039
+ * The node ID to subscribe to
3040
+ */
3041
+ nodeId: string;
3042
+ /**
3043
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3044
+ */
3045
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3046
+ };
3047
+
3048
+ type SubscriptionsRequest = {
3049
+ /**
3050
+ * The access token to use for authentication
3051
+ */
3052
+ accessToken: string;
3053
+ };
3054
+
3055
+ type SubscriptionsResponse = {
3056
+ /**
3057
+ * The email address of the user
3058
+ */
3059
+ email: string;
3060
+ /**
3061
+ * The subscriptions of the user
3062
+ */
3063
+ subscriptions: Record<string, {
3064
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3065
+ }>;
3066
+ };
3067
+
3068
+ type UnsubscribeRequest = {
3069
+ /**
3070
+ * The access token to use for authentication
3071
+ */
3072
+ accessToken: string;
3073
+ /**
3074
+ * The node ID to subscribe to
3075
+ */
3076
+ nodeId: string;
3077
+ };
3078
+
3079
+ declare class NotificationsService {
3080
+ readonly httpRequest: BaseHttpRequest;
3081
+ constructor(httpRequest: BaseHttpRequest);
3082
+ /**
3083
+ * Access Notifications
3084
+ * Access notifications.
3085
+ * @returns NotificationsResponse Successful response
3086
+ * @throws ApiError
3087
+ */
3088
+ access({ requestBody, }: {
3089
+ requestBody: AccessRequest;
3090
+ }): CancelablePromise<NotificationsResponse>;
3091
+ /**
3092
+ * Subscribe to Notifications
3093
+ * Subscribe to receive notifications.
3094
+ * @returns NotificationsResponse Successful response
3095
+ * @throws ApiError
3096
+ */
3097
+ subscribe({ requestBody, }: {
3098
+ requestBody: SubscribeRequest;
3099
+ }): CancelablePromise<NotificationsResponse>;
3100
+ /**
3101
+ * Unsubscribe from Notifications
3102
+ * Unsubscribe from receiving notifications.
3103
+ * @returns NotificationsResponse Successful response
3104
+ * @throws ApiError
3105
+ */
3106
+ unsubscribe({ requestBody, }: {
3107
+ requestBody: UnsubscribeRequest;
3108
+ }): CancelablePromise<NotificationsResponse>;
3109
+ /**
3110
+ * Get Subscriptions
3111
+ * Get subscriptions.
3112
+ * @returns SubscriptionsResponse Successful response
3113
+ * @throws ApiError
3114
+ */
3115
+ subscriptions({ requestBody, }: {
3116
+ requestBody: SubscriptionsRequest;
3117
+ }): CancelablePromise<SubscriptionsResponse>;
3118
+ }
3119
+
2453
3120
  type EvmNetworkOptions = {
2454
3121
  addresses: Array<string>;
2455
3122
  includeChains: Array<string>;
@@ -2483,7 +3150,7 @@ declare enum PrimaryNetworkOperationType {
2483
3150
  type PrimaryNetworkOptions = {
2484
3151
  addresses?: Array<string>;
2485
3152
  cChainEvmAddresses?: Array<string>;
2486
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
3153
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2487
3154
  };
2488
3155
 
2489
3156
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -2538,7 +3205,7 @@ type OperationStatusResponse = {
2538
3205
  operationType: OperationType;
2539
3206
  operationStatus: OperationStatus;
2540
3207
  message?: string;
2541
- metadata: TransactionExportMetadata;
3208
+ metadata?: TransactionExportMetadata;
2542
3209
  createdAtTimestamp: number;
2543
3210
  updatedAtTimestamp: number;
2544
3211
  };
@@ -2571,14 +3238,29 @@ declare class OperationsService {
2571
3238
  }): CancelablePromise<OperationStatusResponse>;
2572
3239
  }
2573
3240
 
3241
+ type Blockchain = {
3242
+ createBlockTimestamp: number;
3243
+ createBlockNumber: string;
3244
+ blockchainId: string;
3245
+ vmId: string;
3246
+ subnetId: string;
3247
+ blockchainName: string;
3248
+ /**
3249
+ * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
3250
+ */
3251
+ evmChainId: number;
3252
+ /**
3253
+ * The genesis data of the blockchain.
3254
+ */
3255
+ genesisData?: Record<string, any>;
3256
+ };
3257
+
2574
3258
  declare enum BlockchainIds {
2575
3259
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2576
3260
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2577
3261
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2578
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2579
3262
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2580
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2581
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
3263
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2582
3264
  }
2583
3265
 
2584
3266
  type ChainAddressChainIdMap = {
@@ -2602,16 +3284,31 @@ type DelegatorsDetails = {
2602
3284
  };
2603
3285
 
2604
3286
  type StakingDistribution = {
3287
+ /**
3288
+ * AvalancheGo version for the validator node.
3289
+ */
2605
3290
  version: string;
3291
+ /**
3292
+ * The total amount staked by validators using this version.
3293
+ */
2606
3294
  amountStaked: string;
3295
+ /**
3296
+ * The number of validators using this version.
3297
+ */
2607
3298
  validatorCount: number;
2608
3299
  };
2609
3300
 
2610
3301
  type ValidatorsDetails = {
2611
3302
  validatorCount: number;
2612
3303
  totalAmountStaked: string;
3304
+ /**
3305
+ * Total potential rewards from currently active validations and delegations.
3306
+ */
2613
3307
  estimatedAnnualStakingReward: string;
2614
3308
  stakingDistributionByVersion: Array<StakingDistribution>;
3309
+ /**
3310
+ * Ratio of total active stake amount to the current supply.
3311
+ */
2615
3312
  stakingRatio: string;
2616
3313
  };
2617
3314
 
@@ -2620,15 +3317,6 @@ type GetNetworkDetailsResponse = {
2620
3317
  delegatorDetails: DelegatorsDetails;
2621
3318
  };
2622
3319
 
2623
- type Blockchain = {
2624
- createBlockTimestamp: number;
2625
- createBlockNumber: string;
2626
- blockchainId: string;
2627
- vmId: string;
2628
- subnetId: string;
2629
- blockchainName: string;
2630
- };
2631
-
2632
3320
  type ListBlockchainsResponse = {
2633
3321
  /**
2634
3322
  * 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.
@@ -2663,7 +3351,13 @@ type CompletedDelegatorDetails = {
2663
3351
  delegationFee: string;
2664
3352
  startTimestamp: number;
2665
3353
  endTimestamp: number;
3354
+ /**
3355
+ * Total rewards distributed for the successful delegation.
3356
+ */
2666
3357
  grossReward: string;
3358
+ /**
3359
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3360
+ */
2667
3361
  netReward: string;
2668
3362
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2669
3363
  };
@@ -2681,7 +3375,13 @@ type PendingDelegatorDetails = {
2681
3375
  delegationFee: string;
2682
3376
  startTimestamp: number;
2683
3377
  endTimestamp: number;
3378
+ /**
3379
+ * Estimated total rewards that will be distributed for the successful delegation.
3380
+ */
2684
3381
  estimatedGrossReward: string;
3382
+ /**
3383
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3384
+ */
2685
3385
  estimatedNetReward: string;
2686
3386
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2687
3387
  };
@@ -2702,8 +3402,63 @@ type ListDelegatorDetailsResponse = {
2702
3402
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2703
3403
  };
2704
3404
 
2705
- type BlockchainInfo = {
3405
+ type BalanceOwner = {
3406
+ addresses: Array<string>;
3407
+ threshold: number;
3408
+ };
3409
+
3410
+ type L1ValidatorDetailsFull = {
3411
+ /**
3412
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3413
+ */
3414
+ validationId: string;
3415
+ /**
3416
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3417
+ */
3418
+ validationIdHex: string;
3419
+ nodeId: string;
3420
+ subnetId: string;
3421
+ /**
3422
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
3423
+ */
3424
+ weight: number;
3425
+ /**
3426
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3427
+ */
3428
+ remainingBalance: number;
3429
+ /**
3430
+ * The timestamp of the transaction which created this L1 validator
3431
+ */
3432
+ creationTimestamp: number;
3433
+ blsCredentials: Record<string, any>;
3434
+ /**
3435
+ * The L1 validator owner's balance, returned after it's disabled or removed
3436
+ */
3437
+ remainingBalanceOwner: BalanceOwner;
3438
+ /**
3439
+ * Owner ddresses details which can disable or remove the L1 validator
3440
+ */
3441
+ deactivationOwner: BalanceOwner;
3442
+ };
3443
+
3444
+ type ListL1ValidatorsResponse = {
3445
+ /**
3446
+ * 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.
3447
+ */
3448
+ nextPageToken?: string;
3449
+ /**
3450
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3451
+ */
3452
+ validators: Array<L1ValidatorDetailsFull>;
3453
+ /**
3454
+ * Block height at which the L1 validator's remaining balance is calculated
3455
+ */
3456
+ blockHeight: string;
3457
+ };
3458
+
3459
+ type L1ValidatorManagerDetails = {
2706
3460
  blockchainId: string;
3461
+ contractAddress: string;
2707
3462
  };
2708
3463
 
2709
3464
  type SubnetOwnershipInfo = {
@@ -2744,7 +3499,19 @@ type Subnet = {
2744
3499
  * Latest subnet owner details for this Subnet.
2745
3500
  */
2746
3501
  subnetOwnershipInfo: SubnetOwnershipInfo;
2747
- blockchains: Array<BlockchainInfo>;
3502
+ /**
3503
+ * Whether the subnet is an L1 or not.
3504
+ */
3505
+ isL1: boolean;
3506
+ /**
3507
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3508
+ */
3509
+ l1ConversionTransactionHash?: string;
3510
+ /**
3511
+ * L1 validator manager details.
3512
+ */
3513
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3514
+ blockchains: Array<Blockchain>;
2748
3515
  };
2749
3516
 
2750
3517
  type ListSubnetsResponse = {
@@ -2760,6 +3527,29 @@ type BlsCredentials = {
2760
3527
  proofOfPossession: string;
2761
3528
  };
2762
3529
 
3530
+ type Geolocation = {
3531
+ /**
3532
+ * The name of the validator node.
3533
+ */
3534
+ city: string;
3535
+ /**
3536
+ * The city of the validator node.
3537
+ */
3538
+ country: string;
3539
+ /**
3540
+ * The country code of the validator node.
3541
+ */
3542
+ countryCode: string;
3543
+ /**
3544
+ * The latitude of the validator node.
3545
+ */
3546
+ latitude: number;
3547
+ /**
3548
+ * The longitude of the validator node.
3549
+ */
3550
+ longitude: number;
3551
+ };
3552
+
2763
3553
  type Rewards = {
2764
3554
  validationRewardAmount: string;
2765
3555
  delegationRewardAmount: string;
@@ -2791,6 +3581,9 @@ type ActiveValidatorDetails = {
2791
3581
  nodeId: string;
2792
3582
  subnetId: string;
2793
3583
  amountStaked: string;
3584
+ /**
3585
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3586
+ */
2794
3587
  delegationFee?: string;
2795
3588
  startTimestamp: number;
2796
3589
  endTimestamp: number;
@@ -2798,15 +3591,37 @@ type ActiveValidatorDetails = {
2798
3591
  * Present for AddPermissionlessValidatorTx
2799
3592
  */
2800
3593
  blsCredentials?: BlsCredentials;
3594
+ /**
3595
+ * The percentage of this validator's stake amount to the total active stake.
3596
+ */
2801
3597
  stakePercentage: number;
3598
+ /**
3599
+ * The number of delegators linked to the validator.
3600
+ */
2802
3601
  delegatorCount: number;
3602
+ /**
3603
+ * The total amount in nAVAX delegated to the validator.
3604
+ */
2803
3605
  amountDelegated?: string;
3606
+ /**
3607
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3608
+ */
2804
3609
  uptimePerformance: number;
2805
3610
  avalancheGoVersion?: string;
3611
+ /**
3612
+ * The amount of stake in nAVAX that can be delegated to this validator.
3613
+ */
2806
3614
  delegationCapacity?: string;
3615
+ /**
3616
+ * Estimated rewards for the validator if the validation is successful.
3617
+ */
2807
3618
  potentialRewards: Rewards;
2808
3619
  validationStatus: ActiveValidatorDetails.validationStatus;
2809
3620
  validatorHealth: ValidatorHealthDetails;
3621
+ /**
3622
+ * The geographical location of the validator node, if available.
3623
+ */
3624
+ geolocation: Geolocation | null;
2810
3625
  };
2811
3626
  declare namespace ActiveValidatorDetails {
2812
3627
  enum validationStatus {
@@ -2819,6 +3634,9 @@ type CompletedValidatorDetails = {
2819
3634
  nodeId: string;
2820
3635
  subnetId: string;
2821
3636
  amountStaked: string;
3637
+ /**
3638
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3639
+ */
2822
3640
  delegationFee?: string;
2823
3641
  startTimestamp: number;
2824
3642
  endTimestamp: number;
@@ -2842,6 +3660,9 @@ type PendingValidatorDetails = {
2842
3660
  nodeId: string;
2843
3661
  subnetId: string;
2844
3662
  amountStaked: string;
3663
+ /**
3664
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3665
+ */
2845
3666
  delegationFee?: string;
2846
3667
  startTimestamp: number;
2847
3668
  endTimestamp: number;
@@ -2862,6 +3683,9 @@ type RemovedValidatorDetails = {
2862
3683
  nodeId: string;
2863
3684
  subnetId: string;
2864
3685
  amountStaked: string;
3686
+ /**
3687
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3688
+ */
2865
3689
  delegationFee?: string;
2866
3690
  startTimestamp: number;
2867
3691
  endTimestamp: number;
@@ -2869,7 +3693,13 @@ type RemovedValidatorDetails = {
2869
3693
  * Present for AddPermissionlessValidatorTx
2870
3694
  */
2871
3695
  blsCredentials?: BlsCredentials;
3696
+ /**
3697
+ * The transaction hash that removed the permissioned subnet validator.
3698
+ */
2872
3699
  removeTxHash: string;
3700
+ /**
3701
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3702
+ */
2873
3703
  removeTimestamp: number;
2874
3704
  validationStatus: RemovedValidatorDetails.validationStatus;
2875
3705
  };
@@ -2949,7 +3779,6 @@ type XChainAssetDetails = {
2949
3779
  declare enum XChainId {
2950
3780
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2951
3781
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2952
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2953
3782
  X_CHAIN = "x-chain"
2954
3783
  }
2955
3784
 
@@ -3020,7 +3849,7 @@ declare class PrimaryNetworkService {
3020
3849
  */
3021
3850
  pageToken?: string;
3022
3851
  /**
3023
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3852
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3024
3853
  */
3025
3854
  pageSize?: number;
3026
3855
  /**
@@ -3028,6 +3857,22 @@ declare class PrimaryNetworkService {
3028
3857
  */
3029
3858
  sortOrder?: SortOrder;
3030
3859
  }): CancelablePromise<ListBlockchainsResponse>;
3860
+ /**
3861
+ * Get blockchain details by ID
3862
+ * Get details of the blockchain registered on the network.
3863
+ * @returns Blockchain Successful response
3864
+ * @throws ApiError
3865
+ */
3866
+ getBlockchainById({ blockchainId, network, }: {
3867
+ /**
3868
+ * The blockchain ID of the blockchain to retrieve.
3869
+ */
3870
+ blockchainId: string;
3871
+ /**
3872
+ * Either mainnet or testnet/fuji.
3873
+ */
3874
+ network: Network;
3875
+ }): CancelablePromise<Blockchain>;
3031
3876
  /**
3032
3877
  * List subnets
3033
3878
  * Lists all subnets registered on the network.
@@ -3044,7 +3889,7 @@ declare class PrimaryNetworkService {
3044
3889
  */
3045
3890
  pageToken?: string;
3046
3891
  /**
3047
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3892
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3048
3893
  */
3049
3894
  pageSize?: number;
3050
3895
  /**
@@ -3070,7 +3915,7 @@ declare class PrimaryNetworkService {
3070
3915
  }): CancelablePromise<Subnet>;
3071
3916
  /**
3072
3917
  * List validators
3073
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
3918
+ * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
3074
3919
  * @returns ListValidatorDetailsResponse Successful response
3075
3920
  * @throws ApiError
3076
3921
  */
@@ -3088,7 +3933,7 @@ declare class PrimaryNetworkService {
3088
3933
  */
3089
3934
  pageSize?: number;
3090
3935
  /**
3091
- * A comma separated list of node ids to filter by.
3936
+ * A comma separated list of node ids to filter by. Supports substring matching.
3092
3937
  */
3093
3938
  nodeIds?: string;
3094
3939
  /**
@@ -3210,21 +4055,52 @@ declare class PrimaryNetworkService {
3210
4055
  */
3211
4056
  nodeIds?: string;
3212
4057
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3213
- }
3214
-
3215
- declare enum BlockchainId {
3216
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3217
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3218
- _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3219
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3220
- _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3221
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3222
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3223
- P_CHAIN = "p-chain",
3224
- X_CHAIN = "x-chain",
3225
- C_CHAIN = "c-chain"
3226
- }
3227
-
4058
+ /**
4059
+ * List L1 validators
4060
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4061
+ * @returns ListL1ValidatorsResponse Successful response
4062
+ * @throws ApiError
4063
+ */
4064
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4065
+ /**
4066
+ * Either mainnet or testnet/fuji.
4067
+ */
4068
+ network: Network;
4069
+ /**
4070
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4071
+ */
4072
+ pageToken?: string;
4073
+ /**
4074
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4075
+ */
4076
+ pageSize?: number;
4077
+ /**
4078
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4079
+ */
4080
+ l1ValidationId?: string;
4081
+ includeInactiveL1Validators?: boolean;
4082
+ /**
4083
+ * A valid node ID in format 'NodeID-HASH'.
4084
+ */
4085
+ nodeId?: string;
4086
+ /**
4087
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4088
+ */
4089
+ subnetId?: any;
4090
+ }): CancelablePromise<ListL1ValidatorsResponse>;
4091
+ }
4092
+
4093
+ declare enum BlockchainId {
4094
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
4095
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4096
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4097
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
4098
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4099
+ P_CHAIN = "p-chain",
4100
+ X_CHAIN = "x-chain",
4101
+ C_CHAIN = "c-chain"
4102
+ }
4103
+
3228
4104
  type CChainSharedAssetBalance = {
3229
4105
  /**
3230
4106
  * Unique ID for an asset.
@@ -3256,12 +4132,6 @@ type CChainAtomicBalances = {
3256
4132
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3257
4133
  };
3258
4134
 
3259
- declare enum PrimaryNetwork {
3260
- MAINNET = "mainnet",
3261
- FUJI = "fuji",
3262
- DEVNET = "devnet"
3263
- }
3264
-
3265
4135
  declare enum PrimaryNetworkChainName {
3266
4136
  P_CHAIN = "p-chain",
3267
4137
  X_CHAIN = "x-chain",
@@ -3270,7 +4140,7 @@ declare enum PrimaryNetworkChainName {
3270
4140
 
3271
4141
  type PrimaryNetworkChainInfo = {
3272
4142
  chainName: PrimaryNetworkChainName;
3273
- network: PrimaryNetwork;
4143
+ network: Network;
3274
4144
  };
3275
4145
 
3276
4146
  type ListCChainAtomicBalancesResponse = {
@@ -3462,6 +4332,8 @@ type GetPrimaryNetworkBlockResponse = {
3462
4332
  txCount: number;
3463
4333
  transactions: Array<string>;
3464
4334
  blockSizeBytes: number;
4335
+ l1ValidatorsAccruedFees?: number;
4336
+ activeL1Validators?: number;
3465
4337
  currentSupply?: string;
3466
4338
  proposerDetails?: ProposerDetails;
3467
4339
  };
@@ -3475,6 +4347,8 @@ type PrimaryNetworkBlock = {
3475
4347
  txCount: number;
3476
4348
  transactions: Array<string>;
3477
4349
  blockSizeBytes: number;
4350
+ l1ValidatorsAccruedFees?: number;
4351
+ activeL1Validators?: number;
3478
4352
  currentSupply?: string;
3479
4353
  proposerDetails?: ProposerDetails;
3480
4354
  };
@@ -3517,7 +4391,7 @@ declare class PrimaryNetworkBlocksService {
3517
4391
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3518
4392
  * @throws ApiError
3519
4393
  */
3520
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4394
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3521
4395
  /**
3522
4396
  * A primary network blockchain id or alias.
3523
4397
  */
@@ -3530,6 +4404,14 @@ declare class PrimaryNetworkBlocksService {
3530
4404
  * A primary network (P or X chain) nodeId.
3531
4405
  */
3532
4406
  nodeId: string;
4407
+ /**
4408
+ * Query param for retrieving items after a specific timestamp.
4409
+ */
4410
+ startTimestamp?: number;
4411
+ /**
4412
+ * Query param for retrieving items before a specific timestamp.
4413
+ */
4414
+ endTimestamp?: number;
3533
4415
  /**
3534
4416
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3535
4417
  */
@@ -3545,7 +4427,7 @@ declare class PrimaryNetworkBlocksService {
3545
4427
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3546
4428
  * @throws ApiError
3547
4429
  */
3548
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4430
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3549
4431
  /**
3550
4432
  * A primary network blockchain id or alias.
3551
4433
  */
@@ -3554,6 +4436,14 @@ declare class PrimaryNetworkBlocksService {
3554
4436
  * Either mainnet or testnet/fuji.
3555
4437
  */
3556
4438
  network: Network;
4439
+ /**
4440
+ * Query param for retrieving items after a specific timestamp.
4441
+ */
4442
+ startTimestamp?: number;
4443
+ /**
4444
+ * Query param for retrieving items before a specific timestamp.
4445
+ */
4446
+ endTimestamp?: number;
3557
4447
  /**
3558
4448
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3559
4449
  */
@@ -3795,6 +4685,10 @@ type Utxo = {
3795
4685
  * UTXO ID for this output.
3796
4686
  */
3797
4687
  utxoId: string;
4688
+ /**
4689
+ * The bytes of the UTXO
4690
+ */
4691
+ utxoBytes?: string;
3798
4692
  /**
3799
4693
  * Unix timestamp in seconds at which this output was consumed.
3800
4694
  */
@@ -3963,6 +4857,41 @@ type ListCChainAtomicTransactionsResponse = {
3963
4857
  chainInfo: PrimaryNetworkChainInfo;
3964
4858
  };
3965
4859
 
4860
+ type BlockchainInfo = {
4861
+ chainName: string;
4862
+ vmId: string;
4863
+ /**
4864
+ * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
4865
+ */
4866
+ genesisData?: Record<string, any>;
4867
+ };
4868
+
4869
+ type L1ValidatorDetailsTransaction = {
4870
+ /**
4871
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4872
+ */
4873
+ validationId: string;
4874
+ /**
4875
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4876
+ */
4877
+ validationIdHex: string;
4878
+ nodeId: string;
4879
+ subnetId: string;
4880
+ /**
4881
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
4882
+ */
4883
+ weight: number;
4884
+ /**
4885
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4886
+ */
4887
+ remainingBalance: number;
4888
+ /**
4889
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4890
+ */
4891
+ balanceChange?: number;
4892
+ blsCredentials?: Record<string, any>;
4893
+ };
4894
+
3966
4895
  declare enum PChainTransactionType {
3967
4896
  ADD_VALIDATOR_TX = "AddValidatorTx",
3968
4897
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3979,9 +4908,17 @@ declare enum PChainTransactionType {
3979
4908
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3980
4909
  BASE_TX = "BaseTx",
3981
4910
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4911
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4912
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4913
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4914
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4915
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3982
4916
  UNKNOWN = "UNKNOWN"
3983
4917
  }
3984
4918
 
4919
+ /**
4920
+ * Indicates whether the UTXO is staked or transferable
4921
+ */
3985
4922
  declare enum UtxoType {
3986
4923
  STAKE = "STAKE",
3987
4924
  TRANSFER = "TRANSFER"
@@ -4009,6 +4946,10 @@ type PChainUtxo = {
4009
4946
  * UTXO ID for this output.
4010
4947
  */
4011
4948
  utxoId: string;
4949
+ /**
4950
+ * The bytes of the UTXO
4951
+ */
4952
+ utxoBytes?: string;
4012
4953
  /**
4013
4954
  * @deprecated
4014
4955
  */
@@ -4019,16 +4960,43 @@ type PChainUtxo = {
4019
4960
  assetId: string;
4020
4961
  blockNumber: string;
4021
4962
  blockTimestamp: number;
4963
+ /**
4964
+ * Block height in which the transaction consuming this UTXO was included
4965
+ */
4022
4966
  consumingBlockNumber?: string;
4967
+ /**
4968
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4969
+ */
4023
4970
  consumingBlockTimestamp?: number;
4971
+ /**
4972
+ * Timestamp in seconds after which this UTXO can be consumed
4973
+ */
4024
4974
  platformLocktime?: number;
4975
+ /**
4976
+ * The index of the UTXO in the transaction
4977
+ */
4025
4978
  outputIndex: number;
4026
4979
  rewardType?: RewardType;
4980
+ /**
4981
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4982
+ */
4027
4983
  stakeableLocktime?: number;
4028
4984
  staked?: boolean;
4985
+ /**
4986
+ * The minimum number of signatures required to spend this UTXO
4987
+ */
4029
4988
  threshold?: number;
4989
+ /**
4990
+ * The hash of the transaction that created this UTXO
4991
+ */
4030
4992
  txHash: string;
4993
+ /**
4994
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4995
+ */
4031
4996
  utxoEndTimestamp?: number;
4997
+ /**
4998
+ * Timestamp in seconds at which the staked UTXO was locked.
4999
+ */
4032
5000
  utxoStartTimestamp?: number;
4033
5001
  utxoType: UtxoType;
4034
5002
  };
@@ -4043,9 +5011,18 @@ type PChainTransaction = {
4043
5011
  * The block finality timestamp.
4044
5012
  */
4045
5013
  blockTimestamp: number;
5014
+ /**
5015
+ * The height of the block in which the transaction was included
5016
+ */
4046
5017
  blockNumber: string;
4047
5018
  blockHash: string;
5019
+ /**
5020
+ * The consumed UTXOs of the transaction
5021
+ */
4048
5022
  consumedUtxos: Array<PChainUtxo>;
5023
+ /**
5024
+ * The newly created UTXOs of the transaction
5025
+ */
4049
5026
  emittedUtxos: Array<PChainUtxo>;
4050
5027
  /**
4051
5028
  * Source chain for an atomic transaction.
@@ -4056,17 +5033,21 @@ type PChainTransaction = {
4056
5033
  */
4057
5034
  destinationChain?: string;
4058
5035
  /**
4059
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5036
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
4060
5037
  */
4061
5038
  value: Array<AssetAmount>;
4062
5039
  /**
4063
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5040
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
4064
5041
  */
4065
5042
  amountBurned: Array<AssetAmount>;
4066
5043
  /**
4067
5044
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4068
5045
  */
4069
5046
  amountStaked: Array<AssetAmount>;
5047
+ /**
5048
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
5049
+ */
5050
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4070
5051
  /**
4071
5052
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4072
5053
  */
@@ -4076,11 +5057,11 @@ type PChainTransaction = {
4076
5057
  */
4077
5058
  endTimestamp?: number;
4078
5059
  /**
4079
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5060
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4080
5061
  */
4081
5062
  delegationFeePercent?: string;
4082
5063
  /**
4083
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5064
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4084
5065
  */
4085
5066
  nodeId?: string;
4086
5067
  /**
@@ -4088,14 +5069,25 @@ type PChainTransaction = {
4088
5069
  */
4089
5070
  subnetId?: string;
4090
5071
  /**
4091
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5072
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5073
+ */
5074
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5075
+ /**
5076
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
5077
+ */
5078
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5079
+ /**
5080
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4092
5081
  */
4093
5082
  estimatedReward?: string;
5083
+ /**
5084
+ * Reward transaction hash for the completed validations or delegations
5085
+ */
4094
5086
  rewardTxHash?: string;
4095
5087
  rewardAddresses?: Array<string>;
4096
5088
  memo?: string;
4097
5089
  /**
4098
- * Present for RewardValidatorTx
5090
+ * Staking transaction corresponding to the RewardValidatorTx
4099
5091
  */
4100
5092
  stakingTxHash?: string;
4101
5093
  /**
@@ -4103,9 +5095,13 @@ type PChainTransaction = {
4103
5095
  */
4104
5096
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4105
5097
  /**
4106
- * Present for AddPermissionlessValidatorTx
5098
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4107
5099
  */
4108
5100
  blsCredentials?: BlsCredentials;
5101
+ /**
5102
+ * Details of the blockchain that was created in the CreateChainTx
5103
+ */
5104
+ blockchainInfo?: BlockchainInfo;
4109
5105
  };
4110
5106
 
4111
5107
  type ListPChainTransactionsResponse = {
@@ -4288,6 +5284,11 @@ declare enum PrimaryNetworkTxType {
4288
5284
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4289
5285
  BASE_TX = "BaseTx",
4290
5286
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5287
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5288
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5289
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5290
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5291
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4291
5292
  UNKNOWN = "UNKNOWN",
4292
5293
  CREATE_ASSET_TX = "CreateAssetTx",
4293
5294
  OPERATION_TX = "OperationTx"
@@ -4322,11 +5323,13 @@ declare class PrimaryNetworkTransactionsService {
4322
5323
  *
4323
5324
  * 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.
4324
5325
  *
5326
+ * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
5327
+ *
4325
5328
  * 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.
4326
5329
  * @returns any Successful response
4327
5330
  * @throws ApiError
4328
5331
  */
4329
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5332
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4330
5333
  /**
4331
5334
  * A primary network blockchain id or alias.
4332
5335
  */
@@ -4339,6 +5342,7 @@ declare class PrimaryNetworkTransactionsService {
4339
5342
  * 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". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
4340
5343
  */
4341
5344
  addresses?: string;
5345
+ l1ValidationId?: string;
4342
5346
  /**
4343
5347
  * Query param for filtering items based on transaction types.
4344
5348
  */
@@ -4468,6 +5472,18 @@ type ListUtxosResponse = {
4468
5472
  chainInfo: PrimaryNetworkChainInfo;
4469
5473
  };
4470
5474
 
5475
+ type PrimaryNetworkAddressesBodyDto = {
5476
+ /**
5477
+ * Comma-separated list of primary network addresses
5478
+ */
5479
+ addresses: string;
5480
+ };
5481
+
5482
+ declare enum UtxosSortByOption {
5483
+ TIMESTAMP = "timestamp",
5484
+ AMOUNT = "amount"
5485
+ }
5486
+
4471
5487
  declare class PrimaryNetworkUtxOsService {
4472
5488
  readonly httpRequest: BaseHttpRequest;
4473
5489
  constructor(httpRequest: BaseHttpRequest);
@@ -4477,7 +5493,7 @@ declare class PrimaryNetworkUtxOsService {
4477
5493
  * @returns any Successful response
4478
5494
  * @throws ApiError
4479
5495
  */
4480
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5496
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
4481
5497
  /**
4482
5498
  * A primary network blockchain id or alias.
4483
5499
  */
@@ -4506,6 +5522,51 @@ declare class PrimaryNetworkUtxOsService {
4506
5522
  * Boolean filter to include spent UTXOs.
4507
5523
  */
4508
5524
  includeSpent?: boolean;
5525
+ /**
5526
+ * Which property to sort by, in conjunction with sortOrder.
5527
+ */
5528
+ sortBy?: UtxosSortByOption;
5529
+ /**
5530
+ * 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.
5531
+ */
5532
+ sortOrder?: SortOrder;
5533
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5534
+ /**
5535
+ * List UTXOs v2 - Supports querying for more addresses
5536
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5537
+ * @returns any Successful response
5538
+ * @throws ApiError
5539
+ */
5540
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
5541
+ /**
5542
+ * A primary network blockchain id or alias.
5543
+ */
5544
+ blockchainId: BlockchainId;
5545
+ /**
5546
+ * Either mainnet or testnet/fuji.
5547
+ */
5548
+ network: Network;
5549
+ requestBody: PrimaryNetworkAddressesBodyDto;
5550
+ /**
5551
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5552
+ */
5553
+ pageToken?: string;
5554
+ /**
5555
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5556
+ */
5557
+ pageSize?: number;
5558
+ /**
5559
+ * Asset ID for any asset (only applicable X-Chain)
5560
+ */
5561
+ assetId?: string;
5562
+ /**
5563
+ * Boolean filter to include spent UTXOs.
5564
+ */
5565
+ includeSpent?: boolean;
5566
+ /**
5567
+ * Which property to sort by, in conjunction with sortOrder.
5568
+ */
5569
+ sortBy?: UtxosSortByOption;
4509
5570
  /**
4510
5571
  * 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.
4511
5572
  */
@@ -4614,61 +5675,12 @@ declare class PrimaryNetworkVerticesService {
4614
5675
  }): CancelablePromise<ListXChainVerticesResponse>;
4615
5676
  }
4616
5677
 
4617
- type RpcErrorDto = {
4618
- code: number;
4619
- message: string;
4620
- data?: Record<string, any>;
4621
- };
4622
-
4623
- type RpcErrorResponseDto = {
4624
- jsonrpc: string;
4625
- id?: (string | number);
4626
- error: RpcErrorDto;
4627
- };
4628
-
4629
- type RpcRequestBodyDto = {
4630
- method: string;
4631
- params?: Record<string, any>;
4632
- id?: (string | number);
4633
- jsonrpc?: string;
4634
- };
4635
-
4636
- type RpcSuccessResponseDto = {
4637
- jsonrpc: string;
4638
- id?: (string | number);
4639
- result: Record<string, any>;
4640
- };
4641
-
4642
- declare class RpcService {
4643
- readonly httpRequest: BaseHttpRequest;
4644
- constructor(httpRequest: BaseHttpRequest);
4645
- /**
4646
- * Calls JSON-RPC method
4647
- * Calls JSON-RPC method.
4648
- * @returns any Successful response
4649
- * @throws ApiError
4650
- */
4651
- rpc({ chainId, requestBody, }: {
4652
- /**
4653
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4654
- */
4655
- chainId: string;
4656
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4657
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4658
- }
4659
-
4660
5678
  type SignatureAggregationResponse = {
4661
5679
  signedMessage: string;
4662
5680
  };
4663
5681
 
4664
5682
  type SignatureAggregatorRequest = {
4665
- /**
4666
- * Must be defined if justification is not defined
4667
- */
4668
- message?: string;
4669
- /**
4670
- * Must be defined if message is not defined
4671
- */
5683
+ message: string;
4672
5684
  justification?: string;
4673
5685
  signingSubnetId?: string;
4674
5686
  quorumPercentage?: number;
@@ -4683,9 +5695,29 @@ declare class SignatureAggregatorService {
4683
5695
  * @returns SignatureAggregationResponse Successful response
4684
5696
  * @throws ApiError
4685
5697
  */
4686
- aggregateSignatures({ requestBody, }: {
5698
+ aggregateSignatures({ network, requestBody, }: {
5699
+ /**
5700
+ * Either mainnet or testnet/fuji.
5701
+ */
5702
+ network: Network;
4687
5703
  requestBody: SignatureAggregatorRequest;
4688
5704
  }): CancelablePromise<SignatureAggregationResponse>;
5705
+ /**
5706
+ * Get Aggregated Signatures
5707
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5708
+ * @returns SignatureAggregationResponse Successful response
5709
+ * @throws ApiError
5710
+ */
5711
+ getAggregatedSignatures({ network, txHash, }: {
5712
+ /**
5713
+ * Either mainnet or testnet/fuji.
5714
+ */
5715
+ network: Network;
5716
+ /**
5717
+ * A primary network (P or X chain) transaction hash.
5718
+ */
5719
+ txHash: string;
5720
+ }): CancelablePromise<SignatureAggregationResponse>;
4689
5721
  }
4690
5722
 
4691
5723
  type TeleporterDestinationTransaction = {
@@ -4819,15 +5851,17 @@ type ListTeleporterMessagesResponse = {
4819
5851
  * 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.
4820
5852
  */
4821
5853
  nextPageToken?: string;
4822
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
5854
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4823
5855
  };
4824
5856
 
4825
5857
  declare class TeleporterService {
4826
5858
  readonly httpRequest: BaseHttpRequest;
4827
5859
  constructor(httpRequest: BaseHttpRequest);
4828
5860
  /**
4829
- * Get a teleporter message
4830
- * Gets a teleporter message by message ID.
5861
+ * @deprecated
5862
+ * **[Deprecated]** Gets a teleporter message by message ID.
5863
+ *
5864
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4831
5865
  * @returns any Successful response
4832
5866
  * @throws ApiError
4833
5867
  */
@@ -4838,8 +5872,10 @@ declare class TeleporterService {
4838
5872
  messageId: string;
4839
5873
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4840
5874
  /**
4841
- * List teleporter messages
4842
- * Lists teleporter messages. Ordered by timestamp in descending order.
5875
+ * @deprecated
5876
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5877
+ *
5878
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4843
5879
  * @returns ListTeleporterMessagesResponse Successful response
4844
5880
  * @throws ApiError
4845
5881
  */
@@ -4878,8 +5914,10 @@ declare class TeleporterService {
4878
5914
  network?: Network;
4879
5915
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4880
5916
  /**
4881
- * List teleporter messages by address
4882
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5917
+ * @deprecated
5918
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5919
+ *
5920
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4883
5921
  * @returns ListTeleporterMessagesResponse Successful response
4884
5922
  * @throws ApiError
4885
5923
  */
@@ -4911,29 +5949,25 @@ type AddressesChangeRequest = {
4911
5949
  };
4912
5950
 
4913
5951
  type AddressActivityMetadata = {
4914
- /**
4915
- * Ethereum address(es) for the address_activity event type
4916
- */
4917
- addresses: Array<string>;
4918
5952
  /**
4919
5953
  * Array of hexadecimal strings of the event signatures.
4920
5954
  */
4921
5955
  eventSignatures?: Array<string>;
5956
+ /**
5957
+ * Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
5958
+ */
5959
+ addresses: Array<string>;
4922
5960
  };
4923
5961
 
4924
- declare enum EventType {
4925
- ADDRESS_ACTIVITY = "address_activity"
4926
- }
4927
-
4928
- type CreateWebhookRequest = {
5962
+ type EVMAddressActivityRequest = {
5963
+ eventType: EVMAddressActivityRequest.eventType;
4929
5964
  url: string;
4930
- chainId: string;
4931
- eventType: EventType;
4932
- metadata: AddressActivityMetadata;
4933
5965
  name?: string;
4934
5966
  description?: string;
5967
+ chainId: string;
5968
+ metadata: AddressActivityMetadata;
4935
5969
  /**
4936
- * Whether to include traces in the webhook payload.
5970
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4937
5971
  */
4938
5972
  includeInternalTxs?: boolean;
4939
5973
  /**
@@ -4941,24 +5975,30 @@ type CreateWebhookRequest = {
4941
5975
  */
4942
5976
  includeLogs?: boolean;
4943
5977
  };
5978
+ declare namespace EVMAddressActivityRequest {
5979
+ enum eventType {
5980
+ ADDRESS_ACTIVITY = "address_activity"
5981
+ }
5982
+ }
4944
5983
 
4945
- type ListWebhookAddressesResponse = {
4946
- /**
4947
- * 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.
4948
- */
4949
- nextPageToken?: string;
4950
- addresses: Array<string>;
4951
- totalAddresses: number;
4952
- };
5984
+ declare enum AddressActivityEventType {
5985
+ ADDRESS_ACTIVITY = "address_activity"
5986
+ }
4953
5987
 
4954
5988
  declare enum WebhookStatusType {
4955
5989
  ACTIVE = "active",
4956
5990
  INACTIVE = "inactive"
4957
5991
  }
4958
5992
 
4959
- type WebhookResponse = {
5993
+ type EVMAddressActivityResponse = {
4960
5994
  id: string;
4961
- eventType: EventType;
5995
+ url: string;
5996
+ chainId: string;
5997
+ status: WebhookStatusType;
5998
+ createdAt: number;
5999
+ name: string;
6000
+ description: string;
6001
+ eventType: AddressActivityEventType;
4962
6002
  metadata: AddressActivityMetadata;
4963
6003
  /**
4964
6004
  * Whether to include traces in the webhook payload.
@@ -4968,21 +6008,186 @@ type WebhookResponse = {
4968
6008
  * Whether to include logs in the webhook payload.
4969
6009
  */
4970
6010
  includeLogs?: boolean;
4971
- url: string;
4972
- chainId: string;
4973
- status: WebhookStatusType;
4974
- createdAt: number;
4975
- name: string;
4976
- description: string;
4977
6011
  };
4978
6012
 
4979
- type ListWebhooksResponse = {
6013
+ type ListWebhookAddressesResponse = {
4980
6014
  /**
4981
6015
  * 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.
4982
6016
  */
4983
6017
  nextPageToken?: string;
4984
- webhooks: Array<WebhookResponse>;
4985
- };
6018
+ addresses: Array<string>;
6019
+ totalAddresses: number;
6020
+ };
6021
+
6022
+ declare enum PrimaryNetworkAddressActivityEventType {
6023
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6024
+ }
6025
+
6026
+ /**
6027
+ * The type of key to monitor for the address activity event type.
6028
+ */
6029
+ declare enum PlatformAddressActivityKeyType {
6030
+ ADDRESSES = "addresses"
6031
+ }
6032
+
6033
+ /**
6034
+ * Array of address activity sub-event types
6035
+ */
6036
+ declare enum PrimaryNetworkAddressActivitySubEventType {
6037
+ BALANCE_CHANGE = "balance_change",
6038
+ BALANCE_THRESHOLD = "balance_threshold",
6039
+ REWARD_DISTRIBUTION = "reward_distribution"
6040
+ }
6041
+
6042
+ type PrimaryNetworkAddressActivitySubEvents = {
6043
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
6044
+ };
6045
+
6046
+ /**
6047
+ * Type of balance to monitor
6048
+ */
6049
+ declare enum CommonBalanceType {
6050
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
6051
+ UNLOCKED_STAKED = "unlockedStaked",
6052
+ LOCKED_PLATFORM = "lockedPlatform",
6053
+ LOCKED_STAKEABLE = "lockedStakeable",
6054
+ LOCKED_STAKED = "lockedStaked",
6055
+ PENDING_STAKED = "pendingStaked",
6056
+ UNLOCKED = "unlocked",
6057
+ LOCKED = "locked",
6058
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
6059
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
6060
+ }
6061
+
6062
+ type PrimaryNetworkBalanceThresholdFilter = {
6063
+ balanceType: CommonBalanceType;
6064
+ /**
6065
+ * Threshold for balance corresponding to balanceType in nAVAX
6066
+ */
6067
+ balanceThreshold: string;
6068
+ };
6069
+
6070
+ type PrimaryNetworkAddressActivityMetadata = {
6071
+ /**
6072
+ * Array of hexadecimal strings of the event signatures.
6073
+ */
6074
+ eventSignatures?: Array<string>;
6075
+ keyType: PlatformAddressActivityKeyType;
6076
+ /**
6077
+ * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
6078
+ */
6079
+ keys: Array<string>;
6080
+ /**
6081
+ * Sub-events to monitor
6082
+ */
6083
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6084
+ /**
6085
+ * Balance threshold filter
6086
+ */
6087
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6088
+ };
6089
+
6090
+ type PrimaryNetworkAddressActivityResponse = {
6091
+ id: string;
6092
+ url: string;
6093
+ chainId: string;
6094
+ status: WebhookStatusType;
6095
+ createdAt: number;
6096
+ name: string;
6097
+ description: string;
6098
+ eventType: PrimaryNetworkAddressActivityEventType;
6099
+ metadata: PrimaryNetworkAddressActivityMetadata;
6100
+ };
6101
+
6102
+ declare enum ValidatorActivityEventType {
6103
+ VALIDATOR_ACTIVITY = "validator_activity"
6104
+ }
6105
+
6106
+ /**
6107
+ * The type of key to monitor for the validator activity event type.
6108
+ */
6109
+ declare enum ValidatorActivityKeyType {
6110
+ NODE_ID = "nodeId",
6111
+ SUBNET_ID = "subnetId"
6112
+ }
6113
+
6114
+ type ValidatorActivitySubEvents = {
6115
+ /**
6116
+ * Array of validator activity sub-event types
6117
+ */
6118
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6119
+ };
6120
+
6121
+ type ValidatorActivityMetadata = {
6122
+ /**
6123
+ * Array of hexadecimal strings of the event signatures.
6124
+ */
6125
+ eventSignatures?: Array<string>;
6126
+ keyType: ValidatorActivityKeyType;
6127
+ /**
6128
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
6129
+ */
6130
+ keys: Array<string>;
6131
+ /**
6132
+ * Sub-events to monitor
6133
+ */
6134
+ subEvents: ValidatorActivitySubEvents;
6135
+ /**
6136
+ * Array of node IDs to filter the events
6137
+ */
6138
+ nodeIds?: Array<string>;
6139
+ /**
6140
+ * Array of subnet IDs to filter the events
6141
+ */
6142
+ subnetIds?: Array<string>;
6143
+ /**
6144
+ * L1 validator fee balance threshold in nAVAX
6145
+ */
6146
+ l1ValidatorFeeBalanceThreshold?: string;
6147
+ };
6148
+
6149
+ type ValidatorActivityResponse = {
6150
+ id: string;
6151
+ url: string;
6152
+ chainId: string;
6153
+ status: WebhookStatusType;
6154
+ createdAt: number;
6155
+ name: string;
6156
+ description: string;
6157
+ eventType: ValidatorActivityEventType;
6158
+ metadata: ValidatorActivityMetadata;
6159
+ };
6160
+
6161
+ type ListWebhooksResponse = {
6162
+ /**
6163
+ * 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.
6164
+ */
6165
+ nextPageToken?: string;
6166
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6167
+ };
6168
+
6169
+ declare enum PrimaryNetworkType {
6170
+ MAINNET = "mainnet",
6171
+ FUJI = "fuji"
6172
+ }
6173
+
6174
+ type PrimaryNetworkAddressActivityRequest = {
6175
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6176
+ url: string;
6177
+ name?: string;
6178
+ description?: string;
6179
+ network: PrimaryNetworkType;
6180
+ chainId: string;
6181
+ /**
6182
+ * Metadata for platform address activity event
6183
+ */
6184
+ metadata: PrimaryNetworkAddressActivityMetadata;
6185
+ };
6186
+ declare namespace PrimaryNetworkAddressActivityRequest {
6187
+ enum eventType {
6188
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6189
+ }
6190
+ }
4986
6191
 
4987
6192
  type SharedSecretsResponse = {
4988
6193
  secret: string;
@@ -4993,10 +6198,30 @@ type UpdateWebhookRequest = {
4993
6198
  description?: string;
4994
6199
  url?: string;
4995
6200
  status?: WebhookStatusType;
6201
+ /**
6202
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6203
+ */
4996
6204
  includeInternalTxs?: boolean;
4997
6205
  includeLogs?: boolean;
4998
6206
  };
4999
6207
 
6208
+ type ValidatorActivityRequest = {
6209
+ eventType: ValidatorActivityRequest.eventType;
6210
+ url: string;
6211
+ name?: string;
6212
+ description?: string;
6213
+ network: PrimaryNetworkType;
6214
+ /**
6215
+ * Metadata for platform validator activity event
6216
+ */
6217
+ metadata: ValidatorActivityMetadata;
6218
+ };
6219
+ declare namespace ValidatorActivityRequest {
6220
+ enum eventType {
6221
+ VALIDATOR_ACTIVITY = "validator_activity"
6222
+ }
6223
+ }
6224
+
5000
6225
  declare enum WebhookStatus {
5001
6226
  ACTIVE = "active",
5002
6227
  INACTIVE = "inactive"
@@ -5008,12 +6233,12 @@ declare class WebhooksService {
5008
6233
  /**
5009
6234
  * Create a webhook
5010
6235
  * Create a new webhook.
5011
- * @returns WebhookResponse Successful response
6236
+ * @returns any Successful response
5012
6237
  * @throws ApiError
5013
6238
  */
5014
6239
  createWebhook({ requestBody, }: {
5015
- requestBody: CreateWebhookRequest;
5016
- }): CancelablePromise<WebhookResponse>;
6240
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6241
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5017
6242
  /**
5018
6243
  * List webhooks
5019
6244
  * Lists webhooks for the user.
@@ -5037,7 +6262,7 @@ declare class WebhooksService {
5037
6262
  /**
5038
6263
  * Get a webhook by ID
5039
6264
  * Retrieves a webhook by ID.
5040
- * @returns WebhookResponse Successful response
6265
+ * @returns any Successful response
5041
6266
  * @throws ApiError
5042
6267
  */
5043
6268
  getWebhook({ id, }: {
@@ -5045,11 +6270,11 @@ declare class WebhooksService {
5045
6270
  * The webhook identifier.
5046
6271
  */
5047
6272
  id: string;
5048
- }): CancelablePromise<WebhookResponse>;
6273
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5049
6274
  /**
5050
6275
  * Deactivate a webhook
5051
6276
  * Deactivates a webhook by ID.
5052
- * @returns WebhookResponse Successful response
6277
+ * @returns any Successful response
5053
6278
  * @throws ApiError
5054
6279
  */
5055
6280
  deactivateWebhook({ id, }: {
@@ -5057,11 +6282,11 @@ declare class WebhooksService {
5057
6282
  * The webhook identifier.
5058
6283
  */
5059
6284
  id: string;
5060
- }): CancelablePromise<WebhookResponse>;
6285
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5061
6286
  /**
5062
6287
  * Update a webhook
5063
6288
  * Updates an existing webhook.
5064
- * @returns WebhookResponse Successful response
6289
+ * @returns any Successful response
5065
6290
  * @throws ApiError
5066
6291
  */
5067
6292
  updateWebhook({ id, requestBody, }: {
@@ -5070,14 +6295,14 @@ declare class WebhooksService {
5070
6295
  */
5071
6296
  id: string;
5072
6297
  requestBody: UpdateWebhookRequest;
5073
- }): CancelablePromise<WebhookResponse>;
6298
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5074
6299
  /**
5075
- * Generate a shared secret
5076
- * Generates a new shared secret.
6300
+ * Generate or rotate a shared secret
6301
+ * Generates a new shared secret or rotate an existing one.
5077
6302
  * @returns SharedSecretsResponse Successful response
5078
6303
  * @throws ApiError
5079
6304
  */
5080
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6305
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5081
6306
  /**
5082
6307
  * Get a shared secret
5083
6308
  * Get a previously generated shared secret.
@@ -5086,9 +6311,9 @@ declare class WebhooksService {
5086
6311
  */
5087
6312
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5088
6313
  /**
5089
- * Add addresses to webhook
5090
- * Add addresses to webhook.
5091
- * @returns WebhookResponse Successful response
6314
+ * Add addresses to EVM activity webhook
6315
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6316
+ * @returns EVMAddressActivityResponse Successful response
5092
6317
  * @throws ApiError
5093
6318
  */
5094
6319
  addAddressesToWebhook({ id, requestBody, }: {
@@ -5097,11 +6322,11 @@ declare class WebhooksService {
5097
6322
  */
5098
6323
  id: string;
5099
6324
  requestBody: AddressesChangeRequest;
5100
- }): CancelablePromise<WebhookResponse>;
6325
+ }): CancelablePromise<EVMAddressActivityResponse>;
5101
6326
  /**
5102
- * Remove addresses from webhook
5103
- * Remove addresses from webhook.
5104
- * @returns WebhookResponse Successful response
6327
+ * Remove addresses from EVM activity webhook
6328
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6329
+ * @returns EVMAddressActivityResponse Successful response
5105
6330
  * @throws ApiError
5106
6331
  */
5107
6332
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -5110,10 +6335,10 @@ declare class WebhooksService {
5110
6335
  */
5111
6336
  id: string;
5112
6337
  requestBody: AddressesChangeRequest;
5113
- }): CancelablePromise<WebhookResponse>;
6338
+ }): CancelablePromise<EVMAddressActivityResponse>;
5114
6339
  /**
5115
- * List adresses by webhook
5116
- * List adresses by webhook.
6340
+ * List adresses by EVM activity webhooks
6341
+ * List adresses by webhook. Only valid for EVM activity webhooks.
5117
6342
  * @returns ListWebhookAddressesResponse Successful response
5118
6343
  * @throws ApiError
5119
6344
  */
@@ -5135,6 +6360,7 @@ declare class WebhooksService {
5135
6360
 
5136
6361
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
5137
6362
  declare class Glacier {
6363
+ readonly avaxSupply: AvaxSupplyService;
5138
6364
  readonly dataApiUsageMetrics: DataApiUsageMetricsService;
5139
6365
  readonly default: DefaultService;
5140
6366
  readonly evmBalances: EvmBalancesService;
@@ -5143,7 +6369,9 @@ declare class Glacier {
5143
6369
  readonly evmContracts: EvmContractsService;
5144
6370
  readonly evmTransactions: EvmTransactionsService;
5145
6371
  readonly healthCheck: HealthCheckService;
6372
+ readonly interchainMessaging: InterchainMessagingService;
5146
6373
  readonly nfTs: NfTsService;
6374
+ readonly notifications: NotificationsService;
5147
6375
  readonly operations: OperationsService;
5148
6376
  readonly primaryNetwork: PrimaryNetworkService;
5149
6377
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -5152,7 +6380,6 @@ declare class Glacier {
5152
6380
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5153
6381
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5154
6382
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5155
- readonly rpc: RpcService;
5156
6383
  readonly signatureAggregator: SignatureAggregatorService;
5157
6384
  readonly teleporter: TeleporterService;
5158
6385
  readonly webhooks: WebhooksService;
@@ -5177,6 +6404,17 @@ declare class ApiError extends Error {
5177
6404
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5178
6405
  }
5179
6406
 
6407
+ type AccessListData = {
6408
+ /**
6409
+ * Access Address
6410
+ */
6411
+ accessAddresses: string;
6412
+ /**
6413
+ * Storage keys
6414
+ */
6415
+ storageKeys: Array<string>;
6416
+ };
6417
+
5180
6418
  type BadGateway = {
5181
6419
  /**
5182
6420
  * The error message describing the reason for the exception
@@ -5211,6 +6449,76 @@ type DataListChainsResponse = {
5211
6449
  chains: Array<ChainInfo>;
5212
6450
  };
5213
6451
 
6452
+ type ERCToken = {
6453
+ /**
6454
+ * Token contract address
6455
+ */
6456
+ address: string;
6457
+ /**
6458
+ * Token name
6459
+ */
6460
+ name: string;
6461
+ /**
6462
+ * Token symbol
6463
+ */
6464
+ symbol: string;
6465
+ /**
6466
+ * Token decimals
6467
+ */
6468
+ decimals: number;
6469
+ /**
6470
+ * Value including decimals
6471
+ */
6472
+ valueWithDecimals: string;
6473
+ };
6474
+
6475
+ type ERCTransfer = {
6476
+ /**
6477
+ * Transaction hash
6478
+ */
6479
+ transactionHash: string;
6480
+ /**
6481
+ * Transfer type
6482
+ */
6483
+ type: string;
6484
+ /**
6485
+ * Sender address
6486
+ */
6487
+ from: string;
6488
+ /**
6489
+ * Recipient address
6490
+ */
6491
+ to: string;
6492
+ /**
6493
+ * Amount transferred
6494
+ */
6495
+ value: string;
6496
+ /**
6497
+ * Token Id
6498
+ */
6499
+ tokenId?: string;
6500
+ /**
6501
+ * Block timestamp
6502
+ */
6503
+ blockTimestamp: number;
6504
+ /**
6505
+ * Log index
6506
+ */
6507
+ logIndex: number;
6508
+ /**
6509
+ * erc20 Token details
6510
+ */
6511
+ erc20Token?: ERCToken;
6512
+ /**
6513
+ * erc721 Token details
6514
+ */
6515
+ erc721Token?: ERCToken;
6516
+ /**
6517
+ * erc1155 Token details
6518
+ */
6519
+ erc1155Token?: ERCToken;
6520
+ };
6521
+
5214
6522
  type Forbidden = {
5215
6523
  /**
5216
6524
  * The error message describing the reason for the exception
@@ -5241,6 +6549,64 @@ type InternalServerError = {
5241
6549
  error: string;
5242
6550
  };
5243
6551
 
6552
+ type Log = {
6553
+ /**
6554
+ * Contract address
6555
+ */
6556
+ address: string;
6557
+ /**
6558
+ * First topic
6559
+ */
6560
+ topic0: string;
6561
+ /**
6562
+ * Second topic (optional)
6563
+ */
6564
+ topic1?: string;
6565
+ /**
6566
+ * Third topic (optional)
6567
+ */
6568
+ topic2?: string;
6569
+ /**
6570
+ * Fourth topic (optional)
6571
+ */
6572
+ topic3?: string;
6573
+ /**
6574
+ * Event data
6575
+ */
6576
+ data: string;
6577
+ /**
6578
+ * Transaction index
6579
+ */
6580
+ transactionIndex: number;
6581
+ /**
6582
+ * Log index
6583
+ */
6584
+ logIndex: number;
6585
+ /**
6586
+ * Indicates if the log was removed
6587
+ */
6588
+ removed: boolean;
6589
+ };
6590
+
6591
+ type NetworkTokenInfo = {
6592
+ /**
6593
+ * Token name
6594
+ */
6595
+ tokenName?: string;
6596
+ /**
6597
+ * Token symbol
6598
+ */
6599
+ tokenSymbol?: string;
6600
+ /**
6601
+ * Token decimals
6602
+ */
6603
+ tokenDecimals?: number;
6604
+ /**
6605
+ * Value including decimals
6606
+ */
6607
+ valueWithDecimals?: string;
6608
+ };
6609
+
5244
6610
  type NextPageToken = {
5245
6611
  /**
5246
6612
  * 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.
@@ -5293,6 +6659,163 @@ type TooManyRequests = {
5293
6659
  error: string;
5294
6660
  };
5295
6661
 
6662
+ type WebhookInternalTransaction = {
6663
+ /**
6664
+ * Sender address
6665
+ */
6666
+ from: string;
6667
+ /**
6668
+ * Recipient address
6669
+ */
6670
+ to: string;
6671
+ /**
6672
+ * Internal transaction type
6673
+ */
6674
+ internalTxType: string;
6675
+ /**
6676
+ * Value transferred
6677
+ */
6678
+ value: string;
6679
+ /**
6680
+ * Gas used
6681
+ */
6682
+ gasUsed: string;
6683
+ /**
6684
+ * Gas limit
6685
+ */
6686
+ gasLimit: string;
6687
+ /**
6688
+ * Transaction hash
6689
+ */
6690
+ transactionHash: string;
6691
+ };
6692
+
6693
+ type Transaction = {
6694
+ /**
6695
+ * Block hash of the transaction
6696
+ */
6697
+ blockHash: string;
6698
+ /**
6699
+ * Block number of the transaction
6700
+ */
6701
+ blockNumber: string;
6702
+ /**
6703
+ * Sender address
6704
+ */
6705
+ from: string;
6706
+ /**
6707
+ * Gas limit for the transaction
6708
+ */
6709
+ gas: string;
6710
+ /**
6711
+ * Gas price used
6712
+ */
6713
+ gasPrice: string;
6714
+ /**
6715
+ * Maximum fee per gas
6716
+ */
6717
+ maxFeePerGas: string;
6718
+ /**
6719
+ * Maximum priority fee per gas
6720
+ */
6721
+ maxPriorityFeePerGas: string;
6722
+ /**
6723
+ * Transaction hash
6724
+ */
6725
+ txHash: string;
6726
+ /**
6727
+ * Transaction status
6728
+ */
6729
+ txStatus: string;
6730
+ /**
6731
+ * Input data
6732
+ */
6733
+ input: string;
6734
+ /**
6735
+ * Nonce value
6736
+ */
6737
+ nonce: string;
6738
+ /**
6739
+ * Recipient address
6740
+ */
6741
+ to: string;
6742
+ /**
6743
+ * Transaction index
6744
+ */
6745
+ transactionIndex: number;
6746
+ /**
6747
+ * Value transferred in the transaction
6748
+ */
6749
+ value: string;
6750
+ /**
6751
+ * Transaction type
6752
+ */
6753
+ type: number;
6754
+ /**
6755
+ * Chain ID of the network
6756
+ */
6757
+ chainId: string;
6758
+ /**
6759
+ * Cumulative gas used
6760
+ */
6761
+ receiptCumulativeGasUsed: string;
6762
+ /**
6763
+ * Gas used
6764
+ */
6765
+ receiptGasUsed: string;
6766
+ /**
6767
+ * Effective gas price
6768
+ */
6769
+ receiptEffectiveGasPrice: string;
6770
+ /**
6771
+ * Receipt root
6772
+ */
6773
+ receiptRoot: string;
6774
+ /**
6775
+ * Block timestamp
6776
+ */
6777
+ blockTimestamp: number;
6778
+ /**
6779
+ * Contract address (optional)
6780
+ */
6781
+ contractAddress?: string;
6782
+ /**
6783
+ * ERC20 transfers
6784
+ */
6785
+ erc20Transfers: Array<ERCTransfer>;
6786
+ /**
6787
+ * ERC721 transfers
6788
+ */
6789
+ erc721Transfers: Array<ERCTransfer>;
6790
+ /**
6791
+ * ERC1155 transfers
6792
+ */
6793
+ erc1155Transfers: Array<ERCTransfer>;
6794
+ /**
6795
+ * Internal transactions (optional)
6796
+ */
6797
+ internalTransactions?: Array<WebhookInternalTransaction>;
6798
+ /**
6799
+ * Access list (optional)
6800
+ */
6801
+ accessList?: Array<AccessListData>;
6802
+ /**
6803
+ * Network token info (optional)
6804
+ */
6805
+ networkToken?: NetworkTokenInfo;
6806
+ };
6807
+
6808
+ type TransactionEvent = {
6809
+ /**
6810
+ * Transaction details
6811
+ */
6812
+ transaction: Transaction;
6813
+ /**
6814
+ * Array of log events
6815
+ */
6816
+ logs?: Array<Log>;
6817
+ };
6818
+
5296
6819
  type Unauthorized = {
5297
6820
  /**
5298
6821
  * The error message describing the reason for the exception
@@ -5308,4 +6831,43 @@ type Unauthorized = {
5308
6831
  error: string;
5309
6832
  };
5310
6833
 
5311
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, 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, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
6834
+ type WebhookAddressActivityResponse = {
6835
+ /**
6836
+ * Webhook ID
6837
+ */
6838
+ webhookId: string;
6839
+ /**
6840
+ * Event type
6841
+ */
6842
+ eventType: WebhookAddressActivityResponse.eventType;
6843
+ /**
6844
+ * Message ID
6845
+ */
6846
+ messageId: string;
6847
+ /**
6848
+ * Event details
6849
+ */
6850
+ event: TransactionEvent;
6851
+ };
6852
+ declare namespace WebhookAddressActivityResponse {
6853
+ /**
6854
+ * Event type
6855
+ */
6856
+ enum eventType {
6857
+ ADDRESS_ACTIVITY = "address_activity"
6858
+ }
6859
+ }
6860
+
6861
+ declare class FetchHttpRequest extends BaseHttpRequest {
6862
+ constructor(config: OpenAPIConfig);
6863
+ /**
6864
+ * Request method
6865
+ * @param options The request options from the service
6866
+ * @returns CancelablePromise<T>
6867
+ * @throws ApiError
6868
+ */
6869
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6870
+ }
6871
+
6872
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6873
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };