@avalabs/glacier-sdk 3.1.0-canary.1784917.0 → 3.1.0-canary.1798929.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 (299) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2242 -634
  3. package/esm/generated/Glacier.d.ts +8 -4
  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/AddressActivityMetadata.d.ts +1 -1
  15. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  16. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  17. package/esm/generated/models/ApiFeature.d.ts +7 -0
  18. package/esm/generated/models/ApiFeature.js +1 -0
  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 +5 -1
  25. package/esm/generated/models/BlockchainId.d.ts +2 -0
  26. package/esm/generated/models/BlockchainId.js +1 -1
  27. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  28. package/esm/generated/models/BlockchainIds.js +1 -1
  29. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  30. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  31. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  32. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  33. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  34. package/esm/generated/models/ChainInfo.d.ts +2 -2
  35. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  36. package/esm/generated/models/CommonBalanceType.js +1 -0
  37. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  38. package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
  39. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  40. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  41. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +5 -5
  42. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
  43. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  44. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  45. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  46. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  47. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  48. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  49. package/esm/generated/models/ERCToken.d.ts +24 -0
  50. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  51. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  52. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  53. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  54. package/esm/generated/models/EVMInput.d.ts +1 -1
  55. package/esm/generated/models/EVMOutput.d.ts +1 -1
  56. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  57. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  58. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  59. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  60. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  61. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  62. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  63. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  64. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  65. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  66. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  67. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  68. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  69. package/esm/generated/models/EventType.d.ts +3 -1
  70. package/esm/generated/models/EventType.js +1 -1
  71. package/esm/generated/models/EvmBlock.d.ts +5 -1
  72. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  73. package/esm/generated/models/Forbidden.d.ts +1 -1
  74. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  75. package/esm/generated/models/Geolocation.d.ts +24 -0
  76. package/esm/generated/models/GetChainResponse.d.ts +2 -2
  77. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  78. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  79. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  80. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  81. package/esm/generated/models/GetTransactionResponse.d.ts +7 -2
  82. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  83. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  84. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  85. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  86. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  87. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  88. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  89. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  90. package/esm/generated/models/IcmRewardDetails.js +1 -0
  91. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  92. package/esm/generated/models/ImageAsset.d.ts +1 -1
  93. package/esm/generated/models/InternalServerError.d.ts +1 -1
  94. package/esm/generated/models/InternalTransaction.d.ts +16 -17
  95. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  96. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  97. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  98. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  99. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  100. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  101. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  102. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  103. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  104. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  105. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  106. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  107. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  108. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  109. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  110. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  111. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  112. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  113. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  114. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  115. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  116. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  117. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  118. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  120. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  121. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  122. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  123. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  124. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  125. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  126. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  127. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  128. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +1 -1
  129. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  130. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  131. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  132. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  133. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  134. package/esm/generated/models/ListWebhooksResponse.d.ts +4 -3
  135. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  136. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  137. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  138. package/esm/generated/models/Log.d.ts +40 -0
  139. package/esm/generated/models/LogsFormat.d.ts +1 -1
  140. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  141. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  142. package/esm/generated/models/Method.d.ts +1 -1
  143. package/esm/generated/models/Metric.d.ts +1 -1
  144. package/esm/generated/models/Money.d.ts +1 -1
  145. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  146. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  147. package/esm/generated/models/Network.d.ts +2 -1
  148. package/esm/generated/models/Network.js +1 -1
  149. package/esm/generated/models/NetworkToken.d.ts +1 -1
  150. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  151. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  152. package/esm/generated/models/NextPageToken.d.ts +1 -1
  153. package/esm/generated/models/NotFound.d.ts +1 -1
  154. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  155. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  156. package/esm/generated/models/PChainBalance.d.ts +1 -1
  157. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  158. package/esm/generated/models/PChainTransaction.d.ts +34 -8
  159. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  160. package/esm/generated/models/PChainTransactionType.js +1 -1
  161. package/esm/generated/models/PChainUtxo.d.ts +28 -1
  162. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  163. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  164. package/esm/generated/models/PendingIcmMessage.js +1 -0
  165. package/esm/generated/models/PendingReward.d.ts +1 -1
  166. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  167. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  168. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  169. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  170. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  171. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  172. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  173. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  174. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  175. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  176. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  177. package/esm/generated/models/PricingProviders.d.ts +1 -1
  178. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  179. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  180. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
  181. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  182. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  183. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  184. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  185. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  186. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  187. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  188. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  189. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  190. package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
  191. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  192. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  193. package/esm/generated/models/RequestType.d.ts +2 -2
  194. package/esm/generated/models/RequestType.js +1 -1
  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 +14 -0
  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 +55 -0
  202. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  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 +5 -0
  206. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  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/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  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 +16 -0
  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/TransactionDirectionType.d.ts +6 -0
  224. package/esm/generated/models/TransactionDirectionType.js +1 -0
  225. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  226. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  227. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  228. package/esm/generated/models/Unauthorized.d.ts +1 -1
  229. package/esm/generated/models/UnknownContract.d.ts +1 -1
  230. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  231. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  232. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  233. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  234. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  235. package/esm/generated/models/Utxo.d.ts +1 -1
  236. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  237. package/esm/generated/models/UtxoType.d.ts +3 -0
  238. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  239. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  240. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  241. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  242. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  243. package/esm/generated/models/XChainBalances.d.ts +1 -1
  244. package/esm/generated/models/XChainId.d.ts +1 -0
  245. package/esm/generated/models/XChainId.js +1 -1
  246. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  247. package/esm/generated/models/XChainVertex.d.ts +1 -1
  248. package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
  249. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  250. package/esm/generated/services/EvmBalancesService.d.ts +9 -9
  251. package/esm/generated/services/EvmBlocksService.d.ts +23 -2
  252. package/esm/generated/services/EvmBlocksService.js +1 -1
  253. package/esm/generated/services/EvmChainsService.d.ts +86 -8
  254. package/esm/generated/services/EvmChainsService.js +1 -1
  255. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  256. package/esm/generated/services/EvmTransactionsService.d.ts +47 -14
  257. package/esm/generated/services/EvmTransactionsService.js +1 -1
  258. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  259. package/esm/generated/services/HealthCheckService.js +1 -1
  260. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  261. package/esm/generated/services/InterchainMessagingService.js +1 -0
  262. package/esm/generated/services/NfTsService.d.ts +3 -3
  263. package/esm/generated/services/NotificationsService.d.ts +51 -0
  264. package/esm/generated/services/NotificationsService.js +1 -0
  265. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  266. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
  267. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  268. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  269. package/esm/generated/services/PrimaryNetworkService.d.ts +62 -11
  270. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  271. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
  272. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  273. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  274. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  275. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  276. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  277. package/esm/generated/services/TeleporterService.d.ts +37 -7
  278. package/esm/generated/services/TeleporterService.js +1 -1
  279. package/esm/generated/services/WebhooksService.d.ts +26 -24
  280. package/esm/generated/services/WebhooksService.js +1 -1
  281. package/esm/index.d.ts +62 -12
  282. package/esm/index.js +1 -1
  283. package/package.json +13 -4
  284. package/dist/index.js +0 -1
  285. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
  286. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  287. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  288. package/esm/generated/models/GlacierApiFeature.js +0 -1
  289. package/esm/generated/models/NetworkType.d.ts +0 -6
  290. package/esm/generated/models/NetworkType.js +0 -1
  291. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  292. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  293. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  294. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  295. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  296. package/esm/generated/services/GlacierApiUsageMetricsService.d.ts +0 -109
  297. package/esm/generated/services/GlacierApiUsageMetricsService.js +0 -1
  298. package/esm/generated/services/RpcService.d.ts +0 -25
  299. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,571 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type LogsFormatMetadata = {
58
+ /**
59
+ * The IP address of the client that made the request.
60
+ */
61
+ ipAddress: string;
62
+ /**
63
+ * The host for the request made by the client.
64
+ */
65
+ host: string;
66
+ /**
67
+ * The user agent of the client that made the request.
68
+ */
69
+ userAgent: string;
70
+ };
71
+
72
+ /**
73
+ * The type of request made by the client.
74
+ */
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
78
+ }
79
+
80
+ type LogsFormat = {
81
+ /**
82
+ * The organization id of the request.
83
+ */
84
+ orgId: string;
85
+ /**
86
+ * The unique log id of the request.
87
+ */
88
+ logId: string;
89
+ /**
90
+ * The timestamp of the request.
91
+ */
92
+ eventTimestamp: number;
93
+ /**
94
+ * The apiKey used to make the request.
95
+ */
96
+ apiKeyId: string;
97
+ /**
98
+ * The alias of the apiKey used to make the request.
99
+ */
100
+ apiKeyAlias: string;
101
+ /**
102
+ * The region of the host for the request made by the client.
103
+ */
104
+ hostRegion: string;
105
+ requestType: RequestType;
106
+ /**
107
+ * The path of the request made by the client.
108
+ */
109
+ requestPath: string;
110
+ /**
111
+ * The number of API credits consumed by the request.
112
+ */
113
+ apiCreditsConsumed: number;
114
+ /**
115
+ * The duration of the request in milliseconds.
116
+ */
117
+ requestDurationMsecs: number;
118
+ /**
119
+ * The response code of the request.
120
+ */
121
+ responseCode: number;
122
+ /**
123
+ * The chain id of the request.
124
+ */
125
+ chainId?: string;
126
+ /**
127
+ * The rpc method of the request.
128
+ */
129
+ rpcMethod?: string;
130
+ /**
131
+ * The metadata of the request.
132
+ */
133
+ metadata: LogsFormatMetadata;
134
+ };
135
+
136
+ type LogsResponseDTO = {
137
+ /**
138
+ * 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.
139
+ */
140
+ nextPageToken?: string;
141
+ /**
142
+ * The organization id of the request.
143
+ */
144
+ orgId: string;
145
+ /**
146
+ * An array of logs representing the requests made by clients.
147
+ */
148
+ logs: Array<LogsFormat>;
149
+ };
150
+
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet"
155
+ }
156
+
157
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
158
+ RPC_METHOD = "rpcMethod",
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
167
+ HOURLY = "hourly",
168
+ DAILY = "daily",
169
+ WEEKLY = "weekly",
170
+ MONTHLY = "monthly"
171
+ }
172
+
173
+ type RpcUsageMetricsValueAggregated = {
174
+ /**
175
+ * The total number of requests
176
+ */
177
+ totalRequests: number;
178
+ /**
179
+ * The number of API credits used
180
+ */
181
+ apiCreditsUsed: number;
182
+ /**
183
+ * The number of requests per second
184
+ */
185
+ requestsPerSecond: number;
186
+ /**
187
+ * The success rate percentage
188
+ */
189
+ successRatePercent: number;
190
+ /**
191
+ * The median response time in milliseconds
192
+ */
193
+ medianResponseTimeMsecs: number;
194
+ /**
195
+ * The number of invalid requests
196
+ */
197
+ invalidRequests: number;
198
+ /**
199
+ * The number of API credits wasted on invalid requests
200
+ */
201
+ apiCreditsWasted: number;
202
+ /**
203
+ * Column name used for data aggregation
204
+ */
205
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
206
+ /**
207
+ * The value of the column used for data aggregation
208
+ */
209
+ groupValue?: (string | number);
210
+ };
211
+ declare namespace RpcUsageMetricsValueAggregated {
212
+ /**
213
+ * Column name used for data aggregation
214
+ */
215
+ enum groupedBy {
216
+ RPC_METHOD = "rpcMethod",
217
+ RESPONSE_CODE = "responseCode",
218
+ RL_BYPASS_TOKEN = "rlBypassToken",
219
+ REQUEST_PATH = "requestPath",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent",
223
+ NONE = "None"
224
+ }
225
+ }
226
+
227
+ type RpcMetrics = {
228
+ /**
229
+ * The timestamp of the metrics value
230
+ */
231
+ timestamp: number;
232
+ /**
233
+ * The metrics values for the timestamp
234
+ */
235
+ values: Array<RpcUsageMetricsValueAggregated>;
236
+ };
237
+
238
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
239
+ /**
240
+ * Duration in which the metrics value is aggregated
241
+ */
242
+ aggregateDuration: string;
243
+ /**
244
+ * Metrics values
245
+ */
246
+ metrics: Array<RpcMetrics>;
247
+ /**
248
+ * Network type for which the metrics are aggregated
249
+ */
250
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
251
+ };
252
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
253
+ /**
254
+ * Network type for which the metrics are aggregated
255
+ */
256
+ enum network {
257
+ MAINNET = "mainnet",
258
+ TESTNET = "testnet"
259
+ }
260
+ }
261
+
262
+ declare enum RpcUsageMetricsGroupByEnum {
263
+ RPC_METHOD = "rpcMethod",
264
+ RESPONSE_CODE = "responseCode",
265
+ RL_BYPASS_TOKEN = "rlBypassToken"
266
+ }
267
+
268
+ declare enum SubnetRpcTimeIntervalGranularity {
269
+ HOURLY = "hourly",
270
+ DAILY = "daily",
271
+ WEEKLY = "weekly",
272
+ MONTHLY = "monthly"
273
+ }
274
+
275
+ type SubnetRpcUsageMetricsResponseDTO = {
276
+ /**
277
+ * Duration in which the metrics value is aggregated
278
+ */
279
+ aggregateDuration: string;
280
+ /**
281
+ * Metrics values
282
+ */
283
+ metrics: Array<RpcMetrics>;
284
+ /**
285
+ * ChainId for which the metrics are aggregated
286
+ */
287
+ chainId: string;
288
+ };
289
+
290
+ declare enum TimeIntervalGranularityExtended {
291
+ MINUTE = "minute",
292
+ HOURLY = "hourly",
293
+ DAILY = "daily",
294
+ WEEKLY = "weekly",
295
+ MONTHLY = "monthly"
296
+ }
297
+
298
+ declare enum UsageMetricsGroupByEnum {
299
+ REQUEST_PATH = "requestPath",
300
+ RESPONSE_CODE = "responseCode",
301
+ CHAIN_ID = "chainId",
302
+ API_KEY_ID = "apiKeyId",
303
+ REQUEST_TYPE = "requestType"
304
+ }
305
+
306
+ type UsageMetricsValueDTO = {
307
+ /**
308
+ * Column name used for data aggregation
309
+ */
310
+ groupedBy: UsageMetricsValueDTO.groupedBy;
311
+ /**
312
+ * The value of the column used for data aggregation
313
+ */
314
+ groupValue?: (string | number);
315
+ /**
316
+ * The total number of requests
317
+ */
318
+ totalRequests: number;
319
+ /**
320
+ * The number of requests per second
321
+ */
322
+ requestsPerSecond: number;
323
+ /**
324
+ * The success rate percentage
325
+ */
326
+ successRatePercent: number;
327
+ /**
328
+ * The median response time in milliseconds
329
+ */
330
+ medianResponseTimeMsecs: number;
331
+ /**
332
+ * The number of invalid requests
333
+ */
334
+ invalidRequests: number;
335
+ /**
336
+ * The number of API credits used
337
+ */
338
+ apiCreditsUsed: number;
339
+ /**
340
+ * The number of API credits wasted on invalid requests
341
+ */
342
+ apiCreditsWasted: number;
343
+ };
344
+ declare namespace UsageMetricsValueDTO {
345
+ /**
346
+ * Column name used for data aggregation
347
+ */
348
+ enum groupedBy {
349
+ REQUEST_PATH = "requestPath",
350
+ RESPONSE_CODE = "responseCode",
351
+ CHAIN_ID = "chainId",
352
+ API_KEY_ID = "apiKeyId",
353
+ REQUEST_TYPE = "requestType",
354
+ NONE = "None"
355
+ }
356
+ }
357
+
358
+ type Metric = {
359
+ /**
360
+ * The timestamp of the metrics value
361
+ */
362
+ timestamp: number;
363
+ /**
364
+ * The metrics values for the timestamp
365
+ */
366
+ values: Array<UsageMetricsValueDTO>;
367
+ };
368
+
369
+ type UsageMetricsResponseDTO = {
370
+ /**
371
+ * Duration in which the metrics value is aggregated
372
+ */
373
+ aggregateDuration: string;
374
+ /**
375
+ * Org ID for which the metrics are aggregated
376
+ */
377
+ orgId: string;
378
+ /**
379
+ * Metrics values
380
+ */
381
+ metrics: Array<Metric>;
382
+ };
383
+
384
+ declare class DataApiUsageMetricsService {
385
+ readonly httpRequest: BaseHttpRequest;
386
+ constructor(httpRequest: BaseHttpRequest);
387
+ /**
388
+ * Get usage metrics for the Data API
389
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
390
+ * @returns UsageMetricsResponseDTO Successful response
391
+ * @throws ApiError
392
+ */
393
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
394
+ /**
395
+ * Organization ID to fetch usage metrics for
396
+ */
397
+ orgId?: string;
398
+ /**
399
+ * 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.
400
+ */
401
+ startTimestamp?: number;
402
+ /**
403
+ * 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.
404
+ */
405
+ endTimestamp?: number;
406
+ /**
407
+ * Time interval granularity for data aggregation
408
+ */
409
+ timeInterval?: TimeIntervalGranularityExtended;
410
+ /**
411
+ * Query param for the criterion used for grouping metrics
412
+ */
413
+ groupBy?: UsageMetricsGroupByEnum;
414
+ /**
415
+ * Filter data by chain ID.
416
+ */
417
+ chainId?: string;
418
+ /**
419
+ * Filter data by response status code.
420
+ */
421
+ responseCode?: string;
422
+ /**
423
+ * Filter data by request type.
424
+ */
425
+ requestType?: 'data' | 'rpc';
426
+ /**
427
+ * Filter data by API key ID.
428
+ */
429
+ apiKeyId?: string;
430
+ /**
431
+ * Filter data by request path.
432
+ */
433
+ requestPath?: string;
434
+ }): CancelablePromise<UsageMetricsResponseDTO>;
435
+ /**
436
+ * Get logs for requests made by client
437
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
438
+ * @returns LogsResponseDTO Successful response
439
+ * @throws ApiError
440
+ */
441
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
442
+ /**
443
+ * Organization ID to fetch usage metrics for
444
+ */
445
+ orgId?: string;
446
+ /**
447
+ * 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.
448
+ */
449
+ startTimestamp?: number;
450
+ /**
451
+ * 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.
452
+ */
453
+ endTimestamp?: number;
454
+ /**
455
+ * Filter data by chain ID.
456
+ */
457
+ chainId?: string;
458
+ /**
459
+ * Filter data by response status code.
460
+ */
461
+ responseCode?: string;
462
+ /**
463
+ * Filter data by request type.
464
+ */
465
+ requestType?: 'data' | 'rpc';
466
+ /**
467
+ * Filter data by API key ID.
468
+ */
469
+ apiKeyId?: string;
470
+ /**
471
+ * Filter data by request path.
472
+ */
473
+ requestPath?: string;
474
+ /**
475
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
476
+ */
477
+ pageToken?: string;
478
+ /**
479
+ * The maximum number of items to return.
480
+ */
481
+ pageSize?: number;
482
+ }): CancelablePromise<LogsResponseDTO>;
483
+ /**
484
+ * Get usage metrics for the Subnet RPC
485
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
486
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
487
+ * @throws ApiError
488
+ */
489
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
490
+ /**
491
+ * Time interval granularity for data aggregation for subnet
492
+ * rpc metrics
493
+ */
494
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
495
+ /**
496
+ * 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.
497
+ */
498
+ startTimestamp?: number;
499
+ /**
500
+ * 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.
501
+ */
502
+ endTimestamp?: number;
503
+ /**
504
+ * Query param for the criterion used for grouping metrics
505
+ */
506
+ groupBy?: RpcUsageMetricsGroupByEnum;
507
+ /**
508
+ * Filter data by chain ID.
509
+ */
510
+ chainId?: string;
511
+ /**
512
+ * Filter data by response status code.
513
+ */
514
+ responseCode?: string;
515
+ /**
516
+ * Filter data by RPC method.
517
+ */
518
+ rpcMethod?: string;
519
+ /**
520
+ * Filter data by Rl Bypass API Token.
521
+ */
522
+ rlBypassApiToken?: string;
523
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
524
+ /**
525
+ * @deprecated
526
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
527
+ *
528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
529
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
530
+ * @throws ApiError
531
+ */
532
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
533
+ /**
534
+ * Time interval granularity for data aggregation for subnet
535
+ * rpc metrics
536
+ */
537
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
538
+ /**
539
+ * 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.
540
+ */
541
+ startTimestamp?: number;
542
+ /**
543
+ * 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.
544
+ */
545
+ endTimestamp?: number;
546
+ /**
547
+ * Query param for the criterion used for grouping metrics
548
+ */
549
+ groupBy?: RpcUsageMetricsGroupByEnum;
550
+ /**
551
+ * Filter data by chain ID.
552
+ */
553
+ chainId?: string;
554
+ /**
555
+ * Filter data by response status code.
556
+ */
557
+ responseCode?: string;
558
+ /**
559
+ * Filter data by RPC method.
560
+ */
561
+ rpcMethod?: string;
562
+ /**
563
+ * Filter data by Rl Bypass API Token.
564
+ */
565
+ rlBypassApiToken?: string;
566
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
567
+ /**
568
+ * Get usage metrics for the Primary Network RPC
569
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
570
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
571
+ * @throws ApiError
572
+ */
573
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
574
+ /**
575
+ * Either mainnet or testnet/fuji.
576
+ */
577
+ network: Network;
578
+ /**
579
+ * Time interval granularity for data aggregation for subnet
580
+ * rpc metrics
581
+ */
582
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
583
+ /**
584
+ * 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.
585
+ */
586
+ startTimestamp?: number;
587
+ /**
588
+ * 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.
589
+ */
590
+ endTimestamp?: number;
591
+ /**
592
+ * Query param for the criterion used for grouping metrics
593
+ */
594
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
595
+ /**
596
+ * Filter data by response status code.
597
+ */
598
+ responseCode?: string;
599
+ /**
600
+ * Filter data by request path.
601
+ */
602
+ requestPath?: string;
603
+ /**
604
+ * 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.
605
+ */
606
+ country?: string;
607
+ /**
608
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
609
+ */
610
+ continent?: string;
611
+ /**
612
+ * Filter data by User Agent.
613
+ */
614
+ userAgent?: string;
615
+ /**
616
+ * Filter data by RPC method.
617
+ */
618
+ rpcMethod?: string;
619
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
620
+ }
621
+
57
622
  declare class DefaultService {
58
623
  readonly httpRequest: BaseHttpRequest;
59
624
  constructor(httpRequest: BaseHttpRequest);
@@ -250,6 +815,10 @@ type ListErc1155BalancesResponse = {
250
815
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
251
816
  */
252
817
  nextPageToken?: string;
818
+ /**
819
+ * The native token balance for the address.
820
+ */
821
+ nativeTokenBalance: NativeTokenBalance;
253
822
  /**
254
823
  * The list of ERC-1155 token balances for the address.
255
824
  */
@@ -294,11 +863,22 @@ type Erc20TokenBalance = {
294
863
  * The monetary value of the balance, if a price is available for the token.
295
864
  */
296
865
  balanceValue?: Money;
866
+ /**
867
+ * 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.
868
+ */
869
+ tokenReputation: Erc20TokenBalance.tokenReputation;
297
870
  };
298
871
  declare namespace Erc20TokenBalance {
299
872
  enum ercType {
300
873
  ERC_20 = "ERC-20"
301
874
  }
875
+ /**
876
+ * 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.
877
+ */
878
+ enum tokenReputation {
879
+ MALICIOUS = "Malicious",
880
+ BENIGN = "Benign"
881
+ }
302
882
  }
303
883
 
304
884
  type ListErc20BalancesResponse = {
@@ -306,6 +886,10 @@ type ListErc20BalancesResponse = {
306
886
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
307
887
  */
308
888
  nextPageToken?: string;
889
+ /**
890
+ * The native token balance for the address.
891
+ */
892
+ nativeTokenBalance: NativeTokenBalance;
309
893
  /**
310
894
  * The list of ERC-20 token balances for the address.
311
895
  */
@@ -317,6 +901,10 @@ type ListErc721BalancesResponse = {
317
901
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
318
902
  */
319
903
  nextPageToken?: string;
904
+ /**
905
+ * The native token balance for the address.
906
+ */
907
+ nativeTokenBalance: NativeTokenBalance;
320
908
  /**
321
909
  * The list of ERC-721 token balances for the address.
322
910
  */
@@ -336,7 +924,7 @@ declare class EvmBalancesService {
336
924
  */
337
925
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
338
926
  /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
927
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
340
928
  */
341
929
  chainId: string;
342
930
  /**
@@ -364,7 +952,7 @@ declare class EvmBalancesService {
364
952
  */
365
953
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
366
954
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
955
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
368
956
  */
369
957
  chainId: string;
370
958
  /**
@@ -380,7 +968,7 @@ declare class EvmBalancesService {
380
968
  */
381
969
  pageToken?: string;
382
970
  /**
383
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
971
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
384
972
  */
385
973
  pageSize?: number;
386
974
  /**
@@ -406,7 +994,7 @@ declare class EvmBalancesService {
406
994
  */
407
995
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
408
996
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
997
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
410
998
  */
411
999
  chainId: string;
412
1000
  /**
@@ -418,7 +1006,7 @@ declare class EvmBalancesService {
418
1006
  */
419
1007
  pageToken?: string;
420
1008
  /**
421
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
422
1010
  */
423
1011
  pageSize?: number;
424
1012
  /**
@@ -438,7 +1026,7 @@ declare class EvmBalancesService {
438
1026
  */
439
1027
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
440
1028
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1029
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
442
1030
  */
443
1031
  chainId: string;
444
1032
  /**
@@ -454,7 +1042,7 @@ declare class EvmBalancesService {
454
1042
  */
455
1043
  pageToken?: string;
456
1044
  /**
457
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1045
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
458
1046
  */
459
1047
  pageSize?: number;
460
1048
  /**
@@ -472,7 +1060,7 @@ declare class EvmBalancesService {
472
1060
  */
473
1061
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
1062
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1063
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
1064
  */
477
1065
  chainId: string;
478
1066
  /**
@@ -484,7 +1072,7 @@ declare class EvmBalancesService {
484
1072
  */
485
1073
  pageToken?: string;
486
1074
  /**
487
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
488
1076
  */
489
1077
  pageSize?: number;
490
1078
  /**
@@ -495,6 +1083,10 @@ declare class EvmBalancesService {
495
1083
  }
496
1084
 
497
1085
  type GetEvmBlockResponse = {
1086
+ /**
1087
+ * The EVM chain ID on which the block was created.
1088
+ */
1089
+ chainId: string;
498
1090
  /**
499
1091
  * The block number on the chain.
500
1092
  */
@@ -539,6 +1131,10 @@ type GetEvmBlockResponse = {
539
1131
  };
540
1132
 
541
1133
  type EvmBlock = {
1134
+ /**
1135
+ * The EVM chain ID on which the block was created.
1136
+ */
1137
+ chainId: string;
542
1138
  /**
543
1139
  * The block number on the chain.
544
1140
  */
@@ -593,6 +1189,26 @@ type ListEvmBlocksResponse = {
593
1189
  declare class EvmBlocksService {
594
1190
  readonly httpRequest: BaseHttpRequest;
595
1191
  constructor(httpRequest: BaseHttpRequest);
1192
+ /**
1193
+ * List latest blocks across all supported EVM chains
1194
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1195
+ * @returns ListEvmBlocksResponse Successful response
1196
+ * @throws ApiError
1197
+ */
1198
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1199
+ /**
1200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1201
+ */
1202
+ pageToken?: string;
1203
+ /**
1204
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1205
+ */
1206
+ pageSize?: number;
1207
+ /**
1208
+ * Either mainnet or testnet/fuji.
1209
+ */
1210
+ network?: Network;
1211
+ }): CancelablePromise<ListEvmBlocksResponse>;
596
1212
  /**
597
1213
  * List latest blocks
598
1214
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -601,7 +1217,7 @@ declare class EvmBlocksService {
601
1217
  */
602
1218
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
1219
  /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1220
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
1221
  */
606
1222
  chainId: string;
607
1223
  /**
@@ -621,7 +1237,7 @@ declare class EvmBlocksService {
621
1237
  */
622
1238
  getBlock({ chainId, blockId, }: {
623
1239
  /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1240
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
1241
  */
626
1242
  chainId: string;
627
1243
  /**
@@ -631,6 +1247,12 @@ declare class EvmBlocksService {
631
1247
  }): CancelablePromise<GetEvmBlockResponse>;
632
1248
  }
633
1249
 
1250
+ declare enum ApiFeature {
1251
+ NFT_INDEXING = "nftIndexing",
1252
+ WEBHOOKS = "webhooks",
1253
+ TELEPORTER = "teleporter"
1254
+ }
1255
+
634
1256
  /**
635
1257
  * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
1258
  */
@@ -651,109 +1273,290 @@ type NetworkToken = {
651
1273
  /**
652
1274
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
653
1275
  */
654
- decimals: number;
1276
+ decimals: number;
1277
+ /**
1278
+ * The logo uri for the address.
1279
+ */
1280
+ logoUri?: string;
1281
+ description?: string;
1282
+ };
1283
+
1284
+ type UtilityAddresses = {
1285
+ multicall?: string;
1286
+ };
1287
+
1288
+ declare enum VmName {
1289
+ EVM = "EVM",
1290
+ BITCOIN = "BITCOIN",
1291
+ ETHEREUM = "ETHEREUM"
1292
+ }
1293
+
1294
+ type GetChainResponse = {
1295
+ chainId: string;
1296
+ status: ChainStatus;
1297
+ chainName: string;
1298
+ description: string;
1299
+ platformChainId?: string;
1300
+ subnetId?: string;
1301
+ vmId?: string;
1302
+ vmName: VmName;
1303
+ explorerUrl?: string;
1304
+ rpcUrl: string;
1305
+ wsUrl?: string;
1306
+ isTestnet: boolean;
1307
+ utilityAddresses?: UtilityAddresses;
1308
+ networkToken: NetworkToken;
1309
+ chainLogoUri?: string;
1310
+ private?: boolean;
1311
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1312
+ };
1313
+
1314
+ type ChainInfo = {
1315
+ chainId: string;
1316
+ status: ChainStatus;
1317
+ chainName: string;
1318
+ description: string;
1319
+ platformChainId?: string;
1320
+ subnetId?: string;
1321
+ vmId?: string;
1322
+ vmName: VmName;
1323
+ explorerUrl?: string;
1324
+ rpcUrl: string;
1325
+ wsUrl?: string;
1326
+ isTestnet: boolean;
1327
+ utilityAddresses?: UtilityAddresses;
1328
+ networkToken: NetworkToken;
1329
+ chainLogoUri?: string;
1330
+ private?: boolean;
1331
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1332
+ };
1333
+
1334
+ type ListAddressChainsResponse = {
1335
+ indexedChains?: Array<ChainInfo>;
1336
+ unindexedChains?: Array<string>;
1337
+ };
1338
+
1339
+ type ListChainsResponse = {
1340
+ chains: Array<ChainInfo>;
1341
+ };
1342
+
1343
+ /**
1344
+ * 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.
1345
+ */
1346
+ declare enum TransactionMethodType {
1347
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1348
+ CONTRACT_CALL = "CONTRACT_CALL",
1349
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1350
+ }
1351
+
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1354
+ /**
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1356
+ */
1357
+ methodHash: string;
1358
+ /**
1359
+ * 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'.
1360
+ */
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1365
+ /**
1366
+ * The contract name.
1367
+ */
1368
+ name?: string;
1369
+ /**
1370
+ * The contract symbol.
1371
+ */
1372
+ symbol?: string;
1373
+ /**
1374
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1375
+ */
1376
+ decimals?: number;
1377
+ /**
1378
+ * The logo uri for the address.
1379
+ */
1380
+ logoUri?: string;
1381
+ /**
1382
+ * A wallet or contract address in mixed-case checksum encoding.
1383
+ */
1384
+ address: string;
1385
+ };
1386
+
1387
+ type NativeTransaction = {
1388
+ /**
1389
+ * The block number on the chain.
1390
+ */
1391
+ blockNumber: string;
1392
+ /**
1393
+ * The block finality timestamp.
1394
+ */
1395
+ blockTimestamp: number;
1396
+ /**
1397
+ * The block hash identifier.
1398
+ */
1399
+ blockHash: string;
1400
+ /**
1401
+ * The EVM chain ID on which the transaction occured.
1402
+ */
1403
+ chainId: string;
1404
+ /**
1405
+ * The index at which the transaction occured in the block (0-indexed).
1406
+ */
1407
+ blockIndex: number;
1408
+ /**
1409
+ * The transaction hash identifier.
1410
+ */
1411
+ txHash: string;
1412
+ /**
1413
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1414
+ */
1415
+ txStatus: string;
1416
+ /**
1417
+ * The transaction type.
1418
+ */
1419
+ txType: number;
1420
+ /**
1421
+ * The gas limit set for the transaction.
1422
+ */
1423
+ gasLimit: string;
1424
+ /**
1425
+ * The amount of gas used.
1426
+ */
1427
+ gasUsed: string;
1428
+ /**
1429
+ * The gas price denominated by the number of decimals of the native token.
1430
+ */
1431
+ gasPrice: string;
655
1432
  /**
656
- * The logo uri for the address.
1433
+ * The nonce used by the sender of the transaction.
657
1434
  */
658
- logoUri?: string;
659
- description?: string;
660
- };
661
-
662
- type UtilityAddresses = {
663
- multicall?: string;
664
- };
665
-
666
- declare enum VmName {
667
- EVM = "EVM",
668
- BITCOIN = "BITCOIN",
669
- ETHEREUM = "ETHEREUM"
670
- }
671
-
672
- type GetChainResponse = {
673
- chainId: string;
674
- status: ChainStatus;
675
- chainName: string;
676
- description: string;
677
- platformChainId?: string;
678
- subnetId?: string;
679
- vmId?: string;
680
- vmName: VmName;
681
- explorerUrl?: string;
682
- rpcUrl: string;
683
- wsUrl?: string;
684
- isTestnet: boolean;
685
- utilityAddresses?: UtilityAddresses;
686
- networkToken: NetworkToken;
687
- chainLogoUri?: string;
688
- private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
690
- };
691
-
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
- type ChainInfo = {
698
- chainId: string;
699
- status: ChainStatus;
700
- chainName: string;
701
- description: string;
702
- platformChainId?: string;
703
- subnetId?: string;
704
- vmId?: string;
705
- vmName: VmName;
706
- explorerUrl?: string;
707
- rpcUrl: string;
708
- wsUrl?: string;
709
- isTestnet: boolean;
710
- utilityAddresses?: UtilityAddresses;
711
- networkToken: NetworkToken;
712
- chainLogoUri?: string;
713
- private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1435
+ nonce: string;
1436
+ from: RichAddress;
1437
+ to: RichAddress;
1438
+ method?: Method;
1439
+ value: string;
715
1440
  };
716
1441
 
717
- type ListChainsResponse = {
718
- chains: Array<ChainInfo>;
1442
+ type ListNativeTransactionsResponse = {
1443
+ /**
1444
+ * 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.
1445
+ */
1446
+ nextPageToken?: string;
1447
+ transactions: Array<NativeTransaction>;
719
1448
  };
720
1449
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
1450
+ declare enum TransactionStatus {
1451
+ FAILED = "failed",
1452
+ SUCCESS = "success"
724
1453
  }
725
1454
 
726
1455
  declare class EvmChainsService {
727
1456
  readonly httpRequest: BaseHttpRequest;
728
1457
  constructor(httpRequest: BaseHttpRequest);
1458
+ /**
1459
+ * List all chains associated with a given address
1460
+ * 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.
1461
+ * @returns ListAddressChainsResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAddressChains({ address, }: {
1465
+ /**
1466
+ * A wallet address.
1467
+ */
1468
+ address: string;
1469
+ }): CancelablePromise<ListAddressChainsResponse>;
729
1470
  /**
730
1471
  * List chains
731
- * Lists the supported EVM-compatible chains. Filterable by network.
1472
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
732
1473
  * @returns ListChainsResponse Successful response
733
1474
  * @throws ApiError
734
1475
  */
735
1476
  supportedChains({ network, feature, }: {
736
1477
  /**
737
- * mainnet or testnet.
1478
+ * Either mainnet or testnet/fuji.
738
1479
  */
739
- network?: NetworkType;
1480
+ network?: Network;
740
1481
  /**
741
1482
  * Filter by feature.
742
1483
  */
743
- feature?: GlacierApiFeature;
1484
+ feature?: ApiFeature;
744
1485
  }): CancelablePromise<ListChainsResponse>;
745
1486
  /**
746
1487
  * Get chain information
747
- * Gets chain information for the EVM-compatible chain if supported by the api.
1488
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
748
1489
  * @returns GetChainResponse Successful response
749
1490
  * @throws ApiError
750
1491
  */
751
1492
  getChainInfo({ chainId, }: {
752
1493
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1494
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
754
1495
  */
755
1496
  chainId: string;
756
1497
  }): CancelablePromise<GetChainResponse>;
1498
+ /**
1499
+ * @deprecated
1500
+ * **[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.
1501
+ *
1502
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1503
+ * @returns ListAddressChainsResponse Successful response
1504
+ * @throws ApiError
1505
+ */
1506
+ getAddressChains({ address, }: {
1507
+ /**
1508
+ * A wallet address.
1509
+ */
1510
+ address: string;
1511
+ }): CancelablePromise<ListAddressChainsResponse>;
1512
+ /**
1513
+ * @deprecated
1514
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1515
+ *
1516
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1517
+ * @returns ListNativeTransactionsResponse Successful response
1518
+ * @throws ApiError
1519
+ */
1520
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1521
+ /**
1522
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1523
+ */
1524
+ pageToken?: string;
1525
+ /**
1526
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1527
+ */
1528
+ pageSize?: number;
1529
+ /**
1530
+ * Either mainnet or testnet/fuji.
1531
+ */
1532
+ network?: Network;
1533
+ /**
1534
+ * A status filter for listed transactions.
1535
+ */
1536
+ status?: TransactionStatus;
1537
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1538
+ /**
1539
+ * @deprecated
1540
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1541
+ *
1542
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1543
+ * @returns ListEvmBlocksResponse Successful response
1544
+ * @throws ApiError
1545
+ */
1546
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1547
+ /**
1548
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1549
+ */
1550
+ pageToken?: string;
1551
+ /**
1552
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1553
+ */
1554
+ pageSize?: number;
1555
+ /**
1556
+ * Either mainnet or testnet/fuji.
1557
+ */
1558
+ network?: Network;
1559
+ }): CancelablePromise<ListEvmBlocksResponse>;
757
1560
  }
758
1561
 
759
1562
  type ImageAsset = {
@@ -925,7 +1728,7 @@ type Erc1155Contract = {
925
1728
  * A wallet or contract address in mixed-case checksum encoding.
926
1729
  */
927
1730
  address: string;
928
- deploymentDetails: ContractDeploymentDetails;
1731
+ deploymentDetails?: ContractDeploymentDetails;
929
1732
  ercType: Erc1155Contract.ercType;
930
1733
  /**
931
1734
  * The contract symbol.
@@ -956,7 +1759,7 @@ type Erc20Contract = {
956
1759
  * A wallet or contract address in mixed-case checksum encoding.
957
1760
  */
958
1761
  address: string;
959
- deploymentDetails: ContractDeploymentDetails;
1762
+ deploymentDetails?: ContractDeploymentDetails;
960
1763
  ercType: Erc20Contract.ercType;
961
1764
  /**
962
1765
  * The contract symbol.
@@ -991,7 +1794,7 @@ type Erc721Contract = {
991
1794
  * A wallet or contract address in mixed-case checksum encoding.
992
1795
  */
993
1796
  address: string;
994
- deploymentDetails: ContractDeploymentDetails;
1797
+ deploymentDetails?: ContractDeploymentDetails;
995
1798
  ercType: Erc721Contract.ercType;
996
1799
  /**
997
1800
  * The contract symbol.
@@ -1021,7 +1824,7 @@ type UnknownContract = {
1021
1824
  * A wallet or contract address in mixed-case checksum encoding.
1022
1825
  */
1023
1826
  address: string;
1024
- deploymentDetails: ContractDeploymentDetails;
1827
+ deploymentDetails?: ContractDeploymentDetails;
1025
1828
  ercType: UnknownContract.ercType;
1026
1829
  };
1027
1830
  declare namespace UnknownContract {
@@ -1045,7 +1848,7 @@ declare class EvmContractsService {
1045
1848
  */
1046
1849
  getContractMetadata({ chainId, address, }: {
1047
1850
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1851
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1852
  */
1050
1853
  chainId: string;
1051
1854
  /**
@@ -1061,7 +1864,7 @@ declare class EvmContractsService {
1061
1864
  */
1062
1865
  updateContractInfo({ chainId, address, requestBody, }: {
1063
1866
  /**
1064
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1867
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
1868
  */
1066
1869
  chainId: string;
1067
1870
  /**
@@ -1088,29 +1891,6 @@ declare namespace Erc1155Token {
1088
1891
  }
1089
1892
  }
1090
1893
 
1091
- type RichAddress = {
1092
- /**
1093
- * The contract name.
1094
- */
1095
- name?: string;
1096
- /**
1097
- * The contract symbol.
1098
- */
1099
- symbol?: string;
1100
- /**
1101
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
- */
1103
- decimals?: number;
1104
- /**
1105
- * The logo uri for the address.
1106
- */
1107
- logoUri?: string;
1108
- /**
1109
- * A wallet or contract address in mixed-case checksum encoding.
1110
- */
1111
- address: string;
1112
- };
1113
-
1114
1894
  type Erc1155TransferDetails = {
1115
1895
  from: RichAddress;
1116
1896
  to: RichAddress;
@@ -1195,27 +1975,6 @@ type Erc721TransferDetails = {
1195
1975
  erc721Token: Erc721Token;
1196
1976
  };
1197
1977
 
1198
- /**
1199
- * 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.
1200
- */
1201
- declare enum TransactionMethodType {
1202
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
- CONTRACT_CALL = "CONTRACT_CALL",
1204
- CONTRACT_CREATION = "CONTRACT_CREATION"
1205
- }
1206
-
1207
- type Method = {
1208
- callType: TransactionMethodType;
1209
- /**
1210
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1211
- */
1212
- methodHash: string;
1213
- /**
1214
- * 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'.
1215
- */
1216
- methodName?: string;
1217
- };
1218
-
1219
1978
  type FullNativeTransactionDetails = {
1220
1979
  /**
1221
1980
  * The block number on the chain.
@@ -1229,6 +1988,10 @@ type FullNativeTransactionDetails = {
1229
1988
  * The block hash identifier.
1230
1989
  */
1231
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1232
1995
  /**
1233
1996
  * The index at which the transaction occured in the block (0-indexed).
1234
1997
  */
@@ -1279,6 +2042,7 @@ declare enum InternalTransactionOpCall {
1279
2042
  CALL = "CALL",
1280
2043
  CREATE = "CREATE",
1281
2044
  CREATE2 = "CREATE2",
2045
+ CREATE3 = "CREATE3",
1282
2046
  CALLCODE = "CALLCODE",
1283
2047
  DELEGATECALL = "DELEGATECALL",
1284
2048
  STATICCALL = "STATICCALL"
@@ -1309,6 +2073,24 @@ type NetworkTokenDetails = {
1309
2073
  historicalPrice?: Money;
1310
2074
  };
1311
2075
 
2076
+ declare enum TransactionDirectionType {
2077
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
2078
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
2079
+ }
2080
+
2081
+ type TeleporterMessageInfo = {
2082
+ teleporterMessageId: string;
2083
+ direction: TransactionDirectionType;
2084
+ /**
2085
+ * chain id of the source chain. valid only for destination transactions
2086
+ */
2087
+ sourceChainId?: Record<string, any>;
2088
+ /**
2089
+ * chain id of the destination chain. valid only for source transactions
2090
+ */
2091
+ destinationChainId?: Record<string, any>;
2092
+ };
2093
+
1312
2094
  type GetTransactionResponse = {
1313
2095
  /**
1314
2096
  * The list of ERC-20 transfers.
@@ -1323,11 +2105,15 @@ type GetTransactionResponse = {
1323
2105
  */
1324
2106
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1325
2107
  /**
1326
- * 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.
2108
+ * 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.
1327
2109
  */
1328
2110
  internalTransactions?: Array<InternalTransactionDetails>;
1329
2111
  networkTokenDetails: NetworkTokenDetails;
1330
2112
  nativeTransaction: FullNativeTransactionDetails;
2113
+ /**
2114
+ * Corresponding teleporter message info if available.
2115
+ */
2116
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
2117
  };
1332
2118
 
1333
2119
  type ListContractsResponse = {
@@ -1402,75 +2188,7 @@ type ListErc20TransactionsResponse = {
1402
2188
  transactions: Array<Erc20Transfer>;
1403
2189
  };
1404
2190
 
1405
- type Erc721Transfer = {
1406
- /**
1407
- * The block number on the chain.
1408
- */
1409
- blockNumber: string;
1410
- /**
1411
- * The block finality timestamp.
1412
- */
1413
- blockTimestamp: number;
1414
- /**
1415
- * The block hash identifier.
1416
- */
1417
- blockHash: string;
1418
- /**
1419
- * The transaction hash identifier.
1420
- */
1421
- txHash: string;
1422
- from: RichAddress;
1423
- to: RichAddress;
1424
- logIndex: number;
1425
- erc721Token: Erc721Token;
1426
- };
1427
-
1428
- type ListErc721TransactionsResponse = {
1429
- /**
1430
- * 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.
1431
- */
1432
- nextPageToken?: string;
1433
- transactions: Array<Erc721Transfer>;
1434
- };
1435
-
1436
- type InternalTransaction = {
1437
- /**
1438
- * The block number on the chain.
1439
- */
1440
- blockNumber: string;
1441
- /**
1442
- * The block finality timestamp.
1443
- */
1444
- blockTimestamp: number;
1445
- /**
1446
- * The block hash identifier.
1447
- */
1448
- blockHash: string;
1449
- /**
1450
- * The transaction hash identifier.
1451
- */
1452
- txHash: string;
1453
- from: RichAddress;
1454
- to: RichAddress;
1455
- internalTxType: InternalTransactionOpCall;
1456
- value: string;
1457
- /**
1458
- * True if the internal transaction was reverted.
1459
- */
1460
- isReverted: boolean;
1461
- gasUsed: string;
1462
- gasLimit: string;
1463
- };
1464
-
1465
- type ListInternalTransactionsResponse = {
1466
- /**
1467
- * 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.
1468
- */
1469
- nextPageToken?: string;
1470
- transactions: Array<InternalTransaction>;
1471
- };
1472
-
1473
- type NativeTransaction = {
2191
+ type Erc721Transfer = {
1474
2192
  /**
1475
2193
  * The block number on the chain.
1476
2194
  */
@@ -1483,50 +2201,61 @@ type NativeTransaction = {
1483
2201
  * The block hash identifier.
1484
2202
  */
1485
2203
  blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
2204
  /**
1491
2205
  * The transaction hash identifier.
1492
2206
  */
1493
2207
  txHash: string;
2208
+ from: RichAddress;
2209
+ to: RichAddress;
2210
+ logIndex: number;
2211
+ erc721Token: Erc721Token;
2212
+ };
2213
+
2214
+ type ListErc721TransactionsResponse = {
1494
2215
  /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
2216
+ * 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.
1496
2217
  */
1497
- txStatus: string;
2218
+ nextPageToken?: string;
2219
+ transactions: Array<Erc721Transfer>;
2220
+ };
2221
+
2222
+ type InternalTransaction = {
1498
2223
  /**
1499
- * The transaction type.
2224
+ * Sender address
1500
2225
  */
1501
- txType: number;
2226
+ from: string;
1502
2227
  /**
1503
- * The gas limit set for the transaction.
2228
+ * Recipient address
1504
2229
  */
1505
- gasLimit: string;
2230
+ to: string;
1506
2231
  /**
1507
- * The amount of gas used.
2232
+ * Internal transaction type
2233
+ */
2234
+ internalTxType: string;
2235
+ /**
2236
+ * Value transferred
2237
+ */
2238
+ value: string;
2239
+ /**
2240
+ * Gas used
1508
2241
  */
1509
2242
  gasUsed: string;
1510
2243
  /**
1511
- * The gas price denominated by the number of decimals of the native token.
2244
+ * Gas limit
1512
2245
  */
1513
- gasPrice: string;
2246
+ gasLimit: string;
1514
2247
  /**
1515
- * The nonce used by the sender of the transaction.
2248
+ * Transaction hash
1516
2249
  */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
2250
+ transactionHash: string;
1522
2251
  };
1523
2252
 
1524
- type ListNativeTransactionsResponse = {
2253
+ type ListInternalTransactionsResponse = {
1525
2254
  /**
1526
2255
  * 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.
1527
2256
  */
1528
2257
  nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
2258
+ transactions: Array<InternalTransaction>;
1530
2259
  };
1531
2260
 
1532
2261
  type TransactionDetails = {
@@ -1547,7 +2276,7 @@ type TransactionDetails = {
1547
2276
  */
1548
2277
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1549
2278
  /**
1550
- * 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.
2279
+ * 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.
1551
2280
  */
1552
2281
  internalTransactions?: Array<InternalTransactionDetails>;
1553
2282
  };
@@ -1573,14 +2302,33 @@ declare enum SortOrder {
1573
2302
  DESC = "desc"
1574
2303
  }
1575
2304
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2305
  declare class EvmTransactionsService {
1582
2306
  readonly httpRequest: BaseHttpRequest;
1583
2307
  constructor(httpRequest: BaseHttpRequest);
2308
+ /**
2309
+ * List the latest transactions across all supported EVM chains
2310
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2311
+ * @returns ListNativeTransactionsResponse Successful response
2312
+ * @throws ApiError
2313
+ */
2314
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2315
+ /**
2316
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2317
+ */
2318
+ pageToken?: string;
2319
+ /**
2320
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2321
+ */
2322
+ pageSize?: number;
2323
+ /**
2324
+ * Either mainnet or testnet/fuji.
2325
+ */
2326
+ network?: Network;
2327
+ /**
2328
+ * A status filter for listed transactions.
2329
+ */
2330
+ status?: TransactionStatus;
2331
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1584
2332
  /**
1585
2333
  * Get deployment transaction
1586
2334
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -1589,7 +2337,7 @@ declare class EvmTransactionsService {
1589
2337
  */
1590
2338
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2339
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2340
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1593
2341
  */
1594
2342
  chainId: string;
1595
2343
  /**
@@ -1609,7 +2357,7 @@ declare class EvmTransactionsService {
1609
2357
  */
1610
2358
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1611
2359
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2360
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2361
  */
1614
2362
  chainId: string;
1615
2363
  /**
@@ -1633,7 +2381,7 @@ declare class EvmTransactionsService {
1633
2381
  */
1634
2382
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2383
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2384
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2385
  */
1638
2386
  chainId: string;
1639
2387
  /**
@@ -1667,7 +2415,7 @@ declare class EvmTransactionsService {
1667
2415
  */
1668
2416
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1669
2417
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2418
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2419
  */
1672
2420
  chainId: string;
1673
2421
  /**
@@ -1703,7 +2451,7 @@ declare class EvmTransactionsService {
1703
2451
  */
1704
2452
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2453
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2454
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2455
  */
1708
2456
  chainId: string;
1709
2457
  /**
@@ -1735,7 +2483,7 @@ declare class EvmTransactionsService {
1735
2483
  */
1736
2484
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
2485
  /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2486
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
2487
  */
1740
2488
  chainId: string;
1741
2489
  /**
@@ -1767,7 +2515,7 @@ declare class EvmTransactionsService {
1767
2515
  */
1768
2516
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
2517
  /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2518
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
2519
  */
1772
2520
  chainId: string;
1773
2521
  /**
@@ -1799,7 +2547,7 @@ declare class EvmTransactionsService {
1799
2547
  */
1800
2548
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
2549
  /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2550
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
2551
  */
1804
2552
  chainId: string;
1805
2553
  /**
@@ -1827,13 +2575,13 @@ declare class EvmTransactionsService {
1827
2575
  * List internal transactions
1828
2576
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
2577
  *
1830
- * 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.
2578
+ * 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.
1831
2579
  * @returns ListInternalTransactionsResponse Successful response
1832
2580
  * @throws ApiError
1833
2581
  */
1834
2582
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
2583
  /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2584
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1837
2585
  */
1838
2586
  chainId: string;
1839
2587
  /**
@@ -1865,7 +2613,7 @@ declare class EvmTransactionsService {
1865
2613
  */
1866
2614
  getTransaction({ chainId, txHash, }: {
1867
2615
  /**
1868
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2616
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1869
2617
  */
1870
2618
  chainId: string;
1871
2619
  /**
@@ -1879,15 +2627,23 @@ declare class EvmTransactionsService {
1879
2627
  * @returns ListNativeTransactionsResponse Successful response
1880
2628
  * @throws ApiError
1881
2629
  */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
2630
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
1883
2631
  /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2632
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1885
2633
  */
1886
2634
  chainId: string;
1887
2635
  /**
1888
2636
  * A block identifier which is either a block number or the block hash.
1889
2637
  */
1890
2638
  blockId: string;
2639
+ /**
2640
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2641
+ */
2642
+ pageToken?: string;
2643
+ /**
2644
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2645
+ */
2646
+ pageSize?: number;
1891
2647
  }): CancelablePromise<ListNativeTransactionsResponse>;
1892
2648
  /**
1893
2649
  * List latest transactions
@@ -1897,7 +2653,7 @@ declare class EvmTransactionsService {
1897
2653
  */
1898
2654
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1899
2655
  /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2656
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1901
2657
  */
1902
2658
  chainId: string;
1903
2659
  /**
@@ -1915,309 +2671,261 @@ declare class EvmTransactionsService {
1915
2671
  }): CancelablePromise<ListNativeTransactionsResponse>;
1916
2672
  }
1917
2673
 
1918
- type LogsFormatMetadata = {
1919
- /**
1920
- * The IP address of the client that made the request.
1921
- */
1922
- ipAddress: string;
2674
+ type HealthIndicatorResultDto = {
1923
2675
  /**
1924
- * The host for the request made by the client.
2676
+ * Status of the health indicator.
1925
2677
  */
1926
- host: string;
2678
+ status?: HealthIndicatorResultDto.status;
2679
+ };
2680
+ declare namespace HealthIndicatorResultDto {
1927
2681
  /**
1928
- * The user agent of the client that made the request.
2682
+ * Status of the health indicator.
1929
2683
  */
1930
- userAgent: string;
1931
- };
2684
+ enum status {
2685
+ UP = "up",
2686
+ DOWN = "down"
2687
+ }
2688
+ }
1932
2689
 
1933
- /**
1934
- * The type of request made by the client.
1935
- */
1936
- declare enum RequestType {
1937
- GLACIER_API_REQUEST = "Glacier API Request",
1938
- GLACIER_RPC_REQUEST = "Glacier RPC Request"
2690
+ type HealthCheckResultDto = {
2691
+ status?: HealthCheckResultDto.status;
2692
+ info?: any | null;
2693
+ error?: any | null;
2694
+ details?: Record<string, HealthIndicatorResultDto>;
2695
+ };
2696
+ declare namespace HealthCheckResultDto {
2697
+ enum status {
2698
+ ERROR = "error",
2699
+ OK = "ok",
2700
+ SHUTTING_DOWN = "shutting_down"
2701
+ }
1939
2702
  }
1940
2703
 
1941
- type LogsFormat = {
1942
- /**
1943
- * The organization id of the request.
1944
- */
1945
- orgId: string;
1946
- /**
1947
- * The unique log id of the request.
1948
- */
1949
- logId: string;
1950
- /**
1951
- * The timestamp of the request.
1952
- */
1953
- eventTimestamp: number;
1954
- /**
1955
- * The apiKey used to make the request.
1956
- */
1957
- apiKeyId: string;
1958
- /**
1959
- * The alias of the apiKey used to make the request.
1960
- */
1961
- apiKeyAlias: string;
1962
- /**
1963
- * The region of the host for the request made by the client.
1964
- */
1965
- hostRegion: string;
1966
- requestType: RequestType;
2704
+ declare class HealthCheckService {
2705
+ readonly httpRequest: BaseHttpRequest;
2706
+ constructor(httpRequest: BaseHttpRequest);
1967
2707
  /**
1968
- * The path of the request made by the client.
2708
+ * Get the health of the service
2709
+ * Check the health of the service.
2710
+ * @returns HealthCheckResultDto The health of the service
2711
+ * @throws ApiError
1969
2712
  */
1970
- requestPath: string;
2713
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2714
+ }
2715
+
2716
+ type IcmDestinationTransaction = {
2717
+ txHash: string;
2718
+ timestamp: number;
2719
+ gasSpent: string;
2720
+ rewardRedeemer: string;
2721
+ delivererAddress: string;
2722
+ };
2723
+
2724
+ type IcmReceipt = {
2725
+ receivedMessageNonce: string;
2726
+ relayerRewardAddress: string;
2727
+ };
2728
+
2729
+ type IcmRewardDetails = {
1971
2730
  /**
1972
- * The number of API credits consumed by the request.
2731
+ * A wallet or contract address in mixed-case checksum encoding.
1973
2732
  */
1974
- apiCreditsConsumed: number;
2733
+ address: string;
1975
2734
  /**
1976
- * The duration of the request in milliseconds.
2735
+ * The contract name.
1977
2736
  */
1978
- requestDurationMsecs: number;
2737
+ name: string;
1979
2738
  /**
1980
- * The response code of the request.
2739
+ * The contract symbol.
1981
2740
  */
1982
- responseCode: number;
2741
+ symbol: string;
1983
2742
  /**
1984
- * The chain id of the request.
2743
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1985
2744
  */
1986
- chainId?: string;
2745
+ decimals: number;
1987
2746
  /**
1988
- * The rpc method of the request.
2747
+ * The logo uri for the address.
1989
2748
  */
1990
- rpcMethod?: string;
2749
+ logoUri?: string;
2750
+ ercType: IcmRewardDetails.ercType;
1991
2751
  /**
1992
- * The metadata of the request.
2752
+ * The token price, if available.
1993
2753
  */
1994
- metadata: LogsFormatMetadata;
2754
+ price?: Money;
2755
+ value: string;
1995
2756
  };
2757
+ declare namespace IcmRewardDetails {
2758
+ enum ercType {
2759
+ ERC_20 = "ERC-20"
2760
+ }
2761
+ }
1996
2762
 
1997
- type LogsResponseDTO = {
1998
- /**
1999
- * 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
- */
2001
- nextPageToken?: string;
2002
- /**
2003
- * The organization id of the request.
2004
- */
2005
- orgId: string;
2006
- /**
2007
- * An array of logs representing the requests made by clients.
2008
- */
2009
- logs: Array<LogsFormat>;
2763
+ type IcmSourceTransaction = {
2764
+ txHash: string;
2765
+ timestamp: number;
2766
+ gasSpent: string;
2010
2767
  };
2011
2768
 
2012
- declare enum TimeIntervalGranularityExtended {
2013
- MINUTE = "minute",
2014
- HOURLY = "hourly",
2015
- DAILY = "daily",
2016
- WEEKLY = "weekly",
2017
- MONTHLY = "monthly"
2018
- }
2019
-
2020
- declare enum UsageMetricsGroupByEnum {
2021
- REQUEST_PATH = "requestPath",
2022
- RESPONSE_CODE = "responseCode",
2023
- CHAIN_ID = "chainId",
2024
- API_KEY_ID = "apiKeyId",
2025
- REQUEST_TYPE = "requestType"
2769
+ type DeliveredIcmMessage = {
2770
+ messageId: string;
2771
+ icmContractAddress: string;
2772
+ sourceBlockchainId: string;
2773
+ destinationBlockchainId: string;
2774
+ sourceEvmChainId: string;
2775
+ destinationEvmChainId: string;
2776
+ messageNonce: string;
2777
+ from: string;
2778
+ to: string;
2779
+ data?: string;
2780
+ messageExecuted: boolean;
2781
+ receipts: Array<IcmReceipt>;
2782
+ receiptDelivered: boolean;
2783
+ rewardDetails: IcmRewardDetails;
2784
+ sourceTransaction: IcmSourceTransaction;
2785
+ destinationTransaction: IcmDestinationTransaction;
2786
+ status: DeliveredIcmMessage.status;
2787
+ };
2788
+ declare namespace DeliveredIcmMessage {
2789
+ enum status {
2790
+ DELIVERED = "delivered"
2791
+ }
2026
2792
  }
2027
2793
 
2028
- type UsageMetricsValueDTO = {
2029
- /**
2030
- * Column name used for data aggregation
2031
- */
2032
- groupedBy: UsageMetricsValueDTO.groupedBy;
2033
- /**
2034
- * The value of the column used for data aggregation
2035
- */
2036
- groupValue?: (string | number);
2037
- /**
2038
- * The total number of requests
2039
- */
2040
- totalRequests: number;
2041
- /**
2042
- * The number of requests per second
2043
- */
2044
- requestsPerSecond: number;
2045
- /**
2046
- * The success rate percentage
2047
- */
2048
- successRatePercent: number;
2049
- /**
2050
- * The median response time in milliseconds
2051
- */
2052
- medianResponseTimeMsecs: number;
2053
- /**
2054
- * The number of invalid requests
2055
- */
2056
- invalidRequests: number;
2057
- /**
2058
- * The number of API credits used
2059
- */
2060
- apiCreditsUsed: number;
2061
- /**
2062
- * The number of API credits wasted on invalid requests
2063
- */
2064
- apiCreditsWasted: number;
2794
+ type DeliveredSourceNotIndexedIcmMessage = {
2795
+ messageId: string;
2796
+ icmContractAddress: string;
2797
+ sourceBlockchainId: string;
2798
+ destinationBlockchainId: string;
2799
+ sourceEvmChainId: string;
2800
+ destinationEvmChainId: string;
2801
+ messageNonce: string;
2802
+ from: string;
2803
+ to: string;
2804
+ data?: string;
2805
+ messageExecuted: boolean;
2806
+ receipts: Array<IcmReceipt>;
2807
+ receiptDelivered: boolean;
2808
+ rewardDetails: IcmRewardDetails;
2809
+ destinationTransaction: IcmDestinationTransaction;
2810
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2065
2811
  };
2066
- declare namespace UsageMetricsValueDTO {
2067
- /**
2068
- * Column name used for data aggregation
2069
- */
2070
- enum groupedBy {
2071
- REQUEST_PATH = "requestPath",
2072
- RESPONSE_CODE = "responseCode",
2073
- CHAIN_ID = "chainId",
2074
- API_KEY_ID = "apiKeyId",
2075
- REQUEST_TYPE = "requestType",
2076
- NONE = "None"
2812
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2813
+ enum status {
2814
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2077
2815
  }
2078
2816
  }
2079
2817
 
2080
- type Metric = {
2081
- /**
2082
- * The timestamp of the metrics value
2083
- */
2084
- timestamp: number;
2085
- /**
2086
- * The metrics values for the timestamp
2087
- */
2088
- values: Array<UsageMetricsValueDTO>;
2818
+ type PendingIcmMessage = {
2819
+ messageId: string;
2820
+ icmContractAddress: string;
2821
+ sourceBlockchainId: string;
2822
+ destinationBlockchainId: string;
2823
+ sourceEvmChainId: string;
2824
+ destinationEvmChainId: string;
2825
+ messageNonce: string;
2826
+ from: string;
2827
+ to: string;
2828
+ data?: string;
2829
+ messageExecuted: boolean;
2830
+ receipts: Array<IcmReceipt>;
2831
+ receiptDelivered: boolean;
2832
+ rewardDetails: IcmRewardDetails;
2833
+ sourceTransaction: IcmSourceTransaction;
2834
+ status: PendingIcmMessage.status;
2089
2835
  };
2836
+ declare namespace PendingIcmMessage {
2837
+ enum status {
2838
+ PENDING = "pending"
2839
+ }
2840
+ }
2090
2841
 
2091
- type UsageMetricsResponseDTO = {
2092
- /**
2093
- * Duration in which the metrics value is aggregated
2094
- */
2095
- aggregateDuration: string;
2096
- /**
2097
- * Org ID for which the metrics are aggregated
2098
- */
2099
- orgId: string;
2842
+ type ListIcmMessagesResponse = {
2100
2843
  /**
2101
- * Metrics values
2844
+ * 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.
2102
2845
  */
2103
- metrics: Array<Metric>;
2846
+ nextPageToken?: string;
2847
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2104
2848
  };
2105
2849
 
2106
- declare class GlacierApiUsageMetricsService {
2850
+ declare class InterchainMessagingService {
2107
2851
  readonly httpRequest: BaseHttpRequest;
2108
2852
  constructor(httpRequest: BaseHttpRequest);
2109
2853
  /**
2110
- * Get usage metrics for the Glacier API
2111
- * Gets metrics for Glacier API usage over a specified time interval aggregated at the specified time-duration granularity.
2112
- * @returns UsageMetricsResponseDTO Successful response
2854
+ * Get an ICM message
2855
+ * Gets an ICM message by teleporter message ID.
2856
+ * @returns any Successful response
2113
2857
  * @throws ApiError
2114
2858
  */
2115
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseStatusCode, chainId, apiKeyId, }: {
2116
- /**
2117
- * Organization ID to fetch usage metrics for
2118
- */
2119
- orgId?: string;
2859
+ getIcmMessage({ messageId, }: {
2120
2860
  /**
2121
- * Query param for retrieving items after a specific timestamp.
2861
+ * The teleporter message ID of the ICM message.
2122
2862
  */
2123
- startTimestamp?: number;
2863
+ messageId: string;
2864
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2865
+ /**
2866
+ * List ICM messages
2867
+ * Lists ICM messages. Ordered by timestamp in descending order.
2868
+ * @returns ListIcmMessagesResponse Successful response
2869
+ * @throws ApiError
2870
+ */
2871
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2124
2872
  /**
2125
- * Query param for retrieving items before a specific timestamp.
2873
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2126
2874
  */
2127
- endTimestamp?: number;
2875
+ pageToken?: string;
2128
2876
  /**
2129
- * Time interval granularity for data aggregation
2877
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2130
2878
  */
2131
- timeInterval?: TimeIntervalGranularityExtended;
2879
+ pageSize?: number;
2132
2880
  /**
2133
- * Query param for the criterion used for grouping metrics
2881
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2134
2882
  */
2135
- groupBy?: UsageMetricsGroupByEnum;
2883
+ sourceBlockchainId?: string;
2136
2884
  /**
2137
- * Filter data by request path.
2885
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2138
2886
  */
2139
- requestPath?: string;
2887
+ destinationBlockchainId?: string;
2140
2888
  /**
2141
- * Filter data by request type.
2889
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2142
2890
  */
2143
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
2891
+ blockchainId?: string;
2144
2892
  /**
2145
- * Filter data by response status code.
2893
+ * The address of the recipient of the ICM message.
2146
2894
  */
2147
- responseStatusCode?: string;
2895
+ to?: string;
2148
2896
  /**
2149
- * Filter data by chain ID.
2897
+ * The address of the sender of the ICM message.
2150
2898
  */
2151
- chainId?: string;
2899
+ from?: string;
2152
2900
  /**
2153
- * Filter data by API key ID.
2901
+ * Either mainnet or testnet/fuji.
2154
2902
  */
2155
- apiKeyId?: string;
2156
- }): CancelablePromise<UsageMetricsResponseDTO>;
2903
+ network?: Network;
2904
+ }): CancelablePromise<ListIcmMessagesResponse>;
2157
2905
  /**
2158
- * Get logs for requests made by client
2159
- * Gets logs for requests made by client over a specified time interval for a specific organization.
2160
- * @returns LogsResponseDTO Successful response
2906
+ * List ICM messages by address
2907
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2908
+ * @returns ListIcmMessagesResponse Successful response
2161
2909
  * @throws ApiError
2162
2910
  */
2163
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseStatusCode, chainId, apiKeyId, pageToken, pageSize, }: {
2164
- /**
2165
- * Organization ID to fetch usage metrics for
2166
- */
2167
- orgId?: string;
2168
- /**
2169
- * Query param for retrieving items after a specific timestamp.
2170
- */
2171
- startTimestamp?: number;
2172
- /**
2173
- * Query param for retrieving items before a specific timestamp.
2174
- */
2175
- endTimestamp?: number;
2176
- /**
2177
- * Filter data by request path.
2178
- */
2179
- requestPath?: string;
2180
- /**
2181
- * Filter data by request type.
2182
- */
2183
- requestType?: 'Glacier API Request' | 'Glacier RPC Request';
2184
- /**
2185
- * Filter data by response status code.
2186
- */
2187
- responseStatusCode?: string;
2911
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2188
2912
  /**
2189
- * Filter data by chain ID.
2190
- */
2191
- chainId?: string;
2192
- /**
2193
- * Filter data by API key ID.
2913
+ * An EVM address.
2194
2914
  */
2195
- apiKeyId?: string;
2915
+ address: string;
2196
2916
  /**
2197
2917
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2198
2918
  */
2199
2919
  pageToken?: string;
2200
2920
  /**
2201
- * The maximum number of items to return.
2921
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2202
2922
  */
2203
2923
  pageSize?: number;
2204
- }): CancelablePromise<LogsResponseDTO>;
2205
- }
2206
-
2207
- declare class HealthCheckService {
2208
- readonly httpRequest: BaseHttpRequest;
2209
- constructor(httpRequest: BaseHttpRequest);
2210
- /**
2211
- * Get the health of the service
2212
- * @returns any The Health Check is successful
2213
- * @throws ApiError
2214
- */
2215
- glacierHealthCheck(): CancelablePromise<{
2216
- status?: string;
2217
- info?: Record<string, Record<string, string>> | null;
2218
- error?: Record<string, Record<string, string>> | null;
2219
- details?: Record<string, Record<string, string>>;
2220
- }>;
2924
+ /**
2925
+ * Either mainnet or testnet/fuji.
2926
+ */
2927
+ network?: Network;
2928
+ }): CancelablePromise<ListIcmMessagesResponse>;
2221
2929
  }
2222
2930
 
2223
2931
  type ListNftTokens = {
@@ -2239,7 +2947,7 @@ declare class NfTsService {
2239
2947
  */
2240
2948
  reindexNft({ chainId, address, tokenId, }: {
2241
2949
  /**
2242
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2950
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2243
2951
  */
2244
2952
  chainId: string;
2245
2953
  /**
@@ -2259,7 +2967,7 @@ declare class NfTsService {
2259
2967
  */
2260
2968
  listTokens({ chainId, address, pageToken, pageSize, }: {
2261
2969
  /**
2262
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2970
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2263
2971
  */
2264
2972
  chainId: string;
2265
2973
  /**
@@ -2283,7 +2991,7 @@ declare class NfTsService {
2283
2991
  */
2284
2992
  getTokenDetails({ chainId, address, tokenId, }: {
2285
2993
  /**
2286
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2994
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2287
2995
  */
2288
2996
  chainId: string;
2289
2997
  /**
@@ -2297,6 +3005,108 @@ declare class NfTsService {
2297
3005
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2298
3006
  }
2299
3007
 
3008
+ type AccessRequest = {
3009
+ /**
3010
+ * The email address to send the access token to
3011
+ */
3012
+ email: string;
3013
+ /**
3014
+ * The captcha to verify the user
3015
+ */
3016
+ captcha: string;
3017
+ };
3018
+
3019
+ type NotificationsResponse = {
3020
+ message: string;
3021
+ };
3022
+
3023
+ type SubscribeRequest = {
3024
+ /**
3025
+ * The access token to use for authentication
3026
+ */
3027
+ accessToken: string;
3028
+ /**
3029
+ * The node ID to subscribe to
3030
+ */
3031
+ nodeId: string;
3032
+ /**
3033
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3034
+ */
3035
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3036
+ };
3037
+
3038
+ type SubscriptionsRequest = {
3039
+ /**
3040
+ * The access token to use for authentication
3041
+ */
3042
+ accessToken: string;
3043
+ };
3044
+
3045
+ type SubscriptionsResponse = {
3046
+ /**
3047
+ * The email address of the user
3048
+ */
3049
+ email: string;
3050
+ /**
3051
+ * The subscriptions of the user
3052
+ */
3053
+ subscriptions: Record<string, {
3054
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3055
+ }>;
3056
+ };
3057
+
3058
+ type UnsubscribeRequest = {
3059
+ /**
3060
+ * The access token to use for authentication
3061
+ */
3062
+ accessToken: string;
3063
+ /**
3064
+ * The node ID to subscribe to
3065
+ */
3066
+ nodeId: string;
3067
+ };
3068
+
3069
+ declare class NotificationsService {
3070
+ readonly httpRequest: BaseHttpRequest;
3071
+ constructor(httpRequest: BaseHttpRequest);
3072
+ /**
3073
+ * Access Notifications
3074
+ * Access notifications.
3075
+ * @returns NotificationsResponse Successful response
3076
+ * @throws ApiError
3077
+ */
3078
+ access({ requestBody, }: {
3079
+ requestBody: AccessRequest;
3080
+ }): CancelablePromise<NotificationsResponse>;
3081
+ /**
3082
+ * Subscribe to Notifications
3083
+ * Subscribe to receive notifications.
3084
+ * @returns NotificationsResponse Successful response
3085
+ * @throws ApiError
3086
+ */
3087
+ subscribe({ requestBody, }: {
3088
+ requestBody: SubscribeRequest;
3089
+ }): CancelablePromise<NotificationsResponse>;
3090
+ /**
3091
+ * Unsubscribe from Notifications
3092
+ * Unsubscribe from receiving notifications.
3093
+ * @returns NotificationsResponse Successful response
3094
+ * @throws ApiError
3095
+ */
3096
+ unsubscribe({ requestBody, }: {
3097
+ requestBody: UnsubscribeRequest;
3098
+ }): CancelablePromise<NotificationsResponse>;
3099
+ /**
3100
+ * Get Subscriptions
3101
+ * Get subscriptions.
3102
+ * @returns SubscriptionsResponse Successful response
3103
+ * @throws ApiError
3104
+ */
3105
+ subscriptions({ requestBody, }: {
3106
+ requestBody: SubscriptionsRequest;
3107
+ }): CancelablePromise<SubscriptionsResponse>;
3108
+ }
3109
+
2300
3110
  type EvmNetworkOptions = {
2301
3111
  addresses: Array<string>;
2302
3112
  includeChains: Array<string>;
@@ -2308,16 +3118,16 @@ declare enum EVMOperationType {
2308
3118
 
2309
3119
  type CreateEvmTransactionExportRequest = {
2310
3120
  type: EVMOperationType;
2311
- firstDate: string;
2312
- lastDate: string;
3121
+ firstDate?: string;
3122
+ lastDate?: string;
2313
3123
  /**
2314
3124
  * @deprecated
2315
3125
  */
2316
- startDate: string;
3126
+ startDate?: string;
2317
3127
  /**
2318
3128
  * @deprecated
2319
3129
  */
2320
- endDate: string;
3130
+ endDate?: string;
2321
3131
  options: EvmNetworkOptions;
2322
3132
  };
2323
3133
 
@@ -2330,21 +3140,21 @@ declare enum PrimaryNetworkOperationType {
2330
3140
  type PrimaryNetworkOptions = {
2331
3141
  addresses?: Array<string>;
2332
3142
  cChainEvmAddresses?: Array<string>;
2333
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
3143
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2334
3144
  };
2335
3145
 
2336
3146
  type CreatePrimaryNetworkTransactionExportRequest = {
2337
3147
  type: PrimaryNetworkOperationType;
2338
- firstDate: string;
2339
- lastDate: string;
3148
+ firstDate?: string;
3149
+ lastDate?: string;
2340
3150
  /**
2341
3151
  * @deprecated
2342
3152
  */
2343
- startDate: string;
3153
+ startDate?: string;
2344
3154
  /**
2345
3155
  * @deprecated
2346
3156
  */
2347
- endDate: string;
3157
+ endDate?: string;
2348
3158
  options: PrimaryNetworkOptions;
2349
3159
  };
2350
3160
 
@@ -2385,7 +3195,7 @@ type OperationStatusResponse = {
2385
3195
  operationType: OperationType;
2386
3196
  operationStatus: OperationStatus;
2387
3197
  message?: string;
2388
- metadata: TransactionExportMetadata;
3198
+ metadata?: TransactionExportMetadata;
2389
3199
  createdAtTimestamp: number;
2390
3200
  updatedAtTimestamp: number;
2391
3201
  };
@@ -2418,12 +3228,27 @@ declare class OperationsService {
2418
3228
  }): CancelablePromise<OperationStatusResponse>;
2419
3229
  }
2420
3230
 
3231
+ type Blockchain = {
3232
+ createBlockTimestamp: number;
3233
+ createBlockNumber: string;
3234
+ blockchainId: string;
3235
+ vmId: string;
3236
+ subnetId: string;
3237
+ blockchainName: string;
3238
+ /**
3239
+ * 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.
3240
+ */
3241
+ evmChainId: number;
3242
+ };
3243
+
2421
3244
  declare enum BlockchainIds {
2422
3245
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2423
3246
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2424
3247
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3248
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2425
3249
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2426
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
3250
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3251
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2427
3252
  }
2428
3253
 
2429
3254
  type ChainAddressChainIdMap = {
@@ -2447,16 +3272,31 @@ type DelegatorsDetails = {
2447
3272
  };
2448
3273
 
2449
3274
  type StakingDistribution = {
3275
+ /**
3276
+ * AvalancheGo version for the validator node.
3277
+ */
2450
3278
  version: string;
3279
+ /**
3280
+ * The total amount staked by validators using this version.
3281
+ */
2451
3282
  amountStaked: string;
3283
+ /**
3284
+ * The number of validators using this version.
3285
+ */
2452
3286
  validatorCount: number;
2453
3287
  };
2454
3288
 
2455
3289
  type ValidatorsDetails = {
2456
3290
  validatorCount: number;
2457
3291
  totalAmountStaked: string;
3292
+ /**
3293
+ * Total potential rewards from currently active validations and delegations.
3294
+ */
2458
3295
  estimatedAnnualStakingReward: string;
2459
3296
  stakingDistributionByVersion: Array<StakingDistribution>;
3297
+ /**
3298
+ * Ratio of total active stake amount to the current supply.
3299
+ */
2460
3300
  stakingRatio: string;
2461
3301
  };
2462
3302
 
@@ -2465,15 +3305,6 @@ type GetNetworkDetailsResponse = {
2465
3305
  delegatorDetails: DelegatorsDetails;
2466
3306
  };
2467
3307
 
2468
- type Blockchain = {
2469
- createBlockTimestamp: number;
2470
- createBlockNumber: string;
2471
- blockchainId: string;
2472
- vmId: string;
2473
- subnetId: string;
2474
- blockchainName: string;
2475
- };
2476
-
2477
3308
  type ListBlockchainsResponse = {
2478
3309
  /**
2479
3310
  * 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.
@@ -2508,7 +3339,13 @@ type CompletedDelegatorDetails = {
2508
3339
  delegationFee: string;
2509
3340
  startTimestamp: number;
2510
3341
  endTimestamp: number;
3342
+ /**
3343
+ * Total rewards distributed for the successful delegation.
3344
+ */
2511
3345
  grossReward: string;
3346
+ /**
3347
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3348
+ */
2512
3349
  netReward: string;
2513
3350
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2514
3351
  };
@@ -2526,29 +3363,90 @@ type PendingDelegatorDetails = {
2526
3363
  delegationFee: string;
2527
3364
  startTimestamp: number;
2528
3365
  endTimestamp: number;
3366
+ /**
3367
+ * Estimated total rewards that will be distributed for the successful delegation.
3368
+ */
2529
3369
  estimatedGrossReward: string;
3370
+ /**
3371
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3372
+ */
2530
3373
  estimatedNetReward: string;
2531
3374
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2532
3375
  };
2533
- declare namespace PendingDelegatorDetails {
2534
- enum delegationStatus {
2535
- PENDING = "pending"
2536
- }
2537
- }
3376
+ declare namespace PendingDelegatorDetails {
3377
+ enum delegationStatus {
3378
+ PENDING = "pending"
3379
+ }
3380
+ }
3381
+
3382
+ type ListDelegatorDetailsResponse = {
3383
+ /**
3384
+ * 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.
3385
+ */
3386
+ nextPageToken?: string;
3387
+ /**
3388
+ * The list of Delegator Details.
3389
+ */
3390
+ delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
3391
+ };
3392
+
3393
+ type BalanceOwner = {
3394
+ addresses: Array<string>;
3395
+ threshold: number;
3396
+ };
3397
+
3398
+ type L1ValidatorDetailsFull = {
3399
+ /**
3400
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3401
+ */
3402
+ validationId: string;
3403
+ /**
3404
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3405
+ */
3406
+ validationIdHex: string;
3407
+ nodeId: string;
3408
+ subnetId: string;
3409
+ /**
3410
+ * 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
3411
+ */
3412
+ weight: number;
3413
+ /**
3414
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3415
+ */
3416
+ remainingBalance: number;
3417
+ /**
3418
+ * The timestamp of the transaction which created this L1 validator
3419
+ */
3420
+ creationTimestamp: number;
3421
+ blsCredentials: Record<string, any>;
3422
+ /**
3423
+ * The L1 validator owner's balance, returned after it's disabled or removed
3424
+ */
3425
+ remainingBalanceOwner: BalanceOwner;
3426
+ /**
3427
+ * Owner ddresses details which can disable or remove the L1 validator
3428
+ */
3429
+ deactivationOwner: BalanceOwner;
3430
+ };
2538
3431
 
2539
- type ListDelegatorDetailsResponse = {
3432
+ type ListL1ValidatorsResponse = {
2540
3433
  /**
2541
3434
  * 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.
2542
3435
  */
2543
3436
  nextPageToken?: string;
2544
3437
  /**
2545
- * The list of Delegator Details.
3438
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2546
3439
  */
2547
- delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
3440
+ validators: Array<L1ValidatorDetailsFull>;
3441
+ /**
3442
+ * Block height at which the L1 validator's remaining balance is calculated
3443
+ */
3444
+ blockHeight: string;
2548
3445
  };
2549
3446
 
2550
- type BlockchainInfo = {
3447
+ type L1ValidatorManagerDetails = {
2551
3448
  blockchainId: string;
3449
+ contractAddress: string;
2552
3450
  };
2553
3451
 
2554
3452
  type SubnetOwnershipInfo = {
@@ -2589,7 +3487,19 @@ type Subnet = {
2589
3487
  * Latest subnet owner details for this Subnet.
2590
3488
  */
2591
3489
  subnetOwnershipInfo: SubnetOwnershipInfo;
2592
- blockchains: Array<BlockchainInfo>;
3490
+ /**
3491
+ * Whether the subnet is an L1 or not.
3492
+ */
3493
+ isL1: boolean;
3494
+ /**
3495
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3496
+ */
3497
+ l1ConversionTransactionHash?: string;
3498
+ /**
3499
+ * L1 validator manager details.
3500
+ */
3501
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3502
+ blockchains: Array<Blockchain>;
2593
3503
  };
2594
3504
 
2595
3505
  type ListSubnetsResponse = {
@@ -2605,6 +3515,29 @@ type BlsCredentials = {
2605
3515
  proofOfPossession: string;
2606
3516
  };
2607
3517
 
3518
+ type Geolocation = {
3519
+ /**
3520
+ * The name of the validator node.
3521
+ */
3522
+ city: string;
3523
+ /**
3524
+ * The city of the validator node.
3525
+ */
3526
+ country: string;
3527
+ /**
3528
+ * The country code of the validator node.
3529
+ */
3530
+ countryCode: string;
3531
+ /**
3532
+ * The latitude of the validator node.
3533
+ */
3534
+ latitude: number;
3535
+ /**
3536
+ * The longitude of the validator node.
3537
+ */
3538
+ longitude: number;
3539
+ };
3540
+
2608
3541
  type Rewards = {
2609
3542
  validationRewardAmount: string;
2610
3543
  delegationRewardAmount: string;
@@ -2636,6 +3569,9 @@ type ActiveValidatorDetails = {
2636
3569
  nodeId: string;
2637
3570
  subnetId: string;
2638
3571
  amountStaked: string;
3572
+ /**
3573
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3574
+ */
2639
3575
  delegationFee?: string;
2640
3576
  startTimestamp: number;
2641
3577
  endTimestamp: number;
@@ -2643,15 +3579,37 @@ type ActiveValidatorDetails = {
2643
3579
  * Present for AddPermissionlessValidatorTx
2644
3580
  */
2645
3581
  blsCredentials?: BlsCredentials;
3582
+ /**
3583
+ * The percentage of this validator's stake amount to the total active stake.
3584
+ */
2646
3585
  stakePercentage: number;
3586
+ /**
3587
+ * The number of delegators linked to the validator.
3588
+ */
2647
3589
  delegatorCount: number;
3590
+ /**
3591
+ * The total amount in nAVAX delegated to the validator.
3592
+ */
2648
3593
  amountDelegated?: string;
3594
+ /**
3595
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3596
+ */
2649
3597
  uptimePerformance: number;
2650
3598
  avalancheGoVersion?: string;
3599
+ /**
3600
+ * The amount of stake in nAVAX that can be delegated to this validator.
3601
+ */
2651
3602
  delegationCapacity?: string;
3603
+ /**
3604
+ * Estimated rewards for the validator if the validation is successful.
3605
+ */
2652
3606
  potentialRewards: Rewards;
2653
3607
  validationStatus: ActiveValidatorDetails.validationStatus;
2654
3608
  validatorHealth: ValidatorHealthDetails;
3609
+ /**
3610
+ * The geographical location of the validator node, if available.
3611
+ */
3612
+ geolocation: Geolocation | null;
2655
3613
  };
2656
3614
  declare namespace ActiveValidatorDetails {
2657
3615
  enum validationStatus {
@@ -2664,6 +3622,9 @@ type CompletedValidatorDetails = {
2664
3622
  nodeId: string;
2665
3623
  subnetId: string;
2666
3624
  amountStaked: string;
3625
+ /**
3626
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3627
+ */
2667
3628
  delegationFee?: string;
2668
3629
  startTimestamp: number;
2669
3630
  endTimestamp: number;
@@ -2672,6 +3633,7 @@ type CompletedValidatorDetails = {
2672
3633
  */
2673
3634
  blsCredentials?: BlsCredentials;
2674
3635
  delegatorCount: number;
3636
+ amountDelegated?: string;
2675
3637
  rewards: Rewards;
2676
3638
  validationStatus: CompletedValidatorDetails.validationStatus;
2677
3639
  };
@@ -2686,6 +3648,9 @@ type PendingValidatorDetails = {
2686
3648
  nodeId: string;
2687
3649
  subnetId: string;
2688
3650
  amountStaked: string;
3651
+ /**
3652
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3653
+ */
2689
3654
  delegationFee?: string;
2690
3655
  startTimestamp: number;
2691
3656
  endTimestamp: number;
@@ -2706,6 +3671,9 @@ type RemovedValidatorDetails = {
2706
3671
  nodeId: string;
2707
3672
  subnetId: string;
2708
3673
  amountStaked: string;
3674
+ /**
3675
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3676
+ */
2709
3677
  delegationFee?: string;
2710
3678
  startTimestamp: number;
2711
3679
  endTimestamp: number;
@@ -2713,7 +3681,13 @@ type RemovedValidatorDetails = {
2713
3681
  * Present for AddPermissionlessValidatorTx
2714
3682
  */
2715
3683
  blsCredentials?: BlsCredentials;
3684
+ /**
3685
+ * The transaction hash that removed the permissioned subnet validator.
3686
+ */
2716
3687
  removeTxHash: string;
3688
+ /**
3689
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3690
+ */
2717
3691
  removeTimestamp: number;
2718
3692
  validationStatus: RemovedValidatorDetails.validationStatus;
2719
3693
  };
@@ -2734,11 +3708,6 @@ type ListValidatorDetailsResponse = {
2734
3708
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2735
3709
  };
2736
3710
 
2737
- declare enum Network {
2738
- MAINNET = "mainnet",
2739
- FUJI = "fuji"
2740
- }
2741
-
2742
3711
  declare enum SortByOption {
2743
3712
  BLOCK_INDEX = "blockIndex",
2744
3713
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2798,6 +3767,7 @@ type XChainAssetDetails = {
2798
3767
  declare enum XChainId {
2799
3768
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2800
3769
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3770
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2801
3771
  X_CHAIN = "x-chain"
2802
3772
  }
2803
3773
 
@@ -2816,7 +3786,7 @@ declare class PrimaryNetworkService {
2816
3786
  */
2817
3787
  blockchainId: XChainId;
2818
3788
  /**
2819
- * Either mainnet or a testnet.
3789
+ * Either mainnet or testnet/fuji.
2820
3790
  */
2821
3791
  network: Network;
2822
3792
  /**
@@ -2836,7 +3806,7 @@ declare class PrimaryNetworkService {
2836
3806
  */
2837
3807
  addresses: string;
2838
3808
  /**
2839
- * Either mainnet or a testnet.
3809
+ * Either mainnet or testnet/fuji.
2840
3810
  */
2841
3811
  network: Network;
2842
3812
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2848,7 +3818,7 @@ declare class PrimaryNetworkService {
2848
3818
  */
2849
3819
  getNetworkDetails({ network, }: {
2850
3820
  /**
2851
- * Either mainnet or a testnet.
3821
+ * Either mainnet or testnet/fuji.
2852
3822
  */
2853
3823
  network: Network;
2854
3824
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2860,7 +3830,7 @@ declare class PrimaryNetworkService {
2860
3830
  */
2861
3831
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2862
3832
  /**
2863
- * Either mainnet or a testnet.
3833
+ * Either mainnet or testnet/fuji.
2864
3834
  */
2865
3835
  network: Network;
2866
3836
  /**
@@ -2876,6 +3846,22 @@ declare class PrimaryNetworkService {
2876
3846
  */
2877
3847
  sortOrder?: SortOrder;
2878
3848
  }): CancelablePromise<ListBlockchainsResponse>;
3849
+ /**
3850
+ * Get blockchain details by ID
3851
+ * Get details of the blockchain registered on the network.
3852
+ * @returns Blockchain Successful response
3853
+ * @throws ApiError
3854
+ */
3855
+ getBlockchainById({ blockchainId, network, }: {
3856
+ /**
3857
+ * The blockchain ID of the blockchain to retrieve.
3858
+ */
3859
+ blockchainId: string;
3860
+ /**
3861
+ * Either mainnet or testnet/fuji.
3862
+ */
3863
+ network: Network;
3864
+ }): CancelablePromise<Blockchain>;
2879
3865
  /**
2880
3866
  * List subnets
2881
3867
  * Lists all subnets registered on the network.
@@ -2884,7 +3870,7 @@ declare class PrimaryNetworkService {
2884
3870
  */
2885
3871
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2886
3872
  /**
2887
- * Either mainnet or a testnet.
3873
+ * Either mainnet or testnet/fuji.
2888
3874
  */
2889
3875
  network: Network;
2890
3876
  /**
@@ -2908,7 +3894,7 @@ declare class PrimaryNetworkService {
2908
3894
  */
2909
3895
  getSubnetById({ network, subnetId, }: {
2910
3896
  /**
2911
- * Either mainnet or a testnet.
3897
+ * Either mainnet or testnet/fuji.
2912
3898
  */
2913
3899
  network: Network;
2914
3900
  /**
@@ -2918,13 +3904,13 @@ declare class PrimaryNetworkService {
2918
3904
  }): CancelablePromise<Subnet>;
2919
3905
  /**
2920
3906
  * List validators
2921
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
3907
+ * 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.
2922
3908
  * @returns ListValidatorDetailsResponse Successful response
2923
3909
  * @throws ApiError
2924
3910
  */
2925
3911
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2926
3912
  /**
2927
- * Either mainnet or a testnet.
3913
+ * Either mainnet or testnet/fuji.
2928
3914
  */
2929
3915
  network: Network;
2930
3916
  /**
@@ -2936,7 +3922,7 @@ declare class PrimaryNetworkService {
2936
3922
  */
2937
3923
  pageSize?: number;
2938
3924
  /**
2939
- * A comma separated list of node ids to filter by.
3925
+ * A comma separated list of node ids to filter by. Supports substring matching.
2940
3926
  */
2941
3927
  nodeIds?: string;
2942
3928
  /**
@@ -2998,7 +3984,7 @@ declare class PrimaryNetworkService {
2998
3984
  */
2999
3985
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3000
3986
  /**
3001
- * Either mainnet or a testnet.
3987
+ * Either mainnet or testnet/fuji.
3002
3988
  */
3003
3989
  network: Network;
3004
3990
  /**
@@ -3030,7 +4016,7 @@ declare class PrimaryNetworkService {
3030
4016
  */
3031
4017
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3032
4018
  /**
3033
- * Either mainnet or a testnet.
4019
+ * Either mainnet or testnet/fuji.
3034
4020
  */
3035
4021
  network: Network;
3036
4022
  /**
@@ -3058,14 +4044,49 @@ declare class PrimaryNetworkService {
3058
4044
  */
3059
4045
  nodeIds?: string;
3060
4046
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4047
+ /**
4048
+ * List L1 validators
4049
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4050
+ * @returns ListL1ValidatorsResponse Successful response
4051
+ * @throws ApiError
4052
+ */
4053
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4054
+ /**
4055
+ * Either mainnet or testnet/fuji.
4056
+ */
4057
+ network: Network;
4058
+ /**
4059
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4060
+ */
4061
+ pageToken?: string;
4062
+ /**
4063
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4064
+ */
4065
+ pageSize?: number;
4066
+ /**
4067
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4068
+ */
4069
+ l1ValidationId?: string;
4070
+ includeInactiveL1Validators?: boolean;
4071
+ /**
4072
+ * A valid node ID in format 'NodeID-HASH'.
4073
+ */
4074
+ nodeId?: string;
4075
+ /**
4076
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4077
+ */
4078
+ subnetId?: any;
4079
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3061
4080
  }
3062
4081
 
3063
4082
  declare enum BlockchainId {
3064
4083
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3065
4084
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3066
4085
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4086
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3067
4087
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3068
4088
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4089
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3069
4090
  P_CHAIN = "p-chain",
3070
4091
  X_CHAIN = "x-chain",
3071
4092
  C_CHAIN = "c-chain"
@@ -3102,11 +4123,6 @@ type CChainAtomicBalances = {
3102
4123
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3103
4124
  };
3104
4125
 
3105
- declare enum PrimaryNetwork {
3106
- MAINNET = "mainnet",
3107
- FUJI = "fuji"
3108
- }
3109
-
3110
4126
  declare enum PrimaryNetworkChainName {
3111
4127
  P_CHAIN = "p-chain",
3112
4128
  X_CHAIN = "x-chain",
@@ -3115,7 +4131,7 @@ declare enum PrimaryNetworkChainName {
3115
4131
 
3116
4132
  type PrimaryNetworkChainInfo = {
3117
4133
  chainName: PrimaryNetworkChainName;
3118
- network: PrimaryNetwork;
4134
+ network: Network;
3119
4135
  };
3120
4136
 
3121
4137
  type ListCChainAtomicBalancesResponse = {
@@ -3276,7 +4292,7 @@ declare class PrimaryNetworkBalancesService {
3276
4292
  */
3277
4293
  blockchainId: BlockchainId;
3278
4294
  /**
3279
- * Either mainnet or a testnet.
4295
+ * Either mainnet or testnet/fuji.
3280
4296
  */
3281
4297
  network: Network;
3282
4298
  /**
@@ -3307,6 +4323,8 @@ type GetPrimaryNetworkBlockResponse = {
3307
4323
  txCount: number;
3308
4324
  transactions: Array<string>;
3309
4325
  blockSizeBytes: number;
4326
+ l1ValidatorsAccruedFees?: number;
4327
+ activeL1Validators?: number;
3310
4328
  currentSupply?: string;
3311
4329
  proposerDetails?: ProposerDetails;
3312
4330
  };
@@ -3320,6 +4338,8 @@ type PrimaryNetworkBlock = {
3320
4338
  txCount: number;
3321
4339
  transactions: Array<string>;
3322
4340
  blockSizeBytes: number;
4341
+ l1ValidatorsAccruedFees?: number;
4342
+ activeL1Validators?: number;
3323
4343
  currentSupply?: string;
3324
4344
  proposerDetails?: ProposerDetails;
3325
4345
  };
@@ -3348,7 +4368,7 @@ declare class PrimaryNetworkBlocksService {
3348
4368
  */
3349
4369
  blockchainId: BlockchainId;
3350
4370
  /**
3351
- * Either mainnet or a testnet.
4371
+ * Either mainnet or testnet/fuji.
3352
4372
  */
3353
4373
  network: Network;
3354
4374
  /**
@@ -3362,19 +4382,27 @@ declare class PrimaryNetworkBlocksService {
3362
4382
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3363
4383
  * @throws ApiError
3364
4384
  */
3365
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4385
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3366
4386
  /**
3367
4387
  * A primary network blockchain id or alias.
3368
4388
  */
3369
4389
  blockchainId: BlockchainId;
3370
4390
  /**
3371
- * Either mainnet or a testnet.
4391
+ * Either mainnet or testnet/fuji.
3372
4392
  */
3373
4393
  network: Network;
3374
4394
  /**
3375
4395
  * A primary network (P or X chain) nodeId.
3376
4396
  */
3377
4397
  nodeId: string;
4398
+ /**
4399
+ * Query param for retrieving items after a specific timestamp.
4400
+ */
4401
+ startTimestamp?: number;
4402
+ /**
4403
+ * Query param for retrieving items before a specific timestamp.
4404
+ */
4405
+ endTimestamp?: number;
3378
4406
  /**
3379
4407
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3380
4408
  */
@@ -3390,15 +4418,23 @@ declare class PrimaryNetworkBlocksService {
3390
4418
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3391
4419
  * @throws ApiError
3392
4420
  */
3393
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4421
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3394
4422
  /**
3395
4423
  * A primary network blockchain id or alias.
3396
4424
  */
3397
4425
  blockchainId: BlockchainId;
3398
4426
  /**
3399
- * Either mainnet or a testnet.
4427
+ * Either mainnet or testnet/fuji.
3400
4428
  */
3401
4429
  network: Network;
4430
+ /**
4431
+ * Query param for retrieving items after a specific timestamp.
4432
+ */
4433
+ startTimestamp?: number;
4434
+ /**
4435
+ * Query param for retrieving items before a specific timestamp.
4436
+ */
4437
+ endTimestamp?: number;
3402
4438
  /**
3403
4439
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3404
4440
  */
@@ -3530,7 +4566,7 @@ declare class PrimaryNetworkRewardsService {
3530
4566
  */
3531
4567
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3532
4568
  /**
3533
- * Either mainnet or a testnet.
4569
+ * Either mainnet or testnet/fuji.
3534
4570
  */
3535
4571
  network: Network;
3536
4572
  /**
@@ -3562,7 +4598,7 @@ declare class PrimaryNetworkRewardsService {
3562
4598
  */
3563
4599
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3564
4600
  /**
3565
- * Either mainnet or a testnet.
4601
+ * Either mainnet or testnet/fuji.
3566
4602
  */
3567
4603
  network: Network;
3568
4604
  /**
@@ -3808,6 +4844,32 @@ type ListCChainAtomicTransactionsResponse = {
3808
4844
  chainInfo: PrimaryNetworkChainInfo;
3809
4845
  };
3810
4846
 
4847
+ type L1ValidatorDetailsTransaction = {
4848
+ /**
4849
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4850
+ */
4851
+ validationId: string;
4852
+ /**
4853
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4854
+ */
4855
+ validationIdHex: string;
4856
+ nodeId: string;
4857
+ subnetId: string;
4858
+ /**
4859
+ * 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
4860
+ */
4861
+ weight: number;
4862
+ /**
4863
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4864
+ */
4865
+ remainingBalance: number;
4866
+ /**
4867
+ * 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
4868
+ */
4869
+ balanceChange?: number;
4870
+ blsCredentials?: Record<string, any>;
4871
+ };
4872
+
3811
4873
  declare enum PChainTransactionType {
3812
4874
  ADD_VALIDATOR_TX = "AddValidatorTx",
3813
4875
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3824,9 +4886,17 @@ declare enum PChainTransactionType {
3824
4886
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3825
4887
  BASE_TX = "BaseTx",
3826
4888
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4889
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4890
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4891
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4892
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4893
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3827
4894
  UNKNOWN = "UNKNOWN"
3828
4895
  }
3829
4896
 
4897
+ /**
4898
+ * Indicates whether the UTXO is staked or transferable
4899
+ */
3830
4900
  declare enum UtxoType {
3831
4901
  STAKE = "STAKE",
3832
4902
  TRANSFER = "TRANSFER"
@@ -3864,16 +4934,43 @@ type PChainUtxo = {
3864
4934
  assetId: string;
3865
4935
  blockNumber: string;
3866
4936
  blockTimestamp: number;
4937
+ /**
4938
+ * Block height in which the transaction consuming this UTXO was included
4939
+ */
3867
4940
  consumingBlockNumber?: string;
4941
+ /**
4942
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4943
+ */
3868
4944
  consumingBlockTimestamp?: number;
4945
+ /**
4946
+ * Timestamp in seconds after which this UTXO can be consumed
4947
+ */
3869
4948
  platformLocktime?: number;
4949
+ /**
4950
+ * The index of the UTXO in the transaction
4951
+ */
3870
4952
  outputIndex: number;
3871
4953
  rewardType?: RewardType;
4954
+ /**
4955
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4956
+ */
3872
4957
  stakeableLocktime?: number;
3873
4958
  staked?: boolean;
4959
+ /**
4960
+ * The minimum number of signatures required to spend this UTXO
4961
+ */
3874
4962
  threshold?: number;
4963
+ /**
4964
+ * The hash of the transaction that created this UTXO
4965
+ */
3875
4966
  txHash: string;
4967
+ /**
4968
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4969
+ */
3876
4970
  utxoEndTimestamp?: number;
4971
+ /**
4972
+ * Timestamp in seconds at which the staked UTXO was locked.
4973
+ */
3877
4974
  utxoStartTimestamp?: number;
3878
4975
  utxoType: UtxoType;
3879
4976
  };
@@ -3888,9 +4985,18 @@ type PChainTransaction = {
3888
4985
  * The block finality timestamp.
3889
4986
  */
3890
4987
  blockTimestamp: number;
4988
+ /**
4989
+ * The height of the block in which the transaction was included
4990
+ */
3891
4991
  blockNumber: string;
3892
4992
  blockHash: string;
4993
+ /**
4994
+ * The consumed UTXOs of the transaction
4995
+ */
3893
4996
  consumedUtxos: Array<PChainUtxo>;
4997
+ /**
4998
+ * The newly created UTXOs of the transaction
4999
+ */
3894
5000
  emittedUtxos: Array<PChainUtxo>;
3895
5001
  /**
3896
5002
  * Source chain for an atomic transaction.
@@ -3901,17 +5007,21 @@ type PChainTransaction = {
3901
5007
  */
3902
5008
  destinationChain?: string;
3903
5009
  /**
3904
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5010
+ * 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
3905
5011
  */
3906
5012
  value: Array<AssetAmount>;
3907
5013
  /**
3908
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5014
+ * 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
3909
5015
  */
3910
5016
  amountBurned: Array<AssetAmount>;
3911
5017
  /**
3912
5018
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3913
5019
  */
3914
5020
  amountStaked: Array<AssetAmount>;
5021
+ /**
5022
+ * 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.
5023
+ */
5024
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3915
5025
  /**
3916
5026
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3917
5027
  */
@@ -3921,11 +5031,11 @@ type PChainTransaction = {
3921
5031
  */
3922
5032
  endTimestamp?: number;
3923
5033
  /**
3924
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5034
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3925
5035
  */
3926
5036
  delegationFeePercent?: string;
3927
5037
  /**
3928
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5038
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3929
5039
  */
3930
5040
  nodeId?: string;
3931
5041
  /**
@@ -3933,14 +5043,25 @@ type PChainTransaction = {
3933
5043
  */
3934
5044
  subnetId?: string;
3935
5045
  /**
3936
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5046
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5047
+ */
5048
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5049
+ /**
5050
+ * 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
5051
+ */
5052
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5053
+ /**
5054
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3937
5055
  */
3938
5056
  estimatedReward?: string;
5057
+ /**
5058
+ * Reward transaction hash for the completed validations or delegations
5059
+ */
3939
5060
  rewardTxHash?: string;
3940
5061
  rewardAddresses?: Array<string>;
3941
5062
  memo?: string;
3942
5063
  /**
3943
- * Present for RewardValidatorTx
5064
+ * Staking transaction corresponding to the RewardValidatorTx
3944
5065
  */
3945
5066
  stakingTxHash?: string;
3946
5067
  /**
@@ -3948,7 +5069,7 @@ type PChainTransaction = {
3948
5069
  */
3949
5070
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3950
5071
  /**
3951
- * Present for AddPermissionlessValidatorTx
5072
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3952
5073
  */
3953
5074
  blsCredentials?: BlsCredentials;
3954
5075
  };
@@ -4133,6 +5254,11 @@ declare enum PrimaryNetworkTxType {
4133
5254
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4134
5255
  BASE_TX = "BaseTx",
4135
5256
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5257
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5258
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5259
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5260
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5261
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4136
5262
  UNKNOWN = "UNKNOWN",
4137
5263
  CREATE_ASSET_TX = "CreateAssetTx",
4138
5264
  OPERATION_TX = "OperationTx"
@@ -4153,7 +5279,7 @@ declare class PrimaryNetworkTransactionsService {
4153
5279
  */
4154
5280
  blockchainId: BlockchainId;
4155
5281
  /**
4156
- * Either mainnet or a testnet.
5282
+ * Either mainnet or testnet/fuji.
4157
5283
  */
4158
5284
  network: Network;
4159
5285
  /**
@@ -4167,23 +5293,26 @@ declare class PrimaryNetworkTransactionsService {
4167
5293
  *
4168
5294
  * 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.
4169
5295
  *
5296
+ * 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.
5297
+ *
4170
5298
  * 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.
4171
5299
  * @returns any Successful response
4172
5300
  * @throws ApiError
4173
5301
  */
4174
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4175
- /**
4176
- * 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.
4177
- */
4178
- addresses: string;
5302
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4179
5303
  /**
4180
5304
  * A primary network blockchain id or alias.
4181
5305
  */
4182
5306
  blockchainId: BlockchainId;
4183
5307
  /**
4184
- * Either mainnet or a testnet.
5308
+ * Either mainnet or testnet/fuji.
4185
5309
  */
4186
5310
  network: Network;
5311
+ /**
5312
+ * 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.
5313
+ */
5314
+ addresses?: string;
5315
+ l1ValidationId?: string;
4187
5316
  /**
4188
5317
  * Query param for filtering items based on transaction types.
4189
5318
  */
@@ -4221,7 +5350,7 @@ declare class PrimaryNetworkTransactionsService {
4221
5350
  */
4222
5351
  blockchainId: PChainId;
4223
5352
  /**
4224
- * Either mainnet or a testnet.
5353
+ * Either mainnet or testnet/fuji.
4225
5354
  */
4226
5355
  network: Network;
4227
5356
  /**
@@ -4265,7 +5394,7 @@ declare class PrimaryNetworkTransactionsService {
4265
5394
  */
4266
5395
  blockchainId: XChainId;
4267
5396
  /**
4268
- * Either mainnet or a testnet.
5397
+ * Either mainnet or testnet/fuji.
4269
5398
  */
4270
5399
  network: Network;
4271
5400
  /**
@@ -4328,7 +5457,7 @@ declare class PrimaryNetworkUtxOsService {
4328
5457
  */
4329
5458
  blockchainId: BlockchainId;
4330
5459
  /**
4331
- * Either mainnet or a testnet.
5460
+ * Either mainnet or testnet/fuji.
4332
5461
  */
4333
5462
  network: Network;
4334
5463
  /**
@@ -4393,7 +5522,7 @@ declare class PrimaryNetworkVerticesService {
4393
5522
  */
4394
5523
  blockchainId: XChainId;
4395
5524
  /**
4396
- * Either mainnet or a testnet.
5525
+ * Either mainnet or testnet/fuji.
4397
5526
  */
4398
5527
  network: Network;
4399
5528
  /**
@@ -4421,7 +5550,7 @@ declare class PrimaryNetworkVerticesService {
4421
5550
  */
4422
5551
  blockchainId: XChainId;
4423
5552
  /**
4424
- * Either mainnet or a testnet.
5553
+ * Either mainnet or testnet/fuji.
4425
5554
  */
4426
5555
  network: Network;
4427
5556
  }): CancelablePromise<XChainVertex>;
@@ -4441,7 +5570,7 @@ declare class PrimaryNetworkVerticesService {
4441
5570
  */
4442
5571
  blockchainId: XChainId;
4443
5572
  /**
4444
- * Either mainnet or a testnet.
5573
+ * Either mainnet or testnet/fuji.
4445
5574
  */
4446
5575
  network: Network;
4447
5576
  /**
@@ -4459,47 +5588,49 @@ declare class PrimaryNetworkVerticesService {
4459
5588
  }): CancelablePromise<ListXChainVerticesResponse>;
4460
5589
  }
4461
5590
 
4462
- type RpcErrorDto = {
4463
- code: number;
4464
- message: string;
4465
- data?: Record<string, any>;
4466
- };
4467
-
4468
- type RpcErrorResponseDto = {
4469
- jsonrpc: string;
4470
- id?: (string | number);
4471
- error: RpcErrorDto;
5591
+ type SignatureAggregationResponse = {
5592
+ signedMessage: string;
4472
5593
  };
4473
5594
 
4474
- type RpcRequestBodyDto = {
4475
- method: string;
4476
- params?: Record<string, any>;
4477
- id?: (string | number);
4478
- jsonrpc?: string;
4479
- };
4480
-
4481
- type RpcSuccessResponseDto = {
4482
- jsonrpc: string;
4483
- id?: (string | number);
4484
- result: Record<string, any>;
5595
+ type SignatureAggregatorRequest = {
5596
+ message: string;
5597
+ justification?: string;
5598
+ signingSubnetId?: string;
5599
+ quorumPercentage?: number;
4485
5600
  };
4486
5601
 
4487
- declare class RpcService {
5602
+ declare class SignatureAggregatorService {
4488
5603
  readonly httpRequest: BaseHttpRequest;
4489
5604
  constructor(httpRequest: BaseHttpRequest);
4490
5605
  /**
4491
- * Calls JSON-RPC method
4492
- * Calls JSON-RPC method.
4493
- * @returns any Successful response
5606
+ * Aggregate Signatures
5607
+ * Aggregates Signatures for a Warp message from Subnet validators.
5608
+ * @returns SignatureAggregationResponse Successful response
4494
5609
  * @throws ApiError
4495
5610
  */
4496
- rpc({ chainId, requestBody, }: {
5611
+ aggregateSignatures({ network, requestBody, }: {
4497
5612
  /**
4498
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5613
+ * Either mainnet or testnet/fuji.
4499
5614
  */
4500
- chainId: string;
4501
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4502
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5615
+ network: Network;
5616
+ requestBody: SignatureAggregatorRequest;
5617
+ }): CancelablePromise<SignatureAggregationResponse>;
5618
+ /**
5619
+ * Get Aggregated Signatures
5620
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5621
+ * @returns SignatureAggregationResponse Successful response
5622
+ * @throws ApiError
5623
+ */
5624
+ getAggregatedSignatures({ network, txHash, }: {
5625
+ /**
5626
+ * Either mainnet or testnet/fuji.
5627
+ */
5628
+ network: Network;
5629
+ /**
5630
+ * A primary network (P or X chain) transaction hash.
5631
+ */
5632
+ txHash: string;
5633
+ }): CancelablePromise<SignatureAggregationResponse>;
4503
5634
  }
4504
5635
 
4505
5636
  type TeleporterDestinationTransaction = {
@@ -4640,8 +5771,10 @@ declare class TeleporterService {
4640
5771
  readonly httpRequest: BaseHttpRequest;
4641
5772
  constructor(httpRequest: BaseHttpRequest);
4642
5773
  /**
4643
- * Get a teleporter message
4644
- * Gets a teleporter message by message ID.
5774
+ * @deprecated
5775
+ * **[Deprecated]** Gets a teleporter message by message ID.
5776
+ *
5777
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4645
5778
  * @returns any Successful response
4646
5779
  * @throws ApiError
4647
5780
  */
@@ -4652,8 +5785,10 @@ declare class TeleporterService {
4652
5785
  messageId: string;
4653
5786
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4654
5787
  /**
4655
- * List teleporter messages
4656
- * Lists teleporter messages. Ordered by timestamp in descending order.
5788
+ * @deprecated
5789
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5790
+ *
5791
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4657
5792
  * @returns ListTeleporterMessagesResponse Successful response
4658
5793
  * @throws ApiError
4659
5794
  */
@@ -4687,9 +5822,35 @@ declare class TeleporterService {
4687
5822
  */
4688
5823
  from?: string;
4689
5824
  /**
4690
- * mainnet or testnet.
5825
+ * Either mainnet or testnet/fuji.
5826
+ */
5827
+ network?: Network;
5828
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5829
+ /**
5830
+ * @deprecated
5831
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5832
+ *
5833
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
5834
+ * @returns ListTeleporterMessagesResponse Successful response
5835
+ * @throws ApiError
5836
+ */
5837
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5838
+ /**
5839
+ * An EVM address.
5840
+ */
5841
+ address: string;
5842
+ /**
5843
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5844
+ */
5845
+ pageToken?: string;
5846
+ /**
5847
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5848
+ */
5849
+ pageSize?: number;
5850
+ /**
5851
+ * Either mainnet or testnet/fuji.
4691
5852
  */
4692
- network?: NetworkType;
5853
+ network?: Network;
4693
5854
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4694
5855
  }
4695
5856
 
@@ -4711,17 +5872,55 @@ type AddressActivityMetadata = {
4711
5872
  eventSignatures?: Array<string>;
4712
5873
  };
4713
5874
 
4714
- declare enum EventType {
4715
- ADDRESS_ACTIVITY = "address_activity"
5875
+ declare enum PrimaryNetworkType {
5876
+ MAINNET = "mainnet",
5877
+ FUJI = "fuji"
4716
5878
  }
4717
5879
 
4718
- type CreateWebhookRequest = {
5880
+ type EVMAddressActivityRequest = {
5881
+ eventType: EVMAddressActivityRequest.eventType;
4719
5882
  url: string;
4720
5883
  chainId: string;
5884
+ network?: PrimaryNetworkType;
5885
+ name?: string;
5886
+ description?: string;
5887
+ /**
5888
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5889
+ */
5890
+ includeInternalTxs?: boolean;
5891
+ /**
5892
+ * Whether to include logs in the webhook payload.
5893
+ */
5894
+ includeLogs?: boolean;
5895
+ metadata: AddressActivityMetadata;
5896
+ };
5897
+ declare namespace EVMAddressActivityRequest {
5898
+ enum eventType {
5899
+ ADDRESS_ACTIVITY = "address_activity"
5900
+ }
5901
+ }
5902
+
5903
+ declare enum EventType {
5904
+ ADDRESS_ACTIVITY = "address_activity",
5905
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5906
+ VALIDATOR_ACTIVITY = "validator_activity"
5907
+ }
5908
+
5909
+ declare enum WebhookStatusType {
5910
+ ACTIVE = "active",
5911
+ INACTIVE = "inactive"
5912
+ }
5913
+
5914
+ type EVMAddressActivityResponse = {
5915
+ id: string;
4721
5916
  eventType: EventType;
5917
+ url: string;
5918
+ chainId: string;
5919
+ status: WebhookStatusType;
5920
+ createdAt: number;
5921
+ name: string;
5922
+ description: string;
4722
5923
  metadata: AddressActivityMetadata;
4723
- name?: string;
4724
- description?: string;
4725
5924
  /**
4726
5925
  * Whether to include traces in the webhook payload.
4727
5926
  */
@@ -4741,29 +5940,98 @@ type ListWebhookAddressesResponse = {
4741
5940
  totalAddresses: number;
4742
5941
  };
4743
5942
 
4744
- declare enum WebhookStatusType {
4745
- ACTIVE = "active",
4746
- INACTIVE = "inactive"
5943
+ /**
5944
+ * The type of key for platform activity depending on the event type
5945
+ */
5946
+ declare enum PlatformActivityKeyType {
5947
+ ADDRESSES = "addresses",
5948
+ NODE_ID = "nodeId",
5949
+ SUBNET_ID = "subnetId"
4747
5950
  }
4748
5951
 
4749
- type WebhookResponse = {
4750
- id: string;
4751
- eventType: EventType;
4752
- metadata: AddressActivityMetadata;
5952
+ /**
5953
+ * Array of address activity sub-event types
5954
+ */
5955
+ declare enum PlatformAddressActivitySubEventType {
5956
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5957
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
5958
+ REWARD_DISTRIBUTION = "reward_distribution"
5959
+ }
5960
+
5961
+ type PlatformActivitySubEvents = {
4753
5962
  /**
4754
- * Whether to include traces in the webhook payload.
5963
+ * Array of validator activity sub-event types
4755
5964
  */
4756
- includeInternalTxs?: boolean;
5965
+ validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5966
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5967
+ };
5968
+
5969
+ /**
5970
+ * Type of balance to monitor
5971
+ */
5972
+ declare enum CommonBalanceType {
5973
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5974
+ UNLOCKED_STAKED = "unlockedStaked",
5975
+ LOCKED_PLATFORM = "lockedPlatform",
5976
+ LOCKED_STAKEABLE = "lockedStakeable",
5977
+ LOCKED_STAKED = "lockedStaked",
5978
+ PENDING_STAKED = "pendingStaked",
5979
+ UNLOCKED = "unlocked",
5980
+ LOCKED = "locked",
5981
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5982
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
5983
+ }
5984
+
5985
+ type PlatformBalanceThresholdFilter = {
5986
+ balanceType: CommonBalanceType;
4757
5987
  /**
4758
- * Whether to include logs in the webhook payload.
5988
+ * Threshold for balance corresponding to balanceType in nAVAX
4759
5989
  */
4760
- includeLogs?: boolean;
5990
+ balanceThreshold: string;
5991
+ };
5992
+
5993
+ type PlatformActivityMetadata = {
5994
+ keyType: PlatformActivityKeyType;
5995
+ /**
5996
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
5997
+ */
5998
+ keys: Array<string>;
5999
+ /**
6000
+ * Sub-events to monitor
6001
+ */
6002
+ subEvents?: PlatformActivitySubEvents;
6003
+ /**
6004
+ * Array of hexadecimal strings of the event signatures.
6005
+ */
6006
+ eventSignatures?: Array<string>;
6007
+ /**
6008
+ * Array of node IDs to filter the events
6009
+ */
6010
+ nodeIds?: Array<string>;
6011
+ /**
6012
+ * Array of subnet IDs to filter the events
6013
+ */
6014
+ subnetIds?: Array<string>;
6015
+ /**
6016
+ * Balance threshold filter
6017
+ */
6018
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
6019
+ /**
6020
+ * L1 validator fee balance threshold in nAVAX
6021
+ */
6022
+ l1ValidatorFeeBalanceThreshold?: string;
6023
+ };
6024
+
6025
+ type PlatformActivityResponse = {
6026
+ id: string;
6027
+ eventType: EventType;
4761
6028
  url: string;
4762
6029
  chainId: string;
4763
6030
  status: WebhookStatusType;
4764
6031
  createdAt: number;
4765
6032
  name: string;
4766
6033
  description: string;
6034
+ metadata: PlatformActivityMetadata;
4767
6035
  };
4768
6036
 
4769
6037
  type ListWebhooksResponse = {
@@ -4771,8 +6039,35 @@ type ListWebhooksResponse = {
4771
6039
  * 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.
4772
6040
  */
4773
6041
  nextPageToken?: string;
4774
- webhooks: Array<WebhookResponse>;
6042
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
6043
+ };
6044
+
6045
+ type PlatformActivityRequest = {
6046
+ eventType: PlatformActivityRequest.eventType;
6047
+ url: string;
6048
+ chainId: string;
6049
+ network?: PrimaryNetworkType;
6050
+ name?: string;
6051
+ description?: string;
6052
+ /**
6053
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6054
+ */
6055
+ includeInternalTxs?: boolean;
6056
+ /**
6057
+ * Whether to include logs in the webhook payload.
6058
+ */
6059
+ includeLogs?: boolean;
6060
+ /**
6061
+ * Metadata for platform activity
6062
+ */
6063
+ metadata: PlatformActivityMetadata;
4775
6064
  };
6065
+ declare namespace PlatformActivityRequest {
6066
+ enum eventType {
6067
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6068
+ VALIDATOR_ACTIVITY = "validator_activity"
6069
+ }
6070
+ }
4776
6071
 
4777
6072
  type SharedSecretsResponse = {
4778
6073
  secret: string;
@@ -4783,6 +6078,9 @@ type UpdateWebhookRequest = {
4783
6078
  description?: string;
4784
6079
  url?: string;
4785
6080
  status?: WebhookStatusType;
6081
+ /**
6082
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6083
+ */
4786
6084
  includeInternalTxs?: boolean;
4787
6085
  includeLogs?: boolean;
4788
6086
  };
@@ -4798,12 +6096,12 @@ declare class WebhooksService {
4798
6096
  /**
4799
6097
  * Create a webhook
4800
6098
  * Create a new webhook.
4801
- * @returns WebhookResponse Successful response
6099
+ * @returns any Successful response
4802
6100
  * @throws ApiError
4803
6101
  */
4804
6102
  createWebhook({ requestBody, }: {
4805
- requestBody: CreateWebhookRequest;
4806
- }): CancelablePromise<WebhookResponse>;
6103
+ requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6104
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4807
6105
  /**
4808
6106
  * List webhooks
4809
6107
  * Lists webhooks for the user.
@@ -4827,7 +6125,7 @@ declare class WebhooksService {
4827
6125
  /**
4828
6126
  * Get a webhook by ID
4829
6127
  * Retrieves a webhook by ID.
4830
- * @returns WebhookResponse Successful response
6128
+ * @returns any Successful response
4831
6129
  * @throws ApiError
4832
6130
  */
4833
6131
  getWebhook({ id, }: {
@@ -4835,11 +6133,11 @@ declare class WebhooksService {
4835
6133
  * The webhook identifier.
4836
6134
  */
4837
6135
  id: string;
4838
- }): CancelablePromise<WebhookResponse>;
6136
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4839
6137
  /**
4840
6138
  * Deactivate a webhook
4841
6139
  * Deactivates a webhook by ID.
4842
- * @returns WebhookResponse Successful response
6140
+ * @returns any Successful response
4843
6141
  * @throws ApiError
4844
6142
  */
4845
6143
  deactivateWebhook({ id, }: {
@@ -4847,11 +6145,11 @@ declare class WebhooksService {
4847
6145
  * The webhook identifier.
4848
6146
  */
4849
6147
  id: string;
4850
- }): CancelablePromise<WebhookResponse>;
6148
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4851
6149
  /**
4852
6150
  * Update a webhook
4853
6151
  * Updates an existing webhook.
4854
- * @returns WebhookResponse Successful response
6152
+ * @returns any Successful response
4855
6153
  * @throws ApiError
4856
6154
  */
4857
6155
  updateWebhook({ id, requestBody, }: {
@@ -4860,14 +6158,14 @@ declare class WebhooksService {
4860
6158
  */
4861
6159
  id: string;
4862
6160
  requestBody: UpdateWebhookRequest;
4863
- }): CancelablePromise<WebhookResponse>;
6161
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4864
6162
  /**
4865
- * Generate a shared secret
4866
- * Generates a new shared secret.
6163
+ * Generate or rotate a shared secret
6164
+ * Generates a new shared secret or rotate an existing one.
4867
6165
  * @returns SharedSecretsResponse Successful response
4868
6166
  * @throws ApiError
4869
6167
  */
4870
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6168
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4871
6169
  /**
4872
6170
  * Get a shared secret
4873
6171
  * Get a previously generated shared secret.
@@ -4876,9 +6174,9 @@ declare class WebhooksService {
4876
6174
  */
4877
6175
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4878
6176
  /**
4879
- * Add addresses to webhook
4880
- * Add addresses to webhook.
4881
- * @returns WebhookResponse Successful response
6177
+ * Add addresses to EVM activity webhook
6178
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6179
+ * @returns EVMAddressActivityResponse Successful response
4882
6180
  * @throws ApiError
4883
6181
  */
4884
6182
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4887,11 +6185,11 @@ declare class WebhooksService {
4887
6185
  */
4888
6186
  id: string;
4889
6187
  requestBody: AddressesChangeRequest;
4890
- }): CancelablePromise<WebhookResponse>;
6188
+ }): CancelablePromise<EVMAddressActivityResponse>;
4891
6189
  /**
4892
- * Remove addresses from webhook
4893
- * Remove addresses from webhook.
4894
- * @returns WebhookResponse Successful response
6190
+ * Remove addresses from EVM activity webhook
6191
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6192
+ * @returns EVMAddressActivityResponse Successful response
4895
6193
  * @throws ApiError
4896
6194
  */
4897
6195
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4900,10 +6198,10 @@ declare class WebhooksService {
4900
6198
  */
4901
6199
  id: string;
4902
6200
  requestBody: AddressesChangeRequest;
4903
- }): CancelablePromise<WebhookResponse>;
6201
+ }): CancelablePromise<EVMAddressActivityResponse>;
4904
6202
  /**
4905
- * List adresses by webhook
4906
- * List adresses by webhook.
6203
+ * List adresses by EVM activity webhooks
6204
+ * List adresses by webhook. Only valid for EVM activity webhooks.
4907
6205
  * @returns ListWebhookAddressesResponse Successful response
4908
6206
  * @throws ApiError
4909
6207
  */
@@ -4925,15 +6223,17 @@ declare class WebhooksService {
4925
6223
 
4926
6224
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4927
6225
  declare class Glacier {
6226
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4928
6227
  readonly default: DefaultService;
4929
6228
  readonly evmBalances: EvmBalancesService;
4930
6229
  readonly evmBlocks: EvmBlocksService;
4931
6230
  readonly evmChains: EvmChainsService;
4932
6231
  readonly evmContracts: EvmContractsService;
4933
6232
  readonly evmTransactions: EvmTransactionsService;
4934
- readonly glacierApiUsageMetrics: GlacierApiUsageMetricsService;
4935
6233
  readonly healthCheck: HealthCheckService;
6234
+ readonly interchainMessaging: InterchainMessagingService;
4936
6235
  readonly nfTs: NfTsService;
6236
+ readonly notifications: NotificationsService;
4937
6237
  readonly operations: OperationsService;
4938
6238
  readonly primaryNetwork: PrimaryNetworkService;
4939
6239
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4942,7 +6242,7 @@ declare class Glacier {
4942
6242
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4943
6243
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4944
6244
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4945
- readonly rpc: RpcService;
6245
+ readonly signatureAggregator: SignatureAggregatorService;
4946
6246
  readonly teleporter: TeleporterService;
4947
6247
  readonly webhooks: WebhooksService;
4948
6248
  readonly request: BaseHttpRequest;
@@ -4966,6 +6266,17 @@ declare class ApiError extends Error {
4966
6266
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4967
6267
  }
4968
6268
 
6269
+ type AccessListData = {
6270
+ /**
6271
+ * Access Address
6272
+ */
6273
+ accessAddresses: string;
6274
+ /**
6275
+ * Storage keys
6276
+ */
6277
+ storageKeys: Array<string>;
6278
+ };
6279
+
4969
6280
  type BadGateway = {
4970
6281
  /**
4971
6282
  * The error message describing the reason for the exception
@@ -4996,6 +6307,80 @@ type BadRequest = {
4996
6307
  error: string;
4997
6308
  };
4998
6309
 
6310
+ type DataListChainsResponse = {
6311
+ chains: Array<ChainInfo>;
6312
+ };
6313
+
6314
+ type ERCToken = {
6315
+ /**
6316
+ * Token contract address
6317
+ */
6318
+ address: string;
6319
+ /**
6320
+ * Token name
6321
+ */
6322
+ name: string;
6323
+ /**
6324
+ * Token symbol
6325
+ */
6326
+ symbol: string;
6327
+ /**
6328
+ * Token decimals
6329
+ */
6330
+ decimals: number;
6331
+ /**
6332
+ * Value including decimals
6333
+ */
6334
+ valueWithDecimals: string;
6335
+ };
6336
+
6337
+ type ERCTransfer = {
6338
+ /**
6339
+ * Transaction hash
6340
+ */
6341
+ transactionHash: string;
6342
+ /**
6343
+ * Transfer type
6344
+ */
6345
+ type: string;
6346
+ /**
6347
+ * Sender address
6348
+ */
6349
+ from: string;
6350
+ /**
6351
+ * Recipient address
6352
+ */
6353
+ to: string;
6354
+ /**
6355
+ * Amount transferred
6356
+ */
6357
+ value: string;
6358
+ /**
6359
+ * Token Id
6360
+ */
6361
+ tokenId?: string;
6362
+ /**
6363
+ * Block timestamp
6364
+ */
6365
+ blockTimestamp: number;
6366
+ /**
6367
+ * Log index
6368
+ */
6369
+ logIndex: number;
6370
+ /**
6371
+ * erc20 Token details
6372
+ */
6373
+ erc20Token?: ERCToken;
6374
+ /**
6375
+ * erc721 Token details
6376
+ */
6377
+ erc721Token?: ERCToken;
6378
+ /**
6379
+ * erc1155 Token details
6380
+ */
6381
+ erc1155Token?: ERCToken;
6382
+ };
6383
+
4999
6384
  type Forbidden = {
5000
6385
  /**
5001
6386
  * The error message describing the reason for the exception
@@ -5026,6 +6411,64 @@ type InternalServerError = {
5026
6411
  error: string;
5027
6412
  };
5028
6413
 
6414
+ type Log = {
6415
+ /**
6416
+ * Contract address
6417
+ */
6418
+ address: string;
6419
+ /**
6420
+ * First topic
6421
+ */
6422
+ topic0: string;
6423
+ /**
6424
+ * Second topic (optional)
6425
+ */
6426
+ topic1?: string;
6427
+ /**
6428
+ * Third topic (optional)
6429
+ */
6430
+ topic2?: string;
6431
+ /**
6432
+ * Fourth topic (optional)
6433
+ */
6434
+ topic3?: string;
6435
+ /**
6436
+ * Event data
6437
+ */
6438
+ data: string;
6439
+ /**
6440
+ * Transaction index
6441
+ */
6442
+ transactionIndex: number;
6443
+ /**
6444
+ * Log index
6445
+ */
6446
+ logIndex: number;
6447
+ /**
6448
+ * Indicates if the log was removed
6449
+ */
6450
+ removed: boolean;
6451
+ };
6452
+
6453
+ type NetworkTokenInfo = {
6454
+ /**
6455
+ * Token name
6456
+ */
6457
+ tokenName?: string;
6458
+ /**
6459
+ * Token symbol
6460
+ */
6461
+ tokenSymbol?: string;
6462
+ /**
6463
+ * Token decimals
6464
+ */
6465
+ tokenDecimals?: number;
6466
+ /**
6467
+ * Value including decimals
6468
+ */
6469
+ valueWithDecimals?: string;
6470
+ };
6471
+
5029
6472
  type NextPageToken = {
5030
6473
  /**
5031
6474
  * 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.
@@ -5078,6 +6521,132 @@ type TooManyRequests = {
5078
6521
  error: string;
5079
6522
  };
5080
6523
 
6524
+ type Transaction = {
6525
+ /**
6526
+ * Block hash of the transaction
6527
+ */
6528
+ blockHash: string;
6529
+ /**
6530
+ * Block number of the transaction
6531
+ */
6532
+ blockNumber: string;
6533
+ /**
6534
+ * Sender address
6535
+ */
6536
+ from: string;
6537
+ /**
6538
+ * Gas limit for the transaction
6539
+ */
6540
+ gas: string;
6541
+ /**
6542
+ * Gas price used
6543
+ */
6544
+ gasPrice: string;
6545
+ /**
6546
+ * Maximum fee per gas
6547
+ */
6548
+ maxFeePerGas: string;
6549
+ /**
6550
+ * Maximum priority fee per gas
6551
+ */
6552
+ maxPriorityFeePerGas: string;
6553
+ /**
6554
+ * Transaction hash
6555
+ */
6556
+ txHash: string;
6557
+ /**
6558
+ * Transaction status
6559
+ */
6560
+ txStatus: string;
6561
+ /**
6562
+ * Input data
6563
+ */
6564
+ input: string;
6565
+ /**
6566
+ * Nonce value
6567
+ */
6568
+ nonce: string;
6569
+ /**
6570
+ * Recipient address
6571
+ */
6572
+ to: string;
6573
+ /**
6574
+ * Transaction index
6575
+ */
6576
+ transactionIndex: number;
6577
+ /**
6578
+ * Value transferred in the transaction
6579
+ */
6580
+ value: string;
6581
+ /**
6582
+ * Transaction type
6583
+ */
6584
+ type: number;
6585
+ /**
6586
+ * Chain ID of the network
6587
+ */
6588
+ chainId: string;
6589
+ /**
6590
+ * Cumulative gas used
6591
+ */
6592
+ receiptCumulativeGasUsed: string;
6593
+ /**
6594
+ * Gas used
6595
+ */
6596
+ receiptGasUsed: string;
6597
+ /**
6598
+ * Effective gas price
6599
+ */
6600
+ receiptEffectiveGasPrice: string;
6601
+ /**
6602
+ * Receipt root
6603
+ */
6604
+ receiptRoot: string;
6605
+ /**
6606
+ * Block timestamp
6607
+ */
6608
+ blockTimestamp: number;
6609
+ /**
6610
+ * Contract address (optional)
6611
+ */
6612
+ contractAddress?: string;
6613
+ /**
6614
+ * ERC20 transfers
6615
+ */
6616
+ erc20Transfers: Array<ERCTransfer>;
6617
+ /**
6618
+ * ERC721 transfers
6619
+ */
6620
+ erc721Transfers: Array<ERCTransfer>;
6621
+ /**
6622
+ * ERC1155 transfers
6623
+ */
6624
+ erc1155Transfers: Array<ERCTransfer>;
6625
+ /**
6626
+ * Internal transactions (optional)
6627
+ */
6628
+ internalTransactions?: Array<InternalTransaction>;
6629
+ /**
6630
+ * Access list (optional)
6631
+ */
6632
+ accessList?: Array<AccessListData>;
6633
+ /**
6634
+ * Network token info (optional)
6635
+ */
6636
+ networkToken?: NetworkTokenInfo;
6637
+ };
6638
+
6639
+ type TransactionEvent = {
6640
+ /**
6641
+ * Transaction details
6642
+ */
6643
+ transaction: Transaction;
6644
+ /**
6645
+ * Array of log events
6646
+ */
6647
+ logs?: Array<Log>;
6648
+ };
6649
+
5081
6650
  type Unauthorized = {
5082
6651
  /**
5083
6652
  * The error message describing the reason for the exception
@@ -5093,4 +6662,43 @@ type Unauthorized = {
5093
6662
  error: string;
5094
6663
  };
5095
6664
 
5096
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, 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, 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, GlacierApiFeature, GlacierApiUsageMetricsService, 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, NetworkType, 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, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, 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 };
6665
+ type WebhookAddressActivityResponse = {
6666
+ /**
6667
+ * Webhook ID
6668
+ */
6669
+ webhookId: string;
6670
+ /**
6671
+ * Event type
6672
+ */
6673
+ eventType: WebhookAddressActivityResponse.eventType;
6674
+ /**
6675
+ * Message ID
6676
+ */
6677
+ messageId: string;
6678
+ /**
6679
+ * Event details
6680
+ */
6681
+ event: TransactionEvent;
6682
+ };
6683
+ declare namespace WebhookAddressActivityResponse {
6684
+ /**
6685
+ * Event type
6686
+ */
6687
+ enum eventType {
6688
+ ADDRESS_ACTIVITY = "address_activity"
6689
+ }
6690
+ }
6691
+
6692
+ declare class FetchHttpRequest extends BaseHttpRequest {
6693
+ constructor(config: OpenAPIConfig);
6694
+ /**
6695
+ * Request method
6696
+ * @param options The request options from the service
6697
+ * @returns CancelablePromise<T>
6698
+ * @throws ApiError
6699
+ */
6700
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6701
+ }
6702
+
6703
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, 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, EventType, 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, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, 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, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6704
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, 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, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, 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, ValidatorHealthDetails, ValidatorsDetails, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };