@avalabs/glacier-sdk 3.1.0-canary.18b53a8.0 → 3.1.0-canary.1a892a5.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 (297) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2053 -385
  3. package/esm/generated/Glacier.d.ts +8 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  6. package/esm/generated/core/ApiResult.d.ts +1 -1
  7. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  8. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  9. package/esm/generated/core/OpenAPI.d.ts +2 -1
  10. package/esm/generated/core/OpenAPI.js +1 -1
  11. package/esm/generated/models/AccessListData.d.ts +12 -0
  12. package/esm/generated/models/AccessRequest.d.ts +12 -0
  13. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  14. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  15. package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  18. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  19. package/esm/generated/models/AssetAmount.d.ts +1 -1
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  21. package/esm/generated/models/BadGateway.d.ts +1 -1
  22. package/esm/generated/models/BadRequest.d.ts +1 -1
  23. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  24. package/esm/generated/models/Blockchain.d.ts +9 -1
  25. package/esm/generated/models/BlockchainInfo.d.ts +7 -2
  26. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  27. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  28. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  29. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  30. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  31. package/esm/generated/models/ChainInfo.d.ts +1 -1
  32. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  33. package/esm/generated/models/CommonBalanceType.js +1 -0
  34. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  35. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  36. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  37. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  38. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +5 -5
  39. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
  40. package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
  41. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  42. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  43. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  44. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  45. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  46. package/esm/generated/models/ERCToken.d.ts +24 -0
  47. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  48. package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
  49. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  50. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  51. package/esm/generated/models/EVMInput.d.ts +1 -1
  52. package/esm/generated/models/EVMOutput.d.ts +1 -1
  53. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  54. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  55. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  56. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  57. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  58. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  59. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  60. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  61. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  62. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  63. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  64. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  65. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  66. package/esm/generated/models/EvmBlock.d.ts +5 -1
  67. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  68. package/esm/generated/models/Forbidden.d.ts +1 -1
  69. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  70. package/esm/generated/models/Geolocation.d.ts +24 -0
  71. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  72. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  73. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  74. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  75. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  76. package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
  77. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  78. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  79. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  80. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  81. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  82. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  83. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  84. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  85. package/esm/generated/models/IcmRewardDetails.js +1 -0
  86. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  87. package/esm/generated/models/ImageAsset.d.ts +1 -1
  88. package/esm/generated/models/InternalServerError.d.ts +1 -1
  89. package/esm/generated/models/InternalTransaction.d.ts +1 -1
  90. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  91. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  92. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  93. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  94. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  95. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  96. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  97. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  98. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  99. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  100. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  101. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  102. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  103. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  104. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  105. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  106. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  107. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  108. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  109. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  110. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  111. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  112. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  113. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  114. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  115. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  116. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  117. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  118. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  120. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  121. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  122. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  124. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  125. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  126. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  127. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  128. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  129. package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
  130. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  131. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  133. package/esm/generated/models/Log.d.ts +40 -0
  134. package/esm/generated/models/LogsFormat.d.ts +1 -1
  135. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  136. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  137. package/esm/generated/models/Method.d.ts +1 -1
  138. package/esm/generated/models/Metric.d.ts +1 -1
  139. package/esm/generated/models/Money.d.ts +1 -1
  140. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  141. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  142. package/esm/generated/models/Network.d.ts +2 -1
  143. package/esm/generated/models/Network.js +1 -1
  144. package/esm/generated/models/NetworkToken.d.ts +1 -1
  145. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  146. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  147. package/esm/generated/models/NextPageToken.d.ts +1 -1
  148. package/esm/generated/models/NotFound.d.ts +1 -1
  149. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  150. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  151. package/esm/generated/models/PChainBalance.d.ts +1 -1
  152. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  153. package/esm/generated/models/PChainTransaction.d.ts +39 -8
  154. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  155. package/esm/generated/models/PChainTransactionType.js +1 -1
  156. package/esm/generated/models/PChainUtxo.d.ts +32 -1
  157. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  158. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  159. package/esm/generated/models/PendingIcmMessage.js +1 -0
  160. package/esm/generated/models/PendingReward.d.ts +1 -1
  161. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  162. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  163. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  164. package/esm/generated/models/PricingProviders.d.ts +1 -1
  165. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  166. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  167. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  168. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  169. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  170. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  171. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  172. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  173. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  174. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  175. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  176. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  177. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  178. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  179. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  180. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  181. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  182. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  183. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  184. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  185. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  186. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  187. package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
  188. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  189. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  190. package/esm/generated/models/ResourceLink.d.ts +1 -1
  191. package/esm/generated/models/Rewards.d.ts +1 -1
  192. package/esm/generated/models/RichAddress.d.ts +1 -1
  193. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  194. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  195. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  196. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  197. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  198. package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
  199. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  200. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  201. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  202. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  203. package/esm/generated/models/Subnet.d.ts +16 -3
  204. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  205. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  206. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  207. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  208. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  209. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  210. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  211. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  212. package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
  213. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  214. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  215. package/esm/generated/models/TooManyRequests.d.ts +1 -1
  216. package/esm/generated/models/Transaction.d.ts +121 -0
  217. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  218. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  219. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  220. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  221. package/esm/generated/models/Unauthorized.d.ts +1 -1
  222. package/esm/generated/models/UnknownContract.d.ts +1 -1
  223. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  224. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  225. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  226. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  227. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  228. package/esm/generated/models/Utxo.d.ts +5 -1
  229. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  230. package/esm/generated/models/UtxoType.d.ts +3 -0
  231. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  232. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  233. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  234. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  235. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  236. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  237. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  238. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  239. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  240. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  241. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  242. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  243. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  244. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  245. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  246. package/esm/generated/models/XChainBalances.d.ts +1 -1
  247. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  248. package/esm/generated/models/XChainVertex.d.ts +1 -1
  249. package/esm/generated/services/AvaxSupplyService.d.ts +16 -0
  250. package/esm/generated/services/AvaxSupplyService.js +1 -0
  251. package/esm/generated/services/DataApiUsageMetricsService.d.ts +166 -22
  252. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  253. package/esm/generated/services/EvmBalancesService.d.ts +9 -9
  254. package/esm/generated/services/EvmBlocksService.d.ts +23 -2
  255. package/esm/generated/services/EvmBlocksService.js +1 -1
  256. package/esm/generated/services/EvmChainsService.d.ts +84 -6
  257. package/esm/generated/services/EvmChainsService.js +1 -1
  258. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  259. package/esm/generated/services/EvmTransactionsService.d.ts +47 -14
  260. package/esm/generated/services/EvmTransactionsService.js +1 -1
  261. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  262. package/esm/generated/services/HealthCheckService.js +1 -1
  263. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  264. package/esm/generated/services/InterchainMessagingService.js +1 -0
  265. package/esm/generated/services/NfTsService.d.ts +3 -3
  266. package/esm/generated/services/NotificationsService.d.ts +51 -0
  267. package/esm/generated/services/NotificationsService.js +1 -0
  268. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  269. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
  270. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  271. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  272. package/esm/generated/services/PrimaryNetworkService.d.ts +64 -13
  273. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  274. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
  275. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  276. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  277. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  278. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  279. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  280. package/esm/generated/services/TeleporterService.d.ts +17 -11
  281. package/esm/generated/services/WebhooksService.d.ts +28 -24
  282. package/esm/generated/services/WebhooksService.js +1 -1
  283. package/esm/index.d.ts +67 -10
  284. package/esm/index.js +1 -1
  285. package/package.json +13 -4
  286. package/dist/index.js +0 -1
  287. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  288. package/esm/generated/models/EventType.d.ts +0 -5
  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/RpcService.d.ts +0 -25
  297. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,18 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ declare class AvaxSupplyService {
58
+ readonly httpRequest: BaseHttpRequest;
59
+ constructor(httpRequest: BaseHttpRequest);
60
+ /**
61
+ * Get AVAX supply information
62
+ * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
63
+ * @returns void
64
+ * @throws ApiError
65
+ */
66
+ getAvaxSupply(): CancelablePromise<void>;
67
+ }
68
+
57
69
  type LogsFormatMetadata = {
58
70
  /**
59
71
  * The IP address of the client that made the request.
@@ -148,6 +160,145 @@ type LogsResponseDTO = {
148
160
  logs: Array<LogsFormat>;
149
161
  };
150
162
 
163
+ declare enum Network {
164
+ MAINNET = "mainnet",
165
+ FUJI = "fuji",
166
+ TESTNET = "testnet"
167
+ }
168
+
169
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
170
+ RPC_METHOD = "rpcMethod",
171
+ REQUEST_PATH = "requestPath",
172
+ RESPONSE_CODE = "responseCode",
173
+ COUNTRY = "country",
174
+ CONTINENT = "continent",
175
+ USER_AGENT = "userAgent"
176
+ }
177
+
178
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
179
+ HOURLY = "hourly",
180
+ DAILY = "daily",
181
+ WEEKLY = "weekly",
182
+ MONTHLY = "monthly"
183
+ }
184
+
185
+ type RpcUsageMetricsValueAggregated = {
186
+ /**
187
+ * The total number of requests
188
+ */
189
+ totalRequests: number;
190
+ /**
191
+ * The number of API credits used
192
+ */
193
+ apiCreditsUsed: number;
194
+ /**
195
+ * The number of requests per second
196
+ */
197
+ requestsPerSecond: number;
198
+ /**
199
+ * The success rate percentage
200
+ */
201
+ successRatePercent: number;
202
+ /**
203
+ * The median response time in milliseconds
204
+ */
205
+ medianResponseTimeMsecs: number;
206
+ /**
207
+ * The number of invalid requests
208
+ */
209
+ invalidRequests: number;
210
+ /**
211
+ * The number of API credits wasted on invalid requests
212
+ */
213
+ apiCreditsWasted: number;
214
+ /**
215
+ * Column name used for data aggregation
216
+ */
217
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
218
+ /**
219
+ * The value of the column used for data aggregation
220
+ */
221
+ groupValue?: (string | number);
222
+ };
223
+ declare namespace RpcUsageMetricsValueAggregated {
224
+ /**
225
+ * Column name used for data aggregation
226
+ */
227
+ enum groupedBy {
228
+ RPC_METHOD = "rpcMethod",
229
+ RESPONSE_CODE = "responseCode",
230
+ RL_BYPASS_TOKEN = "rlBypassToken",
231
+ REQUEST_PATH = "requestPath",
232
+ COUNTRY = "country",
233
+ CONTINENT = "continent",
234
+ USER_AGENT = "userAgent",
235
+ NONE = "None"
236
+ }
237
+ }
238
+
239
+ type RpcMetrics = {
240
+ /**
241
+ * The timestamp of the metrics value
242
+ */
243
+ timestamp: number;
244
+ /**
245
+ * The metrics values for the timestamp
246
+ */
247
+ values: Array<RpcUsageMetricsValueAggregated>;
248
+ };
249
+
250
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
251
+ /**
252
+ * Duration in which the metrics value is aggregated
253
+ */
254
+ aggregateDuration: string;
255
+ /**
256
+ * Metrics values
257
+ */
258
+ metrics: Array<RpcMetrics>;
259
+ /**
260
+ * Network type for which the metrics are aggregated
261
+ */
262
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
263
+ };
264
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
265
+ /**
266
+ * Network type for which the metrics are aggregated
267
+ */
268
+ enum network {
269
+ MAINNET = "mainnet",
270
+ TESTNET = "testnet"
271
+ }
272
+ }
273
+
274
+ declare enum RpcUsageMetricsGroupByEnum {
275
+ RPC_METHOD = "rpcMethod",
276
+ RESPONSE_CODE = "responseCode",
277
+ RL_BYPASS_TOKEN = "rlBypassToken"
278
+ }
279
+
280
+ declare enum SubnetRpcTimeIntervalGranularity {
281
+ HOURLY = "hourly",
282
+ DAILY = "daily",
283
+ WEEKLY = "weekly",
284
+ MONTHLY = "monthly"
285
+ }
286
+
287
+ type SubnetRpcUsageMetricsResponseDTO = {
288
+ /**
289
+ * Duration in which the metrics value is aggregated
290
+ */
291
+ aggregateDuration: string;
292
+ /**
293
+ * Metrics values
294
+ */
295
+ metrics: Array<RpcMetrics>;
296
+ /**
297
+ * ChainId for which the metrics are aggregated
298
+ */
299
+ chainId: string;
300
+ };
301
+
151
302
  declare enum TimeIntervalGranularityExtended {
152
303
  MINUTE = "minute",
153
304
  HOURLY = "hourly",
@@ -251,17 +402,17 @@ declare class DataApiUsageMetricsService {
251
402
  * @returns UsageMetricsResponseDTO Successful response
252
403
  * @throws ApiError
253
404
  */
254
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
405
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
255
406
  /**
256
407
  * Organization ID to fetch usage metrics for
257
408
  */
258
409
  orgId?: string;
259
410
  /**
260
- * Query param for retrieving items after a specific timestamp.
411
+ * 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.
261
412
  */
262
413
  startTimestamp?: number;
263
414
  /**
264
- * Query param for retrieving items before a specific timestamp.
415
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
265
416
  */
266
417
  endTimestamp?: number;
267
418
  /**
@@ -273,25 +424,25 @@ declare class DataApiUsageMetricsService {
273
424
  */
274
425
  groupBy?: UsageMetricsGroupByEnum;
275
426
  /**
276
- * Filter data by request path.
277
- */
278
- requestPath?: string;
279
- /**
280
- * Filter data by request type.
427
+ * Filter data by chain ID.
281
428
  */
282
- requestType?: 'data' | 'rpc';
429
+ chainId?: string;
283
430
  /**
284
431
  * Filter data by response status code.
285
432
  */
286
433
  responseCode?: string;
287
434
  /**
288
- * Filter data by chain ID.
435
+ * Filter data by request type.
289
436
  */
290
- chainId?: string;
437
+ requestType?: 'data' | 'rpc';
291
438
  /**
292
439
  * Filter data by API key ID.
293
440
  */
294
441
  apiKeyId?: string;
442
+ /**
443
+ * Filter data by request path.
444
+ */
445
+ requestPath?: string;
295
446
  }): CancelablePromise<UsageMetricsResponseDTO>;
296
447
  /**
297
448
  * Get logs for requests made by client
@@ -299,39 +450,39 @@ declare class DataApiUsageMetricsService {
299
450
  * @returns LogsResponseDTO Successful response
300
451
  * @throws ApiError
301
452
  */
302
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
453
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
303
454
  /**
304
455
  * Organization ID to fetch usage metrics for
305
456
  */
306
457
  orgId?: string;
307
458
  /**
308
- * Query param for retrieving items after a specific timestamp.
459
+ * 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.
309
460
  */
310
461
  startTimestamp?: number;
311
462
  /**
312
- * Query param for retrieving items before a specific timestamp.
463
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
313
464
  */
314
465
  endTimestamp?: number;
315
466
  /**
316
- * Filter data by request path.
317
- */
318
- requestPath?: string;
319
- /**
320
- * Filter data by request type.
467
+ * Filter data by chain ID.
321
468
  */
322
- requestType?: 'data' | 'rpc';
469
+ chainId?: string;
323
470
  /**
324
471
  * Filter data by response status code.
325
472
  */
326
473
  responseCode?: string;
327
474
  /**
328
- * Filter data by chain ID.
475
+ * Filter data by request type.
329
476
  */
330
- chainId?: string;
477
+ requestType?: 'data' | 'rpc';
331
478
  /**
332
479
  * Filter data by API key ID.
333
480
  */
334
481
  apiKeyId?: string;
482
+ /**
483
+ * Filter data by request path.
484
+ */
485
+ requestPath?: string;
335
486
  /**
336
487
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
337
488
  */
@@ -341,6 +492,143 @@ declare class DataApiUsageMetricsService {
341
492
  */
342
493
  pageSize?: number;
343
494
  }): CancelablePromise<LogsResponseDTO>;
495
+ /**
496
+ * Get usage metrics for the Subnet RPC
497
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
498
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
499
+ * @throws ApiError
500
+ */
501
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
502
+ /**
503
+ * Time interval granularity for data aggregation for subnet
504
+ * rpc metrics
505
+ */
506
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
507
+ /**
508
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
509
+ */
510
+ startTimestamp?: number;
511
+ /**
512
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
513
+ */
514
+ endTimestamp?: number;
515
+ /**
516
+ * Query param for the criterion used for grouping metrics
517
+ */
518
+ groupBy?: RpcUsageMetricsGroupByEnum;
519
+ /**
520
+ * Filter data by chain ID.
521
+ */
522
+ chainId?: string;
523
+ /**
524
+ * Filter data by response status code.
525
+ */
526
+ responseCode?: string;
527
+ /**
528
+ * Filter data by RPC method.
529
+ */
530
+ rpcMethod?: string;
531
+ /**
532
+ * Filter data by Rl Bypass API Token.
533
+ */
534
+ rlBypassApiToken?: string;
535
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
536
+ /**
537
+ * @deprecated
538
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
539
+ *
540
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
541
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
542
+ * @throws ApiError
543
+ */
544
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
545
+ /**
546
+ * Time interval granularity for data aggregation for subnet
547
+ * rpc metrics
548
+ */
549
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
550
+ /**
551
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
552
+ */
553
+ startTimestamp?: number;
554
+ /**
555
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
556
+ */
557
+ endTimestamp?: number;
558
+ /**
559
+ * Query param for the criterion used for grouping metrics
560
+ */
561
+ groupBy?: RpcUsageMetricsGroupByEnum;
562
+ /**
563
+ * Filter data by chain ID.
564
+ */
565
+ chainId?: string;
566
+ /**
567
+ * Filter data by response status code.
568
+ */
569
+ responseCode?: string;
570
+ /**
571
+ * Filter data by RPC method.
572
+ */
573
+ rpcMethod?: string;
574
+ /**
575
+ * Filter data by Rl Bypass API Token.
576
+ */
577
+ rlBypassApiToken?: string;
578
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
579
+ /**
580
+ * Get usage metrics for the Primary Network RPC
581
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
582
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
583
+ * @throws ApiError
584
+ */
585
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
586
+ /**
587
+ * Either mainnet or testnet/fuji.
588
+ */
589
+ network: Network;
590
+ /**
591
+ * Time interval granularity for data aggregation for subnet
592
+ * rpc metrics
593
+ */
594
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
595
+ /**
596
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
597
+ */
598
+ startTimestamp?: number;
599
+ /**
600
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
601
+ */
602
+ endTimestamp?: number;
603
+ /**
604
+ * Query param for the criterion used for grouping metrics
605
+ */
606
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
607
+ /**
608
+ * Filter data by response status code.
609
+ */
610
+ responseCode?: string;
611
+ /**
612
+ * Filter data by request path.
613
+ */
614
+ requestPath?: string;
615
+ /**
616
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
617
+ */
618
+ country?: string;
619
+ /**
620
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
621
+ */
622
+ continent?: string;
623
+ /**
624
+ * Filter data by User Agent.
625
+ */
626
+ userAgent?: string;
627
+ /**
628
+ * Filter data by RPC method.
629
+ */
630
+ rpcMethod?: string;
631
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
344
632
  }
345
633
 
346
634
  declare class DefaultService {
@@ -539,6 +827,10 @@ type ListErc1155BalancesResponse = {
539
827
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
540
828
  */
541
829
  nextPageToken?: string;
830
+ /**
831
+ * The native token balance for the address.
832
+ */
833
+ nativeTokenBalance: NativeTokenBalance;
542
834
  /**
543
835
  * The list of ERC-1155 token balances for the address.
544
836
  */
@@ -583,11 +875,22 @@ type Erc20TokenBalance = {
583
875
  * The monetary value of the balance, if a price is available for the token.
584
876
  */
585
877
  balanceValue?: Money;
878
+ /**
879
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
880
+ */
881
+ tokenReputation: Erc20TokenBalance.tokenReputation;
586
882
  };
587
883
  declare namespace Erc20TokenBalance {
588
884
  enum ercType {
589
885
  ERC_20 = "ERC-20"
590
886
  }
887
+ /**
888
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
889
+ */
890
+ enum tokenReputation {
891
+ MALICIOUS = "Malicious",
892
+ BENIGN = "Benign"
893
+ }
591
894
  }
592
895
 
593
896
  type ListErc20BalancesResponse = {
@@ -595,6 +898,10 @@ type ListErc20BalancesResponse = {
595
898
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
596
899
  */
597
900
  nextPageToken?: string;
901
+ /**
902
+ * The native token balance for the address.
903
+ */
904
+ nativeTokenBalance: NativeTokenBalance;
598
905
  /**
599
906
  * The list of ERC-20 token balances for the address.
600
907
  */
@@ -606,6 +913,10 @@ type ListErc721BalancesResponse = {
606
913
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
607
914
  */
608
915
  nextPageToken?: string;
916
+ /**
917
+ * The native token balance for the address.
918
+ */
919
+ nativeTokenBalance: NativeTokenBalance;
609
920
  /**
610
921
  * The list of ERC-721 token balances for the address.
611
922
  */
@@ -625,7 +936,7 @@ declare class EvmBalancesService {
625
936
  */
626
937
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
938
  /**
628
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
939
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
940
  */
630
941
  chainId: string;
631
942
  /**
@@ -653,7 +964,7 @@ declare class EvmBalancesService {
653
964
  */
654
965
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
966
  /**
656
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
967
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
968
  */
658
969
  chainId: string;
659
970
  /**
@@ -669,7 +980,7 @@ declare class EvmBalancesService {
669
980
  */
670
981
  pageToken?: string;
671
982
  /**
672
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
983
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
673
984
  */
674
985
  pageSize?: number;
675
986
  /**
@@ -695,7 +1006,7 @@ declare class EvmBalancesService {
695
1006
  */
696
1007
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
1008
  /**
698
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1009
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
1010
  */
700
1011
  chainId: string;
701
1012
  /**
@@ -707,7 +1018,7 @@ declare class EvmBalancesService {
707
1018
  */
708
1019
  pageToken?: string;
709
1020
  /**
710
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1021
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
711
1022
  */
712
1023
  pageSize?: number;
713
1024
  /**
@@ -727,7 +1038,7 @@ declare class EvmBalancesService {
727
1038
  */
728
1039
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
1040
  /**
730
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1041
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
1042
  */
732
1043
  chainId: string;
733
1044
  /**
@@ -743,7 +1054,7 @@ declare class EvmBalancesService {
743
1054
  */
744
1055
  pageToken?: string;
745
1056
  /**
746
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1057
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
747
1058
  */
748
1059
  pageSize?: number;
749
1060
  /**
@@ -761,7 +1072,7 @@ declare class EvmBalancesService {
761
1072
  */
762
1073
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
1074
  /**
764
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1075
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
1076
  */
766
1077
  chainId: string;
767
1078
  /**
@@ -773,7 +1084,7 @@ declare class EvmBalancesService {
773
1084
  */
774
1085
  pageToken?: string;
775
1086
  /**
776
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1087
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
777
1088
  */
778
1089
  pageSize?: number;
779
1090
  /**
@@ -784,6 +1095,10 @@ declare class EvmBalancesService {
784
1095
  }
785
1096
 
786
1097
  type GetEvmBlockResponse = {
1098
+ /**
1099
+ * The EVM chain ID on which the block was created.
1100
+ */
1101
+ chainId: string;
787
1102
  /**
788
1103
  * The block number on the chain.
789
1104
  */
@@ -828,6 +1143,10 @@ type GetEvmBlockResponse = {
828
1143
  };
829
1144
 
830
1145
  type EvmBlock = {
1146
+ /**
1147
+ * The EVM chain ID on which the block was created.
1148
+ */
1149
+ chainId: string;
831
1150
  /**
832
1151
  * The block number on the chain.
833
1152
  */
@@ -882,6 +1201,26 @@ type ListEvmBlocksResponse = {
882
1201
  declare class EvmBlocksService {
883
1202
  readonly httpRequest: BaseHttpRequest;
884
1203
  constructor(httpRequest: BaseHttpRequest);
1204
+ /**
1205
+ * List latest blocks across all supported EVM chains
1206
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1207
+ * @returns ListEvmBlocksResponse Successful response
1208
+ * @throws ApiError
1209
+ */
1210
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1211
+ /**
1212
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1213
+ */
1214
+ pageToken?: string;
1215
+ /**
1216
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1217
+ */
1218
+ pageSize?: number;
1219
+ /**
1220
+ * Either mainnet or testnet/fuji.
1221
+ */
1222
+ network?: Network;
1223
+ }): CancelablePromise<ListEvmBlocksResponse>;
885
1224
  /**
886
1225
  * List latest blocks
887
1226
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -890,7 +1229,7 @@ declare class EvmBlocksService {
890
1229
  */
891
1230
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
1231
  /**
893
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1232
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
1233
  */
895
1234
  chainId: string;
896
1235
  /**
@@ -910,7 +1249,7 @@ declare class EvmBlocksService {
910
1249
  */
911
1250
  getBlock({ chainId, blockId, }: {
912
1251
  /**
913
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1252
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
1253
  */
915
1254
  chainId: string;
916
1255
  /**
@@ -1004,29 +1343,153 @@ type ChainInfo = {
1004
1343
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1005
1344
  };
1006
1345
 
1346
+ type ListAddressChainsResponse = {
1347
+ indexedChains?: Array<ChainInfo>;
1348
+ unindexedChains?: Array<string>;
1349
+ };
1350
+
1007
1351
  type ListChainsResponse = {
1008
1352
  chains: Array<ChainInfo>;
1009
1353
  };
1010
1354
 
1011
- declare enum NetworkType {
1012
- MAINNET = "mainnet",
1013
- TESTNET = "testnet"
1355
+ /**
1356
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1357
+ */
1358
+ declare enum TransactionMethodType {
1359
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1360
+ CONTRACT_CALL = "CONTRACT_CALL",
1361
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1362
+ }
1363
+
1364
+ type Method = {
1365
+ callType: TransactionMethodType;
1366
+ /**
1367
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1368
+ */
1369
+ methodHash: string;
1370
+ /**
1371
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1372
+ */
1373
+ methodName?: string;
1374
+ };
1375
+
1376
+ type RichAddress = {
1377
+ /**
1378
+ * The contract name.
1379
+ */
1380
+ name?: string;
1381
+ /**
1382
+ * The contract symbol.
1383
+ */
1384
+ symbol?: string;
1385
+ /**
1386
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1387
+ */
1388
+ decimals?: number;
1389
+ /**
1390
+ * The logo uri for the address.
1391
+ */
1392
+ logoUri?: string;
1393
+ /**
1394
+ * A wallet or contract address in mixed-case checksum encoding.
1395
+ */
1396
+ address: string;
1397
+ };
1398
+
1399
+ type NativeTransaction = {
1400
+ /**
1401
+ * The block number on the chain.
1402
+ */
1403
+ blockNumber: string;
1404
+ /**
1405
+ * The block finality timestamp.
1406
+ */
1407
+ blockTimestamp: number;
1408
+ /**
1409
+ * The block hash identifier.
1410
+ */
1411
+ blockHash: string;
1412
+ /**
1413
+ * The EVM chain ID on which the transaction occured.
1414
+ */
1415
+ chainId: string;
1416
+ /**
1417
+ * The index at which the transaction occured in the block (0-indexed).
1418
+ */
1419
+ blockIndex: number;
1420
+ /**
1421
+ * The transaction hash identifier.
1422
+ */
1423
+ txHash: string;
1424
+ /**
1425
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1426
+ */
1427
+ txStatus: string;
1428
+ /**
1429
+ * The transaction type.
1430
+ */
1431
+ txType: number;
1432
+ /**
1433
+ * The gas limit set for the transaction.
1434
+ */
1435
+ gasLimit: string;
1436
+ /**
1437
+ * The amount of gas used.
1438
+ */
1439
+ gasUsed: string;
1440
+ /**
1441
+ * The gas price denominated by the number of decimals of the native token.
1442
+ */
1443
+ gasPrice: string;
1444
+ /**
1445
+ * The nonce used by the sender of the transaction.
1446
+ */
1447
+ nonce: string;
1448
+ from: RichAddress;
1449
+ to: RichAddress;
1450
+ method?: Method;
1451
+ value: string;
1452
+ };
1453
+
1454
+ type ListNativeTransactionsResponse = {
1455
+ /**
1456
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1457
+ */
1458
+ nextPageToken?: string;
1459
+ transactions: Array<NativeTransaction>;
1460
+ };
1461
+
1462
+ declare enum TransactionStatus {
1463
+ FAILED = "failed",
1464
+ SUCCESS = "success"
1014
1465
  }
1015
1466
 
1016
1467
  declare class EvmChainsService {
1017
1468
  readonly httpRequest: BaseHttpRequest;
1018
1469
  constructor(httpRequest: BaseHttpRequest);
1470
+ /**
1471
+ * List all chains associated with a given address
1472
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1473
+ * @returns ListAddressChainsResponse Successful response
1474
+ * @throws ApiError
1475
+ */
1476
+ listAddressChains({ address, }: {
1477
+ /**
1478
+ * A wallet address.
1479
+ */
1480
+ address: string;
1481
+ }): CancelablePromise<ListAddressChainsResponse>;
1019
1482
  /**
1020
1483
  * List chains
1021
- * Lists the supported EVM-compatible chains. Filterable by network.
1484
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1022
1485
  * @returns ListChainsResponse Successful response
1023
1486
  * @throws ApiError
1024
1487
  */
1025
1488
  supportedChains({ network, feature, }: {
1026
1489
  /**
1027
- * mainnet or testnet.
1490
+ * Either mainnet or testnet/fuji.
1028
1491
  */
1029
- network?: NetworkType;
1492
+ network?: Network;
1030
1493
  /**
1031
1494
  * Filter by feature.
1032
1495
  */
@@ -1034,16 +1497,78 @@ declare class EvmChainsService {
1034
1497
  }): CancelablePromise<ListChainsResponse>;
1035
1498
  /**
1036
1499
  * Get chain information
1037
- * Gets chain information for the EVM-compatible chain if supported by the api.
1500
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1038
1501
  * @returns GetChainResponse Successful response
1039
1502
  * @throws ApiError
1040
1503
  */
1041
1504
  getChainInfo({ chainId, }: {
1042
1505
  /**
1043
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1506
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1044
1507
  */
1045
1508
  chainId: string;
1046
1509
  }): CancelablePromise<GetChainResponse>;
1510
+ /**
1511
+ * @deprecated
1512
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1513
+ *
1514
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1515
+ * @returns ListAddressChainsResponse Successful response
1516
+ * @throws ApiError
1517
+ */
1518
+ getAddressChains({ address, }: {
1519
+ /**
1520
+ * A wallet address.
1521
+ */
1522
+ address: string;
1523
+ }): CancelablePromise<ListAddressChainsResponse>;
1524
+ /**
1525
+ * @deprecated
1526
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1527
+ *
1528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1529
+ * @returns ListNativeTransactionsResponse Successful response
1530
+ * @throws ApiError
1531
+ */
1532
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1533
+ /**
1534
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1535
+ */
1536
+ pageToken?: string;
1537
+ /**
1538
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1539
+ */
1540
+ pageSize?: number;
1541
+ /**
1542
+ * Either mainnet or testnet/fuji.
1543
+ */
1544
+ network?: Network;
1545
+ /**
1546
+ * A status filter for listed transactions.
1547
+ */
1548
+ status?: TransactionStatus;
1549
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1550
+ /**
1551
+ * @deprecated
1552
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1553
+ *
1554
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1555
+ * @returns ListEvmBlocksResponse Successful response
1556
+ * @throws ApiError
1557
+ */
1558
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1559
+ /**
1560
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1561
+ */
1562
+ pageToken?: string;
1563
+ /**
1564
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1565
+ */
1566
+ pageSize?: number;
1567
+ /**
1568
+ * Either mainnet or testnet/fuji.
1569
+ */
1570
+ network?: Network;
1571
+ }): CancelablePromise<ListEvmBlocksResponse>;
1047
1572
  }
1048
1573
 
1049
1574
  type ImageAsset = {
@@ -1215,7 +1740,7 @@ type Erc1155Contract = {
1215
1740
  * A wallet or contract address in mixed-case checksum encoding.
1216
1741
  */
1217
1742
  address: string;
1218
- deploymentDetails: ContractDeploymentDetails;
1743
+ deploymentDetails?: ContractDeploymentDetails;
1219
1744
  ercType: Erc1155Contract.ercType;
1220
1745
  /**
1221
1746
  * The contract symbol.
@@ -1246,7 +1771,7 @@ type Erc20Contract = {
1246
1771
  * A wallet or contract address in mixed-case checksum encoding.
1247
1772
  */
1248
1773
  address: string;
1249
- deploymentDetails: ContractDeploymentDetails;
1774
+ deploymentDetails?: ContractDeploymentDetails;
1250
1775
  ercType: Erc20Contract.ercType;
1251
1776
  /**
1252
1777
  * The contract symbol.
@@ -1281,7 +1806,7 @@ type Erc721Contract = {
1281
1806
  * A wallet or contract address in mixed-case checksum encoding.
1282
1807
  */
1283
1808
  address: string;
1284
- deploymentDetails: ContractDeploymentDetails;
1809
+ deploymentDetails?: ContractDeploymentDetails;
1285
1810
  ercType: Erc721Contract.ercType;
1286
1811
  /**
1287
1812
  * The contract symbol.
@@ -1311,7 +1836,7 @@ type UnknownContract = {
1311
1836
  * A wallet or contract address in mixed-case checksum encoding.
1312
1837
  */
1313
1838
  address: string;
1314
- deploymentDetails: ContractDeploymentDetails;
1839
+ deploymentDetails?: ContractDeploymentDetails;
1315
1840
  ercType: UnknownContract.ercType;
1316
1841
  };
1317
1842
  declare namespace UnknownContract {
@@ -1335,7 +1860,7 @@ declare class EvmContractsService {
1335
1860
  */
1336
1861
  getContractMetadata({ chainId, address, }: {
1337
1862
  /**
1338
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1863
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1339
1864
  */
1340
1865
  chainId: string;
1341
1866
  /**
@@ -1351,7 +1876,7 @@ declare class EvmContractsService {
1351
1876
  */
1352
1877
  updateContractInfo({ chainId, address, requestBody, }: {
1353
1878
  /**
1354
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1879
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1355
1880
  */
1356
1881
  chainId: string;
1357
1882
  /**
@@ -1378,29 +1903,6 @@ declare namespace Erc1155Token {
1378
1903
  }
1379
1904
  }
1380
1905
 
1381
- type RichAddress = {
1382
- /**
1383
- * The contract name.
1384
- */
1385
- name?: string;
1386
- /**
1387
- * The contract symbol.
1388
- */
1389
- symbol?: string;
1390
- /**
1391
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1392
- */
1393
- decimals?: number;
1394
- /**
1395
- * The logo uri for the address.
1396
- */
1397
- logoUri?: string;
1398
- /**
1399
- * A wallet or contract address in mixed-case checksum encoding.
1400
- */
1401
- address: string;
1402
- };
1403
-
1404
1906
  type Erc1155TransferDetails = {
1405
1907
  from: RichAddress;
1406
1908
  to: RichAddress;
@@ -1485,27 +1987,6 @@ type Erc721TransferDetails = {
1485
1987
  erc721Token: Erc721Token;
1486
1988
  };
1487
1989
 
1488
- /**
1489
- * 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.
1490
- */
1491
- declare enum TransactionMethodType {
1492
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1493
- CONTRACT_CALL = "CONTRACT_CALL",
1494
- CONTRACT_CREATION = "CONTRACT_CREATION"
1495
- }
1496
-
1497
- type Method = {
1498
- callType: TransactionMethodType;
1499
- /**
1500
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1501
- */
1502
- methodHash: string;
1503
- /**
1504
- * 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'.
1505
- */
1506
- methodName?: string;
1507
- };
1508
-
1509
1990
  type FullNativeTransactionDetails = {
1510
1991
  /**
1511
1992
  * The block number on the chain.
@@ -1519,6 +2000,10 @@ type FullNativeTransactionDetails = {
1519
2000
  * The block hash identifier.
1520
2001
  */
1521
2002
  blockHash: string;
2003
+ /**
2004
+ * The EVM chain ID on which the transaction occured.
2005
+ */
2006
+ chainId: string;
1522
2007
  /**
1523
2008
  * The index at which the transaction occured in the block (0-indexed).
1524
2009
  */
@@ -1569,6 +2054,7 @@ declare enum InternalTransactionOpCall {
1569
2054
  CALL = "CALL",
1570
2055
  CREATE = "CREATE",
1571
2056
  CREATE2 = "CREATE2",
2057
+ CREATE3 = "CREATE3",
1572
2058
  CALLCODE = "CALLCODE",
1573
2059
  DELEGATECALL = "DELEGATECALL",
1574
2060
  STATICCALL = "STATICCALL"
@@ -1610,11 +2096,11 @@ type TeleporterMessageInfo = {
1610
2096
  /**
1611
2097
  * chain id of the source chain. valid only for destination transactions
1612
2098
  */
1613
- sourceChainId?: Record<string, any>;
2099
+ sourceChainId?: string;
1614
2100
  /**
1615
2101
  * chain id of the destination chain. valid only for source transactions
1616
2102
  */
1617
- destinationChainId?: Record<string, any>;
2103
+ destinationChainId?: string;
1618
2104
  };
1619
2105
 
1620
2106
  type GetTransactionResponse = {
@@ -1631,7 +2117,7 @@ type GetTransactionResponse = {
1631
2117
  */
1632
2118
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1633
2119
  /**
1634
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2120
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1635
2121
  */
1636
2122
  internalTransactions?: Array<InternalTransactionDetails>;
1637
2123
  networkTokenDetails: NetworkTokenDetails;
@@ -1782,84 +2268,25 @@ type ListInternalTransactionsResponse = {
1782
2268
  transactions: Array<InternalTransaction>;
1783
2269
  };
1784
2270
 
1785
- type NativeTransaction = {
2271
+ type TransactionDetails = {
1786
2272
  /**
1787
- * The block number on the chain.
2273
+ * The native (top-level) transaction details.
1788
2274
  */
1789
- blockNumber: string;
2275
+ nativeTransaction: NativeTransaction;
1790
2276
  /**
1791
- * The block finality timestamp.
2277
+ * The list of ERC-20 transfers.
1792
2278
  */
1793
- blockTimestamp: number;
2279
+ erc20Transfers?: Array<Erc20TransferDetails>;
1794
2280
  /**
1795
- * The block hash identifier.
2281
+ * The list of ERC-721 transfers.
1796
2282
  */
1797
- blockHash: string;
2283
+ erc721Transfers?: Array<Erc721TransferDetails>;
1798
2284
  /**
1799
- * The index at which the transaction occured in the block (0-indexed).
2285
+ * The list of ERC-1155 transfers.
1800
2286
  */
1801
- blockIndex: number;
2287
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1802
2288
  /**
1803
- * The transaction hash identifier.
1804
- */
1805
- txHash: string;
1806
- /**
1807
- * The transaction status, which is either 0 (failed) or 1 (successful).
1808
- */
1809
- txStatus: string;
1810
- /**
1811
- * The transaction type.
1812
- */
1813
- txType: number;
1814
- /**
1815
- * The gas limit set for the transaction.
1816
- */
1817
- gasLimit: string;
1818
- /**
1819
- * The amount of gas used.
1820
- */
1821
- gasUsed: string;
1822
- /**
1823
- * The gas price denominated by the number of decimals of the native token.
1824
- */
1825
- gasPrice: string;
1826
- /**
1827
- * The nonce used by the sender of the transaction.
1828
- */
1829
- nonce: string;
1830
- from: RichAddress;
1831
- to: RichAddress;
1832
- method?: Method;
1833
- value: string;
1834
- };
1835
-
1836
- type ListNativeTransactionsResponse = {
1837
- /**
1838
- * 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.
1839
- */
1840
- nextPageToken?: string;
1841
- transactions: Array<NativeTransaction>;
1842
- };
1843
-
1844
- type TransactionDetails = {
1845
- /**
1846
- * The native (top-level) transaction details.
1847
- */
1848
- nativeTransaction: NativeTransaction;
1849
- /**
1850
- * The list of ERC-20 transfers.
1851
- */
1852
- erc20Transfers?: Array<Erc20TransferDetails>;
1853
- /**
1854
- * The list of ERC-721 transfers.
1855
- */
1856
- erc721Transfers?: Array<Erc721TransferDetails>;
1857
- /**
1858
- * The list of ERC-1155 transfers.
1859
- */
1860
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1861
- /**
1862
- * 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.
2289
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1863
2290
  */
1864
2291
  internalTransactions?: Array<InternalTransactionDetails>;
1865
2292
  };
@@ -1885,14 +2312,33 @@ declare enum SortOrder {
1885
2312
  DESC = "desc"
1886
2313
  }
1887
2314
 
1888
- declare enum TransactionStatus {
1889
- FAILED = "failed",
1890
- SUCCESS = "success"
1891
- }
1892
-
1893
2315
  declare class EvmTransactionsService {
1894
2316
  readonly httpRequest: BaseHttpRequest;
1895
2317
  constructor(httpRequest: BaseHttpRequest);
2318
+ /**
2319
+ * List the latest transactions across all supported EVM chains
2320
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2321
+ * @returns ListNativeTransactionsResponse Successful response
2322
+ * @throws ApiError
2323
+ */
2324
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2325
+ /**
2326
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2327
+ */
2328
+ pageToken?: string;
2329
+ /**
2330
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2331
+ */
2332
+ pageSize?: number;
2333
+ /**
2334
+ * Either mainnet or testnet/fuji.
2335
+ */
2336
+ network?: Network;
2337
+ /**
2338
+ * A status filter for listed transactions.
2339
+ */
2340
+ status?: TransactionStatus;
2341
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1896
2342
  /**
1897
2343
  * Get deployment transaction
1898
2344
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -1901,7 +2347,7 @@ declare class EvmTransactionsService {
1901
2347
  */
1902
2348
  getDeploymentTransaction({ chainId, address, currency, }: {
1903
2349
  /**
1904
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2350
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
2351
  */
1906
2352
  chainId: string;
1907
2353
  /**
@@ -1921,7 +2367,7 @@ declare class EvmTransactionsService {
1921
2367
  */
1922
2368
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1923
2369
  /**
1924
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2370
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
2371
  */
1926
2372
  chainId: string;
1927
2373
  /**
@@ -1945,7 +2391,7 @@ declare class EvmTransactionsService {
1945
2391
  */
1946
2392
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1947
2393
  /**
1948
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2394
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1949
2395
  */
1950
2396
  chainId: string;
1951
2397
  /**
@@ -1979,7 +2425,7 @@ declare class EvmTransactionsService {
1979
2425
  */
1980
2426
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1981
2427
  /**
1982
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2428
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1983
2429
  */
1984
2430
  chainId: string;
1985
2431
  /**
@@ -2015,7 +2461,7 @@ declare class EvmTransactionsService {
2015
2461
  */
2016
2462
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2017
2463
  /**
2018
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2464
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2019
2465
  */
2020
2466
  chainId: string;
2021
2467
  /**
@@ -2047,7 +2493,7 @@ declare class EvmTransactionsService {
2047
2493
  */
2048
2494
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2049
2495
  /**
2050
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2496
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2051
2497
  */
2052
2498
  chainId: string;
2053
2499
  /**
@@ -2079,7 +2525,7 @@ declare class EvmTransactionsService {
2079
2525
  */
2080
2526
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2081
2527
  /**
2082
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2528
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2083
2529
  */
2084
2530
  chainId: string;
2085
2531
  /**
@@ -2111,7 +2557,7 @@ declare class EvmTransactionsService {
2111
2557
  */
2112
2558
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2113
2559
  /**
2114
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2560
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2115
2561
  */
2116
2562
  chainId: string;
2117
2563
  /**
@@ -2139,13 +2585,13 @@ declare class EvmTransactionsService {
2139
2585
  * List internal transactions
2140
2586
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
2141
2587
  *
2142
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2588
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2143
2589
  * @returns ListInternalTransactionsResponse Successful response
2144
2590
  * @throws ApiError
2145
2591
  */
2146
2592
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2147
2593
  /**
2148
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2594
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2149
2595
  */
2150
2596
  chainId: string;
2151
2597
  /**
@@ -2177,7 +2623,7 @@ declare class EvmTransactionsService {
2177
2623
  */
2178
2624
  getTransaction({ chainId, txHash, }: {
2179
2625
  /**
2180
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2626
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2181
2627
  */
2182
2628
  chainId: string;
2183
2629
  /**
@@ -2191,15 +2637,23 @@ declare class EvmTransactionsService {
2191
2637
  * @returns ListNativeTransactionsResponse Successful response
2192
2638
  * @throws ApiError
2193
2639
  */
2194
- getTransactionsForBlock({ chainId, blockId, }: {
2640
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2195
2641
  /**
2196
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2642
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2197
2643
  */
2198
2644
  chainId: string;
2199
2645
  /**
2200
2646
  * A block identifier which is either a block number or the block hash.
2201
2647
  */
2202
2648
  blockId: string;
2649
+ /**
2650
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2651
+ */
2652
+ pageToken?: string;
2653
+ /**
2654
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2655
+ */
2656
+ pageSize?: number;
2203
2657
  }): CancelablePromise<ListNativeTransactionsResponse>;
2204
2658
  /**
2205
2659
  * List latest transactions
@@ -2209,7 +2663,7 @@ declare class EvmTransactionsService {
2209
2663
  */
2210
2664
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2211
2665
  /**
2212
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2666
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2213
2667
  */
2214
2668
  chainId: string;
2215
2669
  /**
@@ -2227,99 +2681,442 @@ declare class EvmTransactionsService {
2227
2681
  }): CancelablePromise<ListNativeTransactionsResponse>;
2228
2682
  }
2229
2683
 
2684
+ type HealthIndicatorResultDto = {
2685
+ /**
2686
+ * Status of the health indicator.
2687
+ */
2688
+ status?: HealthIndicatorResultDto.status;
2689
+ };
2690
+ declare namespace HealthIndicatorResultDto {
2691
+ /**
2692
+ * Status of the health indicator.
2693
+ */
2694
+ enum status {
2695
+ UP = "up",
2696
+ DOWN = "down"
2697
+ }
2698
+ }
2699
+
2700
+ type HealthCheckResultDto = {
2701
+ status?: HealthCheckResultDto.status;
2702
+ info?: any | null;
2703
+ error?: any | null;
2704
+ details?: Record<string, HealthIndicatorResultDto>;
2705
+ };
2706
+ declare namespace HealthCheckResultDto {
2707
+ enum status {
2708
+ ERROR = "error",
2709
+ OK = "ok",
2710
+ SHUTTING_DOWN = "shutting_down"
2711
+ }
2712
+ }
2713
+
2230
2714
  declare class HealthCheckService {
2231
2715
  readonly httpRequest: BaseHttpRequest;
2232
2716
  constructor(httpRequest: BaseHttpRequest);
2233
2717
  /**
2234
2718
  * Get the health of the service
2235
- * @returns any The Health Check is successful
2719
+ * Check the health of the service.
2720
+ * @returns HealthCheckResultDto The health of the service
2236
2721
  * @throws ApiError
2237
2722
  */
2238
- dataHealthCheck(): CancelablePromise<{
2239
- status?: string;
2240
- info?: Record<string, Record<string, string>> | null;
2241
- error?: Record<string, Record<string, string>> | null;
2242
- details?: Record<string, Record<string, string>>;
2243
- }>;
2723
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2244
2724
  }
2245
2725
 
2246
- type ListNftTokens = {
2726
+ type IcmDestinationTransaction = {
2727
+ txHash: string;
2728
+ timestamp: number;
2729
+ gasSpent: string;
2730
+ rewardRedeemer: string;
2731
+ delivererAddress: string;
2732
+ };
2733
+
2734
+ type IcmReceipt = {
2735
+ receivedMessageNonce: string;
2736
+ relayerRewardAddress: string;
2737
+ };
2738
+
2739
+ type IcmRewardDetails = {
2740
+ /**
2741
+ * A wallet or contract address in mixed-case checksum encoding.
2742
+ */
2743
+ address: string;
2744
+ /**
2745
+ * The contract name.
2746
+ */
2747
+ name: string;
2748
+ /**
2749
+ * The contract symbol.
2750
+ */
2751
+ symbol: string;
2752
+ /**
2753
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2754
+ */
2755
+ decimals: number;
2756
+ /**
2757
+ * The logo uri for the address.
2758
+ */
2759
+ logoUri?: string;
2760
+ ercType: IcmRewardDetails.ercType;
2761
+ /**
2762
+ * The token price, if available.
2763
+ */
2764
+ price?: Money;
2765
+ value: string;
2766
+ };
2767
+ declare namespace IcmRewardDetails {
2768
+ enum ercType {
2769
+ ERC_20 = "ERC-20"
2770
+ }
2771
+ }
2772
+
2773
+ type IcmSourceTransaction = {
2774
+ txHash: string;
2775
+ timestamp: number;
2776
+ gasSpent: string;
2777
+ };
2778
+
2779
+ type DeliveredIcmMessage = {
2780
+ messageId: string;
2781
+ icmContractAddress: string;
2782
+ sourceBlockchainId: string;
2783
+ destinationBlockchainId: string;
2784
+ sourceEvmChainId: string;
2785
+ destinationEvmChainId: string;
2786
+ messageNonce: string;
2787
+ from: string;
2788
+ to: string;
2789
+ data?: string;
2790
+ messageExecuted: boolean;
2791
+ receipts: Array<IcmReceipt>;
2792
+ receiptDelivered: boolean;
2793
+ rewardDetails: IcmRewardDetails;
2794
+ sourceTransaction: IcmSourceTransaction;
2795
+ destinationTransaction: IcmDestinationTransaction;
2796
+ status: DeliveredIcmMessage.status;
2797
+ };
2798
+ declare namespace DeliveredIcmMessage {
2799
+ enum status {
2800
+ DELIVERED = "delivered"
2801
+ }
2802
+ }
2803
+
2804
+ type DeliveredSourceNotIndexedIcmMessage = {
2805
+ messageId: string;
2806
+ icmContractAddress: string;
2807
+ sourceBlockchainId: string;
2808
+ destinationBlockchainId: string;
2809
+ sourceEvmChainId: string;
2810
+ destinationEvmChainId: string;
2811
+ messageNonce: string;
2812
+ from: string;
2813
+ to: string;
2814
+ data?: string;
2815
+ messageExecuted: boolean;
2816
+ receipts: Array<IcmReceipt>;
2817
+ receiptDelivered: boolean;
2818
+ rewardDetails: IcmRewardDetails;
2819
+ destinationTransaction: IcmDestinationTransaction;
2820
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2821
+ };
2822
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2823
+ enum status {
2824
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2825
+ }
2826
+ }
2827
+
2828
+ type PendingIcmMessage = {
2829
+ messageId: string;
2830
+ icmContractAddress: string;
2831
+ sourceBlockchainId: string;
2832
+ destinationBlockchainId: string;
2833
+ sourceEvmChainId: string;
2834
+ destinationEvmChainId: string;
2835
+ messageNonce: string;
2836
+ from: string;
2837
+ to: string;
2838
+ data?: string;
2839
+ messageExecuted: boolean;
2840
+ receipts: Array<IcmReceipt>;
2841
+ receiptDelivered: boolean;
2842
+ rewardDetails: IcmRewardDetails;
2843
+ sourceTransaction: IcmSourceTransaction;
2844
+ status: PendingIcmMessage.status;
2845
+ };
2846
+ declare namespace PendingIcmMessage {
2847
+ enum status {
2848
+ PENDING = "pending"
2849
+ }
2850
+ }
2851
+
2852
+ type ListIcmMessagesResponse = {
2247
2853
  /**
2248
2854
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2249
2855
  */
2250
2856
  nextPageToken?: string;
2251
- tokens: Array<(Erc721Token | Erc1155Token)>;
2857
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2252
2858
  };
2253
2859
 
2254
- declare class NfTsService {
2860
+ declare class InterchainMessagingService {
2255
2861
  readonly httpRequest: BaseHttpRequest;
2256
2862
  constructor(httpRequest: BaseHttpRequest);
2257
2863
  /**
2258
- * Reindex NFT metadata
2259
- * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2864
+ * Get an ICM message
2865
+ * Gets an ICM message by teleporter message ID.
2260
2866
  * @returns any Successful response
2261
2867
  * @throws ApiError
2262
2868
  */
2263
- reindexNft({ chainId, address, tokenId, }: {
2869
+ getIcmMessage({ messageId, }: {
2264
2870
  /**
2265
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2871
+ * The teleporter message ID of the ICM message.
2266
2872
  */
2267
- chainId: string;
2873
+ messageId: string;
2874
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2875
+ /**
2876
+ * List ICM messages
2877
+ * Lists ICM messages. Ordered by timestamp in descending order.
2878
+ * @returns ListIcmMessagesResponse Successful response
2879
+ * @throws ApiError
2880
+ */
2881
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2268
2882
  /**
2269
- * Contract address on the relevant chain.
2883
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2270
2884
  */
2271
- address: string;
2885
+ pageToken?: string;
2272
2886
  /**
2273
- * TokenId on the contract
2887
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2274
2888
  */
2275
- tokenId: string;
2276
- }): CancelablePromise<any>;
2277
- /**
2278
- * List tokens
2279
- * Lists tokens for an NFT contract.
2280
- * @returns ListNftTokens Successful response
2281
- * @throws ApiError
2282
- */
2283
- listTokens({ chainId, address, pageToken, pageSize, }: {
2889
+ pageSize?: number;
2284
2890
  /**
2285
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2891
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2286
2892
  */
2287
- chainId: string;
2893
+ sourceBlockchainId?: string;
2288
2894
  /**
2289
- * Contract address on the relevant chain.
2895
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2290
2896
  */
2291
- address: string;
2897
+ destinationBlockchainId?: string;
2292
2898
  /**
2293
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2899
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2294
2900
  */
2295
- pageToken?: string;
2901
+ blockchainId?: string;
2296
2902
  /**
2297
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2903
+ * The address of the recipient of the ICM message.
2298
2904
  */
2299
- pageSize?: number;
2300
- }): CancelablePromise<ListNftTokens>;
2905
+ to?: string;
2906
+ /**
2907
+ * The address of the sender of the ICM message.
2908
+ */
2909
+ from?: string;
2910
+ /**
2911
+ * Either mainnet or testnet/fuji.
2912
+ */
2913
+ network?: Network;
2914
+ }): CancelablePromise<ListIcmMessagesResponse>;
2301
2915
  /**
2302
- * Get token details
2303
- * Gets token details for a specific token of an NFT contract.
2304
- * @returns any Successful response
2916
+ * List ICM messages by address
2917
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2918
+ * @returns ListIcmMessagesResponse Successful response
2305
2919
  * @throws ApiError
2306
2920
  */
2307
- getTokenDetails({ chainId, address, tokenId, }: {
2308
- /**
2309
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2310
- */
2311
- chainId: string;
2921
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2312
2922
  /**
2313
- * Contract address on the relevant chain.
2923
+ * An EVM address.
2314
2924
  */
2315
2925
  address: string;
2316
2926
  /**
2317
- * TokenId on the contract
2927
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2928
+ */
2929
+ pageToken?: string;
2930
+ /**
2931
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2932
+ */
2933
+ pageSize?: number;
2934
+ /**
2935
+ * Either mainnet or testnet/fuji.
2936
+ */
2937
+ network?: Network;
2938
+ }): CancelablePromise<ListIcmMessagesResponse>;
2939
+ }
2940
+
2941
+ type ListNftTokens = {
2942
+ /**
2943
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2944
+ */
2945
+ nextPageToken?: string;
2946
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2947
+ };
2948
+
2949
+ declare class NfTsService {
2950
+ readonly httpRequest: BaseHttpRequest;
2951
+ constructor(httpRequest: BaseHttpRequest);
2952
+ /**
2953
+ * Reindex NFT metadata
2954
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2955
+ * @returns any Successful response
2956
+ * @throws ApiError
2957
+ */
2958
+ reindexNft({ chainId, address, tokenId, }: {
2959
+ /**
2960
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2961
+ */
2962
+ chainId: string;
2963
+ /**
2964
+ * Contract address on the relevant chain.
2965
+ */
2966
+ address: string;
2967
+ /**
2968
+ * TokenId on the contract
2969
+ */
2970
+ tokenId: string;
2971
+ }): CancelablePromise<any>;
2972
+ /**
2973
+ * List tokens
2974
+ * Lists tokens for an NFT contract.
2975
+ * @returns ListNftTokens Successful response
2976
+ * @throws ApiError
2977
+ */
2978
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2979
+ /**
2980
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2981
+ */
2982
+ chainId: string;
2983
+ /**
2984
+ * Contract address on the relevant chain.
2985
+ */
2986
+ address: string;
2987
+ /**
2988
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2989
+ */
2990
+ pageToken?: string;
2991
+ /**
2992
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2993
+ */
2994
+ pageSize?: number;
2995
+ }): CancelablePromise<ListNftTokens>;
2996
+ /**
2997
+ * Get token details
2998
+ * Gets token details for a specific token of an NFT contract.
2999
+ * @returns any Successful response
3000
+ * @throws ApiError
3001
+ */
3002
+ getTokenDetails({ chainId, address, tokenId, }: {
3003
+ /**
3004
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3005
+ */
3006
+ chainId: string;
3007
+ /**
3008
+ * Contract address on the relevant chain.
3009
+ */
3010
+ address: string;
3011
+ /**
3012
+ * TokenId on the contract
2318
3013
  */
2319
3014
  tokenId: string;
2320
3015
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2321
3016
  }
2322
3017
 
3018
+ type AccessRequest = {
3019
+ /**
3020
+ * The email address to send the access token to
3021
+ */
3022
+ email: string;
3023
+ /**
3024
+ * The captcha to verify the user
3025
+ */
3026
+ captcha: string;
3027
+ };
3028
+
3029
+ type NotificationsResponse = {
3030
+ message: string;
3031
+ };
3032
+
3033
+ type SubscribeRequest = {
3034
+ /**
3035
+ * The access token to use for authentication
3036
+ */
3037
+ accessToken: string;
3038
+ /**
3039
+ * The node ID to subscribe to
3040
+ */
3041
+ nodeId: string;
3042
+ /**
3043
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3044
+ */
3045
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3046
+ };
3047
+
3048
+ type SubscriptionsRequest = {
3049
+ /**
3050
+ * The access token to use for authentication
3051
+ */
3052
+ accessToken: string;
3053
+ };
3054
+
3055
+ type SubscriptionsResponse = {
3056
+ /**
3057
+ * The email address of the user
3058
+ */
3059
+ email: string;
3060
+ /**
3061
+ * The subscriptions of the user
3062
+ */
3063
+ subscriptions: Record<string, {
3064
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3065
+ }>;
3066
+ };
3067
+
3068
+ type UnsubscribeRequest = {
3069
+ /**
3070
+ * The access token to use for authentication
3071
+ */
3072
+ accessToken: string;
3073
+ /**
3074
+ * The node ID to subscribe to
3075
+ */
3076
+ nodeId: string;
3077
+ };
3078
+
3079
+ declare class NotificationsService {
3080
+ readonly httpRequest: BaseHttpRequest;
3081
+ constructor(httpRequest: BaseHttpRequest);
3082
+ /**
3083
+ * Access Notifications
3084
+ * Access notifications.
3085
+ * @returns NotificationsResponse Successful response
3086
+ * @throws ApiError
3087
+ */
3088
+ access({ requestBody, }: {
3089
+ requestBody: AccessRequest;
3090
+ }): CancelablePromise<NotificationsResponse>;
3091
+ /**
3092
+ * Subscribe to Notifications
3093
+ * Subscribe to receive notifications.
3094
+ * @returns NotificationsResponse Successful response
3095
+ * @throws ApiError
3096
+ */
3097
+ subscribe({ requestBody, }: {
3098
+ requestBody: SubscribeRequest;
3099
+ }): CancelablePromise<NotificationsResponse>;
3100
+ /**
3101
+ * Unsubscribe from Notifications
3102
+ * Unsubscribe from receiving notifications.
3103
+ * @returns NotificationsResponse Successful response
3104
+ * @throws ApiError
3105
+ */
3106
+ unsubscribe({ requestBody, }: {
3107
+ requestBody: UnsubscribeRequest;
3108
+ }): CancelablePromise<NotificationsResponse>;
3109
+ /**
3110
+ * Get Subscriptions
3111
+ * Get subscriptions.
3112
+ * @returns SubscriptionsResponse Successful response
3113
+ * @throws ApiError
3114
+ */
3115
+ subscriptions({ requestBody, }: {
3116
+ requestBody: SubscriptionsRequest;
3117
+ }): CancelablePromise<SubscriptionsResponse>;
3118
+ }
3119
+
2323
3120
  type EvmNetworkOptions = {
2324
3121
  addresses: Array<string>;
2325
3122
  includeChains: Array<string>;
@@ -2331,16 +3128,16 @@ declare enum EVMOperationType {
2331
3128
 
2332
3129
  type CreateEvmTransactionExportRequest = {
2333
3130
  type: EVMOperationType;
2334
- firstDate: string;
2335
- lastDate: string;
3131
+ firstDate?: string;
3132
+ lastDate?: string;
2336
3133
  /**
2337
3134
  * @deprecated
2338
3135
  */
2339
- startDate: string;
3136
+ startDate?: string;
2340
3137
  /**
2341
3138
  * @deprecated
2342
3139
  */
2343
- endDate: string;
3140
+ endDate?: string;
2344
3141
  options: EvmNetworkOptions;
2345
3142
  };
2346
3143
 
@@ -2358,16 +3155,16 @@ type PrimaryNetworkOptions = {
2358
3155
 
2359
3156
  type CreatePrimaryNetworkTransactionExportRequest = {
2360
3157
  type: PrimaryNetworkOperationType;
2361
- firstDate: string;
2362
- lastDate: string;
3158
+ firstDate?: string;
3159
+ lastDate?: string;
2363
3160
  /**
2364
3161
  * @deprecated
2365
3162
  */
2366
- startDate: string;
3163
+ startDate?: string;
2367
3164
  /**
2368
3165
  * @deprecated
2369
3166
  */
2370
- endDate: string;
3167
+ endDate?: string;
2371
3168
  options: PrimaryNetworkOptions;
2372
3169
  };
2373
3170
 
@@ -2408,7 +3205,7 @@ type OperationStatusResponse = {
2408
3205
  operationType: OperationType;
2409
3206
  operationStatus: OperationStatus;
2410
3207
  message?: string;
2411
- metadata: TransactionExportMetadata;
3208
+ metadata?: TransactionExportMetadata;
2412
3209
  createdAtTimestamp: number;
2413
3210
  updatedAtTimestamp: number;
2414
3211
  };
@@ -2441,6 +3238,23 @@ declare class OperationsService {
2441
3238
  }): CancelablePromise<OperationStatusResponse>;
2442
3239
  }
2443
3240
 
3241
+ type Blockchain = {
3242
+ createBlockTimestamp: number;
3243
+ createBlockNumber: string;
3244
+ blockchainId: string;
3245
+ vmId: string;
3246
+ subnetId: string;
3247
+ blockchainName: string;
3248
+ /**
3249
+ * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
3250
+ */
3251
+ evmChainId: number;
3252
+ /**
3253
+ * The genesis data of the blockchain.
3254
+ */
3255
+ genesisData?: Record<string, any>;
3256
+ };
3257
+
2444
3258
  declare enum BlockchainIds {
2445
3259
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2446
3260
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
@@ -2470,16 +3284,31 @@ type DelegatorsDetails = {
2470
3284
  };
2471
3285
 
2472
3286
  type StakingDistribution = {
3287
+ /**
3288
+ * AvalancheGo version for the validator node.
3289
+ */
2473
3290
  version: string;
3291
+ /**
3292
+ * The total amount staked by validators using this version.
3293
+ */
2474
3294
  amountStaked: string;
3295
+ /**
3296
+ * The number of validators using this version.
3297
+ */
2475
3298
  validatorCount: number;
2476
3299
  };
2477
3300
 
2478
3301
  type ValidatorsDetails = {
2479
3302
  validatorCount: number;
2480
3303
  totalAmountStaked: string;
3304
+ /**
3305
+ * Total potential rewards from currently active validations and delegations.
3306
+ */
2481
3307
  estimatedAnnualStakingReward: string;
2482
3308
  stakingDistributionByVersion: Array<StakingDistribution>;
3309
+ /**
3310
+ * Ratio of total active stake amount to the current supply.
3311
+ */
2483
3312
  stakingRatio: string;
2484
3313
  };
2485
3314
 
@@ -2488,15 +3317,6 @@ type GetNetworkDetailsResponse = {
2488
3317
  delegatorDetails: DelegatorsDetails;
2489
3318
  };
2490
3319
 
2491
- type Blockchain = {
2492
- createBlockTimestamp: number;
2493
- createBlockNumber: string;
2494
- blockchainId: string;
2495
- vmId: string;
2496
- subnetId: string;
2497
- blockchainName: string;
2498
- };
2499
-
2500
3320
  type ListBlockchainsResponse = {
2501
3321
  /**
2502
3322
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -2531,7 +3351,13 @@ type CompletedDelegatorDetails = {
2531
3351
  delegationFee: string;
2532
3352
  startTimestamp: number;
2533
3353
  endTimestamp: number;
3354
+ /**
3355
+ * Total rewards distributed for the successful delegation.
3356
+ */
2534
3357
  grossReward: string;
3358
+ /**
3359
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3360
+ */
2535
3361
  netReward: string;
2536
3362
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2537
3363
  };
@@ -2549,7 +3375,13 @@ type PendingDelegatorDetails = {
2549
3375
  delegationFee: string;
2550
3376
  startTimestamp: number;
2551
3377
  endTimestamp: number;
3378
+ /**
3379
+ * Estimated total rewards that will be distributed for the successful delegation.
3380
+ */
2552
3381
  estimatedGrossReward: string;
3382
+ /**
3383
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3384
+ */
2553
3385
  estimatedNetReward: string;
2554
3386
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2555
3387
  };
@@ -2570,8 +3402,63 @@ type ListDelegatorDetailsResponse = {
2570
3402
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2571
3403
  };
2572
3404
 
2573
- type BlockchainInfo = {
3405
+ type BalanceOwner = {
3406
+ addresses: Array<string>;
3407
+ threshold: number;
3408
+ };
3409
+
3410
+ type L1ValidatorDetailsFull = {
3411
+ /**
3412
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3413
+ */
3414
+ validationId: string;
3415
+ /**
3416
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3417
+ */
3418
+ validationIdHex: string;
3419
+ nodeId: string;
3420
+ subnetId: string;
3421
+ /**
3422
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
3423
+ */
3424
+ weight: number;
3425
+ /**
3426
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3427
+ */
3428
+ remainingBalance: number;
3429
+ /**
3430
+ * The timestamp of the transaction which created this L1 validator
3431
+ */
3432
+ creationTimestamp: number;
3433
+ blsCredentials: Record<string, any>;
3434
+ /**
3435
+ * The L1 validator owner's balance, returned after it's disabled or removed
3436
+ */
3437
+ remainingBalanceOwner: BalanceOwner;
3438
+ /**
3439
+ * Owner ddresses details which can disable or remove the L1 validator
3440
+ */
3441
+ deactivationOwner: BalanceOwner;
3442
+ };
3443
+
3444
+ type ListL1ValidatorsResponse = {
3445
+ /**
3446
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
3447
+ */
3448
+ nextPageToken?: string;
3449
+ /**
3450
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3451
+ */
3452
+ validators: Array<L1ValidatorDetailsFull>;
3453
+ /**
3454
+ * Block height at which the L1 validator's remaining balance is calculated
3455
+ */
3456
+ blockHeight: string;
3457
+ };
3458
+
3459
+ type L1ValidatorManagerDetails = {
2574
3460
  blockchainId: string;
3461
+ contractAddress: string;
2575
3462
  };
2576
3463
 
2577
3464
  type SubnetOwnershipInfo = {
@@ -2612,7 +3499,19 @@ type Subnet = {
2612
3499
  * Latest subnet owner details for this Subnet.
2613
3500
  */
2614
3501
  subnetOwnershipInfo: SubnetOwnershipInfo;
2615
- blockchains: Array<BlockchainInfo>;
3502
+ /**
3503
+ * Whether the subnet is an L1 or not.
3504
+ */
3505
+ isL1: boolean;
3506
+ /**
3507
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3508
+ */
3509
+ l1ConversionTransactionHash?: string;
3510
+ /**
3511
+ * L1 validator manager details.
3512
+ */
3513
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3514
+ blockchains: Array<Blockchain>;
2616
3515
  };
2617
3516
 
2618
3517
  type ListSubnetsResponse = {
@@ -2628,6 +3527,29 @@ type BlsCredentials = {
2628
3527
  proofOfPossession: string;
2629
3528
  };
2630
3529
 
3530
+ type Geolocation = {
3531
+ /**
3532
+ * The name of the validator node.
3533
+ */
3534
+ city: string;
3535
+ /**
3536
+ * The city of the validator node.
3537
+ */
3538
+ country: string;
3539
+ /**
3540
+ * The country code of the validator node.
3541
+ */
3542
+ countryCode: string;
3543
+ /**
3544
+ * The latitude of the validator node.
3545
+ */
3546
+ latitude: number;
3547
+ /**
3548
+ * The longitude of the validator node.
3549
+ */
3550
+ longitude: number;
3551
+ };
3552
+
2631
3553
  type Rewards = {
2632
3554
  validationRewardAmount: string;
2633
3555
  delegationRewardAmount: string;
@@ -2659,6 +3581,9 @@ type ActiveValidatorDetails = {
2659
3581
  nodeId: string;
2660
3582
  subnetId: string;
2661
3583
  amountStaked: string;
3584
+ /**
3585
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3586
+ */
2662
3587
  delegationFee?: string;
2663
3588
  startTimestamp: number;
2664
3589
  endTimestamp: number;
@@ -2666,15 +3591,37 @@ type ActiveValidatorDetails = {
2666
3591
  * Present for AddPermissionlessValidatorTx
2667
3592
  */
2668
3593
  blsCredentials?: BlsCredentials;
3594
+ /**
3595
+ * The percentage of this validator's stake amount to the total active stake.
3596
+ */
2669
3597
  stakePercentage: number;
3598
+ /**
3599
+ * The number of delegators linked to the validator.
3600
+ */
2670
3601
  delegatorCount: number;
3602
+ /**
3603
+ * The total amount in nAVAX delegated to the validator.
3604
+ */
2671
3605
  amountDelegated?: string;
3606
+ /**
3607
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3608
+ */
2672
3609
  uptimePerformance: number;
2673
3610
  avalancheGoVersion?: string;
3611
+ /**
3612
+ * The amount of stake in nAVAX that can be delegated to this validator.
3613
+ */
2674
3614
  delegationCapacity?: string;
3615
+ /**
3616
+ * Estimated rewards for the validator if the validation is successful.
3617
+ */
2675
3618
  potentialRewards: Rewards;
2676
3619
  validationStatus: ActiveValidatorDetails.validationStatus;
2677
3620
  validatorHealth: ValidatorHealthDetails;
3621
+ /**
3622
+ * The geographical location of the validator node, if available.
3623
+ */
3624
+ geolocation: Geolocation | null;
2678
3625
  };
2679
3626
  declare namespace ActiveValidatorDetails {
2680
3627
  enum validationStatus {
@@ -2687,6 +3634,9 @@ type CompletedValidatorDetails = {
2687
3634
  nodeId: string;
2688
3635
  subnetId: string;
2689
3636
  amountStaked: string;
3637
+ /**
3638
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3639
+ */
2690
3640
  delegationFee?: string;
2691
3641
  startTimestamp: number;
2692
3642
  endTimestamp: number;
@@ -2710,6 +3660,9 @@ type PendingValidatorDetails = {
2710
3660
  nodeId: string;
2711
3661
  subnetId: string;
2712
3662
  amountStaked: string;
3663
+ /**
3664
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3665
+ */
2713
3666
  delegationFee?: string;
2714
3667
  startTimestamp: number;
2715
3668
  endTimestamp: number;
@@ -2730,6 +3683,9 @@ type RemovedValidatorDetails = {
2730
3683
  nodeId: string;
2731
3684
  subnetId: string;
2732
3685
  amountStaked: string;
3686
+ /**
3687
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3688
+ */
2733
3689
  delegationFee?: string;
2734
3690
  startTimestamp: number;
2735
3691
  endTimestamp: number;
@@ -2737,7 +3693,13 @@ type RemovedValidatorDetails = {
2737
3693
  * Present for AddPermissionlessValidatorTx
2738
3694
  */
2739
3695
  blsCredentials?: BlsCredentials;
3696
+ /**
3697
+ * The transaction hash that removed the permissioned subnet validator.
3698
+ */
2740
3699
  removeTxHash: string;
3700
+ /**
3701
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3702
+ */
2741
3703
  removeTimestamp: number;
2742
3704
  validationStatus: RemovedValidatorDetails.validationStatus;
2743
3705
  };
@@ -2758,11 +3720,6 @@ type ListValidatorDetailsResponse = {
2758
3720
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2759
3721
  };
2760
3722
 
2761
- declare enum Network {
2762
- MAINNET = "mainnet",
2763
- FUJI = "fuji"
2764
- }
2765
-
2766
3723
  declare enum SortByOption {
2767
3724
  BLOCK_INDEX = "blockIndex",
2768
3725
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2840,7 +3797,7 @@ declare class PrimaryNetworkService {
2840
3797
  */
2841
3798
  blockchainId: XChainId;
2842
3799
  /**
2843
- * Either mainnet or a testnet.
3800
+ * Either mainnet or testnet/fuji.
2844
3801
  */
2845
3802
  network: Network;
2846
3803
  /**
@@ -2860,7 +3817,7 @@ declare class PrimaryNetworkService {
2860
3817
  */
2861
3818
  addresses: string;
2862
3819
  /**
2863
- * Either mainnet or a testnet.
3820
+ * Either mainnet or testnet/fuji.
2864
3821
  */
2865
3822
  network: Network;
2866
3823
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2872,7 +3829,7 @@ declare class PrimaryNetworkService {
2872
3829
  */
2873
3830
  getNetworkDetails({ network, }: {
2874
3831
  /**
2875
- * Either mainnet or a testnet.
3832
+ * Either mainnet or testnet/fuji.
2876
3833
  */
2877
3834
  network: Network;
2878
3835
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2884,7 +3841,7 @@ declare class PrimaryNetworkService {
2884
3841
  */
2885
3842
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2886
3843
  /**
2887
- * Either mainnet or a testnet.
3844
+ * Either mainnet or testnet/fuji.
2888
3845
  */
2889
3846
  network: Network;
2890
3847
  /**
@@ -2892,7 +3849,7 @@ declare class PrimaryNetworkService {
2892
3849
  */
2893
3850
  pageToken?: string;
2894
3851
  /**
2895
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3852
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
2896
3853
  */
2897
3854
  pageSize?: number;
2898
3855
  /**
@@ -2901,14 +3858,30 @@ declare class PrimaryNetworkService {
2901
3858
  sortOrder?: SortOrder;
2902
3859
  }): CancelablePromise<ListBlockchainsResponse>;
2903
3860
  /**
2904
- * List subnets
3861
+ * Get blockchain details by ID
3862
+ * Get details of the blockchain registered on the network.
3863
+ * @returns Blockchain Successful response
3864
+ * @throws ApiError
3865
+ */
3866
+ getBlockchainById({ blockchainId, network, }: {
3867
+ /**
3868
+ * The blockchain ID of the blockchain to retrieve.
3869
+ */
3870
+ blockchainId: string;
3871
+ /**
3872
+ * Either mainnet or testnet/fuji.
3873
+ */
3874
+ network: Network;
3875
+ }): CancelablePromise<Blockchain>;
3876
+ /**
3877
+ * List subnets
2905
3878
  * Lists all subnets registered on the network.
2906
3879
  * @returns ListSubnetsResponse Successful response
2907
3880
  * @throws ApiError
2908
3881
  */
2909
3882
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2910
3883
  /**
2911
- * Either mainnet or a testnet.
3884
+ * Either mainnet or testnet/fuji.
2912
3885
  */
2913
3886
  network: Network;
2914
3887
  /**
@@ -2916,7 +3889,7 @@ declare class PrimaryNetworkService {
2916
3889
  */
2917
3890
  pageToken?: string;
2918
3891
  /**
2919
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3892
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
2920
3893
  */
2921
3894
  pageSize?: number;
2922
3895
  /**
@@ -2932,7 +3905,7 @@ declare class PrimaryNetworkService {
2932
3905
  */
2933
3906
  getSubnetById({ network, subnetId, }: {
2934
3907
  /**
2935
- * Either mainnet or a testnet.
3908
+ * Either mainnet or testnet/fuji.
2936
3909
  */
2937
3910
  network: Network;
2938
3911
  /**
@@ -2942,13 +3915,13 @@ declare class PrimaryNetworkService {
2942
3915
  }): CancelablePromise<Subnet>;
2943
3916
  /**
2944
3917
  * List validators
2945
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
3918
+ * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
2946
3919
  * @returns ListValidatorDetailsResponse Successful response
2947
3920
  * @throws ApiError
2948
3921
  */
2949
3922
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2950
3923
  /**
2951
- * Either mainnet or a testnet.
3924
+ * Either mainnet or testnet/fuji.
2952
3925
  */
2953
3926
  network: Network;
2954
3927
  /**
@@ -2960,7 +3933,7 @@ declare class PrimaryNetworkService {
2960
3933
  */
2961
3934
  pageSize?: number;
2962
3935
  /**
2963
- * A comma separated list of node ids to filter by.
3936
+ * A comma separated list of node ids to filter by. Supports substring matching.
2964
3937
  */
2965
3938
  nodeIds?: string;
2966
3939
  /**
@@ -3022,7 +3995,7 @@ declare class PrimaryNetworkService {
3022
3995
  */
3023
3996
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3024
3997
  /**
3025
- * Either mainnet or a testnet.
3998
+ * Either mainnet or testnet/fuji.
3026
3999
  */
3027
4000
  network: Network;
3028
4001
  /**
@@ -3054,7 +4027,7 @@ declare class PrimaryNetworkService {
3054
4027
  */
3055
4028
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3056
4029
  /**
3057
- * Either mainnet or a testnet.
4030
+ * Either mainnet or testnet/fuji.
3058
4031
  */
3059
4032
  network: Network;
3060
4033
  /**
@@ -3082,6 +4055,39 @@ declare class PrimaryNetworkService {
3082
4055
  */
3083
4056
  nodeIds?: string;
3084
4057
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4058
+ /**
4059
+ * List L1 validators
4060
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4061
+ * @returns ListL1ValidatorsResponse Successful response
4062
+ * @throws ApiError
4063
+ */
4064
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4065
+ /**
4066
+ * Either mainnet or testnet/fuji.
4067
+ */
4068
+ network: Network;
4069
+ /**
4070
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4071
+ */
4072
+ pageToken?: string;
4073
+ /**
4074
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4075
+ */
4076
+ pageSize?: number;
4077
+ /**
4078
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4079
+ */
4080
+ l1ValidationId?: string;
4081
+ includeInactiveL1Validators?: boolean;
4082
+ /**
4083
+ * A valid node ID in format 'NodeID-HASH'.
4084
+ */
4085
+ nodeId?: string;
4086
+ /**
4087
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4088
+ */
4089
+ subnetId?: any;
4090
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3085
4091
  }
3086
4092
 
3087
4093
  declare enum BlockchainId {
@@ -3126,11 +4132,6 @@ type CChainAtomicBalances = {
3126
4132
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3127
4133
  };
3128
4134
 
3129
- declare enum PrimaryNetwork {
3130
- MAINNET = "mainnet",
3131
- FUJI = "fuji"
3132
- }
3133
-
3134
4135
  declare enum PrimaryNetworkChainName {
3135
4136
  P_CHAIN = "p-chain",
3136
4137
  X_CHAIN = "x-chain",
@@ -3139,7 +4140,7 @@ declare enum PrimaryNetworkChainName {
3139
4140
 
3140
4141
  type PrimaryNetworkChainInfo = {
3141
4142
  chainName: PrimaryNetworkChainName;
3142
- network: PrimaryNetwork;
4143
+ network: Network;
3143
4144
  };
3144
4145
 
3145
4146
  type ListCChainAtomicBalancesResponse = {
@@ -3300,7 +4301,7 @@ declare class PrimaryNetworkBalancesService {
3300
4301
  */
3301
4302
  blockchainId: BlockchainId;
3302
4303
  /**
3303
- * Either mainnet or a testnet.
4304
+ * Either mainnet or testnet/fuji.
3304
4305
  */
3305
4306
  network: Network;
3306
4307
  /**
@@ -3331,6 +4332,8 @@ type GetPrimaryNetworkBlockResponse = {
3331
4332
  txCount: number;
3332
4333
  transactions: Array<string>;
3333
4334
  blockSizeBytes: number;
4335
+ l1ValidatorsAccruedFees?: number;
4336
+ activeL1Validators?: number;
3334
4337
  currentSupply?: string;
3335
4338
  proposerDetails?: ProposerDetails;
3336
4339
  };
@@ -3344,6 +4347,8 @@ type PrimaryNetworkBlock = {
3344
4347
  txCount: number;
3345
4348
  transactions: Array<string>;
3346
4349
  blockSizeBytes: number;
4350
+ l1ValidatorsAccruedFees?: number;
4351
+ activeL1Validators?: number;
3347
4352
  currentSupply?: string;
3348
4353
  proposerDetails?: ProposerDetails;
3349
4354
  };
@@ -3372,7 +4377,7 @@ declare class PrimaryNetworkBlocksService {
3372
4377
  */
3373
4378
  blockchainId: BlockchainId;
3374
4379
  /**
3375
- * Either mainnet or a testnet.
4380
+ * Either mainnet or testnet/fuji.
3376
4381
  */
3377
4382
  network: Network;
3378
4383
  /**
@@ -3386,19 +4391,27 @@ declare class PrimaryNetworkBlocksService {
3386
4391
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3387
4392
  * @throws ApiError
3388
4393
  */
3389
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4394
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3390
4395
  /**
3391
4396
  * A primary network blockchain id or alias.
3392
4397
  */
3393
4398
  blockchainId: BlockchainId;
3394
4399
  /**
3395
- * Either mainnet or a testnet.
4400
+ * Either mainnet or testnet/fuji.
3396
4401
  */
3397
4402
  network: Network;
3398
4403
  /**
3399
4404
  * A primary network (P or X chain) nodeId.
3400
4405
  */
3401
4406
  nodeId: string;
4407
+ /**
4408
+ * Query param for retrieving items after a specific timestamp.
4409
+ */
4410
+ startTimestamp?: number;
4411
+ /**
4412
+ * Query param for retrieving items before a specific timestamp.
4413
+ */
4414
+ endTimestamp?: number;
3402
4415
  /**
3403
4416
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3404
4417
  */
@@ -3414,15 +4427,23 @@ declare class PrimaryNetworkBlocksService {
3414
4427
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3415
4428
  * @throws ApiError
3416
4429
  */
3417
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4430
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3418
4431
  /**
3419
4432
  * A primary network blockchain id or alias.
3420
4433
  */
3421
4434
  blockchainId: BlockchainId;
3422
4435
  /**
3423
- * Either mainnet or a testnet.
4436
+ * Either mainnet or testnet/fuji.
3424
4437
  */
3425
4438
  network: Network;
4439
+ /**
4440
+ * Query param for retrieving items after a specific timestamp.
4441
+ */
4442
+ startTimestamp?: number;
4443
+ /**
4444
+ * Query param for retrieving items before a specific timestamp.
4445
+ */
4446
+ endTimestamp?: number;
3426
4447
  /**
3427
4448
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3428
4449
  */
@@ -3554,7 +4575,7 @@ declare class PrimaryNetworkRewardsService {
3554
4575
  */
3555
4576
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3556
4577
  /**
3557
- * Either mainnet or a testnet.
4578
+ * Either mainnet or testnet/fuji.
3558
4579
  */
3559
4580
  network: Network;
3560
4581
  /**
@@ -3586,7 +4607,7 @@ declare class PrimaryNetworkRewardsService {
3586
4607
  */
3587
4608
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3588
4609
  /**
3589
- * Either mainnet or a testnet.
4610
+ * Either mainnet or testnet/fuji.
3590
4611
  */
3591
4612
  network: Network;
3592
4613
  /**
@@ -3664,6 +4685,10 @@ type Utxo = {
3664
4685
  * UTXO ID for this output.
3665
4686
  */
3666
4687
  utxoId: string;
4688
+ /**
4689
+ * The bytes of the UTXO
4690
+ */
4691
+ utxoBytes?: string;
3667
4692
  /**
3668
4693
  * Unix timestamp in seconds at which this output was consumed.
3669
4694
  */
@@ -3832,6 +4857,41 @@ type ListCChainAtomicTransactionsResponse = {
3832
4857
  chainInfo: PrimaryNetworkChainInfo;
3833
4858
  };
3834
4859
 
4860
+ type BlockchainInfo = {
4861
+ chainName: string;
4862
+ vmId: string;
4863
+ /**
4864
+ * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
4865
+ */
4866
+ genesisData?: Record<string, any>;
4867
+ };
4868
+
4869
+ type L1ValidatorDetailsTransaction = {
4870
+ /**
4871
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4872
+ */
4873
+ validationId: string;
4874
+ /**
4875
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4876
+ */
4877
+ validationIdHex: string;
4878
+ nodeId: string;
4879
+ subnetId: string;
4880
+ /**
4881
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
4882
+ */
4883
+ weight: number;
4884
+ /**
4885
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4886
+ */
4887
+ remainingBalance: number;
4888
+ /**
4889
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4890
+ */
4891
+ balanceChange?: number;
4892
+ blsCredentials?: Record<string, any>;
4893
+ };
4894
+
3835
4895
  declare enum PChainTransactionType {
3836
4896
  ADD_VALIDATOR_TX = "AddValidatorTx",
3837
4897
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3848,9 +4908,17 @@ declare enum PChainTransactionType {
3848
4908
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3849
4909
  BASE_TX = "BaseTx",
3850
4910
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4911
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4912
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4913
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4914
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4915
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3851
4916
  UNKNOWN = "UNKNOWN"
3852
4917
  }
3853
4918
 
4919
+ /**
4920
+ * Indicates whether the UTXO is staked or transferable
4921
+ */
3854
4922
  declare enum UtxoType {
3855
4923
  STAKE = "STAKE",
3856
4924
  TRANSFER = "TRANSFER"
@@ -3878,6 +4946,10 @@ type PChainUtxo = {
3878
4946
  * UTXO ID for this output.
3879
4947
  */
3880
4948
  utxoId: string;
4949
+ /**
4950
+ * The bytes of the UTXO
4951
+ */
4952
+ utxoBytes?: string;
3881
4953
  /**
3882
4954
  * @deprecated
3883
4955
  */
@@ -3888,16 +4960,43 @@ type PChainUtxo = {
3888
4960
  assetId: string;
3889
4961
  blockNumber: string;
3890
4962
  blockTimestamp: number;
4963
+ /**
4964
+ * Block height in which the transaction consuming this UTXO was included
4965
+ */
3891
4966
  consumingBlockNumber?: string;
4967
+ /**
4968
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4969
+ */
3892
4970
  consumingBlockTimestamp?: number;
4971
+ /**
4972
+ * Timestamp in seconds after which this UTXO can be consumed
4973
+ */
3893
4974
  platformLocktime?: number;
4975
+ /**
4976
+ * The index of the UTXO in the transaction
4977
+ */
3894
4978
  outputIndex: number;
3895
4979
  rewardType?: RewardType;
4980
+ /**
4981
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4982
+ */
3896
4983
  stakeableLocktime?: number;
3897
4984
  staked?: boolean;
4985
+ /**
4986
+ * The minimum number of signatures required to spend this UTXO
4987
+ */
3898
4988
  threshold?: number;
4989
+ /**
4990
+ * The hash of the transaction that created this UTXO
4991
+ */
3899
4992
  txHash: string;
4993
+ /**
4994
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4995
+ */
3900
4996
  utxoEndTimestamp?: number;
4997
+ /**
4998
+ * Timestamp in seconds at which the staked UTXO was locked.
4999
+ */
3901
5000
  utxoStartTimestamp?: number;
3902
5001
  utxoType: UtxoType;
3903
5002
  };
@@ -3912,9 +5011,18 @@ type PChainTransaction = {
3912
5011
  * The block finality timestamp.
3913
5012
  */
3914
5013
  blockTimestamp: number;
5014
+ /**
5015
+ * The height of the block in which the transaction was included
5016
+ */
3915
5017
  blockNumber: string;
3916
5018
  blockHash: string;
5019
+ /**
5020
+ * The consumed UTXOs of the transaction
5021
+ */
3917
5022
  consumedUtxos: Array<PChainUtxo>;
5023
+ /**
5024
+ * The newly created UTXOs of the transaction
5025
+ */
3918
5026
  emittedUtxos: Array<PChainUtxo>;
3919
5027
  /**
3920
5028
  * Source chain for an atomic transaction.
@@ -3925,17 +5033,21 @@ type PChainTransaction = {
3925
5033
  */
3926
5034
  destinationChain?: string;
3927
5035
  /**
3928
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5036
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
3929
5037
  */
3930
5038
  value: Array<AssetAmount>;
3931
5039
  /**
3932
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5040
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
3933
5041
  */
3934
5042
  amountBurned: Array<AssetAmount>;
3935
5043
  /**
3936
5044
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3937
5045
  */
3938
5046
  amountStaked: Array<AssetAmount>;
5047
+ /**
5048
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
5049
+ */
5050
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3939
5051
  /**
3940
5052
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3941
5053
  */
@@ -3945,11 +5057,11 @@ type PChainTransaction = {
3945
5057
  */
3946
5058
  endTimestamp?: number;
3947
5059
  /**
3948
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5060
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3949
5061
  */
3950
5062
  delegationFeePercent?: string;
3951
5063
  /**
3952
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5064
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3953
5065
  */
3954
5066
  nodeId?: string;
3955
5067
  /**
@@ -3957,14 +5069,25 @@ type PChainTransaction = {
3957
5069
  */
3958
5070
  subnetId?: string;
3959
5071
  /**
3960
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5072
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5073
+ */
5074
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5075
+ /**
5076
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
5077
+ */
5078
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5079
+ /**
5080
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3961
5081
  */
3962
5082
  estimatedReward?: string;
5083
+ /**
5084
+ * Reward transaction hash for the completed validations or delegations
5085
+ */
3963
5086
  rewardTxHash?: string;
3964
5087
  rewardAddresses?: Array<string>;
3965
5088
  memo?: string;
3966
5089
  /**
3967
- * Present for RewardValidatorTx
5090
+ * Staking transaction corresponding to the RewardValidatorTx
3968
5091
  */
3969
5092
  stakingTxHash?: string;
3970
5093
  /**
@@ -3972,9 +5095,13 @@ type PChainTransaction = {
3972
5095
  */
3973
5096
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3974
5097
  /**
3975
- * Present for AddPermissionlessValidatorTx
5098
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3976
5099
  */
3977
5100
  blsCredentials?: BlsCredentials;
5101
+ /**
5102
+ * Details of the blockchain that was created in the CreateChainTx
5103
+ */
5104
+ blockchainInfo?: BlockchainInfo;
3978
5105
  };
3979
5106
 
3980
5107
  type ListPChainTransactionsResponse = {
@@ -4157,6 +5284,11 @@ declare enum PrimaryNetworkTxType {
4157
5284
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4158
5285
  BASE_TX = "BaseTx",
4159
5286
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5287
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5288
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5289
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5290
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5291
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4160
5292
  UNKNOWN = "UNKNOWN",
4161
5293
  CREATE_ASSET_TX = "CreateAssetTx",
4162
5294
  OPERATION_TX = "OperationTx"
@@ -4177,7 +5309,7 @@ declare class PrimaryNetworkTransactionsService {
4177
5309
  */
4178
5310
  blockchainId: BlockchainId;
4179
5311
  /**
4180
- * Either mainnet or a testnet.
5312
+ * Either mainnet or testnet/fuji.
4181
5313
  */
4182
5314
  network: Network;
4183
5315
  /**
@@ -4191,23 +5323,26 @@ declare class PrimaryNetworkTransactionsService {
4191
5323
  *
4192
5324
  * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
4193
5325
  *
5326
+ * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
5327
+ *
4194
5328
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
4195
5329
  * @returns any Successful response
4196
5330
  * @throws ApiError
4197
5331
  */
4198
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4199
- /**
4200
- * 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.
4201
- */
4202
- addresses: string;
5332
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4203
5333
  /**
4204
5334
  * A primary network blockchain id or alias.
4205
5335
  */
4206
5336
  blockchainId: BlockchainId;
4207
5337
  /**
4208
- * Either mainnet or a testnet.
5338
+ * Either mainnet or testnet/fuji.
4209
5339
  */
4210
5340
  network: Network;
5341
+ /**
5342
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
5343
+ */
5344
+ addresses?: string;
5345
+ l1ValidationId?: string;
4211
5346
  /**
4212
5347
  * Query param for filtering items based on transaction types.
4213
5348
  */
@@ -4245,7 +5380,7 @@ declare class PrimaryNetworkTransactionsService {
4245
5380
  */
4246
5381
  blockchainId: PChainId;
4247
5382
  /**
4248
- * Either mainnet or a testnet.
5383
+ * Either mainnet or testnet/fuji.
4249
5384
  */
4250
5385
  network: Network;
4251
5386
  /**
@@ -4289,7 +5424,7 @@ declare class PrimaryNetworkTransactionsService {
4289
5424
  */
4290
5425
  blockchainId: XChainId;
4291
5426
  /**
4292
- * Either mainnet or a testnet.
5427
+ * Either mainnet or testnet/fuji.
4293
5428
  */
4294
5429
  network: Network;
4295
5430
  /**
@@ -4352,7 +5487,7 @@ declare class PrimaryNetworkUtxOsService {
4352
5487
  */
4353
5488
  blockchainId: BlockchainId;
4354
5489
  /**
4355
- * Either mainnet or a testnet.
5490
+ * Either mainnet or testnet/fuji.
4356
5491
  */
4357
5492
  network: Network;
4358
5493
  /**
@@ -4417,7 +5552,7 @@ declare class PrimaryNetworkVerticesService {
4417
5552
  */
4418
5553
  blockchainId: XChainId;
4419
5554
  /**
4420
- * Either mainnet or a testnet.
5555
+ * Either mainnet or testnet/fuji.
4421
5556
  */
4422
5557
  network: Network;
4423
5558
  /**
@@ -4445,7 +5580,7 @@ declare class PrimaryNetworkVerticesService {
4445
5580
  */
4446
5581
  blockchainId: XChainId;
4447
5582
  /**
4448
- * Either mainnet or a testnet.
5583
+ * Either mainnet or testnet/fuji.
4449
5584
  */
4450
5585
  network: Network;
4451
5586
  }): CancelablePromise<XChainVertex>;
@@ -4465,7 +5600,7 @@ declare class PrimaryNetworkVerticesService {
4465
5600
  */
4466
5601
  blockchainId: XChainId;
4467
5602
  /**
4468
- * Either mainnet or a testnet.
5603
+ * Either mainnet or testnet/fuji.
4469
5604
  */
4470
5605
  network: Network;
4471
5606
  /**
@@ -4483,47 +5618,49 @@ declare class PrimaryNetworkVerticesService {
4483
5618
  }): CancelablePromise<ListXChainVerticesResponse>;
4484
5619
  }
4485
5620
 
4486
- type RpcErrorDto = {
4487
- code: number;
4488
- message: string;
4489
- data?: Record<string, any>;
4490
- };
4491
-
4492
- type RpcErrorResponseDto = {
4493
- jsonrpc: string;
4494
- id?: (string | number);
4495
- error: RpcErrorDto;
4496
- };
4497
-
4498
- type RpcRequestBodyDto = {
4499
- method: string;
4500
- params?: Record<string, any>;
4501
- id?: (string | number);
4502
- jsonrpc?: string;
5621
+ type SignatureAggregationResponse = {
5622
+ signedMessage: string;
4503
5623
  };
4504
5624
 
4505
- type RpcSuccessResponseDto = {
4506
- jsonrpc: string;
4507
- id?: (string | number);
4508
- result: Record<string, any>;
5625
+ type SignatureAggregatorRequest = {
5626
+ message: string;
5627
+ justification?: string;
5628
+ signingSubnetId?: string;
5629
+ quorumPercentage?: number;
4509
5630
  };
4510
5631
 
4511
- declare class RpcService {
5632
+ declare class SignatureAggregatorService {
4512
5633
  readonly httpRequest: BaseHttpRequest;
4513
5634
  constructor(httpRequest: BaseHttpRequest);
4514
5635
  /**
4515
- * Calls JSON-RPC method
4516
- * Calls JSON-RPC method.
4517
- * @returns any Successful response
5636
+ * Aggregate Signatures
5637
+ * Aggregates Signatures for a Warp message from Subnet validators.
5638
+ * @returns SignatureAggregationResponse Successful response
4518
5639
  * @throws ApiError
4519
5640
  */
4520
- rpc({ chainId, requestBody, }: {
5641
+ aggregateSignatures({ network, requestBody, }: {
4521
5642
  /**
4522
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5643
+ * Either mainnet or testnet/fuji.
4523
5644
  */
4524
- chainId: string;
4525
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4526
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5645
+ network: Network;
5646
+ requestBody: SignatureAggregatorRequest;
5647
+ }): CancelablePromise<SignatureAggregationResponse>;
5648
+ /**
5649
+ * Get Aggregated Signatures
5650
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5651
+ * @returns SignatureAggregationResponse Successful response
5652
+ * @throws ApiError
5653
+ */
5654
+ getAggregatedSignatures({ network, txHash, }: {
5655
+ /**
5656
+ * Either mainnet or testnet/fuji.
5657
+ */
5658
+ network: Network;
5659
+ /**
5660
+ * A primary network (P or X chain) transaction hash.
5661
+ */
5662
+ txHash: string;
5663
+ }): CancelablePromise<SignatureAggregationResponse>;
4527
5664
  }
4528
5665
 
4529
5666
  type TeleporterDestinationTransaction = {
@@ -4657,15 +5794,17 @@ type ListTeleporterMessagesResponse = {
4657
5794
  * 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.
4658
5795
  */
4659
5796
  nextPageToken?: string;
4660
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
5797
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4661
5798
  };
4662
5799
 
4663
5800
  declare class TeleporterService {
4664
5801
  readonly httpRequest: BaseHttpRequest;
4665
5802
  constructor(httpRequest: BaseHttpRequest);
4666
5803
  /**
4667
- * Get a teleporter message
4668
- * Gets a teleporter message by message ID.
5804
+ * @deprecated
5805
+ * **[Deprecated]** Gets a teleporter message by message ID.
5806
+ *
5807
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4669
5808
  * @returns any Successful response
4670
5809
  * @throws ApiError
4671
5810
  */
@@ -4676,8 +5815,10 @@ declare class TeleporterService {
4676
5815
  messageId: string;
4677
5816
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4678
5817
  /**
4679
- * List teleporter messages
4680
- * Lists teleporter messages. Ordered by timestamp in descending order.
5818
+ * @deprecated
5819
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5820
+ *
5821
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4681
5822
  * @returns ListTeleporterMessagesResponse Successful response
4682
5823
  * @throws ApiError
4683
5824
  */
@@ -4711,13 +5852,15 @@ declare class TeleporterService {
4711
5852
  */
4712
5853
  from?: string;
4713
5854
  /**
4714
- * mainnet or testnet.
5855
+ * Either mainnet or testnet/fuji.
4715
5856
  */
4716
- network?: NetworkType;
5857
+ network?: Network;
4717
5858
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4718
5859
  /**
4719
- * List teleporter messages by address
4720
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5860
+ * @deprecated
5861
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5862
+ *
5863
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4721
5864
  * @returns ListTeleporterMessagesResponse Successful response
4722
5865
  * @throws ApiError
4723
5866
  */
@@ -4735,9 +5878,9 @@ declare class TeleporterService {
4735
5878
  */
4736
5879
  pageSize?: number;
4737
5880
  /**
4738
- * mainnet or testnet.
5881
+ * Either mainnet or testnet/fuji.
4739
5882
  */
4740
- network?: NetworkType;
5883
+ network?: Network;
4741
5884
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4742
5885
  }
4743
5886
 
@@ -4750,26 +5893,56 @@ type AddressesChangeRequest = {
4750
5893
 
4751
5894
  type AddressActivityMetadata = {
4752
5895
  /**
4753
- * Ethereum address(es) for the address_activity event type
5896
+ * Array of hexadecimal strings of the event signatures.
5897
+ */
5898
+ eventSignatures?: Array<string>;
5899
+ /**
5900
+ * Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
4754
5901
  */
4755
5902
  addresses: Array<string>;
5903
+ };
5904
+
5905
+ type EVMAddressActivityRequest = {
5906
+ eventType: EVMAddressActivityRequest.eventType;
5907
+ url: string;
5908
+ name?: string;
5909
+ description?: string;
5910
+ chainId: string;
5911
+ metadata: AddressActivityMetadata;
4756
5912
  /**
4757
- * Array of hexadecimal strings of the event signatures.
5913
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4758
5914
  */
4759
- eventSignatures?: Array<string>;
5915
+ includeInternalTxs?: boolean;
5916
+ /**
5917
+ * Whether to include logs in the webhook payload.
5918
+ */
5919
+ includeLogs?: boolean;
4760
5920
  };
5921
+ declare namespace EVMAddressActivityRequest {
5922
+ enum eventType {
5923
+ ADDRESS_ACTIVITY = "address_activity"
5924
+ }
5925
+ }
4761
5926
 
4762
- declare enum EventType {
5927
+ declare enum AddressActivityEventType {
4763
5928
  ADDRESS_ACTIVITY = "address_activity"
4764
5929
  }
4765
5930
 
4766
- type CreateWebhookRequest = {
5931
+ declare enum WebhookStatusType {
5932
+ ACTIVE = "active",
5933
+ INACTIVE = "inactive"
5934
+ }
5935
+
5936
+ type EVMAddressActivityResponse = {
5937
+ id: string;
4767
5938
  url: string;
4768
5939
  chainId: string;
4769
- eventType: EventType;
5940
+ status: WebhookStatusType;
5941
+ createdAt: number;
5942
+ name: string;
5943
+ description: string;
5944
+ eventType: AddressActivityEventType;
4770
5945
  metadata: AddressActivityMetadata;
4771
- name?: string;
4772
- description?: string;
4773
5946
  /**
4774
5947
  * Whether to include traces in the webhook payload.
4775
5948
  */
@@ -4789,29 +5962,143 @@ type ListWebhookAddressesResponse = {
4789
5962
  totalAddresses: number;
4790
5963
  };
4791
5964
 
4792
- declare enum WebhookStatusType {
4793
- ACTIVE = "active",
4794
- INACTIVE = "inactive"
5965
+ declare enum PrimaryNetworkAddressActivityEventType {
5966
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
5967
+ }
5968
+
5969
+ /**
5970
+ * The type of key to monitor for the address activity event type.
5971
+ */
5972
+ declare enum PlatformAddressActivityKeyType {
5973
+ ADDRESSES = "addresses"
5974
+ }
5975
+
5976
+ /**
5977
+ * Array of address activity sub-event types
5978
+ */
5979
+ declare enum PrimaryNetworkAddressActivitySubEventType {
5980
+ BALANCE_CHANGE = "balance_change",
5981
+ BALANCE_THRESHOLD = "balance_threshold",
5982
+ REWARD_DISTRIBUTION = "reward_distribution"
5983
+ }
5984
+
5985
+ type PrimaryNetworkAddressActivitySubEvents = {
5986
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
5987
+ };
5988
+
5989
+ /**
5990
+ * Type of balance to monitor
5991
+ */
5992
+ declare enum CommonBalanceType {
5993
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5994
+ UNLOCKED_STAKED = "unlockedStaked",
5995
+ LOCKED_PLATFORM = "lockedPlatform",
5996
+ LOCKED_STAKEABLE = "lockedStakeable",
5997
+ LOCKED_STAKED = "lockedStaked",
5998
+ PENDING_STAKED = "pendingStaked",
5999
+ UNLOCKED = "unlocked",
6000
+ LOCKED = "locked",
6001
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
6002
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
4795
6003
  }
4796
6004
 
4797
- type WebhookResponse = {
6005
+ type PrimaryNetworkBalanceThresholdFilter = {
6006
+ balanceType: CommonBalanceType;
6007
+ /**
6008
+ * Threshold for balance corresponding to balanceType in nAVAX
6009
+ */
6010
+ balanceThreshold: string;
6011
+ };
6012
+
6013
+ type PrimaryNetworkAddressActivityMetadata = {
6014
+ /**
6015
+ * Array of hexadecimal strings of the event signatures.
6016
+ */
6017
+ eventSignatures?: Array<string>;
6018
+ keyType: PlatformAddressActivityKeyType;
6019
+ /**
6020
+ * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
6021
+ */
6022
+ keys: Array<string>;
6023
+ /**
6024
+ * Sub-events to monitor
6025
+ */
6026
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6027
+ /**
6028
+ * Balance threshold filter
6029
+ */
6030
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6031
+ };
6032
+
6033
+ type PrimaryNetworkAddressActivityResponse = {
4798
6034
  id: string;
4799
- eventType: EventType;
4800
- metadata: AddressActivityMetadata;
6035
+ url: string;
6036
+ chainId: string;
6037
+ status: WebhookStatusType;
6038
+ createdAt: number;
6039
+ name: string;
6040
+ description: string;
6041
+ eventType: PrimaryNetworkAddressActivityEventType;
6042
+ metadata: PrimaryNetworkAddressActivityMetadata;
6043
+ };
6044
+
6045
+ declare enum ValidatorActivityEventType {
6046
+ VALIDATOR_ACTIVITY = "validator_activity"
6047
+ }
6048
+
6049
+ /**
6050
+ * The type of key to monitor for the validator activity event type.
6051
+ */
6052
+ declare enum ValidatorActivityKeyType {
6053
+ NODE_ID = "nodeId",
6054
+ SUBNET_ID = "subnetId"
6055
+ }
6056
+
6057
+ type ValidatorActivitySubEvents = {
4801
6058
  /**
4802
- * Whether to include traces in the webhook payload.
6059
+ * Array of validator activity sub-event types
4803
6060
  */
4804
- includeInternalTxs?: boolean;
6061
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6062
+ };
6063
+
6064
+ type ValidatorActivityMetadata = {
4805
6065
  /**
4806
- * Whether to include logs in the webhook payload.
6066
+ * Array of hexadecimal strings of the event signatures.
4807
6067
  */
4808
- includeLogs?: boolean;
6068
+ eventSignatures?: Array<string>;
6069
+ keyType: ValidatorActivityKeyType;
6070
+ /**
6071
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
6072
+ */
6073
+ keys: Array<string>;
6074
+ /**
6075
+ * Sub-events to monitor
6076
+ */
6077
+ subEvents: ValidatorActivitySubEvents;
6078
+ /**
6079
+ * Array of node IDs to filter the events
6080
+ */
6081
+ nodeIds?: Array<string>;
6082
+ /**
6083
+ * Array of subnet IDs to filter the events
6084
+ */
6085
+ subnetIds?: Array<string>;
6086
+ /**
6087
+ * L1 validator fee balance threshold in nAVAX
6088
+ */
6089
+ l1ValidatorFeeBalanceThreshold?: string;
6090
+ };
6091
+
6092
+ type ValidatorActivityResponse = {
6093
+ id: string;
4809
6094
  url: string;
4810
6095
  chainId: string;
4811
6096
  status: WebhookStatusType;
4812
6097
  createdAt: number;
4813
6098
  name: string;
4814
6099
  description: string;
6100
+ eventType: ValidatorActivityEventType;
6101
+ metadata: ValidatorActivityMetadata;
4815
6102
  };
4816
6103
 
4817
6104
  type ListWebhooksResponse = {
@@ -4819,8 +6106,31 @@ type ListWebhooksResponse = {
4819
6106
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4820
6107
  */
4821
6108
  nextPageToken?: string;
4822
- webhooks: Array<WebhookResponse>;
6109
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6110
+ };
6111
+
6112
+ declare enum PrimaryNetworkType {
6113
+ MAINNET = "mainnet",
6114
+ FUJI = "fuji"
6115
+ }
6116
+
6117
+ type PrimaryNetworkAddressActivityRequest = {
6118
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6119
+ url: string;
6120
+ name?: string;
6121
+ description?: string;
6122
+ network: PrimaryNetworkType;
6123
+ chainId: string;
6124
+ /**
6125
+ * Metadata for platform address activity event
6126
+ */
6127
+ metadata: PrimaryNetworkAddressActivityMetadata;
4823
6128
  };
6129
+ declare namespace PrimaryNetworkAddressActivityRequest {
6130
+ enum eventType {
6131
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6132
+ }
6133
+ }
4824
6134
 
4825
6135
  type SharedSecretsResponse = {
4826
6136
  secret: string;
@@ -4831,10 +6141,30 @@ type UpdateWebhookRequest = {
4831
6141
  description?: string;
4832
6142
  url?: string;
4833
6143
  status?: WebhookStatusType;
6144
+ /**
6145
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6146
+ */
4834
6147
  includeInternalTxs?: boolean;
4835
6148
  includeLogs?: boolean;
4836
6149
  };
4837
6150
 
6151
+ type ValidatorActivityRequest = {
6152
+ eventType: ValidatorActivityRequest.eventType;
6153
+ url: string;
6154
+ name?: string;
6155
+ description?: string;
6156
+ network: PrimaryNetworkType;
6157
+ /**
6158
+ * Metadata for platform validator activity event
6159
+ */
6160
+ metadata: ValidatorActivityMetadata;
6161
+ };
6162
+ declare namespace ValidatorActivityRequest {
6163
+ enum eventType {
6164
+ VALIDATOR_ACTIVITY = "validator_activity"
6165
+ }
6166
+ }
6167
+
4838
6168
  declare enum WebhookStatus {
4839
6169
  ACTIVE = "active",
4840
6170
  INACTIVE = "inactive"
@@ -4846,12 +6176,12 @@ declare class WebhooksService {
4846
6176
  /**
4847
6177
  * Create a webhook
4848
6178
  * Create a new webhook.
4849
- * @returns WebhookResponse Successful response
6179
+ * @returns any Successful response
4850
6180
  * @throws ApiError
4851
6181
  */
4852
6182
  createWebhook({ requestBody, }: {
4853
- requestBody: CreateWebhookRequest;
4854
- }): CancelablePromise<WebhookResponse>;
6183
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6184
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4855
6185
  /**
4856
6186
  * List webhooks
4857
6187
  * Lists webhooks for the user.
@@ -4875,7 +6205,7 @@ declare class WebhooksService {
4875
6205
  /**
4876
6206
  * Get a webhook by ID
4877
6207
  * Retrieves a webhook by ID.
4878
- * @returns WebhookResponse Successful response
6208
+ * @returns any Successful response
4879
6209
  * @throws ApiError
4880
6210
  */
4881
6211
  getWebhook({ id, }: {
@@ -4883,11 +6213,11 @@ declare class WebhooksService {
4883
6213
  * The webhook identifier.
4884
6214
  */
4885
6215
  id: string;
4886
- }): CancelablePromise<WebhookResponse>;
6216
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4887
6217
  /**
4888
6218
  * Deactivate a webhook
4889
6219
  * Deactivates a webhook by ID.
4890
- * @returns WebhookResponse Successful response
6220
+ * @returns any Successful response
4891
6221
  * @throws ApiError
4892
6222
  */
4893
6223
  deactivateWebhook({ id, }: {
@@ -4895,11 +6225,11 @@ declare class WebhooksService {
4895
6225
  * The webhook identifier.
4896
6226
  */
4897
6227
  id: string;
4898
- }): CancelablePromise<WebhookResponse>;
6228
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4899
6229
  /**
4900
6230
  * Update a webhook
4901
6231
  * Updates an existing webhook.
4902
- * @returns WebhookResponse Successful response
6232
+ * @returns any Successful response
4903
6233
  * @throws ApiError
4904
6234
  */
4905
6235
  updateWebhook({ id, requestBody, }: {
@@ -4908,14 +6238,14 @@ declare class WebhooksService {
4908
6238
  */
4909
6239
  id: string;
4910
6240
  requestBody: UpdateWebhookRequest;
4911
- }): CancelablePromise<WebhookResponse>;
6241
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4912
6242
  /**
4913
- * Generate a shared secret
4914
- * Generates a new shared secret.
6243
+ * Generate or rotate a shared secret
6244
+ * Generates a new shared secret or rotate an existing one.
4915
6245
  * @returns SharedSecretsResponse Successful response
4916
6246
  * @throws ApiError
4917
6247
  */
4918
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6248
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4919
6249
  /**
4920
6250
  * Get a shared secret
4921
6251
  * Get a previously generated shared secret.
@@ -4924,9 +6254,9 @@ declare class WebhooksService {
4924
6254
  */
4925
6255
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4926
6256
  /**
4927
- * Add addresses to webhook
4928
- * Add addresses to webhook.
4929
- * @returns WebhookResponse Successful response
6257
+ * Add addresses to EVM activity webhook
6258
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6259
+ * @returns EVMAddressActivityResponse Successful response
4930
6260
  * @throws ApiError
4931
6261
  */
4932
6262
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4935,11 +6265,11 @@ declare class WebhooksService {
4935
6265
  */
4936
6266
  id: string;
4937
6267
  requestBody: AddressesChangeRequest;
4938
- }): CancelablePromise<WebhookResponse>;
6268
+ }): CancelablePromise<EVMAddressActivityResponse>;
4939
6269
  /**
4940
- * Remove addresses from webhook
4941
- * Remove addresses from webhook.
4942
- * @returns WebhookResponse Successful response
6270
+ * Remove addresses from EVM activity webhook
6271
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6272
+ * @returns EVMAddressActivityResponse Successful response
4943
6273
  * @throws ApiError
4944
6274
  */
4945
6275
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4948,10 +6278,10 @@ declare class WebhooksService {
4948
6278
  */
4949
6279
  id: string;
4950
6280
  requestBody: AddressesChangeRequest;
4951
- }): CancelablePromise<WebhookResponse>;
6281
+ }): CancelablePromise<EVMAddressActivityResponse>;
4952
6282
  /**
4953
- * List adresses by webhook
4954
- * List adresses by webhook.
6283
+ * List adresses by EVM activity webhooks
6284
+ * List adresses by webhook. Only valid for EVM activity webhooks.
4955
6285
  * @returns ListWebhookAddressesResponse Successful response
4956
6286
  * @throws ApiError
4957
6287
  */
@@ -4973,6 +6303,7 @@ declare class WebhooksService {
4973
6303
 
4974
6304
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4975
6305
  declare class Glacier {
6306
+ readonly avaxSupply: AvaxSupplyService;
4976
6307
  readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4977
6308
  readonly default: DefaultService;
4978
6309
  readonly evmBalances: EvmBalancesService;
@@ -4981,7 +6312,9 @@ declare class Glacier {
4981
6312
  readonly evmContracts: EvmContractsService;
4982
6313
  readonly evmTransactions: EvmTransactionsService;
4983
6314
  readonly healthCheck: HealthCheckService;
6315
+ readonly interchainMessaging: InterchainMessagingService;
4984
6316
  readonly nfTs: NfTsService;
6317
+ readonly notifications: NotificationsService;
4985
6318
  readonly operations: OperationsService;
4986
6319
  readonly primaryNetwork: PrimaryNetworkService;
4987
6320
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4990,7 +6323,7 @@ declare class Glacier {
4990
6323
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4991
6324
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4992
6325
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4993
- readonly rpc: RpcService;
6326
+ readonly signatureAggregator: SignatureAggregatorService;
4994
6327
  readonly teleporter: TeleporterService;
4995
6328
  readonly webhooks: WebhooksService;
4996
6329
  readonly request: BaseHttpRequest;
@@ -5014,6 +6347,17 @@ declare class ApiError extends Error {
5014
6347
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5015
6348
  }
5016
6349
 
6350
+ type AccessListData = {
6351
+ /**
6352
+ * Access Address
6353
+ */
6354
+ accessAddresses: string;
6355
+ /**
6356
+ * Storage keys
6357
+ */
6358
+ storageKeys: Array<string>;
6359
+ };
6360
+
5017
6361
  type BadGateway = {
5018
6362
  /**
5019
6363
  * The error message describing the reason for the exception
@@ -5048,6 +6392,76 @@ type DataListChainsResponse = {
5048
6392
  chains: Array<ChainInfo>;
5049
6393
  };
5050
6394
 
6395
+ type ERCToken = {
6396
+ /**
6397
+ * Token contract address
6398
+ */
6399
+ address: string;
6400
+ /**
6401
+ * Token name
6402
+ */
6403
+ name: string;
6404
+ /**
6405
+ * Token symbol
6406
+ */
6407
+ symbol: string;
6408
+ /**
6409
+ * Token decimals
6410
+ */
6411
+ decimals: number;
6412
+ /**
6413
+ * Value including decimals
6414
+ */
6415
+ valueWithDecimals: string;
6416
+ };
6417
+
6418
+ type ERCTransfer = {
6419
+ /**
6420
+ * Transaction hash
6421
+ */
6422
+ transactionHash: string;
6423
+ /**
6424
+ * Transfer type
6425
+ */
6426
+ type: string;
6427
+ /**
6428
+ * Sender address
6429
+ */
6430
+ from: string;
6431
+ /**
6432
+ * Recipient address
6433
+ */
6434
+ to: string;
6435
+ /**
6436
+ * Amount transferred
6437
+ */
6438
+ value: string;
6439
+ /**
6440
+ * Token Id
6441
+ */
6442
+ tokenId?: string;
6443
+ /**
6444
+ * Block timestamp
6445
+ */
6446
+ blockTimestamp: number;
6447
+ /**
6448
+ * Log index
6449
+ */
6450
+ logIndex: number;
6451
+ /**
6452
+ * erc20 Token details
6453
+ */
6454
+ erc20Token?: ERCToken;
6455
+ /**
6456
+ * erc721 Token details
6457
+ */
6458
+ erc721Token?: ERCToken;
6459
+ /**
6460
+ * erc1155 Token details
6461
+ */
6462
+ erc1155Token?: ERCToken;
6463
+ };
6464
+
5051
6465
  type Forbidden = {
5052
6466
  /**
5053
6467
  * The error message describing the reason for the exception
@@ -5078,6 +6492,64 @@ type InternalServerError = {
5078
6492
  error: string;
5079
6493
  };
5080
6494
 
6495
+ type Log = {
6496
+ /**
6497
+ * Contract address
6498
+ */
6499
+ address: string;
6500
+ /**
6501
+ * First topic
6502
+ */
6503
+ topic0: string;
6504
+ /**
6505
+ * Second topic (optional)
6506
+ */
6507
+ topic1?: string;
6508
+ /**
6509
+ * Third topic (optional)
6510
+ */
6511
+ topic2?: string;
6512
+ /**
6513
+ * Fourth topic (optional)
6514
+ */
6515
+ topic3?: string;
6516
+ /**
6517
+ * Event data
6518
+ */
6519
+ data: string;
6520
+ /**
6521
+ * Transaction index
6522
+ */
6523
+ transactionIndex: number;
6524
+ /**
6525
+ * Log index
6526
+ */
6527
+ logIndex: number;
6528
+ /**
6529
+ * Indicates if the log was removed
6530
+ */
6531
+ removed: boolean;
6532
+ };
6533
+
6534
+ type NetworkTokenInfo = {
6535
+ /**
6536
+ * Token name
6537
+ */
6538
+ tokenName?: string;
6539
+ /**
6540
+ * Token symbol
6541
+ */
6542
+ tokenSymbol?: string;
6543
+ /**
6544
+ * Token decimals
6545
+ */
6546
+ tokenDecimals?: number;
6547
+ /**
6548
+ * Value including decimals
6549
+ */
6550
+ valueWithDecimals?: string;
6551
+ };
6552
+
5081
6553
  type NextPageToken = {
5082
6554
  /**
5083
6555
  * 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.
@@ -5130,6 +6602,163 @@ type TooManyRequests = {
5130
6602
  error: string;
5131
6603
  };
5132
6604
 
6605
+ type WebhookInternalTransaction = {
6606
+ /**
6607
+ * Sender address
6608
+ */
6609
+ from: string;
6610
+ /**
6611
+ * Recipient address
6612
+ */
6613
+ to: string;
6614
+ /**
6615
+ * Internal transaction type
6616
+ */
6617
+ internalTxType: string;
6618
+ /**
6619
+ * Value transferred
6620
+ */
6621
+ value: string;
6622
+ /**
6623
+ * Gas used
6624
+ */
6625
+ gasUsed: string;
6626
+ /**
6627
+ * Gas limit
6628
+ */
6629
+ gasLimit: string;
6630
+ /**
6631
+ * Transaction hash
6632
+ */
6633
+ transactionHash: string;
6634
+ };
6635
+
6636
+ type Transaction = {
6637
+ /**
6638
+ * Block hash of the transaction
6639
+ */
6640
+ blockHash: string;
6641
+ /**
6642
+ * Block number of the transaction
6643
+ */
6644
+ blockNumber: string;
6645
+ /**
6646
+ * Sender address
6647
+ */
6648
+ from: string;
6649
+ /**
6650
+ * Gas limit for the transaction
6651
+ */
6652
+ gas: string;
6653
+ /**
6654
+ * Gas price used
6655
+ */
6656
+ gasPrice: string;
6657
+ /**
6658
+ * Maximum fee per gas
6659
+ */
6660
+ maxFeePerGas: string;
6661
+ /**
6662
+ * Maximum priority fee per gas
6663
+ */
6664
+ maxPriorityFeePerGas: string;
6665
+ /**
6666
+ * Transaction hash
6667
+ */
6668
+ txHash: string;
6669
+ /**
6670
+ * Transaction status
6671
+ */
6672
+ txStatus: string;
6673
+ /**
6674
+ * Input data
6675
+ */
6676
+ input: string;
6677
+ /**
6678
+ * Nonce value
6679
+ */
6680
+ nonce: string;
6681
+ /**
6682
+ * Recipient address
6683
+ */
6684
+ to: string;
6685
+ /**
6686
+ * Transaction index
6687
+ */
6688
+ transactionIndex: number;
6689
+ /**
6690
+ * Value transferred in the transaction
6691
+ */
6692
+ value: string;
6693
+ /**
6694
+ * Transaction type
6695
+ */
6696
+ type: number;
6697
+ /**
6698
+ * Chain ID of the network
6699
+ */
6700
+ chainId: string;
6701
+ /**
6702
+ * Cumulative gas used
6703
+ */
6704
+ receiptCumulativeGasUsed: string;
6705
+ /**
6706
+ * Gas used
6707
+ */
6708
+ receiptGasUsed: string;
6709
+ /**
6710
+ * Effective gas price
6711
+ */
6712
+ receiptEffectiveGasPrice: string;
6713
+ /**
6714
+ * Receipt root
6715
+ */
6716
+ receiptRoot: string;
6717
+ /**
6718
+ * Block timestamp
6719
+ */
6720
+ blockTimestamp: number;
6721
+ /**
6722
+ * Contract address (optional)
6723
+ */
6724
+ contractAddress?: string;
6725
+ /**
6726
+ * ERC20 transfers
6727
+ */
6728
+ erc20Transfers: Array<ERCTransfer>;
6729
+ /**
6730
+ * ERC721 transfers
6731
+ */
6732
+ erc721Transfers: Array<ERCTransfer>;
6733
+ /**
6734
+ * ERC1155 transfers
6735
+ */
6736
+ erc1155Transfers: Array<ERCTransfer>;
6737
+ /**
6738
+ * Internal transactions (optional)
6739
+ */
6740
+ internalTransactions?: Array<WebhookInternalTransaction>;
6741
+ /**
6742
+ * Access list (optional)
6743
+ */
6744
+ accessList?: Array<AccessListData>;
6745
+ /**
6746
+ * Network token info (optional)
6747
+ */
6748
+ networkToken?: NetworkTokenInfo;
6749
+ };
6750
+
6751
+ type TransactionEvent = {
6752
+ /**
6753
+ * Transaction details
6754
+ */
6755
+ transaction: Transaction;
6756
+ /**
6757
+ * Array of log events
6758
+ */
6759
+ logs?: Array<Log>;
6760
+ };
6761
+
5133
6762
  type Unauthorized = {
5134
6763
  /**
5135
6764
  * The error message describing the reason for the exception
@@ -5145,4 +6774,43 @@ type Unauthorized = {
5145
6774
  error: string;
5146
6775
  };
5147
6776
 
5148
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, 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, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
6777
+ type WebhookAddressActivityResponse = {
6778
+ /**
6779
+ * Webhook ID
6780
+ */
6781
+ webhookId: string;
6782
+ /**
6783
+ * Event type
6784
+ */
6785
+ eventType: WebhookAddressActivityResponse.eventType;
6786
+ /**
6787
+ * Message ID
6788
+ */
6789
+ messageId: string;
6790
+ /**
6791
+ * Event details
6792
+ */
6793
+ event: TransactionEvent;
6794
+ };
6795
+ declare namespace WebhookAddressActivityResponse {
6796
+ /**
6797
+ * Event type
6798
+ */
6799
+ enum eventType {
6800
+ ADDRESS_ACTIVITY = "address_activity"
6801
+ }
6802
+ }
6803
+
6804
+ declare class FetchHttpRequest extends BaseHttpRequest {
6805
+ constructor(config: OpenAPIConfig);
6806
+ /**
6807
+ * Request method
6808
+ * @param options The request options from the service
6809
+ * @returns CancelablePromise<T>
6810
+ * @throws ApiError
6811
+ */
6812
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6813
+ }
6814
+
6815
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6816
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };