@avalabs/glacier-sdk 3.1.0-alpha.6 → 3.1.0-alpha.60

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 (295) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2038 -391
  3. package/esm/generated/Glacier.d.ts +6 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  6. package/esm/generated/core/ApiResult.d.ts +1 -1
  7. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  8. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  9. package/esm/generated/core/OpenAPI.d.ts +2 -1
  10. package/esm/generated/core/OpenAPI.js +1 -1
  11. package/esm/generated/models/AccessListData.d.ts +12 -0
  12. package/esm/generated/models/AccessRequest.d.ts +12 -0
  13. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  14. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  15. package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  18. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  19. package/esm/generated/models/AssetAmount.d.ts +1 -1
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  21. package/esm/generated/models/BadGateway.d.ts +1 -1
  22. package/esm/generated/models/BadRequest.d.ts +1 -1
  23. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  24. package/esm/generated/models/Blockchain.d.ts +9 -1
  25. package/esm/generated/models/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 +28 -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 +1 -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/DataApiUsageMetricsService.d.ts +166 -22
  250. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  251. package/esm/generated/services/EvmBalancesService.d.ts +9 -9
  252. package/esm/generated/services/EvmBlocksService.d.ts +23 -2
  253. package/esm/generated/services/EvmBlocksService.js +1 -1
  254. package/esm/generated/services/EvmChainsService.d.ts +84 -6
  255. package/esm/generated/services/EvmChainsService.js +1 -1
  256. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  257. package/esm/generated/services/EvmTransactionsService.d.ts +47 -14
  258. package/esm/generated/services/EvmTransactionsService.js +1 -1
  259. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  260. package/esm/generated/services/HealthCheckService.js +1 -1
  261. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  262. package/esm/generated/services/InterchainMessagingService.js +1 -0
  263. package/esm/generated/services/NfTsService.d.ts +3 -3
  264. package/esm/generated/services/NotificationsService.d.ts +51 -0
  265. package/esm/generated/services/NotificationsService.js +1 -0
  266. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  267. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
  268. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  269. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  270. package/esm/generated/services/PrimaryNetworkService.d.ts +64 -13
  271. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  272. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
  273. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  274. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
  275. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  276. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  277. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  278. package/esm/generated/services/TeleporterService.d.ts +17 -11
  279. package/esm/generated/services/WebhooksService.d.ts +28 -24
  280. package/esm/generated/services/WebhooksService.js +1 -1
  281. package/esm/index.d.ts +66 -10
  282. package/esm/index.js +1 -1
  283. package/package.json +13 -4
  284. package/dist/index.js +0 -1
  285. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  286. package/esm/generated/models/EventType.d.ts +0 -5
  287. package/esm/generated/models/NetworkType.d.ts +0 -6
  288. package/esm/generated/models/NetworkType.js +0 -1
  289. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  290. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  291. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  292. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  293. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  294. package/esm/generated/services/RpcService.d.ts +0 -25
  295. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -148,6 +148,145 @@ type LogsResponseDTO = {
148
148
  logs: Array<LogsFormat>;
149
149
  };
150
150
 
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet"
155
+ }
156
+
157
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
158
+ RPC_METHOD = "rpcMethod",
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
167
+ HOURLY = "hourly",
168
+ DAILY = "daily",
169
+ WEEKLY = "weekly",
170
+ MONTHLY = "monthly"
171
+ }
172
+
173
+ type RpcUsageMetricsValueAggregated = {
174
+ /**
175
+ * The total number of requests
176
+ */
177
+ totalRequests: number;
178
+ /**
179
+ * The number of API credits used
180
+ */
181
+ apiCreditsUsed: number;
182
+ /**
183
+ * The number of requests per second
184
+ */
185
+ requestsPerSecond: number;
186
+ /**
187
+ * The success rate percentage
188
+ */
189
+ successRatePercent: number;
190
+ /**
191
+ * The median response time in milliseconds
192
+ */
193
+ medianResponseTimeMsecs: number;
194
+ /**
195
+ * The number of invalid requests
196
+ */
197
+ invalidRequests: number;
198
+ /**
199
+ * The number of API credits wasted on invalid requests
200
+ */
201
+ apiCreditsWasted: number;
202
+ /**
203
+ * Column name used for data aggregation
204
+ */
205
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
206
+ /**
207
+ * The value of the column used for data aggregation
208
+ */
209
+ groupValue?: (string | number);
210
+ };
211
+ declare namespace RpcUsageMetricsValueAggregated {
212
+ /**
213
+ * Column name used for data aggregation
214
+ */
215
+ enum groupedBy {
216
+ RPC_METHOD = "rpcMethod",
217
+ RESPONSE_CODE = "responseCode",
218
+ RL_BYPASS_TOKEN = "rlBypassToken",
219
+ REQUEST_PATH = "requestPath",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent",
223
+ NONE = "None"
224
+ }
225
+ }
226
+
227
+ type RpcMetrics = {
228
+ /**
229
+ * The timestamp of the metrics value
230
+ */
231
+ timestamp: number;
232
+ /**
233
+ * The metrics values for the timestamp
234
+ */
235
+ values: Array<RpcUsageMetricsValueAggregated>;
236
+ };
237
+
238
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
239
+ /**
240
+ * Duration in which the metrics value is aggregated
241
+ */
242
+ aggregateDuration: string;
243
+ /**
244
+ * Metrics values
245
+ */
246
+ metrics: Array<RpcMetrics>;
247
+ /**
248
+ * Network type for which the metrics are aggregated
249
+ */
250
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
251
+ };
252
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
253
+ /**
254
+ * Network type for which the metrics are aggregated
255
+ */
256
+ enum network {
257
+ MAINNET = "mainnet",
258
+ TESTNET = "testnet"
259
+ }
260
+ }
261
+
262
+ declare enum RpcUsageMetricsGroupByEnum {
263
+ RPC_METHOD = "rpcMethod",
264
+ RESPONSE_CODE = "responseCode",
265
+ RL_BYPASS_TOKEN = "rlBypassToken"
266
+ }
267
+
268
+ declare enum SubnetRpcTimeIntervalGranularity {
269
+ HOURLY = "hourly",
270
+ DAILY = "daily",
271
+ WEEKLY = "weekly",
272
+ MONTHLY = "monthly"
273
+ }
274
+
275
+ type SubnetRpcUsageMetricsResponseDTO = {
276
+ /**
277
+ * Duration in which the metrics value is aggregated
278
+ */
279
+ aggregateDuration: string;
280
+ /**
281
+ * Metrics values
282
+ */
283
+ metrics: Array<RpcMetrics>;
284
+ /**
285
+ * ChainId for which the metrics are aggregated
286
+ */
287
+ chainId: string;
288
+ };
289
+
151
290
  declare enum TimeIntervalGranularityExtended {
152
291
  MINUTE = "minute",
153
292
  HOURLY = "hourly",
@@ -251,17 +390,17 @@ declare class DataApiUsageMetricsService {
251
390
  * @returns UsageMetricsResponseDTO Successful response
252
391
  * @throws ApiError
253
392
  */
254
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
393
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
255
394
  /**
256
395
  * Organization ID to fetch usage metrics for
257
396
  */
258
397
  orgId?: string;
259
398
  /**
260
- * Query param for retrieving items after a specific timestamp.
399
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
261
400
  */
262
401
  startTimestamp?: number;
263
402
  /**
264
- * Query param for retrieving items before a specific timestamp.
403
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
265
404
  */
266
405
  endTimestamp?: number;
267
406
  /**
@@ -273,25 +412,25 @@ declare class DataApiUsageMetricsService {
273
412
  */
274
413
  groupBy?: UsageMetricsGroupByEnum;
275
414
  /**
276
- * Filter data by request path.
277
- */
278
- requestPath?: string;
279
- /**
280
- * Filter data by request type.
415
+ * Filter data by chain ID.
281
416
  */
282
- requestType?: 'data' | 'rpc';
417
+ chainId?: string;
283
418
  /**
284
419
  * Filter data by response status code.
285
420
  */
286
421
  responseCode?: string;
287
422
  /**
288
- * Filter data by chain ID.
423
+ * Filter data by request type.
289
424
  */
290
- chainId?: string;
425
+ requestType?: 'data' | 'rpc';
291
426
  /**
292
427
  * Filter data by API key ID.
293
428
  */
294
429
  apiKeyId?: string;
430
+ /**
431
+ * Filter data by request path.
432
+ */
433
+ requestPath?: string;
295
434
  }): CancelablePromise<UsageMetricsResponseDTO>;
296
435
  /**
297
436
  * Get logs for requests made by client
@@ -299,39 +438,39 @@ declare class DataApiUsageMetricsService {
299
438
  * @returns LogsResponseDTO Successful response
300
439
  * @throws ApiError
301
440
  */
302
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
441
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
303
442
  /**
304
443
  * Organization ID to fetch usage metrics for
305
444
  */
306
445
  orgId?: string;
307
446
  /**
308
- * Query param for retrieving items after a specific timestamp.
447
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
309
448
  */
310
449
  startTimestamp?: number;
311
450
  /**
312
- * Query param for retrieving items before a specific timestamp.
451
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
313
452
  */
314
453
  endTimestamp?: number;
315
454
  /**
316
- * Filter data by request path.
317
- */
318
- requestPath?: string;
319
- /**
320
- * Filter data by request type.
455
+ * Filter data by chain ID.
321
456
  */
322
- requestType?: 'data' | 'rpc';
457
+ chainId?: string;
323
458
  /**
324
459
  * Filter data by response status code.
325
460
  */
326
461
  responseCode?: string;
327
462
  /**
328
- * Filter data by chain ID.
463
+ * Filter data by request type.
329
464
  */
330
- chainId?: string;
465
+ requestType?: 'data' | 'rpc';
331
466
  /**
332
467
  * Filter data by API key ID.
333
468
  */
334
469
  apiKeyId?: string;
470
+ /**
471
+ * Filter data by request path.
472
+ */
473
+ requestPath?: string;
335
474
  /**
336
475
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
337
476
  */
@@ -341,6 +480,143 @@ declare class DataApiUsageMetricsService {
341
480
  */
342
481
  pageSize?: number;
343
482
  }): CancelablePromise<LogsResponseDTO>;
483
+ /**
484
+ * Get usage metrics for the Subnet RPC
485
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
486
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
487
+ * @throws ApiError
488
+ */
489
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
490
+ /**
491
+ * Time interval granularity for data aggregation for subnet
492
+ * rpc metrics
493
+ */
494
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
495
+ /**
496
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
497
+ */
498
+ startTimestamp?: number;
499
+ /**
500
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
501
+ */
502
+ endTimestamp?: number;
503
+ /**
504
+ * Query param for the criterion used for grouping metrics
505
+ */
506
+ groupBy?: RpcUsageMetricsGroupByEnum;
507
+ /**
508
+ * Filter data by chain ID.
509
+ */
510
+ chainId?: string;
511
+ /**
512
+ * Filter data by response status code.
513
+ */
514
+ responseCode?: string;
515
+ /**
516
+ * Filter data by RPC method.
517
+ */
518
+ rpcMethod?: string;
519
+ /**
520
+ * Filter data by Rl Bypass API Token.
521
+ */
522
+ rlBypassApiToken?: string;
523
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
524
+ /**
525
+ * @deprecated
526
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
527
+ *
528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
529
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
530
+ * @throws ApiError
531
+ */
532
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
533
+ /**
534
+ * Time interval granularity for data aggregation for subnet
535
+ * rpc metrics
536
+ */
537
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
538
+ /**
539
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
540
+ */
541
+ startTimestamp?: number;
542
+ /**
543
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
544
+ */
545
+ endTimestamp?: number;
546
+ /**
547
+ * Query param for the criterion used for grouping metrics
548
+ */
549
+ groupBy?: RpcUsageMetricsGroupByEnum;
550
+ /**
551
+ * Filter data by chain ID.
552
+ */
553
+ chainId?: string;
554
+ /**
555
+ * Filter data by response status code.
556
+ */
557
+ responseCode?: string;
558
+ /**
559
+ * Filter data by RPC method.
560
+ */
561
+ rpcMethod?: string;
562
+ /**
563
+ * Filter data by Rl Bypass API Token.
564
+ */
565
+ rlBypassApiToken?: string;
566
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
567
+ /**
568
+ * Get usage metrics for the Primary Network RPC
569
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
570
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
571
+ * @throws ApiError
572
+ */
573
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
574
+ /**
575
+ * Either mainnet or testnet/fuji.
576
+ */
577
+ network: Network;
578
+ /**
579
+ * Time interval granularity for data aggregation for subnet
580
+ * rpc metrics
581
+ */
582
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
583
+ /**
584
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
585
+ */
586
+ startTimestamp?: number;
587
+ /**
588
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
589
+ */
590
+ endTimestamp?: number;
591
+ /**
592
+ * Query param for the criterion used for grouping metrics
593
+ */
594
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
595
+ /**
596
+ * Filter data by response status code.
597
+ */
598
+ responseCode?: string;
599
+ /**
600
+ * Filter data by request path.
601
+ */
602
+ requestPath?: string;
603
+ /**
604
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
605
+ */
606
+ country?: string;
607
+ /**
608
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
609
+ */
610
+ continent?: string;
611
+ /**
612
+ * Filter data by User Agent.
613
+ */
614
+ userAgent?: string;
615
+ /**
616
+ * Filter data by RPC method.
617
+ */
618
+ rpcMethod?: string;
619
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
344
620
  }
345
621
 
346
622
  declare class DefaultService {
@@ -539,6 +815,10 @@ type ListErc1155BalancesResponse = {
539
815
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
540
816
  */
541
817
  nextPageToken?: string;
818
+ /**
819
+ * The native token balance for the address.
820
+ */
821
+ nativeTokenBalance: NativeTokenBalance;
542
822
  /**
543
823
  * The list of ERC-1155 token balances for the address.
544
824
  */
@@ -583,11 +863,22 @@ type Erc20TokenBalance = {
583
863
  * The monetary value of the balance, if a price is available for the token.
584
864
  */
585
865
  balanceValue?: Money;
866
+ /**
867
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
868
+ */
869
+ tokenReputation: Erc20TokenBalance.tokenReputation;
586
870
  };
587
871
  declare namespace Erc20TokenBalance {
588
872
  enum ercType {
589
873
  ERC_20 = "ERC-20"
590
874
  }
875
+ /**
876
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
877
+ */
878
+ enum tokenReputation {
879
+ MALICIOUS = "Malicious",
880
+ BENIGN = "Benign"
881
+ }
591
882
  }
592
883
 
593
884
  type ListErc20BalancesResponse = {
@@ -595,6 +886,10 @@ type ListErc20BalancesResponse = {
595
886
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
596
887
  */
597
888
  nextPageToken?: string;
889
+ /**
890
+ * The native token balance for the address.
891
+ */
892
+ nativeTokenBalance: NativeTokenBalance;
598
893
  /**
599
894
  * The list of ERC-20 token balances for the address.
600
895
  */
@@ -606,6 +901,10 @@ type ListErc721BalancesResponse = {
606
901
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
607
902
  */
608
903
  nextPageToken?: string;
904
+ /**
905
+ * The native token balance for the address.
906
+ */
907
+ nativeTokenBalance: NativeTokenBalance;
609
908
  /**
610
909
  * The list of ERC-721 token balances for the address.
611
910
  */
@@ -625,7 +924,7 @@ declare class EvmBalancesService {
625
924
  */
626
925
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
926
  /**
628
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
927
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
928
  */
630
929
  chainId: string;
631
930
  /**
@@ -653,7 +952,7 @@ declare class EvmBalancesService {
653
952
  */
654
953
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
954
  /**
656
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
955
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
956
  */
658
957
  chainId: string;
659
958
  /**
@@ -669,7 +968,7 @@ declare class EvmBalancesService {
669
968
  */
670
969
  pageToken?: string;
671
970
  /**
672
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
971
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
673
972
  */
674
973
  pageSize?: number;
675
974
  /**
@@ -695,7 +994,7 @@ declare class EvmBalancesService {
695
994
  */
696
995
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
996
  /**
698
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
997
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
998
  */
700
999
  chainId: string;
701
1000
  /**
@@ -707,7 +1006,7 @@ declare class EvmBalancesService {
707
1006
  */
708
1007
  pageToken?: string;
709
1008
  /**
710
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
711
1010
  */
712
1011
  pageSize?: number;
713
1012
  /**
@@ -727,7 +1026,7 @@ declare class EvmBalancesService {
727
1026
  */
728
1027
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
1028
  /**
730
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1029
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
1030
  */
732
1031
  chainId: string;
733
1032
  /**
@@ -743,7 +1042,7 @@ declare class EvmBalancesService {
743
1042
  */
744
1043
  pageToken?: string;
745
1044
  /**
746
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1045
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
747
1046
  */
748
1047
  pageSize?: number;
749
1048
  /**
@@ -761,7 +1060,7 @@ declare class EvmBalancesService {
761
1060
  */
762
1061
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
1062
  /**
764
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1063
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
1064
  */
766
1065
  chainId: string;
767
1066
  /**
@@ -773,7 +1072,7 @@ declare class EvmBalancesService {
773
1072
  */
774
1073
  pageToken?: string;
775
1074
  /**
776
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
777
1076
  */
778
1077
  pageSize?: number;
779
1078
  /**
@@ -784,6 +1083,10 @@ declare class EvmBalancesService {
784
1083
  }
785
1084
 
786
1085
  type GetEvmBlockResponse = {
1086
+ /**
1087
+ * The EVM chain ID on which the block was created.
1088
+ */
1089
+ chainId: string;
787
1090
  /**
788
1091
  * The block number on the chain.
789
1092
  */
@@ -828,6 +1131,10 @@ type GetEvmBlockResponse = {
828
1131
  };
829
1132
 
830
1133
  type EvmBlock = {
1134
+ /**
1135
+ * The EVM chain ID on which the block was created.
1136
+ */
1137
+ chainId: string;
831
1138
  /**
832
1139
  * The block number on the chain.
833
1140
  */
@@ -882,6 +1189,26 @@ type ListEvmBlocksResponse = {
882
1189
  declare class EvmBlocksService {
883
1190
  readonly httpRequest: BaseHttpRequest;
884
1191
  constructor(httpRequest: BaseHttpRequest);
1192
+ /**
1193
+ * List latest blocks across all supported EVM chains
1194
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1195
+ * @returns ListEvmBlocksResponse Successful response
1196
+ * @throws ApiError
1197
+ */
1198
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1199
+ /**
1200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1201
+ */
1202
+ pageToken?: string;
1203
+ /**
1204
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1205
+ */
1206
+ pageSize?: number;
1207
+ /**
1208
+ * Either mainnet or testnet/fuji.
1209
+ */
1210
+ network?: Network;
1211
+ }): CancelablePromise<ListEvmBlocksResponse>;
885
1212
  /**
886
1213
  * List latest blocks
887
1214
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -890,7 +1217,7 @@ declare class EvmBlocksService {
890
1217
  */
891
1218
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
1219
  /**
893
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1220
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
1221
  */
895
1222
  chainId: string;
896
1223
  /**
@@ -910,7 +1237,7 @@ declare class EvmBlocksService {
910
1237
  */
911
1238
  getBlock({ chainId, blockId, }: {
912
1239
  /**
913
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1240
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
1241
  */
915
1242
  chainId: string;
916
1243
  /**
@@ -1004,29 +1331,153 @@ type ChainInfo = {
1004
1331
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1005
1332
  };
1006
1333
 
1334
+ type ListAddressChainsResponse = {
1335
+ indexedChains?: Array<ChainInfo>;
1336
+ unindexedChains?: Array<string>;
1337
+ };
1338
+
1007
1339
  type ListChainsResponse = {
1008
1340
  chains: Array<ChainInfo>;
1009
1341
  };
1010
1342
 
1011
- declare enum NetworkType {
1012
- MAINNET = "mainnet",
1013
- TESTNET = "testnet"
1343
+ /**
1344
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1345
+ */
1346
+ declare enum TransactionMethodType {
1347
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1348
+ CONTRACT_CALL = "CONTRACT_CALL",
1349
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1350
+ }
1351
+
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1354
+ /**
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1356
+ */
1357
+ methodHash: string;
1358
+ /**
1359
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1360
+ */
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1365
+ /**
1366
+ * The contract name.
1367
+ */
1368
+ name?: string;
1369
+ /**
1370
+ * The contract symbol.
1371
+ */
1372
+ symbol?: string;
1373
+ /**
1374
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1375
+ */
1376
+ decimals?: number;
1377
+ /**
1378
+ * The logo uri for the address.
1379
+ */
1380
+ logoUri?: string;
1381
+ /**
1382
+ * A wallet or contract address in mixed-case checksum encoding.
1383
+ */
1384
+ address: string;
1385
+ };
1386
+
1387
+ type NativeTransaction = {
1388
+ /**
1389
+ * The block number on the chain.
1390
+ */
1391
+ blockNumber: string;
1392
+ /**
1393
+ * The block finality timestamp.
1394
+ */
1395
+ blockTimestamp: number;
1396
+ /**
1397
+ * The block hash identifier.
1398
+ */
1399
+ blockHash: string;
1400
+ /**
1401
+ * The EVM chain ID on which the transaction occured.
1402
+ */
1403
+ chainId: string;
1404
+ /**
1405
+ * The index at which the transaction occured in the block (0-indexed).
1406
+ */
1407
+ blockIndex: number;
1408
+ /**
1409
+ * The transaction hash identifier.
1410
+ */
1411
+ txHash: string;
1412
+ /**
1413
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1414
+ */
1415
+ txStatus: string;
1416
+ /**
1417
+ * The transaction type.
1418
+ */
1419
+ txType: number;
1420
+ /**
1421
+ * The gas limit set for the transaction.
1422
+ */
1423
+ gasLimit: string;
1424
+ /**
1425
+ * The amount of gas used.
1426
+ */
1427
+ gasUsed: string;
1428
+ /**
1429
+ * The gas price denominated by the number of decimals of the native token.
1430
+ */
1431
+ gasPrice: string;
1432
+ /**
1433
+ * The nonce used by the sender of the transaction.
1434
+ */
1435
+ nonce: string;
1436
+ from: RichAddress;
1437
+ to: RichAddress;
1438
+ method?: Method;
1439
+ value: string;
1440
+ };
1441
+
1442
+ type ListNativeTransactionsResponse = {
1443
+ /**
1444
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1445
+ */
1446
+ nextPageToken?: string;
1447
+ transactions: Array<NativeTransaction>;
1448
+ };
1449
+
1450
+ declare enum TransactionStatus {
1451
+ FAILED = "failed",
1452
+ SUCCESS = "success"
1014
1453
  }
1015
1454
 
1016
1455
  declare class EvmChainsService {
1017
1456
  readonly httpRequest: BaseHttpRequest;
1018
1457
  constructor(httpRequest: BaseHttpRequest);
1458
+ /**
1459
+ * List all chains associated with a given address
1460
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1461
+ * @returns ListAddressChainsResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAddressChains({ address, }: {
1465
+ /**
1466
+ * A wallet address.
1467
+ */
1468
+ address: string;
1469
+ }): CancelablePromise<ListAddressChainsResponse>;
1019
1470
  /**
1020
1471
  * List chains
1021
- * Lists the supported EVM-compatible chains. Filterable by network.
1472
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1022
1473
  * @returns ListChainsResponse Successful response
1023
1474
  * @throws ApiError
1024
1475
  */
1025
1476
  supportedChains({ network, feature, }: {
1026
1477
  /**
1027
- * mainnet or testnet.
1478
+ * Either mainnet or testnet/fuji.
1028
1479
  */
1029
- network?: NetworkType;
1480
+ network?: Network;
1030
1481
  /**
1031
1482
  * Filter by feature.
1032
1483
  */
@@ -1034,16 +1485,78 @@ declare class EvmChainsService {
1034
1485
  }): CancelablePromise<ListChainsResponse>;
1035
1486
  /**
1036
1487
  * Get chain information
1037
- * Gets chain information for the EVM-compatible chain if supported by the api.
1488
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1038
1489
  * @returns GetChainResponse Successful response
1039
1490
  * @throws ApiError
1040
1491
  */
1041
1492
  getChainInfo({ chainId, }: {
1042
1493
  /**
1043
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1494
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1044
1495
  */
1045
1496
  chainId: string;
1046
1497
  }): CancelablePromise<GetChainResponse>;
1498
+ /**
1499
+ * @deprecated
1500
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1501
+ *
1502
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1503
+ * @returns ListAddressChainsResponse Successful response
1504
+ * @throws ApiError
1505
+ */
1506
+ getAddressChains({ address, }: {
1507
+ /**
1508
+ * A wallet address.
1509
+ */
1510
+ address: string;
1511
+ }): CancelablePromise<ListAddressChainsResponse>;
1512
+ /**
1513
+ * @deprecated
1514
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1515
+ *
1516
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1517
+ * @returns ListNativeTransactionsResponse Successful response
1518
+ * @throws ApiError
1519
+ */
1520
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1521
+ /**
1522
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1523
+ */
1524
+ pageToken?: string;
1525
+ /**
1526
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1527
+ */
1528
+ pageSize?: number;
1529
+ /**
1530
+ * Either mainnet or testnet/fuji.
1531
+ */
1532
+ network?: Network;
1533
+ /**
1534
+ * A status filter for listed transactions.
1535
+ */
1536
+ status?: TransactionStatus;
1537
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1538
+ /**
1539
+ * @deprecated
1540
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1541
+ *
1542
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1543
+ * @returns ListEvmBlocksResponse Successful response
1544
+ * @throws ApiError
1545
+ */
1546
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1547
+ /**
1548
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1549
+ */
1550
+ pageToken?: string;
1551
+ /**
1552
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1553
+ */
1554
+ pageSize?: number;
1555
+ /**
1556
+ * Either mainnet or testnet/fuji.
1557
+ */
1558
+ network?: Network;
1559
+ }): CancelablePromise<ListEvmBlocksResponse>;
1047
1560
  }
1048
1561
 
1049
1562
  type ImageAsset = {
@@ -1215,7 +1728,7 @@ type Erc1155Contract = {
1215
1728
  * A wallet or contract address in mixed-case checksum encoding.
1216
1729
  */
1217
1730
  address: string;
1218
- deploymentDetails: ContractDeploymentDetails;
1731
+ deploymentDetails?: ContractDeploymentDetails;
1219
1732
  ercType: Erc1155Contract.ercType;
1220
1733
  /**
1221
1734
  * The contract symbol.
@@ -1246,7 +1759,7 @@ type Erc20Contract = {
1246
1759
  * A wallet or contract address in mixed-case checksum encoding.
1247
1760
  */
1248
1761
  address: string;
1249
- deploymentDetails: ContractDeploymentDetails;
1762
+ deploymentDetails?: ContractDeploymentDetails;
1250
1763
  ercType: Erc20Contract.ercType;
1251
1764
  /**
1252
1765
  * The contract symbol.
@@ -1281,7 +1794,7 @@ type Erc721Contract = {
1281
1794
  * A wallet or contract address in mixed-case checksum encoding.
1282
1795
  */
1283
1796
  address: string;
1284
- deploymentDetails: ContractDeploymentDetails;
1797
+ deploymentDetails?: ContractDeploymentDetails;
1285
1798
  ercType: Erc721Contract.ercType;
1286
1799
  /**
1287
1800
  * The contract symbol.
@@ -1311,7 +1824,7 @@ type UnknownContract = {
1311
1824
  * A wallet or contract address in mixed-case checksum encoding.
1312
1825
  */
1313
1826
  address: string;
1314
- deploymentDetails: ContractDeploymentDetails;
1827
+ deploymentDetails?: ContractDeploymentDetails;
1315
1828
  ercType: UnknownContract.ercType;
1316
1829
  };
1317
1830
  declare namespace UnknownContract {
@@ -1335,7 +1848,7 @@ declare class EvmContractsService {
1335
1848
  */
1336
1849
  getContractMetadata({ chainId, address, }: {
1337
1850
  /**
1338
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1851
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1339
1852
  */
1340
1853
  chainId: string;
1341
1854
  /**
@@ -1351,7 +1864,7 @@ declare class EvmContractsService {
1351
1864
  */
1352
1865
  updateContractInfo({ chainId, address, requestBody, }: {
1353
1866
  /**
1354
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1867
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1355
1868
  */
1356
1869
  chainId: string;
1357
1870
  /**
@@ -1378,29 +1891,6 @@ declare namespace Erc1155Token {
1378
1891
  }
1379
1892
  }
1380
1893
 
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
1894
  type Erc1155TransferDetails = {
1405
1895
  from: RichAddress;
1406
1896
  to: RichAddress;
@@ -1485,27 +1975,6 @@ type Erc721TransferDetails = {
1485
1975
  erc721Token: Erc721Token;
1486
1976
  };
1487
1977
 
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
1978
  type FullNativeTransactionDetails = {
1510
1979
  /**
1511
1980
  * The block number on the chain.
@@ -1519,6 +1988,10 @@ type FullNativeTransactionDetails = {
1519
1988
  * The block hash identifier.
1520
1989
  */
1521
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1522
1995
  /**
1523
1996
  * The index at which the transaction occured in the block (0-indexed).
1524
1997
  */
@@ -1569,6 +2042,7 @@ declare enum InternalTransactionOpCall {
1569
2042
  CALL = "CALL",
1570
2043
  CREATE = "CREATE",
1571
2044
  CREATE2 = "CREATE2",
2045
+ CREATE3 = "CREATE3",
1572
2046
  CALLCODE = "CALLCODE",
1573
2047
  DELEGATECALL = "DELEGATECALL",
1574
2048
  STATICCALL = "STATICCALL"
@@ -1610,11 +2084,11 @@ type TeleporterMessageInfo = {
1610
2084
  /**
1611
2085
  * chain id of the source chain. valid only for destination transactions
1612
2086
  */
1613
- sourceChainId?: Record<string, any>;
2087
+ sourceChainId?: string;
1614
2088
  /**
1615
2089
  * chain id of the destination chain. valid only for source transactions
1616
2090
  */
1617
- destinationChainId?: Record<string, any>;
2091
+ destinationChainId?: string;
1618
2092
  };
1619
2093
 
1620
2094
  type GetTransactionResponse = {
@@ -1631,7 +2105,7 @@ type GetTransactionResponse = {
1631
2105
  */
1632
2106
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1633
2107
  /**
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.
2108
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1635
2109
  */
1636
2110
  internalTransactions?: Array<InternalTransactionDetails>;
1637
2111
  networkTokenDetails: NetworkTokenDetails;
@@ -1782,91 +2256,32 @@ type ListInternalTransactionsResponse = {
1782
2256
  transactions: Array<InternalTransaction>;
1783
2257
  };
1784
2258
 
1785
- type NativeTransaction = {
2259
+ type TransactionDetails = {
1786
2260
  /**
1787
- * The block number on the chain.
2261
+ * The native (top-level) transaction details.
1788
2262
  */
1789
- blockNumber: string;
2263
+ nativeTransaction: NativeTransaction;
1790
2264
  /**
1791
- * The block finality timestamp.
2265
+ * The list of ERC-20 transfers.
1792
2266
  */
1793
- blockTimestamp: number;
2267
+ erc20Transfers?: Array<Erc20TransferDetails>;
1794
2268
  /**
1795
- * The block hash identifier.
2269
+ * The list of ERC-721 transfers.
1796
2270
  */
1797
- blockHash: string;
2271
+ erc721Transfers?: Array<Erc721TransferDetails>;
1798
2272
  /**
1799
- * The index at which the transaction occured in the block (0-indexed).
2273
+ * The list of ERC-1155 transfers.
1800
2274
  */
1801
- blockIndex: number;
2275
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1802
2276
  /**
1803
- * The transaction hash identifier.
2277
+ * 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.
1804
2278
  */
1805
- txHash: string;
2279
+ internalTransactions?: Array<InternalTransactionDetails>;
2280
+ };
2281
+
2282
+ type ListTransactionDetailsResponse = {
1806
2283
  /**
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.
1863
- */
1864
- internalTransactions?: Array<InternalTransactionDetails>;
1865
- };
1866
-
1867
- type ListTransactionDetailsResponse = {
1868
- /**
1869
- * 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.
2284
+ * 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.
1870
2285
  */
1871
2286
  nextPageToken?: string;
1872
2287
  transactions: Array<TransactionDetails>;
@@ -1885,14 +2300,33 @@ declare enum SortOrder {
1885
2300
  DESC = "desc"
1886
2301
  }
1887
2302
 
1888
- declare enum TransactionStatus {
1889
- FAILED = "failed",
1890
- SUCCESS = "success"
1891
- }
1892
-
1893
2303
  declare class EvmTransactionsService {
1894
2304
  readonly httpRequest: BaseHttpRequest;
1895
2305
  constructor(httpRequest: BaseHttpRequest);
2306
+ /**
2307
+ * List the latest transactions across all supported EVM chains
2308
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2309
+ * @returns ListNativeTransactionsResponse Successful response
2310
+ * @throws ApiError
2311
+ */
2312
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2313
+ /**
2314
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2315
+ */
2316
+ pageToken?: string;
2317
+ /**
2318
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2319
+ */
2320
+ pageSize?: number;
2321
+ /**
2322
+ * Either mainnet or testnet/fuji.
2323
+ */
2324
+ network?: Network;
2325
+ /**
2326
+ * A status filter for listed transactions.
2327
+ */
2328
+ status?: TransactionStatus;
2329
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1896
2330
  /**
1897
2331
  * Get deployment transaction
1898
2332
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -1901,7 +2335,7 @@ declare class EvmTransactionsService {
1901
2335
  */
1902
2336
  getDeploymentTransaction({ chainId, address, currency, }: {
1903
2337
  /**
1904
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2338
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
2339
  */
1906
2340
  chainId: string;
1907
2341
  /**
@@ -1921,7 +2355,7 @@ declare class EvmTransactionsService {
1921
2355
  */
1922
2356
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1923
2357
  /**
1924
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2358
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
2359
  */
1926
2360
  chainId: string;
1927
2361
  /**
@@ -1945,7 +2379,7 @@ declare class EvmTransactionsService {
1945
2379
  */
1946
2380
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1947
2381
  /**
1948
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2382
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1949
2383
  */
1950
2384
  chainId: string;
1951
2385
  /**
@@ -1979,7 +2413,7 @@ declare class EvmTransactionsService {
1979
2413
  */
1980
2414
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1981
2415
  /**
1982
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2416
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1983
2417
  */
1984
2418
  chainId: string;
1985
2419
  /**
@@ -2015,7 +2449,7 @@ declare class EvmTransactionsService {
2015
2449
  */
2016
2450
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2017
2451
  /**
2018
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2452
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2019
2453
  */
2020
2454
  chainId: string;
2021
2455
  /**
@@ -2047,7 +2481,7 @@ declare class EvmTransactionsService {
2047
2481
  */
2048
2482
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2049
2483
  /**
2050
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2484
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2051
2485
  */
2052
2486
  chainId: string;
2053
2487
  /**
@@ -2079,7 +2513,7 @@ declare class EvmTransactionsService {
2079
2513
  */
2080
2514
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2081
2515
  /**
2082
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2516
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2083
2517
  */
2084
2518
  chainId: string;
2085
2519
  /**
@@ -2111,7 +2545,7 @@ declare class EvmTransactionsService {
2111
2545
  */
2112
2546
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2113
2547
  /**
2114
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2548
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2115
2549
  */
2116
2550
  chainId: string;
2117
2551
  /**
@@ -2139,13 +2573,13 @@ declare class EvmTransactionsService {
2139
2573
  * List internal transactions
2140
2574
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
2141
2575
  *
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.
2576
+ * 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
2577
  * @returns ListInternalTransactionsResponse Successful response
2144
2578
  * @throws ApiError
2145
2579
  */
2146
2580
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2147
2581
  /**
2148
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2582
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2149
2583
  */
2150
2584
  chainId: string;
2151
2585
  /**
@@ -2177,7 +2611,7 @@ declare class EvmTransactionsService {
2177
2611
  */
2178
2612
  getTransaction({ chainId, txHash, }: {
2179
2613
  /**
2180
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2614
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2181
2615
  */
2182
2616
  chainId: string;
2183
2617
  /**
@@ -2191,15 +2625,23 @@ declare class EvmTransactionsService {
2191
2625
  * @returns ListNativeTransactionsResponse Successful response
2192
2626
  * @throws ApiError
2193
2627
  */
2194
- getTransactionsForBlock({ chainId, blockId, }: {
2628
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2195
2629
  /**
2196
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2630
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2197
2631
  */
2198
2632
  chainId: string;
2199
2633
  /**
2200
2634
  * A block identifier which is either a block number or the block hash.
2201
2635
  */
2202
2636
  blockId: string;
2637
+ /**
2638
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2639
+ */
2640
+ pageToken?: string;
2641
+ /**
2642
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2643
+ */
2644
+ pageSize?: number;
2203
2645
  }): CancelablePromise<ListNativeTransactionsResponse>;
2204
2646
  /**
2205
2647
  * List latest transactions
@@ -2209,7 +2651,7 @@ declare class EvmTransactionsService {
2209
2651
  */
2210
2652
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2211
2653
  /**
2212
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2654
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2213
2655
  */
2214
2656
  chainId: string;
2215
2657
  /**
@@ -2227,66 +2669,246 @@ declare class EvmTransactionsService {
2227
2669
  }): CancelablePromise<ListNativeTransactionsResponse>;
2228
2670
  }
2229
2671
 
2672
+ type HealthIndicatorResultDto = {
2673
+ /**
2674
+ * Status of the health indicator.
2675
+ */
2676
+ status?: HealthIndicatorResultDto.status;
2677
+ };
2678
+ declare namespace HealthIndicatorResultDto {
2679
+ /**
2680
+ * Status of the health indicator.
2681
+ */
2682
+ enum status {
2683
+ UP = "up",
2684
+ DOWN = "down"
2685
+ }
2686
+ }
2687
+
2688
+ type HealthCheckResultDto = {
2689
+ status?: HealthCheckResultDto.status;
2690
+ info?: any | null;
2691
+ error?: any | null;
2692
+ details?: Record<string, HealthIndicatorResultDto>;
2693
+ };
2694
+ declare namespace HealthCheckResultDto {
2695
+ enum status {
2696
+ ERROR = "error",
2697
+ OK = "ok",
2698
+ SHUTTING_DOWN = "shutting_down"
2699
+ }
2700
+ }
2701
+
2230
2702
  declare class HealthCheckService {
2231
2703
  readonly httpRequest: BaseHttpRequest;
2232
2704
  constructor(httpRequest: BaseHttpRequest);
2233
2705
  /**
2234
2706
  * Get the health of the service
2235
- * @returns any The Health Check is successful
2707
+ * Check the health of the service.
2708
+ * @returns HealthCheckResultDto The health of the service
2236
2709
  * @throws ApiError
2237
2710
  */
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
- }>;
2711
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2244
2712
  }
2245
2713
 
2246
- type ListNftTokens = {
2714
+ type IcmDestinationTransaction = {
2715
+ txHash: string;
2716
+ timestamp: number;
2717
+ gasSpent: string;
2718
+ rewardRedeemer: string;
2719
+ delivererAddress: string;
2720
+ };
2721
+
2722
+ type IcmReceipt = {
2723
+ receivedMessageNonce: string;
2724
+ relayerRewardAddress: string;
2725
+ };
2726
+
2727
+ type IcmRewardDetails = {
2728
+ /**
2729
+ * A wallet or contract address in mixed-case checksum encoding.
2730
+ */
2731
+ address: string;
2732
+ /**
2733
+ * The contract name.
2734
+ */
2735
+ name: string;
2736
+ /**
2737
+ * The contract symbol.
2738
+ */
2739
+ symbol: string;
2740
+ /**
2741
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2742
+ */
2743
+ decimals: number;
2744
+ /**
2745
+ * The logo uri for the address.
2746
+ */
2747
+ logoUri?: string;
2748
+ ercType: IcmRewardDetails.ercType;
2749
+ /**
2750
+ * The token price, if available.
2751
+ */
2752
+ price?: Money;
2753
+ value: string;
2754
+ };
2755
+ declare namespace IcmRewardDetails {
2756
+ enum ercType {
2757
+ ERC_20 = "ERC-20"
2758
+ }
2759
+ }
2760
+
2761
+ type IcmSourceTransaction = {
2762
+ txHash: string;
2763
+ timestamp: number;
2764
+ gasSpent: string;
2765
+ };
2766
+
2767
+ type DeliveredIcmMessage = {
2768
+ messageId: string;
2769
+ icmContractAddress: string;
2770
+ sourceBlockchainId: string;
2771
+ destinationBlockchainId: string;
2772
+ sourceEvmChainId: string;
2773
+ destinationEvmChainId: string;
2774
+ messageNonce: string;
2775
+ from: string;
2776
+ to: string;
2777
+ data?: string;
2778
+ messageExecuted: boolean;
2779
+ receipts: Array<IcmReceipt>;
2780
+ receiptDelivered: boolean;
2781
+ rewardDetails: IcmRewardDetails;
2782
+ sourceTransaction: IcmSourceTransaction;
2783
+ destinationTransaction: IcmDestinationTransaction;
2784
+ status: DeliveredIcmMessage.status;
2785
+ };
2786
+ declare namespace DeliveredIcmMessage {
2787
+ enum status {
2788
+ DELIVERED = "delivered"
2789
+ }
2790
+ }
2791
+
2792
+ type DeliveredSourceNotIndexedIcmMessage = {
2793
+ messageId: string;
2794
+ icmContractAddress: string;
2795
+ sourceBlockchainId: string;
2796
+ destinationBlockchainId: string;
2797
+ sourceEvmChainId: string;
2798
+ destinationEvmChainId: string;
2799
+ messageNonce: string;
2800
+ from: string;
2801
+ to: string;
2802
+ data?: string;
2803
+ messageExecuted: boolean;
2804
+ receipts: Array<IcmReceipt>;
2805
+ receiptDelivered: boolean;
2806
+ rewardDetails: IcmRewardDetails;
2807
+ destinationTransaction: IcmDestinationTransaction;
2808
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2809
+ };
2810
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2811
+ enum status {
2812
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2813
+ }
2814
+ }
2815
+
2816
+ type PendingIcmMessage = {
2817
+ messageId: string;
2818
+ icmContractAddress: string;
2819
+ sourceBlockchainId: string;
2820
+ destinationBlockchainId: string;
2821
+ sourceEvmChainId: string;
2822
+ destinationEvmChainId: string;
2823
+ messageNonce: string;
2824
+ from: string;
2825
+ to: string;
2826
+ data?: string;
2827
+ messageExecuted: boolean;
2828
+ receipts: Array<IcmReceipt>;
2829
+ receiptDelivered: boolean;
2830
+ rewardDetails: IcmRewardDetails;
2831
+ sourceTransaction: IcmSourceTransaction;
2832
+ status: PendingIcmMessage.status;
2833
+ };
2834
+ declare namespace PendingIcmMessage {
2835
+ enum status {
2836
+ PENDING = "pending"
2837
+ }
2838
+ }
2839
+
2840
+ type ListIcmMessagesResponse = {
2247
2841
  /**
2248
2842
  * 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
2843
  */
2250
2844
  nextPageToken?: string;
2251
- tokens: Array<(Erc721Token | Erc1155Token)>;
2845
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2252
2846
  };
2253
2847
 
2254
- declare class NfTsService {
2848
+ declare class InterchainMessagingService {
2255
2849
  readonly httpRequest: BaseHttpRequest;
2256
2850
  constructor(httpRequest: BaseHttpRequest);
2257
2851
  /**
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.
2852
+ * Get an ICM message
2853
+ * Gets an ICM message by teleporter message ID.
2260
2854
  * @returns any Successful response
2261
2855
  * @throws ApiError
2262
2856
  */
2263
- reindexNft({ chainId, address, tokenId, }: {
2857
+ getIcmMessage({ messageId, }: {
2264
2858
  /**
2265
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2859
+ * The teleporter message ID of the ICM message.
2266
2860
  */
2267
- chainId: string;
2861
+ messageId: string;
2862
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2863
+ /**
2864
+ * List ICM messages
2865
+ * Lists ICM messages. Ordered by timestamp in descending order.
2866
+ * @returns ListIcmMessagesResponse Successful response
2867
+ * @throws ApiError
2868
+ */
2869
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2268
2870
  /**
2269
- * Contract address on the relevant chain.
2871
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2270
2872
  */
2271
- address: string;
2873
+ pageToken?: string;
2272
2874
  /**
2273
- * TokenId on the contract
2875
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2274
2876
  */
2275
- tokenId: string;
2276
- }): CancelablePromise<any>;
2877
+ pageSize?: number;
2878
+ /**
2879
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2880
+ */
2881
+ sourceBlockchainId?: string;
2882
+ /**
2883
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2884
+ */
2885
+ destinationBlockchainId?: string;
2886
+ /**
2887
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2888
+ */
2889
+ blockchainId?: string;
2890
+ /**
2891
+ * The address of the recipient of the ICM message.
2892
+ */
2893
+ to?: string;
2894
+ /**
2895
+ * The address of the sender of the ICM message.
2896
+ */
2897
+ from?: string;
2898
+ /**
2899
+ * Either mainnet or testnet/fuji.
2900
+ */
2901
+ network?: Network;
2902
+ }): CancelablePromise<ListIcmMessagesResponse>;
2277
2903
  /**
2278
- * List tokens
2279
- * Lists tokens for an NFT contract.
2280
- * @returns ListNftTokens Successful response
2904
+ * List ICM messages by address
2905
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2906
+ * @returns ListIcmMessagesResponse Successful response
2281
2907
  * @throws ApiError
2282
2908
  */
2283
- listTokens({ chainId, address, pageToken, pageSize, }: {
2284
- /**
2285
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2286
- */
2287
- chainId: string;
2909
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2288
2910
  /**
2289
- * Contract address on the relevant chain.
2911
+ * An EVM address.
2290
2912
  */
2291
2913
  address: string;
2292
2914
  /**
@@ -2297,7 +2919,68 @@ declare class NfTsService {
2297
2919
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2298
2920
  */
2299
2921
  pageSize?: number;
2300
- }): CancelablePromise<ListNftTokens>;
2922
+ /**
2923
+ * Either mainnet or testnet/fuji.
2924
+ */
2925
+ network?: Network;
2926
+ }): CancelablePromise<ListIcmMessagesResponse>;
2927
+ }
2928
+
2929
+ type ListNftTokens = {
2930
+ /**
2931
+ * 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.
2932
+ */
2933
+ nextPageToken?: string;
2934
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2935
+ };
2936
+
2937
+ declare class NfTsService {
2938
+ readonly httpRequest: BaseHttpRequest;
2939
+ constructor(httpRequest: BaseHttpRequest);
2940
+ /**
2941
+ * Reindex NFT metadata
2942
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2943
+ * @returns any Successful response
2944
+ * @throws ApiError
2945
+ */
2946
+ reindexNft({ chainId, address, tokenId, }: {
2947
+ /**
2948
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2949
+ */
2950
+ chainId: string;
2951
+ /**
2952
+ * Contract address on the relevant chain.
2953
+ */
2954
+ address: string;
2955
+ /**
2956
+ * TokenId on the contract
2957
+ */
2958
+ tokenId: string;
2959
+ }): CancelablePromise<any>;
2960
+ /**
2961
+ * List tokens
2962
+ * Lists tokens for an NFT contract.
2963
+ * @returns ListNftTokens Successful response
2964
+ * @throws ApiError
2965
+ */
2966
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2967
+ /**
2968
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2969
+ */
2970
+ chainId: string;
2971
+ /**
2972
+ * Contract address on the relevant chain.
2973
+ */
2974
+ address: string;
2975
+ /**
2976
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2977
+ */
2978
+ pageToken?: string;
2979
+ /**
2980
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2981
+ */
2982
+ pageSize?: number;
2983
+ }): CancelablePromise<ListNftTokens>;
2301
2984
  /**
2302
2985
  * Get token details
2303
2986
  * Gets token details for a specific token of an NFT contract.
@@ -2306,7 +2989,7 @@ declare class NfTsService {
2306
2989
  */
2307
2990
  getTokenDetails({ chainId, address, tokenId, }: {
2308
2991
  /**
2309
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2992
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2310
2993
  */
2311
2994
  chainId: string;
2312
2995
  /**
@@ -2320,6 +3003,108 @@ declare class NfTsService {
2320
3003
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2321
3004
  }
2322
3005
 
3006
+ type AccessRequest = {
3007
+ /**
3008
+ * The email address to send the access token to
3009
+ */
3010
+ email: string;
3011
+ /**
3012
+ * The captcha to verify the user
3013
+ */
3014
+ captcha: string;
3015
+ };
3016
+
3017
+ type NotificationsResponse = {
3018
+ message: string;
3019
+ };
3020
+
3021
+ type SubscribeRequest = {
3022
+ /**
3023
+ * The access token to use for authentication
3024
+ */
3025
+ accessToken: string;
3026
+ /**
3027
+ * The node ID to subscribe to
3028
+ */
3029
+ nodeId: string;
3030
+ /**
3031
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3032
+ */
3033
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3034
+ };
3035
+
3036
+ type SubscriptionsRequest = {
3037
+ /**
3038
+ * The access token to use for authentication
3039
+ */
3040
+ accessToken: string;
3041
+ };
3042
+
3043
+ type SubscriptionsResponse = {
3044
+ /**
3045
+ * The email address of the user
3046
+ */
3047
+ email: string;
3048
+ /**
3049
+ * The subscriptions of the user
3050
+ */
3051
+ subscriptions: Record<string, {
3052
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3053
+ }>;
3054
+ };
3055
+
3056
+ type UnsubscribeRequest = {
3057
+ /**
3058
+ * The access token to use for authentication
3059
+ */
3060
+ accessToken: string;
3061
+ /**
3062
+ * The node ID to subscribe to
3063
+ */
3064
+ nodeId: string;
3065
+ };
3066
+
3067
+ declare class NotificationsService {
3068
+ readonly httpRequest: BaseHttpRequest;
3069
+ constructor(httpRequest: BaseHttpRequest);
3070
+ /**
3071
+ * Access Notifications
3072
+ * Access notifications.
3073
+ * @returns NotificationsResponse Successful response
3074
+ * @throws ApiError
3075
+ */
3076
+ access({ requestBody, }: {
3077
+ requestBody: AccessRequest;
3078
+ }): CancelablePromise<NotificationsResponse>;
3079
+ /**
3080
+ * Subscribe to Notifications
3081
+ * Subscribe to receive notifications.
3082
+ * @returns NotificationsResponse Successful response
3083
+ * @throws ApiError
3084
+ */
3085
+ subscribe({ requestBody, }: {
3086
+ requestBody: SubscribeRequest;
3087
+ }): CancelablePromise<NotificationsResponse>;
3088
+ /**
3089
+ * Unsubscribe from Notifications
3090
+ * Unsubscribe from receiving notifications.
3091
+ * @returns NotificationsResponse Successful response
3092
+ * @throws ApiError
3093
+ */
3094
+ unsubscribe({ requestBody, }: {
3095
+ requestBody: UnsubscribeRequest;
3096
+ }): CancelablePromise<NotificationsResponse>;
3097
+ /**
3098
+ * Get Subscriptions
3099
+ * Get subscriptions.
3100
+ * @returns SubscriptionsResponse Successful response
3101
+ * @throws ApiError
3102
+ */
3103
+ subscriptions({ requestBody, }: {
3104
+ requestBody: SubscriptionsRequest;
3105
+ }): CancelablePromise<SubscriptionsResponse>;
3106
+ }
3107
+
2323
3108
  type EvmNetworkOptions = {
2324
3109
  addresses: Array<string>;
2325
3110
  includeChains: Array<string>;
@@ -2331,16 +3116,16 @@ declare enum EVMOperationType {
2331
3116
 
2332
3117
  type CreateEvmTransactionExportRequest = {
2333
3118
  type: EVMOperationType;
2334
- firstDate: string;
2335
- lastDate: string;
3119
+ firstDate?: string;
3120
+ lastDate?: string;
2336
3121
  /**
2337
3122
  * @deprecated
2338
3123
  */
2339
- startDate: string;
3124
+ startDate?: string;
2340
3125
  /**
2341
3126
  * @deprecated
2342
3127
  */
2343
- endDate: string;
3128
+ endDate?: string;
2344
3129
  options: EvmNetworkOptions;
2345
3130
  };
2346
3131
 
@@ -2358,16 +3143,16 @@ type PrimaryNetworkOptions = {
2358
3143
 
2359
3144
  type CreatePrimaryNetworkTransactionExportRequest = {
2360
3145
  type: PrimaryNetworkOperationType;
2361
- firstDate: string;
2362
- lastDate: string;
3146
+ firstDate?: string;
3147
+ lastDate?: string;
2363
3148
  /**
2364
3149
  * @deprecated
2365
3150
  */
2366
- startDate: string;
3151
+ startDate?: string;
2367
3152
  /**
2368
3153
  * @deprecated
2369
3154
  */
2370
- endDate: string;
3155
+ endDate?: string;
2371
3156
  options: PrimaryNetworkOptions;
2372
3157
  };
2373
3158
 
@@ -2408,7 +3193,7 @@ type OperationStatusResponse = {
2408
3193
  operationType: OperationType;
2409
3194
  operationStatus: OperationStatus;
2410
3195
  message?: string;
2411
- metadata: TransactionExportMetadata;
3196
+ metadata?: TransactionExportMetadata;
2412
3197
  createdAtTimestamp: number;
2413
3198
  updatedAtTimestamp: number;
2414
3199
  };
@@ -2441,6 +3226,23 @@ declare class OperationsService {
2441
3226
  }): CancelablePromise<OperationStatusResponse>;
2442
3227
  }
2443
3228
 
3229
+ type Blockchain = {
3230
+ createBlockTimestamp: number;
3231
+ createBlockNumber: string;
3232
+ blockchainId: string;
3233
+ vmId: string;
3234
+ subnetId: string;
3235
+ blockchainName: string;
3236
+ /**
3237
+ * 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.
3238
+ */
3239
+ evmChainId: number;
3240
+ /**
3241
+ * The genesis data of the blockchain.
3242
+ */
3243
+ genesisData?: Record<string, any>;
3244
+ };
3245
+
2444
3246
  declare enum BlockchainIds {
2445
3247
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2446
3248
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
@@ -2470,16 +3272,31 @@ type DelegatorsDetails = {
2470
3272
  };
2471
3273
 
2472
3274
  type StakingDistribution = {
3275
+ /**
3276
+ * AvalancheGo version for the validator node.
3277
+ */
2473
3278
  version: string;
3279
+ /**
3280
+ * The total amount staked by validators using this version.
3281
+ */
2474
3282
  amountStaked: string;
3283
+ /**
3284
+ * The number of validators using this version.
3285
+ */
2475
3286
  validatorCount: number;
2476
3287
  };
2477
3288
 
2478
3289
  type ValidatorsDetails = {
2479
3290
  validatorCount: number;
2480
3291
  totalAmountStaked: string;
3292
+ /**
3293
+ * Total potential rewards from currently active validations and delegations.
3294
+ */
2481
3295
  estimatedAnnualStakingReward: string;
2482
3296
  stakingDistributionByVersion: Array<StakingDistribution>;
3297
+ /**
3298
+ * Ratio of total active stake amount to the current supply.
3299
+ */
2483
3300
  stakingRatio: string;
2484
3301
  };
2485
3302
 
@@ -2488,15 +3305,6 @@ type GetNetworkDetailsResponse = {
2488
3305
  delegatorDetails: DelegatorsDetails;
2489
3306
  };
2490
3307
 
2491
- type Blockchain = {
2492
- createBlockTimestamp: number;
2493
- createBlockNumber: string;
2494
- blockchainId: string;
2495
- vmId: string;
2496
- subnetId: string;
2497
- blockchainName: string;
2498
- };
2499
-
2500
3308
  type ListBlockchainsResponse = {
2501
3309
  /**
2502
3310
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -2531,7 +3339,13 @@ type CompletedDelegatorDetails = {
2531
3339
  delegationFee: string;
2532
3340
  startTimestamp: number;
2533
3341
  endTimestamp: number;
3342
+ /**
3343
+ * Total rewards distributed for the successful delegation.
3344
+ */
2534
3345
  grossReward: string;
3346
+ /**
3347
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3348
+ */
2535
3349
  netReward: string;
2536
3350
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2537
3351
  };
@@ -2549,7 +3363,13 @@ type PendingDelegatorDetails = {
2549
3363
  delegationFee: string;
2550
3364
  startTimestamp: number;
2551
3365
  endTimestamp: number;
3366
+ /**
3367
+ * Estimated total rewards that will be distributed for the successful delegation.
3368
+ */
2552
3369
  estimatedGrossReward: string;
3370
+ /**
3371
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3372
+ */
2553
3373
  estimatedNetReward: string;
2554
3374
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2555
3375
  };
@@ -2570,8 +3390,63 @@ type ListDelegatorDetailsResponse = {
2570
3390
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2571
3391
  };
2572
3392
 
2573
- type BlockchainInfo = {
3393
+ type BalanceOwner = {
3394
+ addresses: Array<string>;
3395
+ threshold: number;
3396
+ };
3397
+
3398
+ type L1ValidatorDetailsFull = {
3399
+ /**
3400
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3401
+ */
3402
+ validationId: string;
3403
+ /**
3404
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3405
+ */
3406
+ validationIdHex: string;
3407
+ nodeId: string;
3408
+ subnetId: string;
3409
+ /**
3410
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
3411
+ */
3412
+ weight: number;
3413
+ /**
3414
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3415
+ */
3416
+ remainingBalance: number;
3417
+ /**
3418
+ * The timestamp of the transaction which created this L1 validator
3419
+ */
3420
+ creationTimestamp: number;
3421
+ blsCredentials: Record<string, any>;
3422
+ /**
3423
+ * The L1 validator owner's balance, returned after it's disabled or removed
3424
+ */
3425
+ remainingBalanceOwner: BalanceOwner;
3426
+ /**
3427
+ * Owner ddresses details which can disable or remove the L1 validator
3428
+ */
3429
+ deactivationOwner: BalanceOwner;
3430
+ };
3431
+
3432
+ type ListL1ValidatorsResponse = {
3433
+ /**
3434
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
3435
+ */
3436
+ nextPageToken?: string;
3437
+ /**
3438
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3439
+ */
3440
+ validators: Array<L1ValidatorDetailsFull>;
3441
+ /**
3442
+ * Block height at which the L1 validator's remaining balance is calculated
3443
+ */
3444
+ blockHeight: string;
3445
+ };
3446
+
3447
+ type L1ValidatorManagerDetails = {
2574
3448
  blockchainId: string;
3449
+ contractAddress: string;
2575
3450
  };
2576
3451
 
2577
3452
  type SubnetOwnershipInfo = {
@@ -2612,7 +3487,19 @@ type Subnet = {
2612
3487
  * Latest subnet owner details for this Subnet.
2613
3488
  */
2614
3489
  subnetOwnershipInfo: SubnetOwnershipInfo;
2615
- blockchains: Array<BlockchainInfo>;
3490
+ /**
3491
+ * Whether the subnet is an L1 or not.
3492
+ */
3493
+ isL1: boolean;
3494
+ /**
3495
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3496
+ */
3497
+ l1ConversionTransactionHash?: string;
3498
+ /**
3499
+ * L1 validator manager details.
3500
+ */
3501
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3502
+ blockchains: Array<Blockchain>;
2616
3503
  };
2617
3504
 
2618
3505
  type ListSubnetsResponse = {
@@ -2628,6 +3515,29 @@ type BlsCredentials = {
2628
3515
  proofOfPossession: string;
2629
3516
  };
2630
3517
 
3518
+ type Geolocation = {
3519
+ /**
3520
+ * The name of the validator node.
3521
+ */
3522
+ city: string;
3523
+ /**
3524
+ * The city of the validator node.
3525
+ */
3526
+ country: string;
3527
+ /**
3528
+ * The country code of the validator node.
3529
+ */
3530
+ countryCode: string;
3531
+ /**
3532
+ * The latitude of the validator node.
3533
+ */
3534
+ latitude: number;
3535
+ /**
3536
+ * The longitude of the validator node.
3537
+ */
3538
+ longitude: number;
3539
+ };
3540
+
2631
3541
  type Rewards = {
2632
3542
  validationRewardAmount: string;
2633
3543
  delegationRewardAmount: string;
@@ -2659,6 +3569,9 @@ type ActiveValidatorDetails = {
2659
3569
  nodeId: string;
2660
3570
  subnetId: string;
2661
3571
  amountStaked: string;
3572
+ /**
3573
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3574
+ */
2662
3575
  delegationFee?: string;
2663
3576
  startTimestamp: number;
2664
3577
  endTimestamp: number;
@@ -2666,15 +3579,37 @@ type ActiveValidatorDetails = {
2666
3579
  * Present for AddPermissionlessValidatorTx
2667
3580
  */
2668
3581
  blsCredentials?: BlsCredentials;
3582
+ /**
3583
+ * The percentage of this validator's stake amount to the total active stake.
3584
+ */
2669
3585
  stakePercentage: number;
3586
+ /**
3587
+ * The number of delegators linked to the validator.
3588
+ */
2670
3589
  delegatorCount: number;
3590
+ /**
3591
+ * The total amount in nAVAX delegated to the validator.
3592
+ */
2671
3593
  amountDelegated?: string;
3594
+ /**
3595
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3596
+ */
2672
3597
  uptimePerformance: number;
2673
3598
  avalancheGoVersion?: string;
3599
+ /**
3600
+ * The amount of stake in nAVAX that can be delegated to this validator.
3601
+ */
2674
3602
  delegationCapacity?: string;
3603
+ /**
3604
+ * Estimated rewards for the validator if the validation is successful.
3605
+ */
2675
3606
  potentialRewards: Rewards;
2676
3607
  validationStatus: ActiveValidatorDetails.validationStatus;
2677
3608
  validatorHealth: ValidatorHealthDetails;
3609
+ /**
3610
+ * The geographical location of the validator node, if available.
3611
+ */
3612
+ geolocation: Geolocation | null;
2678
3613
  };
2679
3614
  declare namespace ActiveValidatorDetails {
2680
3615
  enum validationStatus {
@@ -2687,6 +3622,9 @@ type CompletedValidatorDetails = {
2687
3622
  nodeId: string;
2688
3623
  subnetId: string;
2689
3624
  amountStaked: string;
3625
+ /**
3626
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3627
+ */
2690
3628
  delegationFee?: string;
2691
3629
  startTimestamp: number;
2692
3630
  endTimestamp: number;
@@ -2710,6 +3648,9 @@ type PendingValidatorDetails = {
2710
3648
  nodeId: string;
2711
3649
  subnetId: string;
2712
3650
  amountStaked: string;
3651
+ /**
3652
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3653
+ */
2713
3654
  delegationFee?: string;
2714
3655
  startTimestamp: number;
2715
3656
  endTimestamp: number;
@@ -2730,6 +3671,9 @@ type RemovedValidatorDetails = {
2730
3671
  nodeId: string;
2731
3672
  subnetId: string;
2732
3673
  amountStaked: string;
3674
+ /**
3675
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3676
+ */
2733
3677
  delegationFee?: string;
2734
3678
  startTimestamp: number;
2735
3679
  endTimestamp: number;
@@ -2737,7 +3681,13 @@ type RemovedValidatorDetails = {
2737
3681
  * Present for AddPermissionlessValidatorTx
2738
3682
  */
2739
3683
  blsCredentials?: BlsCredentials;
3684
+ /**
3685
+ * The transaction hash that removed the permissioned subnet validator.
3686
+ */
2740
3687
  removeTxHash: string;
3688
+ /**
3689
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3690
+ */
2741
3691
  removeTimestamp: number;
2742
3692
  validationStatus: RemovedValidatorDetails.validationStatus;
2743
3693
  };
@@ -2758,11 +3708,6 @@ type ListValidatorDetailsResponse = {
2758
3708
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2759
3709
  };
2760
3710
 
2761
- declare enum Network {
2762
- MAINNET = "mainnet",
2763
- FUJI = "fuji"
2764
- }
2765
-
2766
3711
  declare enum SortByOption {
2767
3712
  BLOCK_INDEX = "blockIndex",
2768
3713
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2840,7 +3785,7 @@ declare class PrimaryNetworkService {
2840
3785
  */
2841
3786
  blockchainId: XChainId;
2842
3787
  /**
2843
- * Either mainnet or a testnet.
3788
+ * Either mainnet or testnet/fuji.
2844
3789
  */
2845
3790
  network: Network;
2846
3791
  /**
@@ -2860,7 +3805,7 @@ declare class PrimaryNetworkService {
2860
3805
  */
2861
3806
  addresses: string;
2862
3807
  /**
2863
- * Either mainnet or a testnet.
3808
+ * Either mainnet or testnet/fuji.
2864
3809
  */
2865
3810
  network: Network;
2866
3811
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2872,7 +3817,7 @@ declare class PrimaryNetworkService {
2872
3817
  */
2873
3818
  getNetworkDetails({ network, }: {
2874
3819
  /**
2875
- * Either mainnet or a testnet.
3820
+ * Either mainnet or testnet/fuji.
2876
3821
  */
2877
3822
  network: Network;
2878
3823
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2884,7 +3829,7 @@ declare class PrimaryNetworkService {
2884
3829
  */
2885
3830
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2886
3831
  /**
2887
- * Either mainnet or a testnet.
3832
+ * Either mainnet or testnet/fuji.
2888
3833
  */
2889
3834
  network: Network;
2890
3835
  /**
@@ -2892,7 +3837,7 @@ declare class PrimaryNetworkService {
2892
3837
  */
2893
3838
  pageToken?: string;
2894
3839
  /**
2895
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3840
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
2896
3841
  */
2897
3842
  pageSize?: number;
2898
3843
  /**
@@ -2900,6 +3845,22 @@ declare class PrimaryNetworkService {
2900
3845
  */
2901
3846
  sortOrder?: SortOrder;
2902
3847
  }): CancelablePromise<ListBlockchainsResponse>;
3848
+ /**
3849
+ * Get blockchain details by ID
3850
+ * Get details of the blockchain registered on the network.
3851
+ * @returns Blockchain Successful response
3852
+ * @throws ApiError
3853
+ */
3854
+ getBlockchainById({ blockchainId, network, }: {
3855
+ /**
3856
+ * The blockchain ID of the blockchain to retrieve.
3857
+ */
3858
+ blockchainId: string;
3859
+ /**
3860
+ * Either mainnet or testnet/fuji.
3861
+ */
3862
+ network: Network;
3863
+ }): CancelablePromise<Blockchain>;
2903
3864
  /**
2904
3865
  * List subnets
2905
3866
  * Lists all subnets registered on the network.
@@ -2908,7 +3869,7 @@ declare class PrimaryNetworkService {
2908
3869
  */
2909
3870
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2910
3871
  /**
2911
- * Either mainnet or a testnet.
3872
+ * Either mainnet or testnet/fuji.
2912
3873
  */
2913
3874
  network: Network;
2914
3875
  /**
@@ -2916,7 +3877,7 @@ declare class PrimaryNetworkService {
2916
3877
  */
2917
3878
  pageToken?: string;
2918
3879
  /**
2919
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3880
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
2920
3881
  */
2921
3882
  pageSize?: number;
2922
3883
  /**
@@ -2932,7 +3893,7 @@ declare class PrimaryNetworkService {
2932
3893
  */
2933
3894
  getSubnetById({ network, subnetId, }: {
2934
3895
  /**
2935
- * Either mainnet or a testnet.
3896
+ * Either mainnet or testnet/fuji.
2936
3897
  */
2937
3898
  network: Network;
2938
3899
  /**
@@ -2942,13 +3903,13 @@ declare class PrimaryNetworkService {
2942
3903
  }): CancelablePromise<Subnet>;
2943
3904
  /**
2944
3905
  * List validators
2945
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
3906
+ * 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
3907
  * @returns ListValidatorDetailsResponse Successful response
2947
3908
  * @throws ApiError
2948
3909
  */
2949
3910
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2950
3911
  /**
2951
- * Either mainnet or a testnet.
3912
+ * Either mainnet or testnet/fuji.
2952
3913
  */
2953
3914
  network: Network;
2954
3915
  /**
@@ -2960,7 +3921,7 @@ declare class PrimaryNetworkService {
2960
3921
  */
2961
3922
  pageSize?: number;
2962
3923
  /**
2963
- * A comma separated list of node ids to filter by.
3924
+ * A comma separated list of node ids to filter by. Supports substring matching.
2964
3925
  */
2965
3926
  nodeIds?: string;
2966
3927
  /**
@@ -3022,7 +3983,7 @@ declare class PrimaryNetworkService {
3022
3983
  */
3023
3984
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3024
3985
  /**
3025
- * Either mainnet or a testnet.
3986
+ * Either mainnet or testnet/fuji.
3026
3987
  */
3027
3988
  network: Network;
3028
3989
  /**
@@ -3054,7 +4015,7 @@ declare class PrimaryNetworkService {
3054
4015
  */
3055
4016
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3056
4017
  /**
3057
- * Either mainnet or a testnet.
4018
+ * Either mainnet or testnet/fuji.
3058
4019
  */
3059
4020
  network: Network;
3060
4021
  /**
@@ -3082,25 +4043,58 @@ declare class PrimaryNetworkService {
3082
4043
  */
3083
4044
  nodeIds?: string;
3084
4045
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3085
- }
3086
-
3087
- declare enum BlockchainId {
3088
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3089
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3090
- _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3091
- _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3092
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3093
- P_CHAIN = "p-chain",
3094
- X_CHAIN = "x-chain",
3095
- C_CHAIN = "c-chain"
3096
- }
3097
-
3098
- type CChainSharedAssetBalance = {
3099
4046
  /**
3100
- * Unique ID for an asset.
4047
+ * List L1 validators
4048
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4049
+ * @returns ListL1ValidatorsResponse Successful response
4050
+ * @throws ApiError
3101
4051
  */
3102
- assetId: string;
3103
- /**
4052
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4053
+ /**
4054
+ * Either mainnet or testnet/fuji.
4055
+ */
4056
+ network: Network;
4057
+ /**
4058
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4059
+ */
4060
+ pageToken?: string;
4061
+ /**
4062
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4063
+ */
4064
+ pageSize?: number;
4065
+ /**
4066
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4067
+ */
4068
+ l1ValidationId?: string;
4069
+ includeInactiveL1Validators?: boolean;
4070
+ /**
4071
+ * A valid node ID in format 'NodeID-HASH'.
4072
+ */
4073
+ nodeId?: string;
4074
+ /**
4075
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4076
+ */
4077
+ subnetId?: any;
4078
+ }): CancelablePromise<ListL1ValidatorsResponse>;
4079
+ }
4080
+
4081
+ declare enum BlockchainId {
4082
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
4083
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4084
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4085
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
4086
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4087
+ P_CHAIN = "p-chain",
4088
+ X_CHAIN = "x-chain",
4089
+ C_CHAIN = "c-chain"
4090
+ }
4091
+
4092
+ type CChainSharedAssetBalance = {
4093
+ /**
4094
+ * Unique ID for an asset.
4095
+ */
4096
+ assetId: string;
4097
+ /**
3104
4098
  * Name of this asset.
3105
4099
  */
3106
4100
  name: string;
@@ -3126,11 +4120,6 @@ type CChainAtomicBalances = {
3126
4120
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3127
4121
  };
3128
4122
 
3129
- declare enum PrimaryNetwork {
3130
- MAINNET = "mainnet",
3131
- FUJI = "fuji"
3132
- }
3133
-
3134
4123
  declare enum PrimaryNetworkChainName {
3135
4124
  P_CHAIN = "p-chain",
3136
4125
  X_CHAIN = "x-chain",
@@ -3139,7 +4128,7 @@ declare enum PrimaryNetworkChainName {
3139
4128
 
3140
4129
  type PrimaryNetworkChainInfo = {
3141
4130
  chainName: PrimaryNetworkChainName;
3142
- network: PrimaryNetwork;
4131
+ network: Network;
3143
4132
  };
3144
4133
 
3145
4134
  type ListCChainAtomicBalancesResponse = {
@@ -3300,7 +4289,7 @@ declare class PrimaryNetworkBalancesService {
3300
4289
  */
3301
4290
  blockchainId: BlockchainId;
3302
4291
  /**
3303
- * Either mainnet or a testnet.
4292
+ * Either mainnet or testnet/fuji.
3304
4293
  */
3305
4294
  network: Network;
3306
4295
  /**
@@ -3331,6 +4320,8 @@ type GetPrimaryNetworkBlockResponse = {
3331
4320
  txCount: number;
3332
4321
  transactions: Array<string>;
3333
4322
  blockSizeBytes: number;
4323
+ l1ValidatorsAccruedFees?: number;
4324
+ activeL1Validators?: number;
3334
4325
  currentSupply?: string;
3335
4326
  proposerDetails?: ProposerDetails;
3336
4327
  };
@@ -3344,6 +4335,8 @@ type PrimaryNetworkBlock = {
3344
4335
  txCount: number;
3345
4336
  transactions: Array<string>;
3346
4337
  blockSizeBytes: number;
4338
+ l1ValidatorsAccruedFees?: number;
4339
+ activeL1Validators?: number;
3347
4340
  currentSupply?: string;
3348
4341
  proposerDetails?: ProposerDetails;
3349
4342
  };
@@ -3372,7 +4365,7 @@ declare class PrimaryNetworkBlocksService {
3372
4365
  */
3373
4366
  blockchainId: BlockchainId;
3374
4367
  /**
3375
- * Either mainnet or a testnet.
4368
+ * Either mainnet or testnet/fuji.
3376
4369
  */
3377
4370
  network: Network;
3378
4371
  /**
@@ -3386,19 +4379,27 @@ declare class PrimaryNetworkBlocksService {
3386
4379
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3387
4380
  * @throws ApiError
3388
4381
  */
3389
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4382
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3390
4383
  /**
3391
4384
  * A primary network blockchain id or alias.
3392
4385
  */
3393
4386
  blockchainId: BlockchainId;
3394
4387
  /**
3395
- * Either mainnet or a testnet.
4388
+ * Either mainnet or testnet/fuji.
3396
4389
  */
3397
4390
  network: Network;
3398
4391
  /**
3399
4392
  * A primary network (P or X chain) nodeId.
3400
4393
  */
3401
4394
  nodeId: string;
4395
+ /**
4396
+ * Query param for retrieving items after a specific timestamp.
4397
+ */
4398
+ startTimestamp?: number;
4399
+ /**
4400
+ * Query param for retrieving items before a specific timestamp.
4401
+ */
4402
+ endTimestamp?: number;
3402
4403
  /**
3403
4404
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3404
4405
  */
@@ -3414,15 +4415,23 @@ declare class PrimaryNetworkBlocksService {
3414
4415
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3415
4416
  * @throws ApiError
3416
4417
  */
3417
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4418
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3418
4419
  /**
3419
4420
  * A primary network blockchain id or alias.
3420
4421
  */
3421
4422
  blockchainId: BlockchainId;
3422
4423
  /**
3423
- * Either mainnet or a testnet.
4424
+ * Either mainnet or testnet/fuji.
3424
4425
  */
3425
4426
  network: Network;
4427
+ /**
4428
+ * Query param for retrieving items after a specific timestamp.
4429
+ */
4430
+ startTimestamp?: number;
4431
+ /**
4432
+ * Query param for retrieving items before a specific timestamp.
4433
+ */
4434
+ endTimestamp?: number;
3426
4435
  /**
3427
4436
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3428
4437
  */
@@ -3554,7 +4563,7 @@ declare class PrimaryNetworkRewardsService {
3554
4563
  */
3555
4564
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3556
4565
  /**
3557
- * Either mainnet or a testnet.
4566
+ * Either mainnet or testnet/fuji.
3558
4567
  */
3559
4568
  network: Network;
3560
4569
  /**
@@ -3586,7 +4595,7 @@ declare class PrimaryNetworkRewardsService {
3586
4595
  */
3587
4596
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3588
4597
  /**
3589
- * Either mainnet or a testnet.
4598
+ * Either mainnet or testnet/fuji.
3590
4599
  */
3591
4600
  network: Network;
3592
4601
  /**
@@ -3832,6 +4841,41 @@ type ListCChainAtomicTransactionsResponse = {
3832
4841
  chainInfo: PrimaryNetworkChainInfo;
3833
4842
  };
3834
4843
 
4844
+ type BlockchainInfo = {
4845
+ chainName: string;
4846
+ vmId: string;
4847
+ /**
4848
+ * 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
4849
+ */
4850
+ genesisData?: Record<string, any>;
4851
+ };
4852
+
4853
+ type L1ValidatorDetailsTransaction = {
4854
+ /**
4855
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4856
+ */
4857
+ validationId: string;
4858
+ /**
4859
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4860
+ */
4861
+ validationIdHex: string;
4862
+ nodeId: string;
4863
+ subnetId: string;
4864
+ /**
4865
+ * 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
4866
+ */
4867
+ weight: number;
4868
+ /**
4869
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4870
+ */
4871
+ remainingBalance: number;
4872
+ /**
4873
+ * 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
4874
+ */
4875
+ balanceChange?: number;
4876
+ blsCredentials?: Record<string, any>;
4877
+ };
4878
+
3835
4879
  declare enum PChainTransactionType {
3836
4880
  ADD_VALIDATOR_TX = "AddValidatorTx",
3837
4881
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3848,9 +4892,17 @@ declare enum PChainTransactionType {
3848
4892
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3849
4893
  BASE_TX = "BaseTx",
3850
4894
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4895
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4896
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4897
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4898
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4899
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3851
4900
  UNKNOWN = "UNKNOWN"
3852
4901
  }
3853
4902
 
4903
+ /**
4904
+ * Indicates whether the UTXO is staked or transferable
4905
+ */
3854
4906
  declare enum UtxoType {
3855
4907
  STAKE = "STAKE",
3856
4908
  TRANSFER = "TRANSFER"
@@ -3888,16 +4940,43 @@ type PChainUtxo = {
3888
4940
  assetId: string;
3889
4941
  blockNumber: string;
3890
4942
  blockTimestamp: number;
4943
+ /**
4944
+ * Block height in which the transaction consuming this UTXO was included
4945
+ */
3891
4946
  consumingBlockNumber?: string;
4947
+ /**
4948
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4949
+ */
3892
4950
  consumingBlockTimestamp?: number;
4951
+ /**
4952
+ * Timestamp in seconds after which this UTXO can be consumed
4953
+ */
3893
4954
  platformLocktime?: number;
4955
+ /**
4956
+ * The index of the UTXO in the transaction
4957
+ */
3894
4958
  outputIndex: number;
3895
4959
  rewardType?: RewardType;
4960
+ /**
4961
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4962
+ */
3896
4963
  stakeableLocktime?: number;
3897
4964
  staked?: boolean;
4965
+ /**
4966
+ * The minimum number of signatures required to spend this UTXO
4967
+ */
3898
4968
  threshold?: number;
4969
+ /**
4970
+ * The hash of the transaction that created this UTXO
4971
+ */
3899
4972
  txHash: string;
4973
+ /**
4974
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4975
+ */
3900
4976
  utxoEndTimestamp?: number;
4977
+ /**
4978
+ * Timestamp in seconds at which the staked UTXO was locked.
4979
+ */
3901
4980
  utxoStartTimestamp?: number;
3902
4981
  utxoType: UtxoType;
3903
4982
  };
@@ -3912,9 +4991,18 @@ type PChainTransaction = {
3912
4991
  * The block finality timestamp.
3913
4992
  */
3914
4993
  blockTimestamp: number;
4994
+ /**
4995
+ * The height of the block in which the transaction was included
4996
+ */
3915
4997
  blockNumber: string;
3916
4998
  blockHash: string;
4999
+ /**
5000
+ * The consumed UTXOs of the transaction
5001
+ */
3917
5002
  consumedUtxos: Array<PChainUtxo>;
5003
+ /**
5004
+ * The newly created UTXOs of the transaction
5005
+ */
3918
5006
  emittedUtxos: Array<PChainUtxo>;
3919
5007
  /**
3920
5008
  * Source chain for an atomic transaction.
@@ -3925,17 +5013,21 @@ type PChainTransaction = {
3925
5013
  */
3926
5014
  destinationChain?: string;
3927
5015
  /**
3928
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5016
+ * 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
5017
  */
3930
5018
  value: Array<AssetAmount>;
3931
5019
  /**
3932
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5020
+ * 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
5021
  */
3934
5022
  amountBurned: Array<AssetAmount>;
3935
5023
  /**
3936
5024
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3937
5025
  */
3938
5026
  amountStaked: Array<AssetAmount>;
5027
+ /**
5028
+ * 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.
5029
+ */
5030
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3939
5031
  /**
3940
5032
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3941
5033
  */
@@ -3945,11 +5037,11 @@ type PChainTransaction = {
3945
5037
  */
3946
5038
  endTimestamp?: number;
3947
5039
  /**
3948
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5040
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3949
5041
  */
3950
5042
  delegationFeePercent?: string;
3951
5043
  /**
3952
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5044
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3953
5045
  */
3954
5046
  nodeId?: string;
3955
5047
  /**
@@ -3957,14 +5049,25 @@ type PChainTransaction = {
3957
5049
  */
3958
5050
  subnetId?: string;
3959
5051
  /**
3960
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5052
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5053
+ */
5054
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5055
+ /**
5056
+ * 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
5057
+ */
5058
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5059
+ /**
5060
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3961
5061
  */
3962
5062
  estimatedReward?: string;
5063
+ /**
5064
+ * Reward transaction hash for the completed validations or delegations
5065
+ */
3963
5066
  rewardTxHash?: string;
3964
5067
  rewardAddresses?: Array<string>;
3965
5068
  memo?: string;
3966
5069
  /**
3967
- * Present for RewardValidatorTx
5070
+ * Staking transaction corresponding to the RewardValidatorTx
3968
5071
  */
3969
5072
  stakingTxHash?: string;
3970
5073
  /**
@@ -3972,9 +5075,13 @@ type PChainTransaction = {
3972
5075
  */
3973
5076
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3974
5077
  /**
3975
- * Present for AddPermissionlessValidatorTx
5078
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3976
5079
  */
3977
5080
  blsCredentials?: BlsCredentials;
5081
+ /**
5082
+ * Details of the blockchain that was created in the CreateChainTx
5083
+ */
5084
+ blockchainInfo?: BlockchainInfo;
3978
5085
  };
3979
5086
 
3980
5087
  type ListPChainTransactionsResponse = {
@@ -4157,6 +5264,11 @@ declare enum PrimaryNetworkTxType {
4157
5264
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4158
5265
  BASE_TX = "BaseTx",
4159
5266
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5267
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5268
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5269
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5270
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5271
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4160
5272
  UNKNOWN = "UNKNOWN",
4161
5273
  CREATE_ASSET_TX = "CreateAssetTx",
4162
5274
  OPERATION_TX = "OperationTx"
@@ -4177,7 +5289,7 @@ declare class PrimaryNetworkTransactionsService {
4177
5289
  */
4178
5290
  blockchainId: BlockchainId;
4179
5291
  /**
4180
- * Either mainnet or a testnet.
5292
+ * Either mainnet or testnet/fuji.
4181
5293
  */
4182
5294
  network: Network;
4183
5295
  /**
@@ -4191,23 +5303,26 @@ declare class PrimaryNetworkTransactionsService {
4191
5303
  *
4192
5304
  * 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
5305
  *
5306
+ * 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.
5307
+ *
4194
5308
  * 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
5309
  * @returns any Successful response
4196
5310
  * @throws ApiError
4197
5311
  */
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;
5312
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4203
5313
  /**
4204
5314
  * A primary network blockchain id or alias.
4205
5315
  */
4206
5316
  blockchainId: BlockchainId;
4207
5317
  /**
4208
- * Either mainnet or a testnet.
5318
+ * Either mainnet or testnet/fuji.
4209
5319
  */
4210
5320
  network: Network;
5321
+ /**
5322
+ * 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.
5323
+ */
5324
+ addresses?: string;
5325
+ l1ValidationId?: string;
4211
5326
  /**
4212
5327
  * Query param for filtering items based on transaction types.
4213
5328
  */
@@ -4245,7 +5360,7 @@ declare class PrimaryNetworkTransactionsService {
4245
5360
  */
4246
5361
  blockchainId: PChainId;
4247
5362
  /**
4248
- * Either mainnet or a testnet.
5363
+ * Either mainnet or testnet/fuji.
4249
5364
  */
4250
5365
  network: Network;
4251
5366
  /**
@@ -4289,7 +5404,7 @@ declare class PrimaryNetworkTransactionsService {
4289
5404
  */
4290
5405
  blockchainId: XChainId;
4291
5406
  /**
4292
- * Either mainnet or a testnet.
5407
+ * Either mainnet or testnet/fuji.
4293
5408
  */
4294
5409
  network: Network;
4295
5410
  /**
@@ -4352,7 +5467,7 @@ declare class PrimaryNetworkUtxOsService {
4352
5467
  */
4353
5468
  blockchainId: BlockchainId;
4354
5469
  /**
4355
- * Either mainnet or a testnet.
5470
+ * Either mainnet or testnet/fuji.
4356
5471
  */
4357
5472
  network: Network;
4358
5473
  /**
@@ -4417,7 +5532,7 @@ declare class PrimaryNetworkVerticesService {
4417
5532
  */
4418
5533
  blockchainId: XChainId;
4419
5534
  /**
4420
- * Either mainnet or a testnet.
5535
+ * Either mainnet or testnet/fuji.
4421
5536
  */
4422
5537
  network: Network;
4423
5538
  /**
@@ -4445,7 +5560,7 @@ declare class PrimaryNetworkVerticesService {
4445
5560
  */
4446
5561
  blockchainId: XChainId;
4447
5562
  /**
4448
- * Either mainnet or a testnet.
5563
+ * Either mainnet or testnet/fuji.
4449
5564
  */
4450
5565
  network: Network;
4451
5566
  }): CancelablePromise<XChainVertex>;
@@ -4465,7 +5580,7 @@ declare class PrimaryNetworkVerticesService {
4465
5580
  */
4466
5581
  blockchainId: XChainId;
4467
5582
  /**
4468
- * Either mainnet or a testnet.
5583
+ * Either mainnet or testnet/fuji.
4469
5584
  */
4470
5585
  network: Network;
4471
5586
  /**
@@ -4483,47 +5598,49 @@ declare class PrimaryNetworkVerticesService {
4483
5598
  }): CancelablePromise<ListXChainVerticesResponse>;
4484
5599
  }
4485
5600
 
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;
5601
+ type SignatureAggregationResponse = {
5602
+ signedMessage: string;
4496
5603
  };
4497
5604
 
4498
- type RpcRequestBodyDto = {
4499
- method: string;
4500
- params?: Record<string, any>;
4501
- id?: (string | number);
4502
- jsonrpc?: string;
4503
- };
4504
-
4505
- type RpcSuccessResponseDto = {
4506
- jsonrpc: string;
4507
- id?: (string | number);
4508
- result: Record<string, any>;
5605
+ type SignatureAggregatorRequest = {
5606
+ message: string;
5607
+ justification?: string;
5608
+ signingSubnetId?: string;
5609
+ quorumPercentage?: number;
4509
5610
  };
4510
5611
 
4511
- declare class RpcService {
5612
+ declare class SignatureAggregatorService {
4512
5613
  readonly httpRequest: BaseHttpRequest;
4513
5614
  constructor(httpRequest: BaseHttpRequest);
4514
5615
  /**
4515
- * Calls JSON-RPC method
4516
- * Calls JSON-RPC method.
4517
- * @returns any Successful response
5616
+ * Aggregate Signatures
5617
+ * Aggregates Signatures for a Warp message from Subnet validators.
5618
+ * @returns SignatureAggregationResponse Successful response
4518
5619
  * @throws ApiError
4519
5620
  */
4520
- rpc({ chainId, requestBody, }: {
5621
+ aggregateSignatures({ network, requestBody, }: {
4521
5622
  /**
4522
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5623
+ * Either mainnet or testnet/fuji.
4523
5624
  */
4524
- chainId: string;
4525
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4526
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5625
+ network: Network;
5626
+ requestBody: SignatureAggregatorRequest;
5627
+ }): CancelablePromise<SignatureAggregationResponse>;
5628
+ /**
5629
+ * Get Aggregated Signatures
5630
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5631
+ * @returns SignatureAggregationResponse Successful response
5632
+ * @throws ApiError
5633
+ */
5634
+ getAggregatedSignatures({ network, txHash, }: {
5635
+ /**
5636
+ * Either mainnet or testnet/fuji.
5637
+ */
5638
+ network: Network;
5639
+ /**
5640
+ * A primary network (P or X chain) transaction hash.
5641
+ */
5642
+ txHash: string;
5643
+ }): CancelablePromise<SignatureAggregationResponse>;
4527
5644
  }
4528
5645
 
4529
5646
  type TeleporterDestinationTransaction = {
@@ -4657,15 +5774,17 @@ type ListTeleporterMessagesResponse = {
4657
5774
  * 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
5775
  */
4659
5776
  nextPageToken?: string;
4660
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
5777
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4661
5778
  };
4662
5779
 
4663
5780
  declare class TeleporterService {
4664
5781
  readonly httpRequest: BaseHttpRequest;
4665
5782
  constructor(httpRequest: BaseHttpRequest);
4666
5783
  /**
4667
- * Get a teleporter message
4668
- * Gets a teleporter message by message ID.
5784
+ * @deprecated
5785
+ * **[Deprecated]** Gets a teleporter message by message ID.
5786
+ *
5787
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4669
5788
  * @returns any Successful response
4670
5789
  * @throws ApiError
4671
5790
  */
@@ -4676,8 +5795,10 @@ declare class TeleporterService {
4676
5795
  messageId: string;
4677
5796
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4678
5797
  /**
4679
- * List teleporter messages
4680
- * Lists teleporter messages. Ordered by timestamp in descending order.
5798
+ * @deprecated
5799
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5800
+ *
5801
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4681
5802
  * @returns ListTeleporterMessagesResponse Successful response
4682
5803
  * @throws ApiError
4683
5804
  */
@@ -4711,13 +5832,15 @@ declare class TeleporterService {
4711
5832
  */
4712
5833
  from?: string;
4713
5834
  /**
4714
- * mainnet or testnet.
5835
+ * Either mainnet or testnet/fuji.
4715
5836
  */
4716
- network?: NetworkType;
5837
+ network?: Network;
4717
5838
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4718
5839
  /**
4719
- * List teleporter messages by address
4720
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5840
+ * @deprecated
5841
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5842
+ *
5843
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4721
5844
  * @returns ListTeleporterMessagesResponse Successful response
4722
5845
  * @throws ApiError
4723
5846
  */
@@ -4735,9 +5858,9 @@ declare class TeleporterService {
4735
5858
  */
4736
5859
  pageSize?: number;
4737
5860
  /**
4738
- * mainnet or testnet.
5861
+ * Either mainnet or testnet/fuji.
4739
5862
  */
4740
- network?: NetworkType;
5863
+ network?: Network;
4741
5864
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4742
5865
  }
4743
5866
 
@@ -4750,26 +5873,56 @@ type AddressesChangeRequest = {
4750
5873
 
4751
5874
  type AddressActivityMetadata = {
4752
5875
  /**
4753
- * Ethereum address(es) for the address_activity event type
5876
+ * Array of hexadecimal strings of the event signatures.
5877
+ */
5878
+ eventSignatures?: Array<string>;
5879
+ /**
5880
+ * 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
5881
  */
4755
5882
  addresses: Array<string>;
5883
+ };
5884
+
5885
+ type EVMAddressActivityRequest = {
5886
+ eventType: EVMAddressActivityRequest.eventType;
5887
+ url: string;
5888
+ name?: string;
5889
+ description?: string;
5890
+ chainId: string;
5891
+ metadata: AddressActivityMetadata;
4756
5892
  /**
4757
- * Array of hexadecimal strings of the event signatures.
5893
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4758
5894
  */
4759
- eventSignatures?: Array<string>;
5895
+ includeInternalTxs?: boolean;
5896
+ /**
5897
+ * Whether to include logs in the webhook payload.
5898
+ */
5899
+ includeLogs?: boolean;
4760
5900
  };
5901
+ declare namespace EVMAddressActivityRequest {
5902
+ enum eventType {
5903
+ ADDRESS_ACTIVITY = "address_activity"
5904
+ }
5905
+ }
4761
5906
 
4762
- declare enum EventType {
5907
+ declare enum AddressActivityEventType {
4763
5908
  ADDRESS_ACTIVITY = "address_activity"
4764
5909
  }
4765
5910
 
4766
- type CreateWebhookRequest = {
5911
+ declare enum WebhookStatusType {
5912
+ ACTIVE = "active",
5913
+ INACTIVE = "inactive"
5914
+ }
5915
+
5916
+ type EVMAddressActivityResponse = {
5917
+ id: string;
4767
5918
  url: string;
4768
5919
  chainId: string;
4769
- eventType: EventType;
5920
+ status: WebhookStatusType;
5921
+ createdAt: number;
5922
+ name: string;
5923
+ description: string;
5924
+ eventType: AddressActivityEventType;
4770
5925
  metadata: AddressActivityMetadata;
4771
- name?: string;
4772
- description?: string;
4773
5926
  /**
4774
5927
  * Whether to include traces in the webhook payload.
4775
5928
  */
@@ -4789,29 +5942,143 @@ type ListWebhookAddressesResponse = {
4789
5942
  totalAddresses: number;
4790
5943
  };
4791
5944
 
4792
- declare enum WebhookStatusType {
4793
- ACTIVE = "active",
4794
- INACTIVE = "inactive"
5945
+ declare enum PrimaryNetworkAddressActivityEventType {
5946
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
5947
+ }
5948
+
5949
+ /**
5950
+ * The type of key to monitor for the address activity event type.
5951
+ */
5952
+ declare enum PlatformAddressActivityKeyType {
5953
+ ADDRESSES = "addresses"
5954
+ }
5955
+
5956
+ /**
5957
+ * Array of address activity sub-event types
5958
+ */
5959
+ declare enum PrimaryNetworkAddressActivitySubEventType {
5960
+ BALANCE_CHANGE = "balance_change",
5961
+ BALANCE_THRESHOLD = "balance_threshold",
5962
+ REWARD_DISTRIBUTION = "reward_distribution"
5963
+ }
5964
+
5965
+ type PrimaryNetworkAddressActivitySubEvents = {
5966
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
5967
+ };
5968
+
5969
+ /**
5970
+ * Type of balance to monitor
5971
+ */
5972
+ declare enum CommonBalanceType {
5973
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5974
+ UNLOCKED_STAKED = "unlockedStaked",
5975
+ LOCKED_PLATFORM = "lockedPlatform",
5976
+ LOCKED_STAKEABLE = "lockedStakeable",
5977
+ LOCKED_STAKED = "lockedStaked",
5978
+ PENDING_STAKED = "pendingStaked",
5979
+ UNLOCKED = "unlocked",
5980
+ LOCKED = "locked",
5981
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5982
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
4795
5983
  }
4796
5984
 
4797
- type WebhookResponse = {
5985
+ type PrimaryNetworkBalanceThresholdFilter = {
5986
+ balanceType: CommonBalanceType;
5987
+ /**
5988
+ * Threshold for balance corresponding to balanceType in nAVAX
5989
+ */
5990
+ balanceThreshold: string;
5991
+ };
5992
+
5993
+ type PrimaryNetworkAddressActivityMetadata = {
5994
+ /**
5995
+ * Array of hexadecimal strings of the event signatures.
5996
+ */
5997
+ eventSignatures?: Array<string>;
5998
+ keyType: PlatformAddressActivityKeyType;
5999
+ /**
6000
+ * 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.
6001
+ */
6002
+ keys: Array<string>;
6003
+ /**
6004
+ * Sub-events to monitor
6005
+ */
6006
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6007
+ /**
6008
+ * Balance threshold filter
6009
+ */
6010
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6011
+ };
6012
+
6013
+ type PrimaryNetworkAddressActivityResponse = {
4798
6014
  id: string;
4799
- eventType: EventType;
4800
- metadata: AddressActivityMetadata;
6015
+ url: string;
6016
+ chainId: string;
6017
+ status: WebhookStatusType;
6018
+ createdAt: number;
6019
+ name: string;
6020
+ description: string;
6021
+ eventType: PrimaryNetworkAddressActivityEventType;
6022
+ metadata: PrimaryNetworkAddressActivityMetadata;
6023
+ };
6024
+
6025
+ declare enum ValidatorActivityEventType {
6026
+ VALIDATOR_ACTIVITY = "validator_activity"
6027
+ }
6028
+
6029
+ /**
6030
+ * The type of key to monitor for the validator activity event type.
6031
+ */
6032
+ declare enum ValidatorActivityKeyType {
6033
+ NODE_ID = "nodeId",
6034
+ SUBNET_ID = "subnetId"
6035
+ }
6036
+
6037
+ type ValidatorActivitySubEvents = {
4801
6038
  /**
4802
- * Whether to include traces in the webhook payload.
6039
+ * Array of validator activity sub-event types
4803
6040
  */
4804
- includeInternalTxs?: boolean;
6041
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6042
+ };
6043
+
6044
+ type ValidatorActivityMetadata = {
4805
6045
  /**
4806
- * Whether to include logs in the webhook payload.
6046
+ * Array of hexadecimal strings of the event signatures.
4807
6047
  */
4808
- includeLogs?: boolean;
6048
+ eventSignatures?: Array<string>;
6049
+ keyType: ValidatorActivityKeyType;
6050
+ /**
6051
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
6052
+ */
6053
+ keys: Array<string>;
6054
+ /**
6055
+ * Sub-events to monitor
6056
+ */
6057
+ subEvents: ValidatorActivitySubEvents;
6058
+ /**
6059
+ * Array of node IDs to filter the events
6060
+ */
6061
+ nodeIds?: Array<string>;
6062
+ /**
6063
+ * Array of subnet IDs to filter the events
6064
+ */
6065
+ subnetIds?: Array<string>;
6066
+ /**
6067
+ * L1 validator fee balance threshold in nAVAX
6068
+ */
6069
+ l1ValidatorFeeBalanceThreshold?: string;
6070
+ };
6071
+
6072
+ type ValidatorActivityResponse = {
6073
+ id: string;
4809
6074
  url: string;
4810
6075
  chainId: string;
4811
6076
  status: WebhookStatusType;
4812
6077
  createdAt: number;
4813
6078
  name: string;
4814
6079
  description: string;
6080
+ eventType: ValidatorActivityEventType;
6081
+ metadata: ValidatorActivityMetadata;
4815
6082
  };
4816
6083
 
4817
6084
  type ListWebhooksResponse = {
@@ -4819,9 +6086,32 @@ type ListWebhooksResponse = {
4819
6086
  * 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
6087
  */
4821
6088
  nextPageToken?: string;
4822
- webhooks: Array<WebhookResponse>;
6089
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4823
6090
  };
4824
6091
 
6092
+ declare enum PrimaryNetworkType {
6093
+ MAINNET = "mainnet",
6094
+ FUJI = "fuji"
6095
+ }
6096
+
6097
+ type PrimaryNetworkAddressActivityRequest = {
6098
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6099
+ url: string;
6100
+ name?: string;
6101
+ description?: string;
6102
+ network: PrimaryNetworkType;
6103
+ chainId: string;
6104
+ /**
6105
+ * Metadata for platform address activity event
6106
+ */
6107
+ metadata: PrimaryNetworkAddressActivityMetadata;
6108
+ };
6109
+ declare namespace PrimaryNetworkAddressActivityRequest {
6110
+ enum eventType {
6111
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6112
+ }
6113
+ }
6114
+
4825
6115
  type SharedSecretsResponse = {
4826
6116
  secret: string;
4827
6117
  };
@@ -4831,10 +6121,30 @@ type UpdateWebhookRequest = {
4831
6121
  description?: string;
4832
6122
  url?: string;
4833
6123
  status?: WebhookStatusType;
6124
+ /**
6125
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6126
+ */
4834
6127
  includeInternalTxs?: boolean;
4835
6128
  includeLogs?: boolean;
4836
6129
  };
4837
6130
 
6131
+ type ValidatorActivityRequest = {
6132
+ eventType: ValidatorActivityRequest.eventType;
6133
+ url: string;
6134
+ name?: string;
6135
+ description?: string;
6136
+ network: PrimaryNetworkType;
6137
+ /**
6138
+ * Metadata for platform validator activity event
6139
+ */
6140
+ metadata: ValidatorActivityMetadata;
6141
+ };
6142
+ declare namespace ValidatorActivityRequest {
6143
+ enum eventType {
6144
+ VALIDATOR_ACTIVITY = "validator_activity"
6145
+ }
6146
+ }
6147
+
4838
6148
  declare enum WebhookStatus {
4839
6149
  ACTIVE = "active",
4840
6150
  INACTIVE = "inactive"
@@ -4846,12 +6156,12 @@ declare class WebhooksService {
4846
6156
  /**
4847
6157
  * Create a webhook
4848
6158
  * Create a new webhook.
4849
- * @returns WebhookResponse Successful response
6159
+ * @returns any Successful response
4850
6160
  * @throws ApiError
4851
6161
  */
4852
6162
  createWebhook({ requestBody, }: {
4853
- requestBody: CreateWebhookRequest;
4854
- }): CancelablePromise<WebhookResponse>;
6163
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6164
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4855
6165
  /**
4856
6166
  * List webhooks
4857
6167
  * Lists webhooks for the user.
@@ -4875,7 +6185,7 @@ declare class WebhooksService {
4875
6185
  /**
4876
6186
  * Get a webhook by ID
4877
6187
  * Retrieves a webhook by ID.
4878
- * @returns WebhookResponse Successful response
6188
+ * @returns any Successful response
4879
6189
  * @throws ApiError
4880
6190
  */
4881
6191
  getWebhook({ id, }: {
@@ -4883,11 +6193,11 @@ declare class WebhooksService {
4883
6193
  * The webhook identifier.
4884
6194
  */
4885
6195
  id: string;
4886
- }): CancelablePromise<WebhookResponse>;
6196
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4887
6197
  /**
4888
6198
  * Deactivate a webhook
4889
6199
  * Deactivates a webhook by ID.
4890
- * @returns WebhookResponse Successful response
6200
+ * @returns any Successful response
4891
6201
  * @throws ApiError
4892
6202
  */
4893
6203
  deactivateWebhook({ id, }: {
@@ -4895,11 +6205,11 @@ declare class WebhooksService {
4895
6205
  * The webhook identifier.
4896
6206
  */
4897
6207
  id: string;
4898
- }): CancelablePromise<WebhookResponse>;
6208
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4899
6209
  /**
4900
6210
  * Update a webhook
4901
6211
  * Updates an existing webhook.
4902
- * @returns WebhookResponse Successful response
6212
+ * @returns any Successful response
4903
6213
  * @throws ApiError
4904
6214
  */
4905
6215
  updateWebhook({ id, requestBody, }: {
@@ -4908,14 +6218,14 @@ declare class WebhooksService {
4908
6218
  */
4909
6219
  id: string;
4910
6220
  requestBody: UpdateWebhookRequest;
4911
- }): CancelablePromise<WebhookResponse>;
6221
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4912
6222
  /**
4913
- * Generate a shared secret
4914
- * Generates a new shared secret.
6223
+ * Generate or rotate a shared secret
6224
+ * Generates a new shared secret or rotate an existing one.
4915
6225
  * @returns SharedSecretsResponse Successful response
4916
6226
  * @throws ApiError
4917
6227
  */
4918
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6228
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4919
6229
  /**
4920
6230
  * Get a shared secret
4921
6231
  * Get a previously generated shared secret.
@@ -4924,9 +6234,9 @@ declare class WebhooksService {
4924
6234
  */
4925
6235
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4926
6236
  /**
4927
- * Add addresses to webhook
4928
- * Add addresses to webhook.
4929
- * @returns WebhookResponse Successful response
6237
+ * Add addresses to EVM activity webhook
6238
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6239
+ * @returns EVMAddressActivityResponse Successful response
4930
6240
  * @throws ApiError
4931
6241
  */
4932
6242
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4935,11 +6245,11 @@ declare class WebhooksService {
4935
6245
  */
4936
6246
  id: string;
4937
6247
  requestBody: AddressesChangeRequest;
4938
- }): CancelablePromise<WebhookResponse>;
6248
+ }): CancelablePromise<EVMAddressActivityResponse>;
4939
6249
  /**
4940
- * Remove addresses from webhook
4941
- * Remove addresses from webhook.
4942
- * @returns WebhookResponse Successful response
6250
+ * Remove addresses from EVM activity webhook
6251
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6252
+ * @returns EVMAddressActivityResponse Successful response
4943
6253
  * @throws ApiError
4944
6254
  */
4945
6255
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4948,10 +6258,10 @@ declare class WebhooksService {
4948
6258
  */
4949
6259
  id: string;
4950
6260
  requestBody: AddressesChangeRequest;
4951
- }): CancelablePromise<WebhookResponse>;
6261
+ }): CancelablePromise<EVMAddressActivityResponse>;
4952
6262
  /**
4953
- * List adresses by webhook
4954
- * List adresses by webhook.
6263
+ * List adresses by EVM activity webhooks
6264
+ * List adresses by webhook. Only valid for EVM activity webhooks.
4955
6265
  * @returns ListWebhookAddressesResponse Successful response
4956
6266
  * @throws ApiError
4957
6267
  */
@@ -4981,7 +6291,9 @@ declare class Glacier {
4981
6291
  readonly evmContracts: EvmContractsService;
4982
6292
  readonly evmTransactions: EvmTransactionsService;
4983
6293
  readonly healthCheck: HealthCheckService;
6294
+ readonly interchainMessaging: InterchainMessagingService;
4984
6295
  readonly nfTs: NfTsService;
6296
+ readonly notifications: NotificationsService;
4985
6297
  readonly operations: OperationsService;
4986
6298
  readonly primaryNetwork: PrimaryNetworkService;
4987
6299
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4990,7 +6302,7 @@ declare class Glacier {
4990
6302
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4991
6303
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4992
6304
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4993
- readonly rpc: RpcService;
6305
+ readonly signatureAggregator: SignatureAggregatorService;
4994
6306
  readonly teleporter: TeleporterService;
4995
6307
  readonly webhooks: WebhooksService;
4996
6308
  readonly request: BaseHttpRequest;
@@ -5014,6 +6326,17 @@ declare class ApiError extends Error {
5014
6326
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5015
6327
  }
5016
6328
 
6329
+ type AccessListData = {
6330
+ /**
6331
+ * Access Address
6332
+ */
6333
+ accessAddresses: string;
6334
+ /**
6335
+ * Storage keys
6336
+ */
6337
+ storageKeys: Array<string>;
6338
+ };
6339
+
5017
6340
  type BadGateway = {
5018
6341
  /**
5019
6342
  * The error message describing the reason for the exception
@@ -5048,6 +6371,76 @@ type DataListChainsResponse = {
5048
6371
  chains: Array<ChainInfo>;
5049
6372
  };
5050
6373
 
6374
+ type ERCToken = {
6375
+ /**
6376
+ * Token contract address
6377
+ */
6378
+ address: string;
6379
+ /**
6380
+ * Token name
6381
+ */
6382
+ name: string;
6383
+ /**
6384
+ * Token symbol
6385
+ */
6386
+ symbol: string;
6387
+ /**
6388
+ * Token decimals
6389
+ */
6390
+ decimals: number;
6391
+ /**
6392
+ * Value including decimals
6393
+ */
6394
+ valueWithDecimals: string;
6395
+ };
6396
+
6397
+ type ERCTransfer = {
6398
+ /**
6399
+ * Transaction hash
6400
+ */
6401
+ transactionHash: string;
6402
+ /**
6403
+ * Transfer type
6404
+ */
6405
+ type: string;
6406
+ /**
6407
+ * Sender address
6408
+ */
6409
+ from: string;
6410
+ /**
6411
+ * Recipient address
6412
+ */
6413
+ to: string;
6414
+ /**
6415
+ * Amount transferred
6416
+ */
6417
+ value: string;
6418
+ /**
6419
+ * Token Id
6420
+ */
6421
+ tokenId?: string;
6422
+ /**
6423
+ * Block timestamp
6424
+ */
6425
+ blockTimestamp: number;
6426
+ /**
6427
+ * Log index
6428
+ */
6429
+ logIndex: number;
6430
+ /**
6431
+ * erc20 Token details
6432
+ */
6433
+ erc20Token?: ERCToken;
6434
+ /**
6435
+ * erc721 Token details
6436
+ */
6437
+ erc721Token?: ERCToken;
6438
+ /**
6439
+ * erc1155 Token details
6440
+ */
6441
+ erc1155Token?: ERCToken;
6442
+ };
6443
+
5051
6444
  type Forbidden = {
5052
6445
  /**
5053
6446
  * The error message describing the reason for the exception
@@ -5078,6 +6471,64 @@ type InternalServerError = {
5078
6471
  error: string;
5079
6472
  };
5080
6473
 
6474
+ type Log = {
6475
+ /**
6476
+ * Contract address
6477
+ */
6478
+ address: string;
6479
+ /**
6480
+ * First topic
6481
+ */
6482
+ topic0: string;
6483
+ /**
6484
+ * Second topic (optional)
6485
+ */
6486
+ topic1?: string;
6487
+ /**
6488
+ * Third topic (optional)
6489
+ */
6490
+ topic2?: string;
6491
+ /**
6492
+ * Fourth topic (optional)
6493
+ */
6494
+ topic3?: string;
6495
+ /**
6496
+ * Event data
6497
+ */
6498
+ data: string;
6499
+ /**
6500
+ * Transaction index
6501
+ */
6502
+ transactionIndex: number;
6503
+ /**
6504
+ * Log index
6505
+ */
6506
+ logIndex: number;
6507
+ /**
6508
+ * Indicates if the log was removed
6509
+ */
6510
+ removed: boolean;
6511
+ };
6512
+
6513
+ type NetworkTokenInfo = {
6514
+ /**
6515
+ * Token name
6516
+ */
6517
+ tokenName?: string;
6518
+ /**
6519
+ * Token symbol
6520
+ */
6521
+ tokenSymbol?: string;
6522
+ /**
6523
+ * Token decimals
6524
+ */
6525
+ tokenDecimals?: number;
6526
+ /**
6527
+ * Value including decimals
6528
+ */
6529
+ valueWithDecimals?: string;
6530
+ };
6531
+
5081
6532
  type NextPageToken = {
5082
6533
  /**
5083
6534
  * 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 +6581,163 @@ type TooManyRequests = {
5130
6581
  error: string;
5131
6582
  };
5132
6583
 
6584
+ type WebhookInternalTransaction = {
6585
+ /**
6586
+ * Sender address
6587
+ */
6588
+ from: string;
6589
+ /**
6590
+ * Recipient address
6591
+ */
6592
+ to: string;
6593
+ /**
6594
+ * Internal transaction type
6595
+ */
6596
+ internalTxType: string;
6597
+ /**
6598
+ * Value transferred
6599
+ */
6600
+ value: string;
6601
+ /**
6602
+ * Gas used
6603
+ */
6604
+ gasUsed: string;
6605
+ /**
6606
+ * Gas limit
6607
+ */
6608
+ gasLimit: string;
6609
+ /**
6610
+ * Transaction hash
6611
+ */
6612
+ transactionHash: string;
6613
+ };
6614
+
6615
+ type Transaction = {
6616
+ /**
6617
+ * Block hash of the transaction
6618
+ */
6619
+ blockHash: string;
6620
+ /**
6621
+ * Block number of the transaction
6622
+ */
6623
+ blockNumber: string;
6624
+ /**
6625
+ * Sender address
6626
+ */
6627
+ from: string;
6628
+ /**
6629
+ * Gas limit for the transaction
6630
+ */
6631
+ gas: string;
6632
+ /**
6633
+ * Gas price used
6634
+ */
6635
+ gasPrice: string;
6636
+ /**
6637
+ * Maximum fee per gas
6638
+ */
6639
+ maxFeePerGas: string;
6640
+ /**
6641
+ * Maximum priority fee per gas
6642
+ */
6643
+ maxPriorityFeePerGas: string;
6644
+ /**
6645
+ * Transaction hash
6646
+ */
6647
+ txHash: string;
6648
+ /**
6649
+ * Transaction status
6650
+ */
6651
+ txStatus: string;
6652
+ /**
6653
+ * Input data
6654
+ */
6655
+ input: string;
6656
+ /**
6657
+ * Nonce value
6658
+ */
6659
+ nonce: string;
6660
+ /**
6661
+ * Recipient address
6662
+ */
6663
+ to: string;
6664
+ /**
6665
+ * Transaction index
6666
+ */
6667
+ transactionIndex: number;
6668
+ /**
6669
+ * Value transferred in the transaction
6670
+ */
6671
+ value: string;
6672
+ /**
6673
+ * Transaction type
6674
+ */
6675
+ type: number;
6676
+ /**
6677
+ * Chain ID of the network
6678
+ */
6679
+ chainId: string;
6680
+ /**
6681
+ * Cumulative gas used
6682
+ */
6683
+ receiptCumulativeGasUsed: string;
6684
+ /**
6685
+ * Gas used
6686
+ */
6687
+ receiptGasUsed: string;
6688
+ /**
6689
+ * Effective gas price
6690
+ */
6691
+ receiptEffectiveGasPrice: string;
6692
+ /**
6693
+ * Receipt root
6694
+ */
6695
+ receiptRoot: string;
6696
+ /**
6697
+ * Block timestamp
6698
+ */
6699
+ blockTimestamp: number;
6700
+ /**
6701
+ * Contract address (optional)
6702
+ */
6703
+ contractAddress?: string;
6704
+ /**
6705
+ * ERC20 transfers
6706
+ */
6707
+ erc20Transfers: Array<ERCTransfer>;
6708
+ /**
6709
+ * ERC721 transfers
6710
+ */
6711
+ erc721Transfers: Array<ERCTransfer>;
6712
+ /**
6713
+ * ERC1155 transfers
6714
+ */
6715
+ erc1155Transfers: Array<ERCTransfer>;
6716
+ /**
6717
+ * Internal transactions (optional)
6718
+ */
6719
+ internalTransactions?: Array<WebhookInternalTransaction>;
6720
+ /**
6721
+ * Access list (optional)
6722
+ */
6723
+ accessList?: Array<AccessListData>;
6724
+ /**
6725
+ * Network token info (optional)
6726
+ */
6727
+ networkToken?: NetworkTokenInfo;
6728
+ };
6729
+
6730
+ type TransactionEvent = {
6731
+ /**
6732
+ * Transaction details
6733
+ */
6734
+ transaction: Transaction;
6735
+ /**
6736
+ * Array of log events
6737
+ */
6738
+ logs?: Array<Log>;
6739
+ };
6740
+
5133
6741
  type Unauthorized = {
5134
6742
  /**
5135
6743
  * The error message describing the reason for the exception
@@ -5145,4 +6753,43 @@ type Unauthorized = {
5145
6753
  error: string;
5146
6754
  };
5147
6755
 
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 };
6756
+ type WebhookAddressActivityResponse = {
6757
+ /**
6758
+ * Webhook ID
6759
+ */
6760
+ webhookId: string;
6761
+ /**
6762
+ * Event type
6763
+ */
6764
+ eventType: WebhookAddressActivityResponse.eventType;
6765
+ /**
6766
+ * Message ID
6767
+ */
6768
+ messageId: string;
6769
+ /**
6770
+ * Event details
6771
+ */
6772
+ event: TransactionEvent;
6773
+ };
6774
+ declare namespace WebhookAddressActivityResponse {
6775
+ /**
6776
+ * Event type
6777
+ */
6778
+ enum eventType {
6779
+ ADDRESS_ACTIVITY = "address_activity"
6780
+ }
6781
+ }
6782
+
6783
+ declare class FetchHttpRequest extends BaseHttpRequest {
6784
+ constructor(config: OpenAPIConfig);
6785
+ /**
6786
+ * Request method
6787
+ * @param options The request options from the service
6788
+ * @returns CancelablePromise<T>
6789
+ * @throws ApiError
6790
+ */
6791
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6792
+ }
6793
+
6794
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, 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 };
6795
+ 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 };